/* ==========================================================================
   1. IMPORTAZIONE FONT (INTER)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ==========================================================================
   2. NASCONDI VECCHI ELEMENTI NATIVI
   ========================================================================== */
#site-name, .nav-header, .brand-link, .navbar-brand, li.user-menu { 
    display: none !important; 
}

/* ==========================================================================
   3. LAYOUT NAVBAR E MENU (BLINDATO)
   ========================================================================== */
/* Regola correttiva per evitare che la navbar fluttui */
.main-header {
    position: relative !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 65px !important;
    padding: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    z-index: 1000 !important;
}

body.layout-navbar-fixed .main-header {
    position: relative !important;
}

/* MOBILE FIX: Riduzione altezza e controllo millimetrico degli spazi */
@media (max-width: 768px) {
    /* 1. Barra menu compatta */
    .main-header { 
        min-height: 48px !important; 
        height: 48px !important; 
    }
    .navbar-nav { 
        padding: 0 !important; 
    }
    
    /* 2. Uccidiamo TUTTI gli spazi predefiniti dei contenitori a cascata */
    .content-wrapper, 
    .content, 
    .container-fluid, 
    #content-main {
        margin-top: 0 !important;
        padding-top: 0 !important; /* Mettiamo tutto a zero qui */
    }

    /* 3. Annientamento totale dell'intestazione invisibile */
    .content-header {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    /* 4. IL CONTROLLO FINALE DELLO SPAZIO */
    /* Usiamo il padding sul primissimo elemento per staccarlo dalla barra */
    /* Cambia "5px" con "0px" se vuoi la card letteralmente attaccata al menu */
    .content-wrapper {
        padding-top: 0px !important; 
    }
    
    /* Se la primissima card ha un margine suo, lo togliamo */
    .card:first-of-type, .results {
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   4. STILE LINK DEL MENU
   ========================================================================== */
.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;   
    font-size: 14.5px !important;  
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
    padding: 10px 15px !important; 
    background: transparent !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease-in-out !important;
}

.navbar-nav .nav-link:hover { color: #0f172a !important; background-color: #f1f5f9 !important; }
.navbar-nav a[href*="/admin/auth/user/"]:hover { color: #b91c1c !important; background-color: #fef2f2 !important; }

/* ==========================================================================
   5. NOTIFICHE PUSH (TOAST STILE 2026)
   ========================================================================== */
.toast-push {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: #0f172a;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
}
.toast-push.show { opacity: 1; }
.toast-success { border-left: 6px solid #10b981; }
.toast-error   { border-left: 6px solid #ef4444; }
.toast-warning { border-left: 6px solid #f59e0b; }
.toast-info    { border-left: 6px solid #0ea5e9; }

/* ==========================================================================
   6. OVERRIDE GENERICI E TABELLE
   ========================================================================== */
.card { border-radius: 12px !important; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important; border: 1px solid #e2e8f0 !important; }

.column-get_economics_y1, .column-get_economics_y2, .column-get_pv_badge { text-align: center !important; }
th.column-get_economics_y1, th.column-get_economics_y2, th.column-get_pv_badge { text-align: center !important; vertical-align: middle !important; }

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
}

.wrapper { position: relative !important; }


