@charset "utf-8";
/*
 * Fathers UI per l'area amministrativa di appmanager (Geecom, Heliac Technologies) - 02/10/2026.
 * Allinea il pannello a CRM e gestionale: font Rubik/Montserrat, barra superiore scura con il logo chiaro,
 * menu bianco, colore Fathers #2f3961, riquadri arrotondati, tabelle e pulsanti come nel CRM.
 * Si carica dopo StileBackend.css (include amministrazione/include/cssBaseAreaAmministrativa.php):
 * per tornare alla grafica originale basta togliere quel <link>. Nessun file del pannello e' stato riscritto.
 */
:root {
    --primary: #2f3961;
    --primary-over: #3d4a7c;
    --primary-active: #262e50;
    --secondary: #2f3961;
    --secondary-over: #3d4a7c;
    --secondary-active: #262e50;
    --info: #299cdb;
    --info-over: #2387be;
    --info-active: #1f78a9;
    --success: #0ab39c;
    --success-over: #099885;
    --success-active: #088a79;
    --warning: #f7b84b;
    --warning-over: #e0a43c;
    --warning-active: #c99232;
    --danger: #f06548;
    --danger-over: #d9553a;
    --danger-active: #c44b32;
    --dark: #424b5a;
    --fw-bg: #f3f6f9;
    --fw-bordo: #e9ebec;
    --fw-testo: #212529;
    --fw-muto: #878a99;
    --fw-topbar: #424b5a;
}

/* ---------- base ---------- */
body { font-family: "Rubik", sans-serif; font-size: 13.5px; color: var(--fw-testo); background: var(--fw-bg); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Montserrat", sans-serif; font-weight: 600; color: #343a40; }
main, main.bg-light, .bg-light { background-color: var(--fw-bg) !important; }
a { color: var(--primary); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--fw-topbar) !important; }
.border-primary { border-color: var(--primary) !important; }
::selection { background: rgba(47, 57, 97, .15); }

/* ---------- barra superiore (come #page-topbar del CRM) ---------- */
#headerAdmin.brand-bar {
    background: var(--fw-topbar) !important; height: 70px; padding: 0 1.25rem !important;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
}
#headerAdmin .navbar-brand { padding: 0; display: flex; align-items: center; }
#headerAdmin .navbar-brand img { height: 22px; max-width: 160px; filter: brightness(0) invert(1); }   /* logo scuro -> bianco, come il logo chiaro del CRM */
#headerAdmin .btn-outline-secondary {
    color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .25); border-radius: 8px; font-size: 13px; background: transparent;
}
#headerAdmin .btn-outline-secondary:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
#headerAdmin #userDropdown { color: rgba(255, 255, 255, .85); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
#headerAdmin #userDropdown:hover { color: #fff; background: rgba(255, 255, 255, .12); }
#headerAdmin #userDropdown h6 { color: inherit; font-family: "Rubik", sans-serif; font-weight: 500; font-size: 13.5px; }

/* ---------- menu principale: bianco come il menu laterale del CRM ---------- */
.menu-principale.extraspace { margin-top: 70px; }
#barraMenuAdmin.menu-principale, #barraMenuAdmin.bg-secondary {
    background: #fff !important; box-shadow: 0 1px 2px rgba(56, 65, 74, .12); border-bottom: 1px solid var(--fw-bordo);
}
.menu-principale a, .menu-principale .navbar-toggler, .menu-principale #menu-toggle { color: #6d7080; }
.menu-principale .nav-link { font-weight: 500; font-size: 13.5px; padding: .8rem .95rem; }
.menu-principale .nav-item > a:hover { color: var(--primary); background: transparent; }
.menu-principale li.active > a, .menu-principale .nav-item.active > a {
    color: var(--primary); background: transparent; box-shadow: inset 0 -2px 0 var(--primary);
}
.menu-principale .dropdown-menu {
    border: 0; border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(56, 65, 74, .15); margin-top: 0;
}
.menu-principale .dropdown-menu a, .menu-principale .dropdown-item { color: #495057; border-radius: 6px; padding: 7px 12px; font-size: 13.5px; }
.menu-principale .dropdown-menu a:hover, .menu-principale .dropdown-item:hover { color: var(--primary); background: rgba(47, 57, 97, .06); }
.menu-principale .notifiche .btn { color: #6d7080; }
.menu-principale .notifiche .badge { background: var(--danger); color: #fff; border-radius: 10px; }
main { margin-top: 118px; }
main.index { padding-top: 118px; }

/* ---------- riquadri ---------- */
.card { border: 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); }
.card-body { padding: 16px 18px; }
.card-header, .card-footer { padding: 12px 18px; }
.card-header {
    background: transparent !important; color: #343a40 !important; border-bottom: 1px solid var(--fw-bordo); border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}
.card-header.bg-primary, .card-header.bg-secondary, .card-header.bg-dark, .card-header.text-white { color: #343a40 !important; }
.card-header a:not(.btn), .card-header .card-title { color: #343a40; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14.5px; }
.card-header:only-child { border-bottom: 0; border-radius: 12px !important; }
.card-footer { background: transparent; border-top: 1px solid var(--fw-bordo); border-radius: 0 0 12px 12px !important; }
.accordion > .card { overflow: visible; }
.accordion .card-header:after { color: var(--fw-muto); }

/* ---------- tabelle ---------- */
.table { font-size: 13.5px; color: var(--fw-testo); }
.table thead th, table.dataTable thead th {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--fw-muto);
    background: rgba(64, 81, 137, .04); border-top: 0; border-bottom: 1px solid var(--fw-bordo) !important; padding: 9px 10px;
}
.table td { padding: 8px 10px; vertical-align: middle; border-color: #eff2f7; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(64, 81, 137, .025); }
.table-hover tbody tr:hover { background: rgba(64, 81, 137, .05); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da; border-radius: 8px; padding: 5px 10px;
}
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { font-size: 13px; color: var(--fw-muto); }
.page-item .page-link { border: 0; border-radius: 8px !important; margin: 0 2px; color: #495057; }
.page-item.active .page-link { background: var(--primary); color: #fff; }

/* ---------- pulsanti ---------- */
.btn { border-radius: 8px; font-weight: 500; font-size: 13.5px; }
.btn-sm { border-radius: 6px; font-size: 12.5px; }
.btn-primary, .btn-secondary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-secondary:hover { background: var(--primary-over); border-color: var(--primary-over); }
.btn-light { background: #f3f6f9; border-color: #f3f6f9; color: #495057; }
.btn-light:hover { background: #e9ebec; border-color: #e9ebec; }
.btn-outline-primary, .btn-outline-secondary { color: var(--primary); border-color: rgba(47, 57, 97, .35); }
.btn-outline-primary:hover, .btn-outline-secondary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.btn-group > .btn:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* ---------- moduli ---------- */
.form-control, .custom-select, .bootstrap-select > .dropdown-toggle { border-radius: 8px; border-color: #ced4da; font-size: 13.5px; }
.form-control:focus, .custom-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 57, 97, .12); }
label, .col-form-label { font-weight: 500; font-size: 13px; color: #495057; }
.input-group-text { border-radius: 8px; background: #f3f6f9; border-color: #ced4da; }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--primary); border-color: var(--primary); }

/* ---------- etichette, avvisi, finestre ---------- */
.badge { font-weight: 500; padding: .38em .65em; border-radius: 6px; }
.badge-primary { background: var(--primary); }
.badge-secondary { background: #e9ebec; color: #495057; }
.alert { border-radius: 10px; border: 0; }
.alert-success { background: rgba(10, 179, 156, .12); color: #087a6b; }
.alert-info { background: rgba(41, 156, 219, .12); color: #1d6f9c; }
.alert-warning { background: rgba(247, 184, 75, .16); color: #96650f; }
.alert-danger { background: rgba(240, 101, 72, .12); color: #b34128; }
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.modal-header { border-bottom-color: var(--fw-bordo); }
.modal-footer { border-top-color: var(--fw-bordo); }
.dropdown-menu { border: 0; border-radius: 10px; box-shadow: 0 8px 24px rgba(56, 65, 74, .15); }
.nav-tabs .nav-link { border-radius: 8px 8px 0 0; color: #6d7080; }
.nav-tabs .nav-link.active { color: var(--primary); font-weight: 500; }
.nav-pills .nav-link { border-radius: 8px; }
.nav-pills .nav-link.active { background: var(--primary); }

/* ---------- piede ---------- */
.footer { background: transparent; color: var(--fw-muto); font-size: 13px; border-top: 1px solid var(--fw-bordo); }

/* ---------- correzioni dopo la prima prova (02/10/2026) ---------- */
#dashboard .card-header, #dashboard .card-header:hover { background: transparent !important; color: #343a40 !important; cursor: pointer; }
#dashboard .card-title, .accordion .card-header .card-title { color: #343a40 !important; }
.notifiche, .notifiche:hover { background: transparent !important; }
.notifiche #campanellaNotifiche { color: #6d7080; }
.notifiche #campanellaNotifiche:hover { color: var(--primary); }
.notifiche .badge { background: var(--fw-bg); color: #495057; height: 22px; width: 22px; line-height: 22px; }
.pulsantiera .item { background: var(--primary); border-radius: 12px; }
.pulsantiera .item:hover { background: var(--primary-over); }

/* ---------- impostazioni: schede verticali e titolo come le pagine del CRM ---------- */
.nav-tabs--left { background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); }
.nav-tabs--left .nav-link {
    color: #495057; border: 0 !important; border-radius: 8px !important; padding: .5rem .75rem; margin-bottom: 2px; background: transparent; font-size: 13.5px;
}
.nav-tabs--left .nav-link i { width: 18px; color: var(--fw-muto); }
.nav-tabs--left .nav-link:hover { color: var(--primary); background: rgba(47, 57, 97, .05); }
.nav-tabs--left .nav-link.active { color: var(--primary) !important; background: rgba(47, 57, 97, .09) !important; font-weight: 500; }
/* l'icona non eredita il peso del testo: le icone Font Awesome "solid" esistono solo a 900, con 500 diventano un quadratino */
.nav-tabs--left .nav-link:hover i, .nav-tabs--left .nav-link.active i { color: var(--primary) !important; background: none !important; }
.nav-tabs--left .nav-link i.fa-solid, .nav-tabs--left .nav-link i.fas { font-weight: 900 !important; }
.nav-tabs--left .nav-link i.fa-regular, .nav-tabs--left .nav-link i.far { font-weight: 400 !important; }
.tab-pane { border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 22px 24px 86px; }
.tab-pane .tab-pane { border-radius: 0; }
.tab-pane h4.title {
    background: transparent; color: #343a40; margin: 0 0 20px; padding: 0 0 14px; font-weight: 700; font-size: 19px;
    border-bottom: 1px solid var(--fw-bordo);
}

/* =====================================================================================
 * Barra laterale come CRM e gestionale (02/10/2026): da 992px in su il menu orizzontale diventa
 * una colonna fissa di 250px a sinistra, con il riquadro del logo in alto e la barra scura a destra.
 * Sotto i 992px resta il menu a scomparsa del pannello. Icone: Font Awesome 6, gia' caricato dal pannello.
 * ===================================================================================== */
@media (min-width: 992px) {
    #headerAdmin.brand-bar { left: 250px !important; right: 0; width: auto; }
    #headerAdmin .navbar-brand {
        position: fixed; left: 0; top: 0; width: 250px; height: 70px; margin: 0; justify-content: center;
        background: var(--primary); box-shadow: 0 2px 4px rgba(15, 34, 58, .12); z-index: 1003;
    }
    #headerAdmin .navbar-brand img { height: 24px; }
    #barraMenuAdmin.menu-principale {
        position: fixed !important; top: 70px !important; left: 0; right: auto; bottom: 0; width: 250px; margin: 0 !important;
        display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
        padding: 14px 0 20px !important; overflow-y: auto; background: #fff !important; border: 0;
        box-shadow: 0 2px 4px rgba(15, 34, 58, .12); z-index: 1002;
    }
    #barraMenuAdmin::before {
        content: "Chat bot"; display: block; padding: 6px 24px 8px; font-size: 11px; font-weight: 500; letter-spacing: .05em;
        text-transform: uppercase; color: #919da9;
    }
    #barraMenuAdmin #menu-toggle { display: none; }
    #barraMenuAdmin #navbarCollapse { display: block !important; flex: 0 0 auto; width: 100%; }
    #barraMenuAdmin .navbar-nav { flex-direction: column; margin: 0 !important; width: 100%; }
    #barraMenuAdmin .navbar-nav > .nav-item { width: 100%; }
    body:has(#barraMenuAdmin) main { margin-left: 250px; margin-top: 70px; padding-top: 6px; }
    body:has(#barraMenuAdmin) .footer { padding-left: 250px; }
    #barraMenuAdmin .notifiche { margin: 12px 24px 0; padding: 0; height: auto; }
}
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link {
    display: flex; align-items: center; font-size: 14.8px; font-weight: 400; color: #6d7080; padding: 10px 24px; line-height: 22px;
    box-shadow: none !important; background: transparent;
}
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900 !important; font-size: 16px; min-width: 28px; display: inline-block; color: #8f93a3;
    content: "\f111"; transform: scale(.4); transform-origin: 6px 50%;   /* voce senza icona dedicata: un punto */
}
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link:hover, #barraMenuAdmin .navbar-nav > .nav-item > .nav-link:hover::before { color: var(--primary); }
#barraMenuAdmin .nav-item.fw-attivo > .nav-link { color: var(--primary); font-weight: 500; }
#barraMenuAdmin .nav-item.fw-attivo > .nav-link::before { color: var(--primary); }
#barraMenuAdmin .nav-item.fw-attivo > .nav-link { background: rgba(47, 57, 97, .06); box-shadow: inset 3px 0 0 var(--primary) !important; }
/* icone delle voci */
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href$="home.php"]::before { content: "\f015"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href$="impostazioni.php"]::before { content: "\f013"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href$="statistiche.php"]::before { content: "\f201"; transform: none; }
#barraMenuAdmin .nav-item:has(.dropdown-item[href*="gestioneUtenti"]) > .nav-link::before { content: "\f0c0"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="gestionePagine"]::before { content: "\f15c"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="gestioneComunicazioni"]::before { content: "\f0a1"; transform: none; }
#barraMenuAdmin .nav-item:has(.dropdown-item[href*="Risorse"]) > .nav-link::before { content: "\f07c"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href$="componenti.php"]::before { content: "\f12e"; transform: none; }
#barraMenuAdmin .nav-item:has(.dropdown-item[href*="strumenti/"]) > .nav-link::before { content: "\f7d9"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="componenti/prodotti"]::before { content: "\f290"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="componenti/gPrompt"]::before { content: "\e2ca"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="componenti/chat"]::before { content: "\f086"; transform: none; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link[href*="componenti/configurazioneApp"]::before { content: "\f3cf"; transform: none; }
/* sottomenu che si aprono sul posto, con la freccia a destra come nel CRM */
#barraMenuAdmin .dropdown-toggle .caret { display: none; }
#barraMenuAdmin .dropdown-toggle::after {
    border: 0; margin-left: auto; font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f054"; font-size: 10px;
    color: #a6a9b6; transition: transform .2s; vertical-align: middle;
}
#barraMenuAdmin .nav-item.fw-aperto > .dropdown-toggle::after { transform: rotate(90deg); }
#barraMenuAdmin .dropdown-menu {
    display: none; position: static !important; transform: none !important; float: none; width: 100%;
    margin: 0; padding: 2px 0 6px; border: 0; border-radius: 0; box-shadow: none !important; background: transparent;
}
#barraMenuAdmin .nav-item.fw-aperto > .dropdown-menu { display: block; }
#barraMenuAdmin .dropdown-menu .dropdown-item {
    position: relative; padding: 7px 24px 7px 52px; font-size: 14px; color: #7c7f90; border-radius: 0; background: transparent; white-space: normal;
}
#barraMenuAdmin .dropdown-menu .dropdown-item::before {
    content: ""; position: absolute; left: 31px; top: 50%; width: 6px; height: 1.5px; background: currentColor; opacity: .6;
}
#barraMenuAdmin .dropdown-menu .dropdown-item:hover, #barraMenuAdmin .dropdown-menu .dropdown-item.fw-attivo { color: var(--primary); background: transparent; }
#barraMenuAdmin .dropdown-menu .dropdown-item.fw-attivo { font-weight: 500; }

/* campanella delle notifiche come voce del menu laterale */
@media (min-width: 992px) {
    #barraMenuAdmin .notifiche { margin: 8px 0 0; padding: 0; border-top: 1px solid var(--fw-bordo); }
    #barraMenuAdmin .notifiche #campanellaNotifiche { display: flex; align-items: center; width: 100%; padding: 12px 24px; font-size: 14.8px; color: #6d7080; text-align: left; border-radius: 0; }
    #barraMenuAdmin .notifiche #campanellaNotifiche i { min-width: 28px; font-size: 16px; color: #8f93a3; }
    #barraMenuAdmin .notifiche #campanellaNotifiche::after { content: "Notifiche"; order: 1; }
    #barraMenuAdmin .notifiche #campanellaNotifiche .badge { order: 2; margin-left: auto; background: var(--fw-bg); color: #495057; }
    #barraMenuAdmin #dropdown-notifiche:not(.d-none) { position: fixed; left: 258px; bottom: 16px; top: auto; width: 320px; padding-bottom: 0; z-index: 1005; }
}

/* =====================================================================================
 * Secondo allineamento (02/10/2026)
 * ===================================================================================== */
/* intestazione di pagina come nel CRM (.fui-head): icona della sezione, titolo, sottotitolo, pulsanti a destra */
.fw-head { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; flex-wrap: wrap; }
.fw-head-ico {
    width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 50px;
    background: rgba(47, 57, 97, .1); color: var(--primary); font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 21px;
}
.fw-head h4 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; color: #343a40; }
.fw-head .fw-sub { color: var(--fw-muto); font-size: 13px; margin-top: 2px; }
.fw-head .fw-sub a { color: var(--fw-muto); }
.fw-head .fw-sub a:hover { color: var(--primary); }
.fw-head .fw-azioni { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.fw-head .fw-azioni .btn { margin: 0 !important; }
@media (max-width: 575.98px) { .fw-head h4 { font-size: 18px; } .fw-head-ico { width: 42px; height: 42px; flex-basis: 42px; font-size: 18px; } }
#contenutoPrincipale > .col.py-4 { padding-top: 0 !important; }

/* barra superiore: scorciatoie alle altre app e utente con iniziale, come nel CRM */
#headerAdmin .fw-app {
    display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500;
    color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; white-space: nowrap;
}
#headerAdmin .fw-app:hover { color: #fff; background: rgba(255, 255, 255, .1); }
#headerAdmin .fw-app i { font-size: 11px; }
#headerAdmin .fw-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
    background: #2f3961; color: #fff; font-weight: 600; font-size: 14px; border: 2px solid rgba(255, 255, 255, .25);
}
#headerAdmin #userDropdown .fa-user-circle { display: none; }
#headerAdmin #userDropdown .fw-ruolo { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .55); line-height: 1.1; }
#headerAdmin #userDropdown { padding: 4px 12px 4px 6px; }

/* azioni nelle tabelle: pulsantini colorati come nelle liste del CRM */
.btn-group.azioni { gap: 4px; flex-wrap: nowrap; }
.btn-group.azioni > .btn {
    width: 28px; height: 28px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px !important; font-size: 13px; color: #fff !important; background: #878a99; border: 0; box-shadow: none;
}
.btn-group.azioni > .btn i { margin: 0 !important; }
.btn-group.azioni > .btn:hover { filter: brightness(.92); }
.btn-group.azioni > .btn.visualizza { background: #0ab39c; }
.btn-group.azioni > .btn.modifica { background: #6691e7; }
.btn-group.azioni > .btn.elimina { background: #f06548; }
.btn-group.azioni > .btn.duplica { background: #299cdb; }
/* link del titolo nelle tabelle */
.table td a:not(.btn) { color: #2f3961; font-weight: 500; }

/* home: riquadri con l'icona colorata e i numeri in pillole leggere */
#dashboard .card { box-shadow: 0 1px 3px rgba(56, 65, 74, .08) !important; }
#dashboard h6.text-primary, #dashboard .text-primary.mb-2 { color: #343a40 !important; font-family: "Montserrat", sans-serif; font-weight: 600; display: flex; align-items: center; }
#dashboard h6.text-primary > i, #dashboard .text-primary.mb-2 > i {
    width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px !important;
    background: rgba(47, 57, 97, .1); color: var(--primary); font-size: 15px; flex: none;
}
#dashboard .fa-comments, #dashboard .fa-coins { background: rgba(109, 93, 252, .12) !important; color: #6d5dfc !important; }
#dashboard .fa-user, #dashboard .fa-clock { background: rgba(41, 156, 219, .12) !important; color: #299cdb !important; }
#dashboard .fa-sign-in-alt, #dashboard .fa-right-to-bracket, #dashboard .fa-euro-sign, #dashboard .fa-euro { background: rgba(10, 179, 156, .12) !important; color: #0ab39c !important; }
#dashboard .fa-eye, #dashboard .fa-box, #dashboard .fa-box-open { background: rgba(247, 184, 75, .16) !important; color: #d99a1c !important; }
#dashboard .fa-circle-question, #dashboard .fa-question-circle { background: rgba(240, 101, 72, .12) !important; color: #f06548 !important; }
#dashboard .list-group-horizontal .list-group-item {
    border: 0; background: var(--fw-bg); margin-left: 4px; border-radius: 8px !important; font-size: 12.5px; color: #495057; padding: 5px 10px !important;
}
#dashboard .list-group-horizontal .list-group-item b { font-weight: 500; color: var(--fw-muto); }
#dashboard h4.font-weight-bold { font-size: 22px; color: #2f3961; }
#dashboard .badge-light { background: var(--fw-bg); border: 0 !important; color: var(--fw-muto); font-weight: 500; }
#dashboard .card.bg-success { background: linear-gradient(135deg, #0ab39c, #099885) !important; }

/* caricamento file (Dropzone) come i riquadri di caricamento del CRM */
.dropzone, .dz-default {
    border: 2px dashed #ced4da !important; border-radius: 12px !important; background: #f8f9fb !important; color: #495057;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dz-drag-hover { border-color: var(--primary) !important; background: rgba(47, 57, 97, .04) !important; }
.dropzone .dz-message { font-weight: 500; }
.dropzone .dz-message i, .dropzone i.fa-file-arrow-up, .dropzone i.fa-file-upload { color: var(--primary); }

/* breadcrumb rimasti (pagine senza intestazione generata) */
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--fw-muto); }
.breadcrumb-item.active { color: #343a40; font-weight: 500; }
#dashboard .list-group-horizontal { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
#dashboard .card .d-flex.align-items-center.justify-content-between { flex-wrap: wrap; row-gap: 6px; }

/* =====================================================================================
 * Terzo giro, pagina per pagina (02/10/2026)
 * ===================================================================================== */
.fw-head { width: 100%; flex: 1 1 100%; }
/* intestazioni dei riquadri: titolo a sinistra, pulsanti e campi a destra (come "Clienti  [+ Nuovo cliente]" nel CRM) */
.card-header:has(> .card-title) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-header > .card-title { margin-right: auto !important; margin-bottom: 0; }
.card-header > .form-control, .card-header > input { width: auto; max-width: 220px; height: 32px; }
/* schede orizzontali come nel gestionale (nav-tabs-custom di Velzon, 02/10/2026): barra bianca unita al contenuto,
   riga grigia sotto, scheda attiva azzurra con linea sottile che si allarga (fondo bianco); icona davanti al nome */
.nav-tabs:not(.nav-tabs--vertical) { border-bottom: 1px solid #e9ebec; gap: 0; flex-wrap: wrap; }
.nav-tabs:not(.nav-tabs--vertical) .nav-item { position: relative; margin-bottom: 0; }
.nav-tabs:not(.nav-tabs--vertical) .nav-link {
    position: relative; border: 0 !important; border-radius: 0 !important; background: transparent !important; margin: 0 !important;
    color: #495057; padding: 12px 18px; font-size: 13.5px; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background-color .2s;
}
.nav-tabs:not(.nav-tabs--vertical) .nav-link i.fw-tab-ico { font-size: 16px; line-height: 1; }
.nav-tabs:not(.nav-tabs--vertical) .nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: #6691e7;
    transform: scale(0); transition: transform 250ms ease;
}
.nav-tabs:not(.nav-tabs--vertical) .nav-link:hover { color: #6691e7; }
.nav-tabs:not(.nav-tabs--vertical) .nav-link.active { color: #6691e7 !important; background: transparent !important; font-weight: 400; }   /* niente fondo: bastano colore e linea */
.nav-tabs:not(.nav-tabs--vertical) .nav-link.active::after { transform: scale(1); }
/* barra delle schede di pagina: stessa scheda bianca del contenuto, senza angoli in mezzo */
.nav-tabs:not(.nav-tabs--vertical):not(.tab-pane .nav-tabs):not(.card .nav-tabs) {
    background: #fff; border-radius: 12px 12px 0 0; padding: 0 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); position: relative; z-index: 1;
}
.nav-tabs:not(.nav-tabs--vertical):not(.tab-pane .nav-tabs):not(.card .nav-tabs) + .tab-content > .tab-pane { border-radius: 0 0 12px 12px; background: #fff; }
/* interruttori (Switchery): visibili anche da spenti */
.switchery[style*="rgb(255, 255, 255)"] { background-color: #e2e5ea !important; border-color: #d6d9de !important; box-shadow: none !important; }
.switchery > small { box-shadow: 0 1px 3px rgba(0, 0, 0, .25) !important; }
/* tabelle fuori da un riquadro (es. Componenti): diventano un riquadro */
#contenutoPrincipale > .col > .table-responsive, #contenutoPrincipale > .col > .d-flex + .table-responsive {
    background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 8px 14px; margin-top: 12px;
}
#contenutoPrincipale > .col > .d-flex > h5 { font-size: 15px; }
/* grafici ApexCharts con i colori Fathers */
#dashboard:not(.fws-attiva) .apexcharts-line-series .apexcharts-series:nth-of-type(1) .apexcharts-line, #dashboard:not(.fws-attiva) .apexcharts-area-series .apexcharts-series:nth-of-type(1) .apexcharts-area { stroke: #2f3961 !important; }
#dashboard:not(.fws-attiva) .apexcharts-line-series .apexcharts-series:nth-of-type(2) .apexcharts-line { stroke: #f7b84b !important; stroke-dasharray: 5 4; }
#dashboard:not(.fws-attiva) .apexcharts-line-series .apexcharts-series:nth-of-type(3) .apexcharts-line { stroke: #0ab39c !important; }
#dashboard:not(.fws-attiva) .apexcharts-legend-series:nth-of-type(1) .apexcharts-legend-marker { background: #2f3961 !important; }
#dashboard:not(.fws-attiva) .apexcharts-legend-series:nth-of-type(2) .apexcharts-legend-marker { background: #f7b84b !important; }
#dashboard:not(.fws-attiva) .apexcharts-legend-series:nth-of-type(3) .apexcharts-legend-marker { background: #0ab39c !important; }
#dashboard:not(.fws-attiva) .apexcharts-bar-series .apexcharts-series:nth-of-type(1) path { fill: #2f3961 !important; }
.apexcharts-text, .apexcharts-legend-text { font-family: "Rubik", sans-serif !important; fill: #878a99; }
.apexcharts-gridline { stroke: #eff2f7; }
/* riquadri numerici di Statistiche */
main .card.p-3 h6, main .card .card-body > h6 { font-family: "Montserrat", sans-serif; font-weight: 600; }
/* dettaglio chat dell'app: bolle come nella chat Fathers AI */
.card.ticket { padding: 14px 18px !important; font-size: 13.5px; line-height: 1.55; }
.card.ticket.bg-primary { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #2f3961, #3d4a7c) !important; }
.card.ticket:not(.bg-primary) { border-radius: 14px 14px 14px 4px; border: 1px solid var(--fw-bordo) !important; box-shadow: none !important; }

/* =====================================================================================
 * Quarto allineamento (02/10/2026): icone, voce attiva, menu stretto, barra superiore, tabelle
 * ===================================================================================== */
/* icone Remix come nel CRM al posto di quelle Font Awesome */
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link.fw-con-icona::before { content: none !important; display: none; }
#barraMenuAdmin .fw-ico { font-size: 18px; min-width: 28px; color: #8f93a3; line-height: 1; }
#barraMenuAdmin .nav-link:hover .fw-ico { color: var(--primary); }
/* voce attiva come nel CRM: solo il testo in azzurro, niente fondo ne' barretta */
#barraMenuAdmin .nav-item.fw-attivo > .nav-link { background: transparent !important; box-shadow: none !important; color: #6984bd !important; font-weight: 500; }
#barraMenuAdmin .nav-item.fw-attivo > .nav-link .fw-ico { color: #6984bd; }
#barraMenuAdmin .dropdown-menu .dropdown-item.fw-attivo { color: #6984bd; }
.fw-head-ico i { font-weight: normal; }
/* pulsante hamburger */
#headerAdmin .fw-hamburger {
    align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 10px; border: 0; border-radius: 8px;
    background: transparent; color: rgba(255, 255, 255, .85); font-size: 22px;
}
#headerAdmin .fw-hamburger:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* menu stretto: solo icone, 70px */
@media (min-width: 992px) {
    .fw-mini #barraMenuAdmin.menu-principale { width: 70px; }
    .fw-mini #barraMenuAdmin::before { content: ""; padding: 4px 0; }
    .fw-mini #barraMenuAdmin .fw-label, .fw-mini #barraMenuAdmin .dropdown-toggle::after, .fw-mini #barraMenuAdmin .dropdown-menu { display: none !important; }
    .fw-mini #barraMenuAdmin .navbar-nav > .nav-item > .nav-link { justify-content: center; padding: 12px 0; }
    .fw-mini #barraMenuAdmin .fw-ico { min-width: 0; font-size: 20px; }
    .fw-mini #headerAdmin.brand-bar { left: 70px !important; }
    .fw-mini #headerAdmin .navbar-brand { width: 70px; overflow: hidden; justify-content: flex-start; padding-left: 22px; }
    .fw-mini #headerAdmin .navbar-brand img { height: 18px; max-width: none; clip-path: inset(0 89% 0 0); }
    .fw-mini body:has(#barraMenuAdmin) main, html.fw-mini body:has(#barraMenuAdmin) main { margin-left: 70px; }
    .fw-mini body:has(#barraMenuAdmin) .footer { padding-left: 70px; }
}
/* barra superiore: campanella, uscita, vedi sito, utente senza riquadro */
#headerAdmin .notifiche { position: relative; height: auto; padding: 0; margin-right: 6px; background: transparent !important; }
#headerAdmin .notifiche #campanellaNotifiche { color: rgba(255, 255, 255, .85); font-size: 20px; padding: 6px 8px !important; position: relative; display: inline-flex; border-radius: 8px; }
#headerAdmin .notifiche #campanellaNotifiche:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#headerAdmin .notifiche #campanellaNotifiche .badge {
    position: absolute; top: 2px; right: 0; width: auto; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: 10px;
    background: #f06548; color: #fff; border-radius: 8px;
}
#headerAdmin .notifiche #campanellaNotifiche .badge:empty, #headerAdmin .notifiche #campanellaNotifiche .badge[data-zero] { display: none; }
#headerAdmin #dropdown-notifiche:not(.d-none) {
    position: absolute; right: 0; left: auto; top: 46px; bottom: auto; width: 340px; padding: 8px !important; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(56, 65, 74, .2); z-index: 1010;
}
#headerAdmin .fw-vedi { border: 0 !important; background: transparent !important; font-size: 20px !important; padding: 6px 8px !important; display: inline-flex; align-items: center; gap: 6px; }
#headerAdmin .fw-vedi span { font-size: 13px; }
#headerAdmin .fw-vedi:hover { background: rgba(255, 255, 255, .1) !important; }
#headerAdmin #userDropdown { background: transparent !important; }
#headerAdmin #userDropdown:hover { background: rgba(255, 255, 255, .08) !important; }
#headerAdmin .fw-avatar { background: #f3f6f9; color: #2f3961; border: 0; width: 34px; height: 34px; }
#headerAdmin .fw-esci { color: rgba(255, 255, 255, .85); font-size: 20px; padding: 6px 8px; margin-left: 4px; border-radius: 8px; display: inline-flex; }
#headerAdmin .fw-esci:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* tabelle con le misure del CRM */
.table { font-size: 14px; }
.table td { padding: 11px 10px; }
.table thead th, table.dataTable thead th { padding: 11px 10px; }
/* stati come etichette colorate */
.fw-stato { display: inline-block; padding: .3em .65em; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.3; }
.fw-stato.ok { background: rgba(10, 179, 156, .12); color: #0a8f7d; }
.fw-stato.no { background: #eef0f3; color: #6d7080; }
.fw-stato.ko { background: rgba(240, 101, 72, .12); color: #d4472b; }
.fw-stato.att { background: rgba(247, 184, 75, .18); color: #a46d0d; }

/* =====================================================================================
 * Login e recupero password come il login del CRM (02/10/2026)
 * ===================================================================================== */
body:has(#login) {
    background: #232e57 url("https://r1-de.storage.arubacloud.de/fatherswatches/appearance/login_bg_image_1773159324.jpg") center / cover no-repeat fixed !important;
}
body:has(#login) main, body:has(#login) main.index {
    background: transparent !important; margin: 0 !important; padding: 48px 16px !important; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
body:has(#login) .footer { display: none; }
#login.container { max-width: 600px; padding: 0; }
#login .card, #login .card-container.card {
    max-width: 576px; width: 100%; margin: 0 auto; padding: 24px 24px 28px; background: #fff; border: 0; border-radius: 4px;
    box-shadow: 0 5px 10px rgba(30, 32, 37, .12);
}
#login .card > img.img-fluid { display: block; width: 280px; max-width: 80%; margin: 8px auto 26px !important; }
#login .fw-login-app { text-align: center; color: #2f395f; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 21px; margin: 0 0 30px; }
#login .fw-login-ciao { color: #2f395f; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 22px; }
#login .form-signin label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 500; color: #212529; margin-bottom: 8px; }
#login .form-signin label a { font-weight: 400; color: #878a99; font-size: 14px; }
#login .form-signin label a:hover { color: var(--primary); }
#login .form-signin .form-control, #login .form-signin #inputEmail {
    height: 38px; font-size: 14px; border-radius: 4px; border: 1px solid #ced4da; padding: 8px 15px; margin-bottom: 0;
}
#login .form-signin .form-group, #login .form-signin .input-group { margin-bottom: 18px; }
#login .form-signin .input-group { position: relative; }
#login .form-signin .input-group .form-control { border-radius: 4px !important; padding-right: 44px; }
#login .form-signin .input-group-append { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; }
#login .form-signin .input-group-append .btn {
    border: 0 !important; background: transparent !important; color: #878a99 !important; height: 38px; margin: 0; box-shadow: none;
}
#login .form-signin button[type=submit] {
    height: 40px; margin-top: 26px; font-size: 14.5px; font-weight: 500; border-radius: 4px; background: #2f3961; border-color: #2f3961;
}
#login .card > a[href*="recuperaPassword"] { display: none; }   /* il link e' accanto all'etichetta Password */
#login .fw-login-app-card { margin-top: 24px !important; text-align: center; padding: 24px !important; }
#login .fw-login-app-card p { color: #878a99; margin-bottom: 14px; font-size: 14px; }
#login .fw-login-app-card .btn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; font-size: 14px; }
#login .fw-login-app-card .btn + .btn { margin-top: 10px; }
#login .fw-login-app-card .btn-outline-success { color: #0ab39c; border-color: #0ab39c; }
#login .fw-login-app-card .btn-outline-success:hover { background: #0ab39c; color: #fff; }
#login .fw-login-app-card .btn-outline-primary { color: #2f3961; border-color: #2f3961; }
#login .fw-login-app-card .btn-outline-primary:hover { background: #2f3961; color: #fff; }
#login .alert { border-radius: 4px; }
#login .card.fadeInDown { animation: none !important; -webkit-animation: none !important; opacity: 1 !important; }

/* =====================================================================================
 * Quinto allineamento (02/10/2026): pagine di modifica come le schede di modifica del CRM
 * ===================================================================================== */
.row.fw-sotto-head { padding-top: 0 !important; }
/* colonna destra: resta sotto la barra superiore quando si scorre */
.col-lg-4.sticky-top, .col-lg-3.sticky-top, .col-xl-4.sticky-top { top: 86px; z-index: 5; }
/* blocco azioni (Salva / Duplica / Visualizza) come il riquadro "Salva modifiche" del CRM */
.sticky-top > .btn-group.d-flex:first-child {
    flex-direction: column; gap: 8px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08);
}
.sticky-top > .btn-group.d-flex:first-child > .btn {
    width: 100% !important; border-radius: 8px !important; margin: 0 !important; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sticky-top > .btn-group.d-flex:first-child > .btn-primary { background: #0ab39c; border-color: #0ab39c; color: #fff; }
.sticky-top > .btn-group.d-flex:first-child > .btn-primary:hover { background: #099885; border-color: #099885; }
.sticky-top > .btn-group.d-flex:first-child > .btn:not(.btn-primary) {
    background: #f3f6f9 !important; border-color: #f3f6f9 !important; color: #495057 !important;
}
.sticky-top > .btn-group.d-flex:first-child > .btn:not(.btn-primary):hover { background: #e9ebec !important; }
/* riquadri della colonna destra: titoli piccoli in maiuscolo come "RIEPILOGO" nel CRM */
.sticky-top > .card > .card-header, .sticky-top > .card > .card-header .card-title, .sticky-top > .card > .card-header a:not(.btn) {
    font-family: "Rubik", sans-serif !important; font-size: 12px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #878a99 !important;
}
.sticky-top .card-body h5, .sticky-top .card-body h6 { font-family: "Rubik", sans-serif; font-size: 13px; font-weight: 500; color: #495057; margin-bottom: 8px; }
/* campi dei moduli con le misure del CRM */
main .form-control, main .custom-select { min-height: 38px; }
main textarea.form-control { min-height: 70px; }
main .form-group > label, main .form-row label { margin-bottom: 6px; }
/* home: riquadri numerici come le card riassuntive del CRM (etichetta maiuscola, numero grande, icona colorata a destra) */
#dashboard .card.h-100 > .card-body.d-flex { position: relative; padding: 18px 18px 16px; min-height: 108px; }
#dashboard .card.h-100 > .card-body.d-flex .text-primary.mb-2 {
    font-family: "Rubik", sans-serif !important; font-size: 12px; font-weight: 500 !important; text-transform: uppercase; letter-spacing: .03em; color: #878a99 !important;
    margin-bottom: 6px !important; padding-right: 56px;
}
#dashboard .card.h-100 > .card-body.d-flex .text-primary.mb-2 > i {
    position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; border-radius: 6px; font-size: 20px; margin: 0 !important;
}
#dashboard .card.h-100 > .card-body.d-flex h4 { font-size: 22px; margin-bottom: 2px !important; }
#dashboard .card.h-100 > .card-body.d-flex > .text-right { position: absolute; right: 18px; bottom: 12px; }
#dashboard .card.h-100 > .card-body.d-flex > .text-right .badge { font-size: 10.5px; padding: .25em .55em; }
#dashboard .card.h-100 > .card-body.d-flex small { padding-right: 56px; display: block; }

/* =====================================================================================
 * Barra superiore, logo e menu laterale con le misure esatte del CRM (misurate il 02/10/2026)
 * ===================================================================================== */
/* barra superiore: #424b5a, 70px, margini 12px a sinistra e 24px a destra */
#headerAdmin.brand-bar { padding: 0 24px 0 12px !important; background: #424b5a !important; box-shadow: none; font-size: 13.2px; }
/* logo: riquadro 250x70 #2f3961, immagine 160x24 centrata */
#headerAdmin .navbar-brand { background: #2f3961; box-shadow: none; padding: 0 20.8px; }
#headerAdmin .navbar-brand img.fw-logo { width: 160px; height: 24px; max-width: none; filter: none; object-fit: contain; }
/* hamburger a tre righe, 54x70 */
#headerAdmin .fw-hamburger { width: 54px; height: 70px; padding: 4px 16px; margin: 0; border-radius: 0; background: transparent !important; }
#headerAdmin .fw-hamb { position: relative; display: block; width: 20px; height: 14px; }
#headerAdmin .fw-hamb span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: #e9ebec; }
#headerAdmin .fw-hamb span:nth-child(1) { top: 0; width: 80%; }
#headerAdmin .fw-hamb span:nth-child(2) { top: 6px; width: 100%; }
#headerAdmin .fw-hamb span:nth-child(3) { bottom: 0; width: 60%; }
/* link alle altre app: pillola 28px, 12px, bordo bianco al 35% */
#headerAdmin .fw-app {
    height: 28px; padding: 4px 10px; margin: 0 0 0 12px; font-size: 12px; font-weight: 400; line-height: 18px; color: #fff;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; gap: 0;
}
#headerAdmin .fw-app:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* icone a destra: pulsanti tondi 32px con icona bianca 20px, 6px tra uno e l'altro */
#headerAdmin .notifiche { margin: 0 6px 0 0; }
#headerAdmin .notifiche #campanellaNotifiche, #headerAdmin .fw-vedi {
    width: 32px; height: 32px; padding: 6px !important; border-radius: 50% !important; color: #fff !important; font-size: 20px !important; line-height: 0;
    display: inline-flex; align-items: center; justify-content: center; border: 0 !important; background: transparent !important; margin: 0;
}
#headerAdmin .notifiche #campanellaNotifiche:hover, #headerAdmin .fw-vedi:hover { background: rgba(255, 255, 255, .12) !important; }
#headerAdmin .fw-vedi { margin-right: 0 !important; }
/* utente: avatar 32px, nome 13,2px bianco all'85%, ruolo 12px #9ea9ad, 16px dalle icone */
#headerAdmin .dropdown:has(#userDropdown) { margin-left: 16px; }
#headerAdmin #userDropdown { padding: 0 !important; background: transparent !important; border-radius: 0; height: 70px; display: flex; align-items: center; }
#headerAdmin #userDropdown:hover { background: transparent !important; }
#headerAdmin #userDropdown > .d-flex { margin-left: 0 !important; }
#headerAdmin .fw-avatar { width: 32px; height: 32px; margin-right: 12px; font-size: 13px; background: #2f3961; color: #fff; border: 0; }
#headerAdmin #userDropdown h6 { font-size: 13.2px !important; font-weight: 400 !important; line-height: 19.8px; color: rgba(255, 255, 255, .85) !important; margin: 0 0 0 4px; }
#headerAdmin #userDropdown .fw-ruolo { font-size: 12px; line-height: 18px; color: #9ea9ad; margin-left: 4px; }
/* uscita: pulsante tondo 38px, icona mdi 18px */
#headerAdmin .fw-esci { width: 38px; height: 38px; padding: 0; margin-left: 8px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
#headerAdmin .fw-esci:hover { background: rgba(255, 255, 255, .12); }

/* menu laterale: titolo "MENU" subito sotto il logo (12px 20px), voci alte 47px */
@media (min-width: 992px) { #barraMenuAdmin.menu-principale { padding: 0 0 20px !important; box-shadow: 0 2px 4px rgba(15, 34, 58, .12); } }
#barraMenuAdmin::before { padding: 12px 20px; font-size: 11px; font-weight: 500; line-height: 16.5px; letter-spacing: .55px; color: #919da9; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link {
    position: relative; padding: 10px 24px !important; font-size: 14.8px; font-weight: 400 !important; line-height: 22.2px; color: #6d7080;
}
#barraMenuAdmin .fw-ico { font-size: 18px; line-height: 27px; min-width: 28px; width: 28px; color: inherit !important; display: inline-block; }
#barraMenuAdmin .navbar-nav > .nav-item > .nav-link:hover, #barraMenuAdmin .navbar-nav > .nav-item > .nav-link:hover .fw-ico { color: #6691e7 !important; }
/* voce attiva: #6691e7, peso normale */
#barraMenuAdmin .nav-item.fw-attivo > .nav-link, #barraMenuAdmin .nav-item.fw-attivo > .nav-link .fw-ico { color: #6691e7 !important; font-weight: 400 !important; }
/* freccia dei sottomenu: Material Design Icons, 16,8px #919da9, a 18px dal bordo, ruota di 90 gradi */
#barraMenuAdmin .dropdown-toggle::after {
    position: absolute; right: 18px; top: 50%; margin: 0; transform: translateY(-50%); font-family: "Material Design Icons"; font-weight: normal;
    content: "\F0142"; font-size: 16.8px; color: #919da9; transition: transform .2s; border: 0;
}
#barraMenuAdmin .nav-item.fw-aperto > .dropdown-toggle::after { transform: translateY(-50%) rotate(90deg); }
/* sottomenu: rientro 28px, voci 14px con padding 7,2px 24px, trattino 6x1,5px a 2px */
#barraMenuAdmin .dropdown-menu { padding: 0 0 0 28px !important; }
#barraMenuAdmin .dropdown-menu .dropdown-item { padding: 7.2px 24px !important; font-size: 14px; line-height: 21px; color: #7c7f90; }
#barraMenuAdmin .dropdown-menu .dropdown-item::before { left: 2px; top: 16.5px; width: 6px; height: 1.5px; background: currentColor; opacity: .5; }
#barraMenuAdmin .dropdown-menu .dropdown-item:hover, #barraMenuAdmin .dropdown-menu .dropdown-item.fw-attivo { color: #6691e7; font-weight: 400; }
/* intestazione di pagina con i valori del CRM (.fui-head) */
.fw-head-ico { background: rgba(64, 81, 137, .1); color: #405189; font-size: 25px; }
.fw-head-ico i { font-size: 25px; font-family: inherit; }
.fw-head-ico i.bx { font-family: "boxicons" !important; }
.fw-head-ico i[class^="ri-"], .fw-head-ico i[class*=" ri-"] { font-family: "remixicon" !important; }
#headerAdmin .navbar-brand img.fw-logo { margin-top: 2px; }
#headerAdmin .fw-avatar { margin-right: 8px; }
/* contenuto a 24px dal menu e dal bordo destro, come .page-content del CRM */
body:has(#barraMenuAdmin) main > .container-fluid, body:has(#barraMenuAdmin) main > .container { padding-left: 24px !important; padding-right: 24px !important; max-width: none; }
/* voci tolte dal menu Utenti su richiesta di Bartolo (02/10/2026): Nominativi, Etichette e Gruppi */
#barraMenuAdmin .dropdown-item[href*="ruolo=nominativo"], #barraMenuAdmin .dropdown-item[href*="gestioneEtichette"], #barraMenuAdmin .nav-item:has(.dropdown-item[href*="gestioneUtenti"]) .dropdown-item[href*="gestioneGruppi"] { display: none !important; }
/* "Vedi sito" tolto dalla barra superiore (richiesta di Bartolo, 02/10/2026) */
#headerAdmin .fw-vedi, #headerAdmin a.btn-outline-secondary[href] { display: none !important; }

/* =====================================================================================
 * Menu chiuso e hamburger animato esattamente come nel CRM (regole Velzon .hamburger-icon e data-sidebar-size=sm)
 * ===================================================================================== */
#headerAdmin .fw-hamb span { transition: .3s cubic-bezier(.8, .5, .2, 1.4); }
#headerAdmin .fw-hamburger:hover .fw-hamb:not(.open) span:nth-child(1) { top: -1px; }
#headerAdmin .fw-hamburger:hover .fw-hamb:not(.open) span:nth-child(3) { bottom: -1px; }
#headerAdmin .fw-hamb.open { transform: rotate(-90deg); }
#headerAdmin .fw-hamb.open span:nth-child(1) { left: 1px; top: 5px; width: 20px; transform: rotate(90deg); transition-delay: 150ms; }
#headerAdmin .fw-hamb.open span:nth-child(2) { left: 3px; top: 13px; width: 10px; transform: rotate(45deg); transition-delay: 50ms; }
#headerAdmin .fw-hamb.open span:nth-child(3) { left: 9px; top: 13px; bottom: auto; width: 10px; transform: rotate(-45deg); transition-delay: .1s; }
#headerAdmin .navbar-brand img.fw-logo-sm { display: none; }
@media (min-width: 992px) {
    /* riquadro del logo: bianco 70x70 con il simbolo Fathers 30x30, come nel CRM */
    html.fw-mini #headerAdmin .navbar-brand { width: 70px; padding: 0; justify-content: center; background: #fff; box-shadow: none; overflow: visible; }
    html.fw-mini #headerAdmin .navbar-brand img.fw-logo { display: none !important; }
    html.fw-mini #headerAdmin .navbar-brand img.fw-logo-sm { display: block; width: 30px; height: 30px; max-width: none; margin-top: 2px; clip-path: none; filter: none; }
    /* menu a sole icone: niente "MENU", voci alte 53px con icona 22px a 24px dal bordo */
    html.fw-mini #barraMenuAdmin::before { content: ""; padding: 0; height: 0; }
    html.fw-mini #barraMenuAdmin .navbar-nav > .nav-item > .nav-link { justify-content: flex-start; padding: 10px 24px !important; }
    html.fw-mini #barraMenuAdmin .fw-ico { font-size: 22px; line-height: 33px; width: 28px; min-width: 28px; }
}
/* voci tolte da Impostazioni su richiesta di Bartolo (02/10/2026): Contabilita', Profili social, Prodotti installati */
.nav-tabs--left .nav-item:has(> .nav-link[href="#impostazioniContabilita"]),
.nav-tabs--left .nav-item:has(> .nav-link[href="#profiliSocial"]),
.nav-tabs--left .nav-item:has(> .nav-link[href="#prodotti-installati"]),
.nav-tabs--left .nav-item:has(> .nav-link[href="#impostazioniRegistrazione"]),
.nav-tabs--left .nav-item:has(> .nav-link[href="#includiCodice"]),
.nav-tabs--left .nav-item:has(> .nav-link[href="#seo"]) { display: none !important; }

/* =====================================================================================
 * Impostazioni piu' comode (02/10/2026): ricerca, sottotitoli, sezioni a blocchi, barra Salva fissa
 * ===================================================================================== */
.fw-imp-cerca { position: relative; margin: 2px 2px 10px; }
.fw-imp-cerca i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #878a99; font-size: 16px; }
.fw-imp-cerca input { width: 100%; height: 36px; border: 1px solid #e9ebec; background: #f3f6f9; border-radius: 8px; padding: 0 10px 0 32px; font-size: 13px; outline: 0; }
.fw-imp-cerca input:focus { border-color: #6691e7; background: #fff; }
.fw-imp-nessuna { font-size: 12.5px; color: #878a99; padding: 6px 10px; display: none; }
.tab-pane h4.title { margin-bottom: 4px !important; border-bottom: 0 !important; padding-bottom: 0 !important; }
.tab-pane .fw-imp-sub { color: #878a99; font-size: 13px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--fw-bordo); }
.tab-pane .well {
    background: rgba(41, 156, 219, .08); border: 0; border-radius: 10px; padding: 12px 16px 12px 44px; position: relative;
    font-size: 13.5px; color: #33475b; line-height: 1.55; max-width: 1150px; margin-bottom: 4px;
}
.tab-pane .well::before { content: "i"; position: absolute; left: 16px; top: 13px; width: 18px; height: 18px; border: 1.5px solid #299cdb; border-radius: 50%; color: #299cdb; font: italic 700 11px/15px Georgia, serif; text-align: center; }
.tab-pane form { max-width: 1150px; }
/* ogni sezione del modulo diventa un blocco */
.tab-pane form > .row { background: #fff; border: 1px solid #eff2f7; border-radius: 12px; padding: 16px 6px 4px; margin: 16px 0 0 !important; }
.tab-pane form > .row h5 { font-family: "Montserrat", sans-serif; font-size: 15px; font-weight: 600; color: #2f3961; margin-bottom: 4px; }
.tab-pane form > .row hr { display: none; }
.tab-pane .form-group > small, .tab-pane .form-group > .small, .tab-pane small.form-text { color: #878a99; font-size: 12px; line-height: 1.45; }
.tab-pane textarea.form-control { min-height: 90px; }
/* barra Salva fissa in fondo al pannello */
.tab-pane > .footer, .tab-pane .tab-pane > .footer, .tab-pane > form > .footer {
    position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px); border-top: 1px solid var(--fw-bordo);
    margin: 18px -24px -86px; padding: 12px 96px 12px 24px !important; border-radius: 0 0 12px 12px; height: auto; line-height: normal;
    max-width: none; color: #878a99;
}
.tab-pane > .footer .btn, .tab-pane > form > .footer .btn { float: none !important; min-width: 120px; }
.tab-pane > .footer::before, .tab-pane > form > .footer::before { content: "Ricorda di salvare le modifiche di questa sezione"; font-size: 12.5px; margin-right: auto; }
/* codice nei template email e in "Includi codice": carattere a spaziatura fissa */
#templateEmail textarea, #includiCodice textarea, .tab-pane textarea[name*="css" i], .tab-pane textarea[name*="codice" i] {
    font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; background: #fbfcfd; color: #2c3344;
}
.fw-trad-cerca { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.fw-trad-cerca input { max-width: 320px; }
.fw-trad-cerca span { font-size: 12.5px; color: #878a99; }

/* linea che divide il menu: sopra la gestione del chatbot, sotto quella dell'app mobile (02/10/2026) */
#barraMenuAdmin .navbar-nav > .fw-sep { list-style: none; height: 1px; background: #e9ebec; margin: 10px 20px; padding: 0; }
html.fw-mini #barraMenuAdmin .navbar-nav > .fw-sep { margin: 8px 14px; }
/* Home e Statistiche: #dashboard aveva 24px (Home) e 8px (Statistiche) in piu' sopra l'intestazione rispetto alle altre pagine (02/10/2026) */
#dashboard.container-fluid.pt-4, #dashboard.container-fluid.py-2 { padding-top: 0 !important; }

/* campanella come nel CRM: svg a linea 20px bianco, pulsante tondo da 32px (02/10/2026) */
#headerAdmin .notifiche #campanellaNotifiche { width: 32px; height: 32px; padding: 0 !important; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
#headerAdmin .notifiche #campanellaNotifiche .fw-campana, #headerAdmin .notifiche #campanellaNotifiche .fw-campana svg { width: 20px; height: 20px; display: block; }
#barraMenuAdmin .notifiche #campanellaNotifiche .fw-campana { min-width: 28px; display: inline-flex; }
#barraMenuAdmin .notifiche #campanellaNotifiche .fw-campana svg { width: 16px; height: 16px; }

/* ---------- Strumenti (02/10/2026) ---------- */
.fws-strumenti { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.fws-strumenti a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 20px; background: #fff; color: #495057; font-size: 13px; font-weight: 500; box-shadow: 0 1px 2px rgba(56, 65, 74, .08); text-decoration: none !important; }
.fws-strumenti a i { font-size: 16px; color: #878a99; }
.fws-strumenti a:hover { color: #6691e7; }
.fws-strumenti a.on { background: #2f3961; color: #fff; }
.fws-strumenti a.on i { color: #fff; }
.fws-nota { display: flex; gap: 10px; align-items: flex-start; background: rgba(102, 145, 231, .08); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #34497e; margin-bottom: 14px; }
.fws-nota > i { font-size: 18px; color: #6691e7; flex-shrink: 0; }
.fws-nota.att { background: rgba(247, 184, 75, .15); color: #7a5410; }
.fws-nota.att > i { color: #d98d0b; }
.fws-sistema { margin-bottom: 20px; }
.fws-stato { display: flex; gap: 12px; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: 13.5px; }
.fws-stato > i { font-size: 24px; flex-shrink: 0; }
.fws-stato b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.fws-stato ul { margin: 4px 0 0; padding-left: 18px; }
.fws-stato li { margin-bottom: 4px; }
.fws-stato.ok { background: rgba(10, 179, 156, .1); color: #0a6b5d; }
.fws-stato.att { background: rgba(247, 184, 75, .15); color: #7a5410; }
.fws-stato.att > i { color: #d98d0b; }
.fws-tile { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fws-tile > div { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 14px 16px; }
.fws-tile i { font-size: 20px; color: #6691e7; }
.fws-tile span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #878a99; margin-top: 6px; }
.fws-tile b { display: block; font-size: 15px; color: #2f3961; font-weight: 600; word-break: break-word; }
.fws-tile > div.att { box-shadow: inset 0 0 0 1px rgba(247, 184, 75, .6); }
.fws-tile > div.att i { color: #d98d0b; }
.fws-est { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 14px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.fws-est h6 { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: #2f3961; margin: 0 0 4px; }
.fws-est > div { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #eff2f7; }
.fws-est > div span { margin-left: auto; font-size: 12px; color: #878a99; }
.fws-est .ok i { color: #0ab39c; font-size: 17px; } .fws-est .ko i { color: #f06548; font-size: 17px; } .fws-est .ko span { color: #c4432a; font-weight: 600; }
.fws-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 16px 18px; }
.fws-card h6 { font-size: 14px; font-weight: 600; color: #2f3961; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.fws-card h6 i { color: #6691e7; font-size: 18px; }
.fws-riga { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eff2f7; font-size: 13px; color: #495057; }
.fws-riga:last-child { border-bottom: 0; }
.fws-riga > i { font-size: 18px; color: #878a99; flex-shrink: 0; }
.fws-riga b { display: block; color: #343a40; }
.fws-riga small { display: block; margin-top: 3px; font-size: 12px; }
.fws-riga.ok > i { color: #0ab39c; } .fws-riga.ko > i { color: #f06548; } .fws-riga.ko small { color: #c4432a; }
.fws-backup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (min-width: 1200px) { .fws-backup { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fws-backup { grid-template-columns: 1fr; } }
.fws-backup > div { border: 1px solid #eff2f7; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fws-backup > div > i { font-size: 22px; color: #6691e7; }
.fws-backup b { font-size: 14px; color: #2f3961; }
.fws-backup small { font-size: 12px; color: #878a99; flex: 1; }
.fws-backup .btn { align-self: flex-start; margin-top: 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.fws-vuoto { text-align: center; padding: 26px 16px; color: #878a99; font-size: 13px; border: 1px dashed #dfe3ec; border-radius: 10px; margin-top: 8px; display: flex; flex-direction: column; align-items: center; }
.fws-vuoto > i { font-size: 30px; color: #c5cbe0; margin-bottom: 6px; }
.fws-intro { font-size: 12.8px; color: #6c6f80; margin: 0; padding: 10px 20px 0; }
.fws-rischio label { color: #c4432a !important; }
.fws-tipo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 9px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; }
.fws-filtri { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fws-filtri button { border: 0; background: #f3f6f9; color: #495057; border-radius: 20px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; }
.fws-filtri button span { background: rgba(0, 0, 0, .06); border-radius: 10px; padding: 0 7px; margin-left: 4px; font-size: 11.5px; }
.fws-filtri button.on { background: #2f3961; color: #fff; }
.fws-stato li b { display: inline; font-size: inherit; margin: 0; }

/* ---------- Impostazioni pulite e allineate (03/10/2026) ---------- */
/* menu a sinistra: voce attiva senza bordo blu, con barretta a sinistra come il menu principale */
.nav-tabs--left { padding: 8px !important; }
.nav-tabs--left .nav-link { border: 0 !important; border-radius: 8px !important; position: relative; margin-bottom: 2px; }
.nav-tabs--left .nav-link:focus, .nav-tabs--left .nav-link:focus-visible { outline: 0 !important; box-shadow: none !important; }
.nav-tabs--left .nav-link.active { background: rgba(102, 145, 231, .1) !important; color: #2f3961 !important; font-weight: 600; }
.nav-tabs--left .nav-link.active::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #6691e7; }
.nav-tabs--left .nav-link.active i { color: #6691e7 !important; }
/* sezioni del modulo: niente riquadri dentro il riquadro, solo una linea tra una sezione e l'altra, a tutta larghezza */
#main .tab-pane form { max-width: none !important; }
#main .tab-pane form > .row { background: transparent !important; border: 0 !important; border-top: 1px solid #eef1f6 !important; border-radius: 0 !important; padding: 20px 0 4px !important; margin: 0 !important; }
#main .tab-pane form > .row:first-of-type, #main .tab-pane .fw-imp-sub + form > .row:first-of-type, #main .tab-pane .well + form > .row:first-of-type { border-top: 0 !important; padding-top: 8px !important; }
#main .tab-pane form > .row h5, #main .tab-pane form > .row .h5 { font-family: inherit !important; font-size: 14.5px !important; font-weight: 600 !important; color: #2f3961 !important; margin: 0 0 12px !important; display: flex; align-items: center; gap: 8px; }
#main .tab-pane form > .row h5::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #6691e7; }
#main .tab-pane .form-group { margin-bottom: 16px; }
#main .tab-pane .form-group > label, #main .tab-pane label.custom-label { font-size: 12.8px; font-weight: 600; color: #495057; margin-bottom: 6px; }
#main .tab-pane .form-control, #main .tab-pane .custom-select { height: 40px; border-radius: 8px; border-color: #e3e7ef; font-size: 13.5px; }
#main .tab-pane textarea.form-control { height: auto; }
#main .tab-pane .form-control:focus, #main .tab-pane .custom-select:focus { border-color: #a6b0d4; box-shadow: 0 0 0 3px rgba(47, 57, 97, .08); }
#main .tab-pane .well { margin-bottom: 8px !important; }
/* sottoschede delle lingue (Footer, SEO…): più compatte */
#main .tab-pane .nav-tabs:not(.nav-tabs--vertical) { margin-bottom: 4px; }
#main .tab-pane .nav-tabs:not(.nav-tabs--vertical) .nav-link { padding: 9px 14px; font-size: 13px; }
/* barra Salva in fondo: allineata ai campi */
#main .tab-pane > .footer, #main .tab-pane > form > .footer { border-top: 1px solid #eef1f6 !important; padding-left: 24px !important; }
/* tabelle dentro le impostazioni (SMTP, Template email, Lingue): stessa resa del gestionale */
#main .tab-pane .table-responsive { border: 1px solid #eef1f6; border-radius: 10px; }
#main .tab-pane .table { margin-bottom: 0; }
/* Traduzioni: campi leggibili e frasi da completare in evidenza */
#traduzioni table { table-layout: fixed; width: 100%; }
#traduzioni table th:first-child, #traduzioni table td:first-child { width: 19%; }
#traduzioni table td { padding: 6px 5px !important; vertical-align: middle; }
#traduzioni table td:first-child { font-weight: 600; color: #2f3961; font-size: 13px; padding-right: 12px !important; }
#traduzioni table .form-control { height: 36px; font-size: 12.8px; padding: 6px 9px; }
#traduzioni .form-control.fw-manca { border-color: #f7b84b; background: #fffaf0; }
.fw-trad-filtri { display: inline-flex; gap: 4px; border: 1px solid #e3e7ef; border-radius: 10px; padding: 3px; background: #fff; }
.fw-trad-filtri button { border: 0; background: transparent; border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 500; color: #495057; }
.fw-trad-filtri button.on { background: #2f3961; color: #fff; }
.fw-trad-filtri button span { margin-left: 4px; font-size: 11px; opacity: .8; }

/* Aspetto: titoli di sezione come nelle altre impostazioni, senza le linee doppie */
#aspetto h5:not(.dz-message h5):not(.dz-message *) { font-family: inherit !important; font-size: 14.5px !important; font-weight: 600 !important; color: #2f3961 !important; margin: 18px 0 12px !important; display: flex; align-items: center; gap: 8px; }
#aspetto h5:not(.dz-message h5):not(.dz-message *)::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #6691e7; }
#aspetto hr { border-top-color: #eef1f6 !important; margin: 18px 0 !important; }
#aspetto .dz-message h5 { font-size: 14px !important; font-weight: 500 !important; }
#aspetto .dropzone { min-height: 120px !important; }
/* Lingue: una riga per lingua, intestazioni solo sulla prima */
#lingue .fw-lingua { padding-top: 12px; padding-bottom: 2px; }
#lingue .fw-lingua-dopo { border-top: 1px solid #eef1f6; }
#lingue .fw-lingua-ripetuta { display: none !important; }
#lingue .fw-lingua-dopo .form-control, #lingue .fw-lingua-dopo .custom-select, #lingue .fw-lingua-dopo select { margin-top: 0; }
#lingue .fw-lingua > label:first-child, #lingue .fw-lingua .form-group > label:first-child { text-transform: capitalize; }
#lingue .fw-lingua-nota { font-size: 11.5px; }
/* API: chiavi nascoste con il pulsante Mostra */
.fw-chiave { position: relative; }
.fw-chiave .form-control { padding-right: 84px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px !important; }
.fw-chiave .fw-mostra { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 0; background: #f3f6f9; border-radius: 6px; font-size: 12px; padding: 4px 10px; color: #495057; }
/* sezioni con più pulsanti Salva (API): pulsante allineato a destra sotto i campi */
#api form > .row .btn-primary { margin-bottom: 8px; }
/* interruttori come nel gestionale (form-switch): levetta a sinistra, etichetta e nota a destra, tutti alla stessa altezza */
#main .tab-pane:not(#lingue) .form-group:has(> .switchery) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; }
#main .tab-pane:not(#lingue) .form-group:has(> .switchery) > .switchery { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; }
#main .tab-pane:not(#lingue) .form-group:has(> .switchery) > label { grid-column: 2; grid-row: 1; margin-bottom: 2px !important; line-height: 1.35; }
#main .tab-pane:not(#lingue) .form-group:has(> .switchery) > small { grid-column: 2; grid-row: 2; line-height: 1.4; }
/* titoletti usati come etichetta (Notifiche: «Indirizzo mail notifiche») */
#main .tab-pane form > .row > [class*="col"] > h6 { font-family: inherit; font-size: 12.8px; font-weight: 600; color: #495057; margin-bottom: 6px; }
#main .tab-pane form > .row > [class*="col"] > h6 ~ small { margin-top: 4px; margin-bottom: 16px; }
/* Registrazione: campi del modulo su tre colonne invece di sei, così le etichette non vanno a capo */
@media (min-width: 768px) { #impostazioniRegistrazione .col-xl-2 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 1200px) { #impostazioniRegistrazione .col-xl-2 { flex: 0 0 33.3333%; max-width: 33.3333%; } }
/* titoli dei blocchi del menu: "Chat bot" in cima (::before) e "App mobile" dopo la linea, stessa resa */
#barraMenuAdmin .navbar-nav > .fw-titolo-menu { list-style: none; padding: 2px 20px 8px; font-size: 11px; font-weight: 500; line-height: 16.5px; letter-spacing: .55px; text-transform: uppercase; color: #919da9; }
html.fw-mini #barraMenuAdmin .navbar-nav > .fw-titolo-menu { display: none; }
/* Test email: modulo e "Prima di provare" con la stessa testata, stessa altezza, allineati a sinistra */
.fw-test-form { width: 100%; margin: 0 !important; border: 0; padding: 16px 18px; }
.fw-test-form .card-body { padding: 0; display: flex; flex-direction: column; }
.fw-test-form .card-body > p { font-size: 13.5px; color: #495057; margin-bottom: 10px; }
.fw-test-form .form-group { margin: 6px 0 16px; }
.fw-test-form .form-group label { font-size: 12.8px; font-weight: 600; color: #495057; margin-bottom: 6px; }
.fw-test-form .form-control { height: 40px; border-radius: 8px; border-color: #e3e7ef; font-size: 13.5px; }
.fw-test-form .btn { float: none !important; align-self: flex-end; margin-top: auto; border-radius: 8px; }
.fw-test-form + *, .col-lg-5 > .fws-card { width: 100%; }
/* Template email: etichette come gli altri campi; codice a sinistra e anteprima a destra */
#main .tab-pane form > .mb-3 > h6, #main .tab-pane form > .mb-0 > h6, .fw-tpl-codice h6 { font-family: inherit; font-size: 12.8px; font-weight: 600; color: #495057; margin-bottom: 6px; }
.fw-tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1199.98px) { .fw-tpl { grid-template-columns: 1fr; } }
.fw-tpl-codice textarea.form-control { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; line-height: 1.5; background: #fbfcfd; }
.fw-tpl-vista { position: sticky; top: 86px; border: 1px solid #e3e7ef; border-radius: 12px; overflow: hidden; background: #fff; }
.fw-tpl-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #eef1f6; }
.fw-tpl-barra > span { font-size: 12.8px; font-weight: 600; color: #2f3961; display: inline-flex; align-items: center; gap: 6px; }
.fw-tpl-barra > span i { color: #6691e7; font-size: 16px; }
.fw-tpl-dim { display: inline-flex; gap: 2px; border: 1px solid #e3e7ef; border-radius: 8px; padding: 2px; }
.fw-tpl-dim button { border: 0; background: transparent; border-radius: 6px; padding: 3px 9px; font-size: 12px; color: #495057; display: inline-flex; align-items: center; gap: 4px; }
.fw-tpl-dim button.on { background: #2f3961; color: #fff; }
.fw-tpl-schermo { background: #f3f6f9; display: flex; justify-content: center; }
.fw-tpl-schermo iframe { width: 100%; height: 640px; border: 0; background: #fff; transition: width .2s; }
.fw-tpl-vista > small { display: block; padding: 7px 12px; font-size: 11.5px; color: #878a99; border-top: 1px solid #eef1f6; }
/* interruttori in linea anche fuori dalle Impostazioni (Strumenti, Importa / esporta) */
#main .form-group:not(#lingue *):has(> .switchery) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; }
#main .form-group:not(#lingue *):has(> .switchery) > .switchery { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; }
#main .form-group:not(#lingue *):has(> .switchery) > label { grid-column: 2; grid-row: 1; margin-bottom: 2px !important; line-height: 1.35; }
#main .form-group:not(#lingue *):has(> .switchery) > small { grid-column: 2; grid-row: 2; line-height: 1.4; }
/* finestra di conferma per le azioni delicate */
.fw-conf-sfondo { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 27, 52, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fw-conf { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(20, 27, 52, .25); width: 100%; max-width: 460px; padding: 24px; }
.fw-conf-ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(247, 184, 75, .16); color: #d98d0b; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.fw-conf-ico.pericolo { background: rgba(240, 101, 72, .14); color: #f06548; }
.fw-conf h5 { font-size: 16px; font-weight: 600; color: #2f3961; margin: 0 0 6px; }
.fw-conf-testo { font-size: 13.5px; color: #495057; margin: 0 0 10px; }
.fw-conf-punti { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: #495057; display: grid; gap: 4px; }
.fw-conf-spunta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #2f3961; background: #f3f6f9; border-radius: 8px; padding: 9px 12px; margin: 0 0 16px; cursor: pointer; }
.fw-conf-spunta input { width: 16px; height: 16px; }
.fw-conf-az { display: flex; justify-content: flex-end; gap: 8px; }
.fw-conf-az .btn { border-radius: 8px; font-size: 13.5px; }
.fw-conf-az .btn:disabled { opacity: .45; }
/* avvisi della dashboard nell'intestazione, a destra */
.fw-avvisi-testa { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fw-avvisi-testa .fw-avviso { width: 330px; max-width: 100%; }
.fw-avvisi-testa .fw-avviso > .card { margin: 0 !important; padding: 8px 10px 8px 12px !important; border: 0; border-left: 3px solid #f7b84b; border-radius: 10px; box-shadow: 0 1px 3px rgba(56, 65, 74, .1); background: #fff; }
.fw-avvisi-testa .fw-avviso strong { font-size: 13px; color: #2f3961; }
.fw-avvisi-testa .fw-avviso strong .fa-bell { color: #f7b84b; }
.fw-avvisi-testa .fw-avviso p { font-size: 12px; }
@media (max-width: 767.98px) { .fw-avvisi-testa { justify-content: flex-start; width: 100%; } .fw-avvisi-testa .fw-avviso { flex-basis: 100%; } }
/* Informazioni di sistema (03/10/2026): Server a sinistra, Limiti ed Estensioni a destra */
.fws-sis { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 991.98px) { .fws-sis { grid-template-columns: 1fr; } }
.fws-sis-col { display: grid; gap: 16px; }
.fws-sis-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(56, 65, 74, .08); padding: 16px 18px; }
.fws-sis-card h6 { font-size: 14px; font-weight: 600; color: #2f3961; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.fws-sis-card h6 i { color: #6691e7; font-size: 18px; }
.fws-sis-riga { display: grid; grid-template-columns: 30px 130px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #eff2f7; }
.fws-sis-riga i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 8px; background: rgba(102, 145, 231, .1); color: #6691e7; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fws-sis-riga span { grid-row: 1 / span 2; font-size: 12.5px; color: #878a99; }
.fws-sis-riga b { font-size: 14px; color: #2f3961; font-weight: 600; font-variant-numeric: tabular-nums; }
.fws-sis-riga small { grid-column: 3; font-size: 11.5px; color: #878a99; }
.fws-lim { padding: 10px 0; border-top: 1px solid #eff2f7; }
.fws-lim .t { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #495057; }
.fws-lim .t i { color: #6691e7; font-size: 17px; }
.fws-lim .t b { margin-left: auto; font-size: 15px; color: #2f3961; font-variant-numeric: tabular-nums; }
.fws-lim .barra { height: 6px; border-radius: 3px; background: #eff2f7; margin: 8px 0 6px; overflow: hidden; }
.fws-lim .barra i { display: block; height: 100%; border-radius: 3px; background: #0ab39c; }
.fws-lim.att .barra i { background: #f7b84b; } .fws-lim.att .t i { color: #d98d0b; }
.fws-lim small { font-size: 11.5px; color: #878a99; }
.fws-sis-est { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #eff2f7; }
.fws-sis-est > i { font-size: 19px; } .fws-sis-est.ok > i { color: #0ab39c; } .fws-sis-est.ko > i { color: #f06548; }
.fws-sis-est b { display: block; font-size: 13px; color: #2f3961; font-weight: 600; }
.fws-sis-est small { font-size: 11.5px; color: #878a99; }
.fws-sis-est > span { margin-left: auto; font-size: 11.5px; font-weight: 600; border-radius: 20px; padding: 2px 9px; background: rgba(10, 179, 156, .12); color: #087a6b; }
.fws-sis-est.ko > span { background: rgba(240, 101, 72, .12); color: #c4432a; }
/* Impostazioni (03/10/2026, Simone: allineamenti): un interruttore nella stessa riga di campi con etichetta sopra
   si allinea alla casella del campo, non all'etichetta */
#main .tab-pane .row:has(> [class*="col"] .form-control) > [class*="col"] > .form-group:has(> .switchery) { margin-top: 31px; }
#main .tab-pane :is(.row, .form-row):has(> .form-group .form-control) > .form-group:has(> .switchery) { margin-top: 31px; }
