/**
 * Tema admin YOCABE – stile grafica e colori dashboard (sidebar chiara, accenti teal, card pulite).
 * Da applicare alle pagine Sonata Admin (standard_layout).
 */

:root {
    --admin-font-sans: "Geist", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --admin-font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Sidebar: sfondo menu laterale */
    --admin-sidebar-bg: #fafafa;
    --admin-sidebar-text: #343a40;
    --admin-sidebar-hover: #e9ecef;
    /* Voce attiva: sfondo blu/teal chiaro, testo e icona teal più scuro */
    --admin-sidebar-active-bg: #efe9e6;
    --admin-sidebar-active-accent: #0097a7;
    /* Area contenuto: sfondo pagina centrale */
    --admin-content-bg: #f7f4f2;
    --admin-card-bg: #ffffff;
    --admin-card-shadow: 5px 5px 10px rgba(0, 0, 0, 0.08);
    --admin-card-radius: 12px;
    --admin-text-primary: #212529;
    --admin-text-secondary: #495057;
    --admin-text-muted: #6c757d;
    --admin-accent-teal: #0097a7;
    --admin-positive: #28a745;
    --admin-negative: #dc3545;
    --admin-border: rgba(0, 0, 0, 0.06);
    /* Filtri globali navbar (periodo / paese / categoria) */
    --admin-dashboard-filters-bg: #e8ddd9;
}

/* ---------- Layout principale ---------- */
body.skin-black .wrapper,
body.skin-black .content-wrapper {
    background-color: var(--admin-content-bg);
}

body.skin-black {
    font-family: var(--admin-font-sans);
}

body.skin-black,
body.skin-black h1,
body.skin-black h2,
body.skin-black h3,
body.skin-black h4,
body.skin-black h5,
body.skin-black h6,
body.skin-black .content-header h1,
body.skin-black .box-title,
body.skin-black .btn,
body.skin-black .form-control,
body.skin-black input,
body.skin-black select,
body.skin-black textarea {
    font-family: var(--admin-font-sans);
}

/* Raddoppia lo spazio interno dell'area contenuti principale (default AdminLTE ~15px). */
.content-wrapper > .content-header,
.content-wrapper > .content {
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

/*
 * Pannelli admin con griglia di card: spaziatura unificata (orizzontale e
 * verticale), centralizzata in queste regole. Scoped a .delphi-panel-grid
 * per non alterare le pagine CRUD di Sonata.
 *
 * Per cambiare la spaziatura, modifica le custom property qui sotto:
 *   - --delphi-panel-grid-gutter   : metà gap orizzontale (default 10px → 20px tra card)
 *   - --delphi-panel-grid-row-gap  : gap verticale tra righe (default 20px)
 *
 * Il margin-bottom di .box (default AdminLTE 20px) viene neutralizzato qui
 * per evitare somma con quello del col: .box ha border e quindi il suo
 * margin non collassa col col.
 */
.delphi-panel-grid {
    --delphi-panel-grid-gutter: 10px;
    --delphi-panel-grid-row-gap: 20px;
}
.delphi-panel-grid > .row {
    margin-left: calc(-1 * var(--delphi-panel-grid-gutter));
    margin-right: calc(-1 * var(--delphi-panel-grid-gutter));
}
.delphi-panel-grid > .row > [class*="col-"] {
    padding-left: var(--delphi-panel-grid-gutter);
    padding-right: var(--delphi-panel-grid-gutter);
    margin-bottom: var(--delphi-panel-grid-row-gap);
}
.delphi-panel-grid > .row > [class*="col-"] > .box {
    margin-bottom: 0;
}

/* ---------- Sidebar: sfondo grigio chiaro, stile come da riferimento ---------- */
.main-sidebar {
    background-color: var(--admin-sidebar-bg) !important;
    border-right: 1px solid #e0d6d1 !important;
}

.sidebar {
    padding: 0;
}

/* Voci di menu: padding generoso, allineamento icona + testo */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: relative;
    min-height: calc(100vh - 120px);
    padding-bottom: 108px;
}

.sidebar-menu > li > a {
    color: var(--admin-sidebar-text) !important;
    border-left: 0;
    padding: 12px 15px 12px 19px;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-left-color 0.15s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.sidebar-menu > li > a:hover {
    background-color: var(--admin-sidebar-hover) !important;
    color: var(--admin-sidebar-text) !important;
    box-shadow: inset 0 2px 0 var(--admin-sidebar-bg), inset 0 -2px 0 var(--admin-sidebar-bg);
}

/* Evita il dark-hover legacy quando il mouse è nel <li> ma fuori dall'<a>. */
.sidebar-menu > li:not(.active):hover > a:not(:hover) {
    background-color: transparent !important;
    color: var(--admin-sidebar-text) !important;
}

/* Voce attiva: sfondo blu/teal chiaro arrotondato, testo e icona teal (come da immagine) */
.sidebar-menu > li.active > a,
.sidebar-menu > li.active > a:hover {
    background-color: var(--admin-sidebar-active-bg) !important;
    color: var(--admin-text-primary) !important;
    font-weight: 600;
    border-left: 0 !important;
    border-radius: 8px;
    margin: 0 8px;
    box-shadow: none !important;
}

.sidebar-menu > li.active:hover > a:not(:hover) {
    background-color: var(--admin-sidebar-active-bg) !important;
    color: var(--admin-text-primary) !important;
}

/* Icone: dimensione e spazio dal testo */
.sidebar-menu li > a > .fa,
.sidebar-menu li > a > .fas,
.sidebar-menu li > a > .far,
.sidebar-menu li > a > .fab,
.sidebar-menu li > a > [class^="fa"] {
    color: var(--admin-sidebar-text);
    width: 22px;
    margin-right: 10px;
    font-size: 1.1em;
    text-align: center;
    flex-shrink: 0;
}

/* Icona voce attiva: stesso teal del testo */
.sidebar-menu > li.active > a > .fa,
.sidebar-menu > li.active > a > .fas,
.sidebar-menu > li.active > a > .far,
.sidebar-menu > li.active > a > .fab,
.sidebar-menu > li.active > a > [class^="fa"] {
    color: var(--admin-text-primary) !important;
}

/* Eventuali intestazioni di gruppo nel menu */
.sidebar-menu .header {
    padding: 10px 15px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-muted);
}

/* Logo / brand sopra la sidebar */
.main-sidebar .brand-link {
    background-color: var(--admin-sidebar-bg) !important;
    color: var(--admin-sidebar-text) !important;
    border-bottom: 1px solid #e0d6d1 !important;
    padding: 15px;
    overflow: visible;
}

/* Logo custom: immagine brand Delphi */
.main-sidebar .logo.brand-logo-custom,
.main-header .logo.brand-logo-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 0;
}
.main-sidebar .logo.brand-logo-custom:hover,
.main-header .logo.brand-logo-custom:hover {
    text-decoration: none;
}
.logo.brand-logo-custom .brand-logo-image {
    display: block;
    width: 100%;
    max-width: 168px;
    height: auto;
    object-fit: contain;
}

/* Sidebar: mantiene il logo leggibile nella colonna sinistra */
.main-sidebar .logo.brand-logo-custom .brand-logo-image {
    max-width: 142px;
}

/* Sidebar collassata: riduci il logo per mantenere proporzioni */
.sidebar-collapse .main-sidebar .logo.brand-logo-custom .brand-logo-image {
    max-width: 38px;
}

/* Header: logo orizzontale completo */
.main-header .logo.brand-logo-custom {
    overflow: visible;
    padding: 0 12px;
}
.main-header .navbar-header,
.main-header .navbar > .navbar-left,
.main-header a.logo {
    overflow: visible !important;
}
.main-header a.logo.brand-logo-custom {
    max-width: none;
}
.main-header .logo.brand-logo-custom .brand-logo-image {
    max-width: 178px;
}

/* ---------- Header / navbar ---------- */
.main-header .navbar {
    background-color: var(--admin-card-bg) !important;
    border-bottom: 1px solid #e0d6d1;
    box-shadow: none;
}

/*
 * Barra superiore in flex + stretch: il blocco filtri (#E8DDD9) deve coprire tutta l’altezza
 * della navbar (prima float + padding verticale lasciavano “buchi” sopra/sotto).
 */
.main-header .navbar.navbar-static-top {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 50px;
}
.main-header .navbar.navbar-static-top > .sidebar-toggle {
    float: none;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex-shrink: 0;
}
.main-header .navbar.navbar-static-top > .navbar-left {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
}
.main-header .navbar.navbar-static-top > .navbar-custom-menu {
    float: none;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
}

/* Dashboard: filtri accanto al toggle menu (icona + select) — sfondo solo sui select, non sul blocco */
.main-header .delphi-dashboard-filters-navbar {
    float: none;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0 8px 0 4px;
    max-width: min(100%, calc(100vw - 420px));
}
.main-header .delphi-dashboard-filters-mobile-toggle,
.main-header .delphi-dashboard-filters-mobile-header,
.main-header .delphi-dashboard-filters-mobile-overlay {
    display: none;
}
.main-header .delphi-dashboard-filters-mobile-toggle .fas {
    font-size: 0.85rem;
}
.main-header .delphi-dashboard-filters-icon {
    color: var(--admin-text-secondary);
    font-size: 0.85rem;
    line-height: 1;
    padding: 0 2px 0 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.main-header .delphi-dashboard-filters-inner {
    min-width: 0;
}
.main-header .delphi-dashboard-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.main-header .delphi-dashboard-filters-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    justify-content: center;
}
.main-header .delphi-dashboard-filters-reset-cell {
    flex-shrink: 0;
    justify-content: center;
}
.main-header .delphi-dashboard-filters-reset-cell.delphi-dashboard-filters-reset-cell--hidden {
    display: none !important;
}
.main-header .delphi-dashboard-filters-reset-btn {
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.main-header .delphi-dashboard-filters-reset-btn:hover,
.main-header .delphi-dashboard-filters-reset-btn:focus-visible {
    background-color: #09cbbf;
    border-color: #09cbbf;
    color: #fff;
}
.main-header .delphi-dashboard-filters-reset-btn:hover .fas,
.main-header .delphi-dashboard-filters-reset-btn:focus-visible .fas {
    color: #fff;
}
.main-header .delphi-dashboard-filters-aux {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.main-header .delphi-dashboard-filters-aux-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.main-header .delphi-dashboard-filters-error {
    font-size: 0.72rem;
    color: var(--admin-negative, #dc3545);
    max-width: 200px;
    line-height: 1.2;
    padding: 2px 0 0 0;
}

/* Bordi comuni; sfondo colorato solo sui select (sotto) */
.main-header .delphi-dashboard-filters-navbar .form-control {
    border-color: var(--admin-border);
    border-radius: 4px;
}

/*
 * Larghezze fisse: con width:auto i select si ridimensionano quando (1) arrivano le opzioni via AJAX
 * o (2) si ripristina un valore lungo da localStorage → sfarfallio in navbar.
 */
.main-header .delphi-dashboard-filters-navbar select.form-control {
    box-sizing: border-box;
    max-width: 100%;
    background-color: var(--admin-dashboard-filters-bg);
}
.main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-period {
    width: 17rem;
    min-width: 17rem;
}
.main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-country,
.main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-category {
    width: 16rem;
    min-width: 16rem;
}

/* Paese / categoria (navbar): combobox con ricerca (input + lista assoluta) */
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-cell {
    position: relative;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox,
.main-header .delphi-dashboard-filters-navbar .delphi-category-combobox {
    position: relative;
    display: block;
    width: 16rem;
    min-width: 16rem;
    max-width: 100%;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-input {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--admin-dashboard-filters-bg);
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 2000;
    margin: 2px 0 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-item {
    padding: 6px 10px;
    font-size: 0.8125rem;
    line-height: 1.3;
    cursor: pointer;
    color: var(--admin-text-primary);
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-item:hover,
.main-header .delphi-dashboard-filters-navbar .delphi-country-combobox-item:focus {
    background-color: rgba(9, 203, 191, 0.12);
    outline: none;
}

/* Paese / categoria (navbar): chip in linea tra i combobox (scroll orizzontale); categoria tra categoria e Reimposta */
.main-header .delphi-dashboard-filters-navbar .delphi-country-chips-cell,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chips-cell {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    flex: 0 0 0;
    max-width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, max-width 0.2s ease;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chips-cell.delphi-country-chips-cell--active,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chips-cell.delphi-category-chips-cell--active {
    flex: 1 1 auto;
    max-width: min(36rem, 42vw);
    min-width: 6rem;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chips,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chips {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 2px 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chips::-webkit-scrollbar,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chips::-webkit-scrollbar {
    height: 4px;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chips::-webkit-scrollbar-thumb,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chips::-webkit-scrollbar-thumb {
    background: var(--admin-border);
    border-radius: 2px;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chip,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    max-width: 14rem;
    padding: 2px 6px 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.35;
    border: 1px solid var(--admin-border);
    background-color: var(--admin-dashboard-filters-bg);
    color: var(--admin-text-primary);
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chip-label,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chip-remove,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chip-remove {
    flex-shrink: 0;
    margin: 0;
    padding: 0 2px;
    border: none;
    background: transparent;
    color: var(--admin-text-muted, #6c757d);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    border-radius: 2px;
}
.main-header .delphi-dashboard-filters-navbar .delphi-country-chip-remove:hover,
.main-header .delphi-dashboard-filters-navbar .delphi-country-chip-remove:focus,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chip-remove:hover,
.main-header .delphi-dashboard-filters-navbar .delphi-category-chip-remove:focus {
    color: var(--admin-text-primary);
    background-color: rgba(9, 203, 191, 0.15);
    outline: none;
}

/* Dashboard tracking: filtro corriere (combobox come navbar) */
.content .delphi-carrier-combobox {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.content .delphi-carrier-combobox-input {
    box-sizing: border-box;
    background-color: var(--admin-card-bg);
}
.content .delphi-carrier-combobox-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1500;
    margin: 2px 0 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.content .delphi-carrier-combobox-item {
    padding: 6px 10px;
    font-size: 0.8125rem;
    line-height: 1.3;
    cursor: pointer;
    color: var(--admin-text-primary);
}
.content .delphi-carrier-combobox-item:hover,
.content .delphi-carrier-combobox-item:focus {
    background-color: rgba(9, 203, 191, 0.12);
    outline: none;
}

/* Box tracking (riga 1): evita che il flex tagli la lista assoluta del combobox corriere */
.content .dashboard-row1-box > .box-body {
    overflow: visible;
}
.main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-aux {
    width: 5.5rem;
    min-width: 5.5rem;
}
.main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-input-date {
    min-width: 8.125rem;
    box-sizing: border-box;
    max-width: 100%;
    background-color: var(--admin-card-bg);
}

@media (max-width: 1500px) {
    .main-header .delphi-dashboard-filters-navbar {
        max-width: none;
        padding: 0 4px;
        margin-left: 2px;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-icon {
        display: none;
    }
    .main-header .delphi-dashboard-filters-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-inner {
        position: fixed;
        top: 0;
        left: 0;
        width: min(92vw, 24rem);
        height: 100vh;
        background: var(--admin-card-bg);
        border-right: 1px solid var(--admin-border);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
        padding: 12px;
        z-index: 2100;
        overflow-y: auto;
        transform: translateX(-104%);
        transition: transform 0.2s ease;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        gap: 8px;
    }
    .main-header .delphi-dashboard-filters-mobile-title {
        font-weight: 600;
        color: var(--admin-text-primary);
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-cell,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-aux,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-aux-row {
        width: 100%;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-period,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-country,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-category,
    .main-header .delphi-dashboard-filters-navbar .delphi-country-combobox,
    .main-header .delphi-dashboard-filters-navbar .delphi-category-combobox,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-select-aux,
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-input-date {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-reset-btn {
        width: 100%;
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-country-chips-cell.delphi-country-chips-cell--active,
    .main-header .delphi-dashboard-filters-navbar .delphi-category-chips-cell.delphi-category-chips-cell--active {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }
    .main-header .delphi-dashboard-filters-navbar.is-mobile-open .delphi-dashboard-filters-inner {
        transform: translateX(0);
    }
    .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-mobile-overlay {
        display: none;
    }
    .main-header .delphi-dashboard-filters-navbar.is-mobile-open .delphi-dashboard-filters-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2050;
        background: rgba(0, 0, 0, 0.38);
    }
    body.delphi-dashboard-filters-mobile-open {
        overflow: hidden;
    }
}

.main-header .navbar .nav > li > a {
    color: var(--admin-text-primary);
}

/* ---------- Content: titoli e testi ---------- */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    font-weight: 700;
}

.content h1 {
    font-size: 2rem;
    line-height: 1.15;
}

.content-header h1 {
    color: var(--admin-text-primary);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
}

.content p,
.content .text-muted {
    color: var(--admin-text-secondary);
}

/* ---------- Box / card: bianco, bordi arrotondati, ombra 3D ---------- */
.content .box {
    background-color: var(--admin-card-bg);
    border-radius: var(--admin-card-radius);
    box-shadow: 0 1px 5px rgba(224, 214, 209, 0.55);
    border: 1px solid #e0d6d1;
}

.content .box.box-solid {
    border: 1px solid #e0d6d1;
    box-shadow: 0 1px 5px rgba(224, 214, 209, 0.55);
}

.content .box .box-header,
.content .box .box-title {
    color: var(--admin-text-primary);
    font-weight: 700;
}

/* Titoli card centralizzati: evitare inline style nei Twig */
.content .box .box-title.delphi-card-title {
    font-size: 1.1rem;
    color: #67777e;
    font-weight: normal;
    padding: 0 0 0.89rem;
    margin: 0;
}

.content .box .delphi-card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content .box .delphi-card-icon .fas,
.content .box .delphi-card-icon [class^="fa"] {
    color: #67777e;
    font-size: 1rem;
}

.content .box .box-body {
    color: var(--admin-text-secondary);
    padding: 20px;
}

/* ---------- KPI card: layout e tipografia ---------- */
.content .kpi-card {
    position: relative;
}

.content .kpi-loader {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
}

.content .kpi-loader-spinner {
    font-size: 1.25rem;
    color: #5b9bd5;
}

.content .kpi-content {
    display: none;
}

.content [id$="-value"],
.content .kpi-card-value,
.content .kpi-value {
    font-family: var(--admin-font-mono);
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0;
    white-space: nowrap;
}

.content .kpi-trend-line {
    margin: 0;
    font-size: 0.85rem;
}

.content .kpi-trend-line-spaced {
    margin: 0 0 8px;
}

.content .kpi-trend-positive {
    color: #28a745;
}

.content .kpi-trend-negative {
    color: #dc3545;
}

.content .kpi-trend-up-is-favorable.kpi-trend-up,
.content .kpi-trend-up-is-unfavorable.kpi-trend-down {
    color: #28a745;
}

.content .kpi-trend-up-is-favorable.kpi-trend-down,
.content .kpi-trend-up-is-unfavorable.kpi-trend-up {
    color: #dc3545;
}

.content .kpi-trend-arrow {
    font-size: 0.75rem;
}

.content .kpi-error {
    display: none;
    font-size: 0.85rem;
    color: #dc3545;
}

.content .kpi-warning-icon-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
}

.content .kpi-warning-icon {
    color: #dc3545;
    font-size: 1rem;
}

.content .kpi-progress-track {
    margin-top: 8px;
}

.content .kpi-progress {
    width: 100%;
    height: 6px;
    display: block;
}

.content .kpi-progress.kpi-progress-warning {
    accent-color: #f0ad4e;
}

.content .kpi-progress.kpi-progress-danger {
    accent-color: #dc3545;
}

.content .kpi-debug {
    display: none;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 8px;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #333;
    max-height: 220px;
    overflow: auto;
}

/* Debug KPI/chart: il <pre> in dev è mostrato via JS (display:block); in prod il partial non lo renderizza. */

/* ---------- Accenti teal per link e elementi attivi ---------- */
.content a:not(.btn) {
    color: var(--admin-accent-teal);
}

.btn-primary,
.label-primary {
    background-color: var(--admin-accent-teal) !important;
    border-color: var(--admin-accent-teal) !important;
}

/* ---------- Indicatori positivi / negativi ---------- */
.text-success,
.label-success {
    color: var(--admin-positive) !important;
}

.kpi-trend-positive {
    color: var(--admin-positive) !important;
}

.kpi-trend-negative {
    color: var(--admin-negative) !important;
}

.text-danger,
.label-danger {
    color: var(--admin-negative) !important;
}

.bg-danger,
.label-danger {
    background-color: var(--admin-negative) !important;
}

/* ---------- Tabelle e form ---------- */
.content .table th {
    color: var(--admin-text-primary);
    font-weight: 600;
}

.content .table td {
    color: var(--admin-text-secondary);
}

/* Utility tipografiche semantiche per codici e numeri (tabelle, badge, etichette). */
.content .delphi-mono {
    font-family: var(--admin-font-mono);
}

.content .delphi-numeric {
    font-family: var(--admin-font-mono);
    font-variant-numeric: tabular-nums;
}

.content .delphi-mono,
.content .delphi-numeric {
    font-size: 94%;
}

.content .form-control {
    border-color: var(--admin-border);
    border-radius: 4px;
}

/* ---------- Dropdown e menu top ---------- */
.navbar-custom-menu .navbar-nav > li > a {
    color: var(--admin-text-primary);
}

/* Sidebar: nasconde il footer Sonata superfluo */
.main-sidebar .sidebar > p.text-center.small {
    display: none !important;
}

/* Sidebar: voce diretta "Utenti" senza submenu visualizzato */
.main-sidebar .sidebar-menu > li.delphi-direct-link > ul.treeview-menu {
    display: none !important;
}

/* Voce speciale menu: "Analisi AI" fissata in basso (40px dal fondo). */
.main-sidebar .sidebar-menu > li.delphi-ai-insights-menu-item {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
}

.dropdown-menu {
    border-radius: var(--admin-card-radius);
    box-shadow: var(--admin-card-shadow);
    border: 1px solid var(--admin-border);
}

/* Evidenzia la voce attiva nei dropdown (es. selettore lingua) */
.dropdown-menu > li.active > a,
.dropdown-menu > li.active > a:hover,
.dropdown-menu > li.active > a:focus {
    background-color: var(--admin-sidebar-active-bg) !important;
    color: var(--admin-sidebar-active-accent) !important;
    font-weight: 600;
}

/* ========== Tema "Default2" – tonalità grigio, senza ombre né radius ========== */
body.admin-theme-default2.skin-black .wrapper {
    background-color: #e5e7eb;
}
body.admin-theme-default2.skin-black .content-wrapper {
    background-color: #e5e7eb;
}

/* Forza assenza totale di ombre e radius (sovrascrive anche stili inline nei template) */
body.admin-theme-default2 .content .box,
body.admin-theme-default2 .content .box .box-header,
body.admin-theme-default2 .content .box .box-body,
body.admin-theme-default2 .content .kpi-card,
body.admin-theme-default2 .content .dashboard-row1-box,
body.admin-theme-default2 .content [class*="box"] {
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.admin-theme-default2 .content [style*="border-radius"] {
    border-radius: 0 !important;
}
body.admin-theme-default2 .content [style*="box-shadow"] {
    box-shadow: none !important;
}

/* Sidebar grigia */
body.admin-theme-default2 .main-sidebar {
    background-color: #d1d5db !important;
    border-right: 1px solid #e0d6d1 !important;
    box-shadow: none;
}
body.admin-theme-default2 .main-sidebar .brand-link {
    background-color: #d1d5db !important;
    border-bottom: 1px solid #e0d6d1 !important;
    padding: 16px;
}
body.admin-theme-default2 .brand-logo-icon {
    background-color: #6b7280;
}
body.admin-theme-default2 .logo.brand-logo-custom {
    color: #1f2937;
}
body.admin-theme-default2 .logo.brand-logo-custom:hover {
    color: #1f2937;
}

body.admin-theme-default2 .sidebar-menu > li > a {
    color: #374151 !important;
    border-left-color: transparent;
    border-radius: 0;
    margin: 0;
}
body.admin-theme-default2 .sidebar-menu > li > a:hover {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
    box-shadow: inset 0 2px 0 #d1d5db, inset 0 -2px 0 #d1d5db;
}
body.admin-theme-default2 .sidebar-menu > li:not(.active):hover > a:not(:hover) {
    background-color: transparent !important;
    color: #374151 !important;
}
body.admin-theme-default2 .sidebar-menu li > a > .fa,
body.admin-theme-default2 .sidebar-menu li > a > .fas,
body.admin-theme-default2 .sidebar-menu li > a > .far,
body.admin-theme-default2 .sidebar-menu li > a > .fab,
body.admin-theme-default2 .sidebar-menu li > a > [class^="fa"] {
    color: #4b5563;
}
body.admin-theme-default2 .sidebar-menu > li.active > a,
body.admin-theme-default2 .sidebar-menu > li.active > a:hover {
    background-color: #9ca3af !important;
    color: #111827 !important;
    border-left: 4px solid #4b5563;
    border-radius: 0;
    margin: 0;
    box-shadow: none !important;
}
body.admin-theme-default2 .sidebar-menu > li.active:hover > a:not(:hover) {
    background-color: #9ca3af !important;
    color: #111827 !important;
}
body.admin-theme-default2 .sidebar-menu > li.active > a > .fa,
body.admin-theme-default2 .sidebar-menu > li.active > a > .fas,
body.admin-theme-default2 .sidebar-menu > li.active > a > .far,
body.admin-theme-default2 .sidebar-menu > li.active > a > .fab,
body.admin-theme-default2 .sidebar-menu > li.active > a > [class^="fa"] {
    color: #111827 !important;
    text-shadow: none;
}
body.admin-theme-default2 .sidebar-menu .header {
    color: #6b7280;
}

/* Header grigio */
body.admin-theme-default2 .main-header .navbar {
    background-color: #d1d5db !important;
    border-bottom: 1px solid #e0d6d1;
    box-shadow: none;
}
body.admin-theme-default2 .main-header .navbar .nav > li > a,
body.admin-theme-default2 .navbar-custom-menu .navbar-nav > li > a {
    color: #374151 !important;
}
body.admin-theme-default2 .main-header .navbar .nav > li > a:hover,
body.admin-theme-default2 .navbar-custom-menu .navbar-nav > li > a:hover {
    color: #111827 !important;
    background-color: #e5e7eb !important;
}
body.admin-theme-default2 .breadcrumb {
    background: transparent !important;
    color: #6b7280 !important;
}
body.admin-theme-default2 .breadcrumb a {
    color: #4b5563 !important;
}

/* Content: box senza ombra né radius, bordi grigi */
body.admin-theme-default2 .content-header h1 {
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
}
body.admin-theme-default2 .content .box {
    background: #f9fafb;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #9ca3af;
}
body.admin-theme-default2 .content .box .box-header,
body.admin-theme-default2 .content .box .box-title {
    color: #1f2937;
    border-bottom-color: #d1d5db;
}
body.admin-theme-default2 .content a:not(.btn) {
    color: #4b5563;
    font-weight: 500;
}
body.admin-theme-default2 .content a:not(.btn):hover {
    color: #1f2937;
    text-decoration: underline;
}

body.admin-theme-default2 .content .form-control {
    border-radius: 0;
}

body.admin-theme-default2 .main-header .delphi-dashboard-filters-navbar .form-control {
    border-radius: 0;
}
body.admin-theme-default2 .main-header .delphi-dashboard-filters-navbar .delphi-dashboard-filters-inner {
    border-right-color: #9ca3af;
    box-shadow: none;
}
body.admin-theme-default2 .main-header .delphi-dashboard-filters-navbar.is-mobile-open .delphi-dashboard-filters-mobile-overlay {
    background: rgba(17, 24, 39, 0.38);
}

body.admin-theme-default2 .btn-primary,
body.admin-theme-default2 .label-primary {
    background-color: #6b7280 !important;
    border: 1px solid #4b5563 !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.admin-theme-default2 .btn-primary:hover {
    background-color: #4b5563 !important;
}
body.admin-theme-default2 .btn,
body.admin-theme-default2 .label {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Dropdown grigio */
body.admin-theme-default2 .dropdown-menu {
    background: #f3f4f6;
    border: 1px solid #9ca3af;
    box-shadow: none;
    border-radius: 0;
}
body.admin-theme-default2 .dropdown-menu li a {
    color: #374151 !important;
}
body.admin-theme-default2 .dropdown-menu li a:hover,
body.admin-theme-default2 .dropdown-menu .active a {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}

/* ========== AI Insights – FAB + finestra chat (solo in pagina, nessun invio remoto) ========== */
.ai-insights-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    font-family: inherit;
    pointer-events: none;
}
.ai-insights-widget .ai-insights-fab,
.ai-insights-widget .ai-insights-panel {
    pointer-events: auto;
}
.ai-insights-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #09cbbf;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(9, 203, 191, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1051;
}
.ai-insights-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(9, 203, 191, 0.5);
}
.ai-insights-widget-panel-open .ai-insights-fab {
    display: none;
}
.ai-insights-fab-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.ai-insights-panel {
    display: none;
    position: fixed;
    top: 24px;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}
.ai-insights-panel-open {
    display: flex !important;
}
.ai-insights-panel-expanded {
    width: 50vw;
    max-width: calc(100vw - 48px);
}
.ai-insights-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 10;
}
.ai-insights-resize-handle:hover,
.ai-insights-resize-handle:active {
    background: rgba(9, 203, 191, 0.15);
}
.ai-insights-resize-handle::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40px;
    border-radius: 1px;
    background: #cbd5e1;
    opacity: 0;
    transition: opacity 0.15s;
}
.ai-insights-resize-handle:hover::after,
.ai-insights-resize-handle:active::after {
    opacity: 1;
}
.ai-insights-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.ai-insights-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-insights-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #09cbbf;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.ai-insights-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}
.ai-insights-panel-subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.ai-insights-panel-actions {
    display: flex;
    gap: 4px;
}
.ai-insights-btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-insights-btn-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}
.ai-insights-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.ai-insights-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.ai-insights-msg {
    margin-bottom: 12px;
}
.ai-insights-msg p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.ai-insights-msg-bot p {
    color: #374151;
}
.ai-insights-msg-body.ai-insights-markdown {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
}
.ai-insights-markdown h1,
.ai-insights-markdown h2,
.ai-insights-markdown h3,
.ai-insights-markdown h4 {
    margin: 0.75em 0 0.35em;
    font-weight: 700;
    line-height: 1.3;
}
.ai-insights-markdown h1 { font-size: 1.25rem; }
.ai-insights-markdown h2 { font-size: 1.1rem; }
.ai-insights-markdown h3,
.ai-insights-markdown h4 { font-size: 1rem; }
.ai-insights-markdown p {
    margin: 0 0 0.5em;
}
.ai-insights-markdown p:last-child {
    margin-bottom: 0;
}
.ai-insights-markdown ul,
.ai-insights-markdown ol {
    margin: 0.5em 0;
    padding-left: 1.25em;
}
.ai-insights-markdown li {
    margin: 0.2em 0;
}
.ai-insights-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6em 0;
    font-size: 0.85rem;
}
.ai-insights-markdown th,
.ai-insights-markdown td {
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    text-align: left;
}
.ai-insights-markdown th {
    background: #f3f4f6;
    font-weight: 600;
}
.ai-insights-markdown tr:nth-child(even) td {
    background: #f9fafb;
}
/* Tabella **Dati** (HTML da BigQuery): importi 2 dec, numeri con . migliaia, testi/anni a sinistra */
.ai-insights-data-wrap {
    margin: 0.6em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ai-insights-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.ai-insights-data-table th,
.ai-insights-data-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
}
.ai-insights-data-table th {
    background: #f3f4f6;
    font-weight: 600;
}
.ai-insights-data-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}
.ai-insights-data-table .ai-insights-col-text,
.ai-insights-data-table th.ai-insights-col-text {
    text-align: left;
}
.ai-insights-data-table .ai-insights-col-amount,
.ai-insights-data-table .ai-insights-col-number,
.ai-insights-data-table th.ai-insights-col-amount,
.ai-insights-data-table th.ai-insights-col-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.ai-insights-markdown strong { font-weight: 700; }
.ai-insights-markdown a {
    color: #09cbbf;
    text-decoration: none;
}
.ai-insights-markdown a:hover { text-decoration: underline; }
.ai-insights-markdown hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.75em 0;
}
.ai-insights-markdown blockquote {
    margin: 0.5em 0;
    padding-left: 1em;
    border-left: 3px solid #09cbbf;
    color: #6b7280;
}
.ai-insights-vega-chart {
    margin-top: 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ai-insights-vega-chart-inner {
    min-height: 120px;
}
.ai-insights-vega-chart .vega-embed {
    max-width: 100%;
}
.ai-insights-msg-user {
    text-align: right;
}
.ai-insights-msg-user p {
    display: inline-block;
    padding: 8px 12px;
    background: #09cbbf;
    color: #fff;
    border-radius: 12px 12px 4px 12px;
}
.ai-insights-loading p {
    color: #64748b;
}
.ai-insights-loading-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-insights-spinner {
    display: inline-flex;
    color: #09cbbf;
    font-size: 1.1rem;
}
.ai-insights-loading-inner {
    max-width: 100%;
}
.ai-insights-loading-status {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #64748b;
    min-height: 2.4em;
}
.ai-insights-loading-bar {
    height: 3px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 8px;
}
.ai-insights-loading-bar > span {
    display: block;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #09cbbf, #5eead4, #09cbbf);
    background-size: 200% 100%;
    animation: ai-insights-loading-bar 1.3s ease-in-out infinite;
}
@keyframes ai-insights-loading-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}
.ai-insights-dots {
    display: inline-block;
}
.ai-insights-dots::after {
    content: '...';
    animation: ai-insights-dots 1s steps(4, end) infinite;
}
@keyframes ai-insights-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
.ai-insights-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.ai-insights-suggestion {
    padding: 8px 12px;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 20px;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
}
.ai-insights-suggestion:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}
.ai-insights-reply-followups {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}
.ai-insights-reply-followups-label {
    flex: 0 0 100%;
    margin: 0 0 2px 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}
/* Stesse pill grigie delle domande iniziali (non full-width: stile chip come in welcome) */
.ai-insights-msg-bot .ai-insights-reply-followup-chip.ai-insights-suggestion {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
    vertical-align: top;
}
.ai-insights-panel-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    flex-shrink: 0;
}
.ai-insights-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
}
.ai-insights-input:focus {
    border-color: #09cbbf;
    box-shadow: 0 0 0 2px rgba(9, 203, 191, 0.2);
}
.ai-insights-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #09cbbf;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}
.ai-insights-send:hover {
    background: #08b5aa;
    transform: scale(1.05);
}
body.admin-theme-default2 .ai-insights-fab {
    background: #6b7280;
    box-shadow: none;
}
body.admin-theme-default2 .ai-insights-fab:hover {
    box-shadow: none;
    background: #4b5563;
}
body.admin-theme-default2 .ai-insights-panel {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #9ca3af;
}
body.admin-theme-default2 .ai-insights-panel-header {
    background: #e5e7eb;
    border-bottom-color: #9ca3af;
}
body.admin-theme-default2 .ai-insights-panel-icon {
    background: #6b7280;
}
body.admin-theme-default2 .ai-insights-msg-user p {
    background: #6b7280;
}
body.admin-theme-default2 .ai-insights-suggestion {
    border-radius: 0;
    border-color: #9ca3af;
    background: #f3f4f6;
}
body.admin-theme-default2 .ai-insights-suggestion:hover {
    background: #e5e7eb;
}
body.admin-theme-default2 .ai-insights-reply-followups {
    border-top-color: #9ca3af;
}
body.admin-theme-default2 .ai-insights-reply-followups-label {
    color: #4b5563;
}
body.admin-theme-default2 .ai-insights-input {
    border-radius: 0;
    border-color: #9ca3af;
}
body.admin-theme-default2 .ai-insights-input:focus {
    border-color: #4b5563;
    box-shadow: none;
}
body.admin-theme-default2 .ai-insights-send {
    background: #6b7280;
}
body.admin-theme-default2 .ai-insights-send:hover {
    background: #4b5563;
}
