.reports-header {
    display: flex;
    background: linear-gradient(135deg, rgb(26 26 26) 0%, rgb(26 26 26) 100%);
    padding: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.reports-title {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    min-width: 250px;
}
        .title-content h1 {
            color: #c0af6e;
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .title-content p {
            color: #888;
            font-size: 0.9rem;
        }

        .title-content strong {
            color: #c0af6e;
        }

        .title-with-main-buttons {
            display: flex;
            align-items: center;
            gap: 35px;
        }

        /* Menu Navigation */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .nav-left {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .nav-right {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-left: auto;
        }

        .btn-menu {
            color: #898989;
            padding: 10px 16px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            overflow: hidden;
			white-space:nowrap;
        }

        .btn-menu::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(192, 175, 110, 0.1), transparent);
            transition: left 0.5s ease;
        }



        .btn-menu.active {
            background: linear-gradient(135deg, #c0af6e, #b8a562);
            color: #1a1a1a;
            border-color: #c0af6e;
            font-weight: 600;
        }

   

        .btn-menu i {
            font-size: 1rem;
        }

        /* Stili specifici per bottoni speciali */
        .btn-pos-main {
            background: linear-gradient(135deg, #d4af37, #b8941f);
            color: #1a1a1a;
            border-color: #d4af37;
            font-weight: 600;
        }

        .btn-pos-main:hover {
            background: linear-gradient(135deg, #e6c757, #d4af37);
        }

        .btn-logout {
            background: linear-gradient(135deg, #dc3545, #c82333);
            color: white;
            border-color: #dc3545;
        }

        .btn-logout:hover {
            background: linear-gradient(135deg, #e74c3c, #dc3545);
            transform: translateY(-1px);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .nav-menu {
                justify-content: flex-start;
            }
            
            .nav-right {
                margin-left: 0;
            }
        }

        @media (max-width: 768px) {
            .reports-header {
                flex-direction: column;
                align-items: stretch;
            }
            
            .nav-menu {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            
            .nav-left,
            .nav-right {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn-menu {
                justify-content: center;
                padding: 12px 16px;
            }
            
            .reports-title {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            
            .title-with-main-buttons {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .reports-container {
                padding: 15px;
            }
            
            .reports-title h1 {
                font-size: 1.5rem;
            }
            
            .btn-menu {
                font-size: 0.85rem;
                padding: 10px 12px;
            }
        }
		/* ===== HEADER FISSO INTELLIGENTE ===== */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 0px solid #b9b274;
    backdrop-filter: blur(80px);
}

.header-container {
  color: #c0af6e;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.reports-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 0px solid #b9b274;
    backdrop-filter: blur(80px);
}

.reports-container {
  color: #c0af6e;
  font-family: 'Segoe UI', Arial, sans-serif;
}


.title-content h1 {
    margin: 0;
    font-size: 1.6em; /* Leggermente più piccolo */
    color: #b9b274;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.title-content p {
    margin: 5px 0 0 0;
    font-size: 0.9em; /* Più piccolo */
    color: #888;
}

.title-with-main-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}


.btn-menu:hover {
    background: #b9b274;
    color: #1a1a1a;
 
}

.btn-pos-main {
    background: #b9b274;
    color: #1a1a1a;
    font-weight: bold;
}

.btn-pos-main:hover {
    background: #d4c98a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(185, 178, 116, 0.4);
}


.nav-right {
    display: flex;
    gap: 25px; /* Riduciamo gap */
    flex-wrap: wrap;
    justify-content: center;
}

.main-container {
    min-height: calc(100vh - 160px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .reports-title {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .title-with-main-buttons {
        order: -1; /* Porta i bottoni sopra */
    }
    
    .main-container {
        margin-top: 180px; /* Più spazio su tablet */
    }
}

@media (max-width: 768px) {
    .reports-header {
        padding: 10px 15px;
    }
    
    .title-content h1 {
        font-size: 1.4em;
        text-align: center;
    }
    
    .title-content p {
        font-size: 0.8em;
        text-align: center;
    }
    
    .title-with-main-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-menu {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .nav-right {
        gap: 6px;
    }
    
    .main-container {
        margin-top: 200px; /* Ancora più spazio su mobile */
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nav-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .btn-menu {
        text-align: center;
        padding: 8px 4px;
        font-size: 0.75em;
    }
    
    .btn-menu i {
        display: block;
        margin-bottom: 2px;
        font-size: 1.1em;
    }
    
    .main-container {
        margin-top: 220px;
        padding: 10px;
    }
}

/* ===== ANIMAZIONE SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== EFFETTO BLUR QUANDO SCROLLA ===== */
.reports-container.scrolled {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
}

/* ===== MINI TOGGLE BUTTON (OPZIONALE) ===== */
.header-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1001;
    background: #b9b274;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none; /* Mostra solo se serve */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-toggle:hover {
    transform: scale(1.1);
    background: #d4c98a;
}

/* ===== HEADER NASCOSTO (OPZIONALE) ===== */
.reports-container.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}