/* ==========================================================================
   STILE UNICO — tema grafico del gestionale
   --------------------------------------------------------------------------
   Solo aspetto: colori, caratteri, bordi, spaziature.
   NON cambia HTML, JavaScript, PHP o database: tutte le classi e gli id
   restano quelli di prima, qui vengono solo ridisegnati.
   Si carica per ultimo da serverIntro.php -> Header().
   Per tornare alla grafica vecchia basta togliere quel <link>.

   Le regole iniziano con "html body" per vincere sugli stili scritti
   dentro le singole pagine (che vengono caricati dopo questo file).
   ========================================================================== */

/* ---------- 1. Carattere Inter (incluso, funziona anche offline) ---------- */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(font/inter-400.woff) format('woff')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(font/inter-500.woff) format('woff')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(font/inter-600.woff) format('woff')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(font/inter-700.woff) format('woff')}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(font/inter-800.woff) format('woff')}

/* ---------- 2. Colori (stessi nomi e valori dello stile unico) ---------- */
:root{
  --n-50:#f8fafc;--n-100:#f1f5f9;--n-200:#e2e8f0;--n-300:#cbd5e1;--n-400:#94a3b8;--n-500:#64748b;--n-600:#475569;--n-700:#334155;--n-800:#1e293b;--n-900:#0f172a;
  --blue-400:#60a5fa;--blue-500:#2563eb;--blue:#1d4ed8;--blue-700:#1e40af;--blue-bg:#eff6ff;--blue-line:#bfdbfe;
  --green-500:#16a34a;--green:#15803d;--green-bg:#f0fdf4;--green-line:#bbf7d0;
  --orange-500:#ea580c;--orange:#c2410c;--orange-700:#9a3412;--orange-bg:#fff7ed;--orange-line:#fed7aa;
  --red-500:#dc2626;--red:#b91c1c;--red-bg:#fef2f2;--red-line:#fecaca;
  --violet:#6d28d9;--violet-bg:#f5f3ff;
  --primary:var(--blue-500);--primary-700:var(--blue);--primary-50:var(--blue-bg);
  --ink:#101828;--ink-2:var(--n-700);--muted:var(--n-500);
  --line:var(--n-200);--line-strong:var(--n-300);--bg:var(--n-100);--surface:#fff;
  --sidebar:#071727;--sidebar-2:#0b2238;--navy:#0b1d33;
  --radius:12px;--radius-sm:8px;
  --shadow:0 1px 2px rgba(16,24,40,.05),0 6px 20px rgba(16,24,40,.06);
  --shadow-lg:0 18px 50px rgba(16,24,40,.22);
  --ring:0 0 0 3px rgba(37,99,235,.18);
}

/* ---------- 3. Base ---------- */
html body{font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;background:var(--bg)!important;color:var(--ink);-webkit-font-smoothing:antialiased}
html body,html body button,html body input,html body select,html body textarea,html body .btn,html body .badge,html body label,html body .input-group-addon,html body .navbar,html body .panel,html body .modal,html body .table,html body .dropdown-menu,html body h1,html body h2,html body h3,html body h4,html body h5,html body p,html body span:not([class*=icon]):not([class*=glyphicon]){font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif}
html body .content,html body #content{background:var(--bg)!important}
html body .main-content{background:transparent}
html body a{color:var(--primary)}
html body a:hover,html body a:focus{color:var(--primary-700)}
html body h1,html body h2,html body h3,html body h4,html body h5{color:var(--ink);letter-spacing:-.01em}
html body hr{border-top-color:var(--line)}
html body .text-primary{color:var(--primary)!important}
html body .text-muted{color:var(--muted)!important}
html body ::selection{background:var(--blue-line)}

/* ---------- 4. Menu laterale ---------- */
html body .left-bar,html body .side-bar{background:linear-gradient(180deg,var(--sidebar),var(--sidebar-2))!important;border-right:0;box-shadow:none}
html body .left-bar .admin-logo,html body .side-bar .admin-logo,
html body .left-bar .admin-logo a.menu-bar{background:transparent!important;border-bottom:1px solid rgba(255,255,255,.08)}
html body .left-bar .logo-holder{max-width:calc(100% - 56px);overflow:hidden}
html body .left-bar .logo-holder a{font-family:Inter,sans-serif!important;font-weight:800;font-size:15px!important;color:#fff!important;letter-spacing:-.01em;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis;padding-left:14px!important}
html body .left-bar .logo-holder a i{width:34px;height:34px;line-height:34px;border-radius:10px;background:linear-gradient(145deg,#fff,var(--blue-line));color:var(--primary);text-align:center;font-size:17px;margin-left:0!important;margin-right:10px!important}
html body .left-bar .admin-logo a.menu-bar{color:var(--n-300)!important}
html body .left-bar .menu-parent,html body .side-bar .menu-parent{background:transparent!important;padding:52px 10px 10px}
html body .left-bar .menu-parent>li,html body .side-bar .menu-parent>li{border-bottom:0!important;margin-bottom:2px;border-radius:9px}
html body .left-bar .menu-parent>li>a,html body .side-bar .menu-parent>li>a{color:var(--n-300)!important;font-weight:600;font-size:13px;border-radius:9px;transition:background .12s,color .12s}
html body .left-bar .menu-parent li a i,html body .side-bar .menu-parent li a i{color:inherit!important;opacity:.9}
html body .left-bar .menu-parent>li:hover,html body .side-bar .menu-parent>li:hover,
html body .left-bar .menu-parent>li:hover>a,html body .side-bar .menu-parent>li:hover>a,
html body .left-bar .menu-parent>li a:hover,html body .side-bar .menu-parent>li a:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
/* voce della pagina aperta: la segna js (classe su-attivo), perché nel menu tutte le voci hanno "current" */
html body .left-bar .menu-parent li a.su-attivo{background:var(--primary)!important;color:#fff!important;box-shadow:0 6px 16px rgba(8,101,242,.35)}
html body .left-bar .menu-parent>li.submenu ul,html body .side-bar .menu-parent>li.submenu ul{background:transparent!important;border-left:1px solid rgba(255,255,255,.08);margin:2px 0 6px 22px;padding-left:8px}
html body .left-bar .menu-parent>li.submenu ul a,html body .side-bar .menu-parent>li.submenu ul a{color:var(--n-400)!important;font-weight:500;border-radius:8px}
html body .left-bar .menu-parent>li.submenu ul a:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
html body .left-bar .menu-parent>li a i.chevron,html body .side-bar .menu-parent>li a i.chevron{color:var(--n-500)!important}

/* ---------- 5. Barra in alto ---------- */
html body .top-bar,html body .top-bar.navbar,html body .navbar-default.top-bar{background:#fff!important;border:0;border-bottom:1px solid var(--line)!important;box-shadow:none!important}
html body .top-bar .navbar-nav>li>a{color:var(--ink-2)!important;font-weight:700}
html body .top-bar .navbar-nav>li>a:hover{color:var(--primary)!important;background:transparent}
html body .top-bar .navbar-nav>li>a i{color:var(--n-400)}
html body .top-bar .navbar-nav>li>a i.fa-2x{font-size:20px}
html body .top-bar .navbar-nav>li>a:hover i{color:var(--primary)}
html body .menu-bar-mobile{color:var(--ink-2)}
html body .avatar_info,html body .avatar_width{color:var(--ink-2)}
html body .dropdown-menu{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:6px}
html body .dropdown-menu>li>a{border-radius:8px;color:var(--ink-2);padding:7px 12px}
html body .dropdown-menu>li>a:hover{background:var(--primary-50);color:var(--primary)}
html body .piluku-dropdown .dropdown-piluku-menu.avatar_drop i{color:var(--muted)}

/* ---------- 6. Riquadri (panel -> scheda) ---------- */
html body .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
html body .panel-heading{background:transparent!important;border-bottom:1px solid var(--line)!important;padding:12px 16px;border-radius:var(--radius) var(--radius) 0 0}
html body .panel-heading.text-primary{color:var(--ink)!important}
html body .panel-title,html body h3.panel-title{font-size:15px;font-weight:800;color:var(--ink)!important;background:transparent!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body .panel-title>i,html body .panel-title .ion-ios-keypad{color:var(--primary)}
html body .panel-title .btn{margin-left:8px!important}
html body .panel-body{padding:14px 16px}
html body .panel-primary>.panel-heading{background:var(--primary-50)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .panel-footer{background:var(--n-50);border-top:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius)}
html body .well{background:var(--n-50);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:none}
html body .well.bg-primary,html body .bg-primary{background:var(--primary-50)!important;color:var(--primary)!important;border-color:var(--blue-line);font-weight:700;font-size:13px!important}
html body .classeTitolo,html body h4.classeTitolo{font-size:13px;font-weight:800;color:var(--ink);border-bottom:1px solid var(--line)!important;margin:16px 0 12px!important;padding-bottom:8px}

/* ---------- 7. Pulsanti ---------- */
html body .btn{border-radius:9px;font-weight:700;font-size:13px;border:1px solid var(--line-strong);box-shadow:none!important;text-shadow:none;transition:background .12s,border-color .12s,color .12s}
html body .btn:focus,html body .btn:active:focus{outline:0;box-shadow:var(--ring)!important}
html body .btn-default{background:#fff;color:var(--ink-2);border-color:var(--line-strong)}
html body .btn-default:hover,html body .btn-default:focus,html body .btn-default.active,html body .btn-default:active{background:var(--n-100);color:var(--ink);border-color:var(--line-strong)}
html body .btn-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
html body .btn-primary:hover,html body .btn-primary:focus,html body .btn-primary.active{background:var(--primary-700)!important;border-color:var(--primary-700)!important}
html body .btn-success{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
html body .btn-success:hover,html body .btn-success:focus{filter:brightness(.95)}
html body .btn-info{background:var(--primary-50)!important;border-color:var(--blue-line)!important;color:var(--primary)!important}
html body .btn-info:hover{background:#dbeafe!important}
html body .btn-warning{background:var(--orange-bg)!important;border-color:var(--orange-line)!important;color:var(--orange)!important}
html body .btn-warning:hover{background:#ffedd5!important}
html body .btn-danger{background:var(--red-500)!important;border-color:var(--red-500)!important;color:#fff!important}
html body .btn-danger:hover{background:var(--red)!important;border-color:var(--red)!important}
/* "Registra" a tutta larghezza (btn-block senza colore) = pulsante principale blu */
html body .btn.btn-block:not(.btn-default):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-primary){background:var(--primary);border-color:var(--primary);color:#fff;height:40px}
html body .btn.btn-block:not(.btn-default):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-primary):hover{background:var(--primary-700)}
/* Pulsanti-icona nelle liste (modifica, scarica, elimina...): quadrati chiari, cestino rosso */
html body .bottoneTabella,html body .btn.bottone{border-radius:8px}
html body .bottoneTabella.btn-default,html body .btn-default.bottone{color:var(--n-600);background:#fff;border-color:var(--line)}
html body .bottoneTabella.btn-default:hover,html body .btn-default.bottone:hover{background:var(--primary-50);color:var(--primary);border-color:var(--blue-line)}
html body .bottoneTabella.btn-danger,html body .btn-danger.bottone,html body .btn-danger.EliminaCostum{background:#fff!important;color:var(--red-500)!important;border-color:var(--red-line)!important}
html body .bottoneTabella.btn-danger:hover,html body .btn-danger.bottone:hover,html body .btn-danger.EliminaCostum:hover{background:var(--red-bg)!important;color:var(--red)!important}
html body .bottoneTabella i,html body .bottone i{font-size:17px!important}
html body .btn-group>.btn{border-radius:0}
html body .btn-group>.btn:first-child{border-radius:9px 0 0 9px}
html body .btn-group>.btn:last-child{border-radius:0 9px 9px 0}
html body .btn-group>.btn:only-child{border-radius:9px}
/* Scelte a pulsanti (Attivo/Disattivo, Cliente/Fornitore...) = selettore a segmenti */
html body .bottoneFlag.btn-group{background:var(--n-100);border-radius:10px;padding:3px;gap:2px;display:inline-flex}
html body .bottoneFlag .btn,html body .bottoneFlag .btn:first-child,html body .bottoneFlag .btn:last-child{border:0;border-radius:8px!important;background:transparent!important;color:var(--muted)!important;font-weight:700}
html body .bottoneFlag .btn.active,html body .bottoneFlag .btn-primary{background:#fff!important;color:var(--primary)!important;box-shadow:0 1px 2px rgba(16,24,40,.12)!important}
/* Filtri / Ordinamento / Lavori / Fase (Archivio, Lavori): quello attivo è blu.
   Nota: NON si cambia "display" (alcuni sono nascosti con style="display:none" dal programma). */
html body .panelRicerca span.clickGestioneFO,html body .panelRicerca span.clickGestioneFO2{background:#fff!important;color:var(--ink-2)!important;border:1px solid var(--line-strong)!important;border-radius:9px!important;text-transform:none;letter-spacing:0;font-size:13px;font-weight:700;height:34px!important;line-height:20px;vertical-align:middle;text-align:center;padding:6px 12px}
html body .panelRicerca span.clickGestioneFO:hover,html body .panelRicerca span.clickGestioneFO2:hover{background:var(--n-100)!important}
html body .panelRicerca span.clickGestioneFO.active,html body .panelRicerca span.clickGestioneFO2.active{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
html body .panelRicerca span.clickGestioneFO i,html body .panelRicerca span.clickGestioneFO2 i{color:inherit!important}
/* "+" (nuovo) accanto al titolo: blu come "Nuovo" dello stile unico */
html body .panel-title .btn-success{background:var(--primary)!important;border-color:var(--primary)!important}

/* ---------- 8. Campi dei moduli ---------- */
html body .form-control{border:1px solid var(--line-strong);border-radius:8px;box-shadow:none;color:var(--ink);background-color:#fff;font-size:13px}
html body .form-control:focus{border-color:var(--primary);box-shadow:var(--ring);outline:0}
html body .form-control[disabled],html body .form-control[readonly],html body fieldset[disabled] .form-control{background:var(--n-50);color:var(--n-600);cursor:not-allowed}
html body .form-control::placeholder{color:var(--n-400)}
/* L'etichetta a sinistra del campo (input-group-addon) come etichetta dello stile unico */
html body .input-group-addon{background:var(--n-50)!important;border:1px solid var(--line-strong)!important;color:var(--muted)!important;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;border-radius:8px 0 0 8px}
html body .input-group-addon:last-child{border-radius:0 8px 8px 0}
html body .input-group .form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}
html body .input-group .form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}
html body .input-group-addon i{color:var(--n-400)}
html body .panelRicerca .input-group-addon,html body .toolbarRicerca .input-group-addon{background:var(--n-50)!important;color:var(--muted)!important}
html body label{color:var(--ink-2);font-weight:700}
html body .help-block{color:var(--muted);font-size:12px}
html body input[type=checkbox],html body input[type=radio]{accent-color:var(--primary)}
html body select.form-control{background-color:#fff}

/* Tendine select2 */
html body .select2-container--bootstrap .select2-selection,html body .select2-container--default .select2-selection{border:1px solid var(--line-strong)!important;border-radius:8px!important;box-shadow:none!important;background:#fff}
html body .select2-container--focus .select2-selection,html body .select2-container--open .select2-selection{border-color:var(--primary)!important;box-shadow:var(--ring)!important}
html body .input-group .select2-container .select2-selection{border-top-left-radius:0!important;border-bottom-left-radius:0!important}
html body .select2-dropdown{border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:var(--shadow-lg)!important;overflow:hidden}
html body .select2-results__option{padding:7px 10px}
html body .select2-container--default .select2-results__option--highlighted[aria-selected],
html body .select2-container--bootstrap .select2-results__option--highlighted[aria-selected]{background:var(--primary-50)!important;color:var(--primary)!important}
html body .select2-container--default .select2-results__option[aria-selected=true],
html body .select2-container--bootstrap .select2-results__option[aria-selected=true]{background:var(--primary)!important;color:#fff!important}
html body .select2-selection__choice{background:var(--primary-50)!important;color:var(--primary)!important;border:1px solid var(--blue-line)!important;border-radius:12px!important;font-weight:700;font-size:12px;height:26px!important;line-height:24px!important}
html body .select2-selection__choice__remove{color:var(--primary)!important}
html body .select2-search__field{border-radius:6px}

/* ---------- 9. Tabelle ---------- */
html body .table{border-collapse:separate;border-spacing:0;font-size:13px;color:var(--ink)}
html body .table>thead>tr>th,html body table.dataTable thead th{background:var(--navy)!important;color:var(--blue-bg)!important;font-size:11px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;border:0!important;border-bottom:0!important;padding:11px 12px;vertical-align:middle;white-space:nowrap}
html body .table>thead>tr>th:first-child{border-top-left-radius:10px}
html body .table>thead>tr>th:last-child{border-top-right-radius:10px}
html body table.dataTable thead th.sorting_asc,html body table.dataTable thead th.sorting_desc{background:var(--primary)!important;color:#fff!important}
html body table.dataTable thead .sorting:after,html body table.dataTable thead .sorting_asc:after,html body table.dataTable thead .sorting_desc:after{opacity:.6;color:inherit}
/* seconda riga dell'intestazione con i campi di ricerca */
html body .table>thead>tr:nth-child(2)>th,html body .table>thead>tr.ricercaHeaderTableTr>th{background:var(--n-50)!important;border-radius:0!important;padding:4px!important}
html body .table>thead>tr:nth-child(2)>th input{border:1px solid var(--line-strong)!important;border-radius:6px;height:28px;padding:0 8px;width:100%}
html body .table>tbody>tr>td,html body .table>tbody>tr>th{border:0!important;border-bottom:1px solid var(--line)!important;padding:9px 12px;vertical-align:middle;color:var(--ink);background:#fff}
html body .table-striped>tbody>tr:nth-of-type(odd)>td,html body .table-striped>tbody>tr:nth-of-type(odd){background:#fff}
html body .table-hover>tbody>tr:hover>td,html body .table>tbody>tr:hover>td{background:var(--primary-50)!important}
html body .table-bordered{border:1px solid var(--line)!important;border-radius:10px;overflow:hidden}
html body .table>tfoot>tr>th,html body .table>tfoot>tr>td{background:var(--n-50)!important;color:var(--muted)!important;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.3px;border:0!important;border-top:1px solid var(--line)!important;padding:9px 12px}
html body tr.selected>td,html body tr.selected td{background:var(--primary-50)!important;color:var(--ink)!important;box-shadow:inset 0 0 0 9999px rgba(37,99,235,.06)}
html body tr.selected td:first-child{box-shadow:inset 3px 0 0 var(--primary)!important}
html body .table-responsive{border:0}
/* comandi di DataTables */
html body .dataTables_wrapper .dataTables_length,html body .dataTables_wrapper .dataTables_filter,html body .dataTables_wrapper .dataTables_info{color:var(--muted);font-size:12px;font-weight:600}
html body .dataTables_wrapper .dataTables_length select,html body .dataTables_wrapper .dataTables_filter input{border:1px solid var(--line-strong);border-radius:8px;height:32px;padding:0 8px;background:#fff;outline:0}
html body .dataTables_wrapper .dataTables_filter input{min-width:220px}
html body .dataTables_wrapper .dataTables_filter input:focus{border-color:var(--primary);box-shadow:var(--ring)}
html body .dataTables_wrapper .dataTables_processing{background:#fff!important;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);color:var(--ink-2);font-weight:700}
/* paginazione */
html body .pagination>li>a,html body .pagination>li>span{min-width:32px;height:32px;line-height:30px;padding:0 10px!important;margin:0 2px;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;color:var(--ink-2)!important;font-weight:700;font-size:12px}
html body .pagination>li>a:hover{background:var(--n-100)!important}
html body .pagination>.active>a,html body .pagination>.active>span,html body .pagination>li.active a{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
html body .pagination>.disabled>a{color:var(--n-400)!important;background:#fff!important}

/* ---------- 10. Linguette (tab) ---------- */
html body #myTab.nav,html body .nav-tabs,html body .nav.nav-stacked-left{background:var(--n-100)!important;border:0!important;border-radius:10px;padding:3px!important;box-shadow:none!important;display:flex;flex-wrap:wrap;gap:2px}
html body .nav.nav-stacked-left{flex-direction:column}
html body #myTab.nav>li,html body .nav-tabs>li,html body .nav.nav-stacked-left>li{float:none;margin:0;background:transparent!important;border:0!important;flex:1 1 0;width:auto!important;padding:0!important;min-width:0}
html body #myTab.nav>li>a,html body .nav-tabs>li>a,html body .nav.nav-stacked-left>li>a{border:0!important;border-radius:8px!important;margin:0;padding:8px 14px;color:var(--muted)!important;font-weight:700;text-align:center;background:transparent!important}
html body #myTab.nav>li>a:hover,html body .nav-tabs>li>a:hover,html body .nav.nav-stacked-left>li>a:hover{color:var(--ink)!important;background:rgba(255,255,255,.6)!important}
html body #myTab.nav>li.active,html body #myTab.nav>li:hover{background:transparent!important}
html body #myTab.nav>li.active>a,html body .nav-tabs>li.active>a,html body .nav-tabs>li.active>a:hover,html body .nav-tabs>li.active>a:focus,html body .nav.nav-stacked-left>li.active>a{background:#fff!important;color:var(--primary)!important;box-shadow:0 1px 2px rgba(16,24,40,.12)}
html body .tab-content{padding-top:6px}
html body .modal .nav>li>a{border:0!important}

/* ---------- 11. Avvisi ed etichette ---------- */
html body .alert{border:1px solid transparent;border-radius:9px;padding:10px 12px;font-size:13px;box-shadow:none}
html body .alert h4,html body .alert strong{color:inherit;font-weight:800}
html body .alert-warning{background:var(--orange-bg)!important;border-color:var(--orange-line)!important;color:var(--orange-700)!important}
html body .alert-danger{background:var(--red-bg)!important;border-color:var(--red-line)!important;color:var(--red)!important;font-size:13px!important}
html body .alert-success{background:var(--green-bg)!important;border-color:var(--green-line)!important;color:var(--green)!important}
html body .alert-info{background:var(--blue-bg)!important;border-color:var(--blue-line)!important;color:var(--blue)!important}
html body .badge{display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:2px 9px;border-radius:12px;font-size:11px!important;font-weight:700;background:var(--n-100)!important;color:var(--n-600)!important;border:0}
html body .badge.bg-success,html body .label-success{background:var(--green-bg)!important;color:var(--green)!important}
html body .badge.bg-danger,html body .label-danger{background:var(--red-bg)!important;color:var(--red)!important}
html body .badge.bg-warning,html body .label-warning{background:var(--orange-bg)!important;color:var(--orange)!important}
html body .badge.bg-primary,html body .badge.bg-info,html body .label-primary,html body .label-info{background:var(--blue-bg)!important;color:var(--blue)!important;text-transform:none;letter-spacing:0}
html body .badge.bg-success::before,html body .badge.bg-danger::before,html body .badge.bg-warning::before,html body .badge.bg-primary::before,html body .badge.bg-info::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
html body .btn .badge{background:rgba(255,255,255,.9)!important;color:var(--primary)!important;min-height:18px;padding:0 7px}
html body .label{border-radius:12px;font-weight:700;padding:3px 9px}
html body .presenzaAllegato{background:var(--green-bg)!important;color:var(--green)!important;border-color:var(--green-line)!important}
html body .classeNomeFileConsigliato{background:var(--orange-bg)!important;color:var(--orange-700)!important;border-color:var(--orange-line)!important}

/* ---------- 12. Finestre (modal), conferme, notifiche ---------- */
html body .modal-content{border:0;border-radius:var(--radius);box-shadow:var(--shadow-lg);overflow:hidden}
html body .modal-header{border-bottom:1px solid var(--line);padding:14px 16px;background:#fff}
html body .modal-title{font-size:16px;font-weight:800;color:var(--ink)}
html body .modal-title i{color:var(--primary)}
html body .modal-body{padding:16px}
html body .modal-footer{border-top:1px solid var(--line);padding:12px 16px;background:var(--n-50)}
html body .modal-backdrop.in{opacity:.45;background:var(--n-900)}
html body .close{opacity:.5;text-shadow:none;color:var(--ink)}
html body .sweet-alert{border-radius:var(--radius)!important;font-family:Inter,sans-serif!important;box-shadow:var(--shadow-lg)}
html body .sweet-alert h2{color:var(--ink)!important;font-weight:800!important;font-size:20px!important}
html body .sweet-alert p{color:var(--ink-2)!important;font-size:14px!important}
html body .sweet-alert button{border-radius:9px!important;font-weight:700!important;font-size:14px!important;box-shadow:none!important}
html body .sweet-alert button.cancel{background:#fff!important;color:var(--ink-2)!important;border:1px solid var(--line-strong)!important}
html body .gritter-item-wrapper{border-radius:10px;overflow:hidden;box-shadow:var(--shadow-lg)}
html body .gritter-top,html body .gritter-bottom{display:none}
html body .gritter-item{background:var(--navy)!important;color:#fff;font-family:Inter,sans-serif;border-radius:10px;padding:10px 12px}
html body .gritter-item .gritter-title{font-weight:700;text-shadow:none}
html body .gritter-success .gritter-item{background:var(--green)!important}
html body .gritter-danger .gritter-item{background:var(--red-500)!important}
html body .tooltip-inner{background:var(--navy);border-radius:6px;font-weight:600;font-size:12px}

/* ---------- 13. Archivio programmi e Lavori (schede in elenco) ---------- */
/* barra "Totale / pagine / Visualizza" (colore scritto nella riga: lo copriamo con uno strato chiaro) */
html body .row.height1{background-image:linear-gradient(var(--surface),var(--surface))!important;border:1px solid var(--line);border-radius:10px;color:var(--ink)!important;padding:4px 0;height:auto!important;min-height:40px;margin-left:0;margin-right:0;display:flex;align-items:center;flex-wrap:wrap}
html body .row.height1.text-white,html body .row.height1 .text-white,html body .classTestoElementi,html body .classeTotaleElementi{color:var(--ink-2)!important}
html body .totaleElementi{font-weight:800;color:var(--ink)}
html body .classTestoElementi select{border:1px solid var(--line-strong)!important;border-radius:8px;height:30px;padding:0 6px;color:var(--ink)!important}
/* la scheda */
html body .classePannelloOrdine{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-left:0!important;margin-right:0!important}
html body .classePannelloOrdine>.row{margin:0}
html body .classeOrdineTitolo,html body .classeLavoroTitolo{background:var(--primary-50)!important;color:var(--primary)!important;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding-top:6px;padding-bottom:6px;border-bottom:1px solid var(--blue-line)}
html body .classeOrdine,html body .classeLavoro1{background:#fff!important;color:var(--ink)!important}
html body .classeOrdine.text-white,html body .classeOrdine .text-white,html body .classeLavoro1 .text-white,html body .classeLavoro1.text-white,html body .classePannelloOrdine .text-white{color:var(--ink)!important}
html body .classeOrdine h4,html body .classeLavoro1 h4,html body .etichetta h4{color:var(--ink)!important;font-size:13px}
html body .etichetta h4 span:first-child,html body .classeOrdine .etichetta span:first-child{border-bottom:0!important;color:var(--muted)!important;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;margin-bottom:2px!important}
html body .etichetta h4 strong,html body .classeOrdine strong,html body .classeLavoro1 strong{color:var(--ink)!important;font-weight:700}
html body .titoloFaseDettaglio{border-bottom-color:var(--line)!important;color:var(--muted)}
html body .classeLavoro1Interno{border-right-color:var(--line)!important}
/* barra dei pulsanti sotto la scheda */
html body .pulsantiArchivio{background:var(--n-50)!important;border-top:1px solid var(--line);color:var(--ink)!important;padding:8px 12px!important}
html body .classePannelloOrdine .panel-body,html body .classePannello{background:#fff}
html body .PulsantePannelloOrdine,html body .numeroDeiLavori{color:var(--ink-2)!important}
/* scheda selezionata */
html body .classePannelloOrdine.selected{border-color:var(--primary);box-shadow:0 0 0 2px var(--blue-line),var(--shadow)}
html body .classePannelloOrdine.selected .BottoneSelectRow,html body tr.selected td:first-child .BottoneSelectRow{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
/* titolo della pagina dentro le liste Lavori/Archivio */
html body .panelPagina .panel-title,html body .panel-title.titolo1{background:transparent!important;color:var(--ink)!important;font-size:15px;font-weight:800;padding-left:0}
/* fasi interne/esterne */
html body .classeFaseInterno,html body .classeFaseEsterno{background:var(--n-100)!important;color:var(--ink)!important}
html body .classeFaseInternoLav{background:var(--blue-bg)!important}
html body .classeFaseEsternoLav{background:var(--orange-bg)!important}
html body .gestioneStoricoLavori{background:var(--primary-50)!important;color:var(--primary)!important}
html body .eliminaFase,html body .rimuoviInizioFase,html body .rimuoviFineFase{background:var(--red-500)!important;border-radius:6px}
/* filtri */
html body .filtriArc{border:1px solid var(--line)!important;border-radius:10px;background:var(--n-50)}
html body .classeFiltriContent,html body .classeOrdinamentoContent{border-radius:10px}
html body .divAnteprima,html body .classeTextArea{border:1px solid var(--line)!important;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12px;background:var(--n-50)!important;color:var(--ink)!important}

/* ---------- 14. Riquadri della home ---------- */
html body .square-info{background:var(--surface)!important;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--ink)}
html body .square-info:hover{background:var(--primary-50)!important;border-color:var(--blue-line)}
html body .square-icon{background:var(--primary-50)!important;color:var(--primary)!important;border-radius:10px}
html body .square-info h1,html body .square-info h2,html body .square-info h3,html body .square-info h4,html body .square-info span{color:var(--ink)!important}

/* ---------- 15. Caricamento pagina ---------- */
html body .piluku-preloader{background:var(--bg)!important}
html body .loader{color:var(--primary)!important}

/* ---------- 16. Telefono e tablet (sotto 900 px) ---------- */
@media (max-width:899px){
  html body .panel-body{padding:12px}
  html body .table>thead>tr>th,html body .table>tbody>tr>td{padding:8px}
  html body .input-group-addon{width:auto!important;min-width:110px}
  html body .dataTables_wrapper .dataTables_filter input{min-width:0;width:100%}
}

/* ---------- 17. Stampa ---------- */
@media print{
  html body .table>thead>tr>th{background:var(--n-100)!important;color:#000!important}
  html body .panel,html body .classePannelloOrdine{box-shadow:none}
}

/* ---------- 18. Menu: gruppo che contiene la pagina aperta ---------- */
html body .left-bar .menu-parent li a.su-attivo-padre{color:#fff!important}
html body .left-bar .menu-parent li a.su-attivo-padre i{color:var(--blue-400)!important}

/* ---------- 19. Rifiniture ---------- */
html body .left-bar .logo-holder{width:auto!important}
html body .table td h4{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)!important;margin:8px 0 3px}
html body .table td h4:first-child{margin-top:0}
html body .square-info h1,html body .square-info h2,html body .square-info h3,html body .square-info h4{font-size:15px!important;font-weight:800!important}

/* ---------- 20. Pagina di login (login/index.php) ---------- */
html body .signin_wrapper{position:relative;min-height:100vh}
html body .signin_wrapper::before{content:"";position:fixed;inset:0;background:linear-gradient(160deg,rgba(7,23,39,.82),rgba(11,34,56,.55));pointer-events:none}
html body .signin_wrapper>.row{position:relative;z-index:1;margin:0}
html body .signin_wrapper .right_block2{background:#fff!important;border-radius:16px!important;box-shadow:var(--shadow-lg);max-width:440px!important;min-height:0!important;padding:28px 32px 24px!important;margin-top:12vh!important}
html body .signin_wrapper .signup-heading{margin:0 0 14px!important;padding:0 0 14px!important;border-bottom:1px solid var(--line);background:#fff!important}
html body .signin_wrapper .signup-heading img{max-height:70px;width:auto}
html body .signin_wrapper .right_block .input-field input{border-bottom:1px solid var(--line-strong)!important;color:var(--ink)!important;font-size:15px}
html body .signin_wrapper .right_block .input-field input:focus{border-bottom:2px solid var(--primary)!important;box-shadow:none!important}
html body .signin_wrapper .right_block .input-field label{color:var(--muted)!important;font-weight:600}
html body .signin_wrapper .right_block .input-field label.active{color:var(--primary)!important}
html body .signin_wrapper .right_block i.prefix,html body .signin_wrapper .right_block i.prefix.active{color:var(--primary)!important}
html body .signin_wrapper .classBtnLogin{background:var(--primary)!important;border:0;border-radius:9px;height:42px;font-size:14px;font-weight:700;margin:14px 0 0!important;letter-spacing:.2px}
html body .signin_wrapper .classBtnLogin:hover{background:var(--primary-700)!important}
html body .modal-body h4,html body .tab-pane h4:not(.classeTitolo){font-size:12px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;color:var(--ink-2)!important;margin:14px 0 6px}

/* ==========================================================================
   21. DISPOSIZIONE (layout) secondo lo stile unico — sempre solo CSS
   ========================================================================== */

/* ---- 21.1 Campi: etichetta SOPRA il campo (regola 7 "Campi dei moduli") ----
   Vale per ogni .input-group che inizia con l'etichetta (.input-group-addon). */
html body .input-group:has(>.input-group-addon:first-child):not([style*="display:none"]):not([style*="display: none"]){display:flex!important;flex-wrap:wrap;align-items:stretch;width:100%;border-collapse:initial}
html body .input-group:has(>.input-group-addon:first-child)>.input-group-addon:first-child{display:block!important;flex:0 0 100%;width:100%!important;min-width:0!important;max-width:none!important;background:none!important;border:0!important;border-radius:0!important;padding:0 0 5px!important;margin:0;text-align:left!important;white-space:normal;height:auto!important;line-height:1.3!important;color:var(--muted)!important;font-size:11px!important}
html body .input-group:has(>.input-group-addon:first-child)>.input-group-addon:first-child a.btn{margin-right:6px;height:22px;padding:0 7px;line-height:20px;font-size:11px}
html body .input-group:has(>.input-group-addon:first-child)>:not(.input-group-addon:first-child):not(.select2-hidden-accessible):not([type=hidden]){flex:1 1 60px;min-width:0;float:none!important;width:auto!important}
html body .input-group:has(>.input-group-addon:first-child)>.select2-container.select2-container.select2-container{display:block!important;width:100%!important;flex:1 1 100%!important}
html body .input-group:has(>.input-group-addon:first-child)>.input-group-addon:not(:first-child),
html body .input-group:has(>.input-group-addon:first-child)>.input-group-btn{flex:0 0 auto;align-items:center;width:auto!important}
html body .input-group>.input-group-addon:first-child+.form-control,
html body .input-group>.input-group-addon:first-child+select+.select2-container .select2-selection,
html body .input-group>.input-group-addon:first-child+.select2-container .select2-selection{border-radius:8px!important}
html body .input-group>.input-group-addon:first-child+.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}
html body .input-group.form-group,html body .form-group{margin-bottom:12px!important}
/* altezza uniforme dei campi (36 px), come nello stile unico */
html body .form-control:not(textarea):not([multiple]),html body select.form-control.input-lg:not([multiple]),html body .input-lg.form-control:not(textarea):not([multiple]){height:36px!important;padding:6px 10px;font-size:13px!important;line-height:1.4}
html body textarea.form-control{min-height:72px;padding:8px 10px}
html body .input-group .select2-container .selection .select2-selection.select2-selection.select2-selection.select2-selection--single,
html body .select2-container .selection .select2-selection.select2-selection.select2-selection--single{height:36px!important;padding-top:0!important}
html body .select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
html body .select2-container--default .select2-selection--single .select2-selection__rendered{margin-top:0!important;line-height:34px!important;padding-left:10px;color:var(--ink)}
html body .select2-container .select2-selection__arrow{top:5px!important}

/* ---- 21.2 Moduli su due colonne (regola 7: form-grid) — solo da 900 px ---- */
@media (min-width:900px){
  html body form:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group),
  html body form:has(>.col-md-12>.input-group.form-group),
  html body .tab-pane>.col-md-12:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;align-items:start}
  html body form:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group)>*,
  html body form:has(>.col-md-12>.input-group.form-group)>*,
  html body .tab-pane>.col-md-12:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group)>*{grid-column:1/-1;float:none!important;width:auto!important;min-width:0}
  html body form:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group)>.input-group.form-group:not(:has(textarea)),
  html body form:has(>.col-md-12>.input-group.form-group)>.col-md-12:has(>.input-group.form-group:only-child):not(:has(textarea)),
  html body form:has(>.col-md-12>.input-group.form-group)>.input-group.form-group:not(:has(textarea)),
  html body form:has(>.col-md-12>.input-group.form-group)>.col-md-6,
  html body .tab-pane>.col-md-12:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group)>.input-group.form-group:not(:has(textarea)){grid-column:auto}
}

/* ---- 21.3 Schede di dettaglio: linguette in alto, contenuto a tutta larghezza ---- */
html body .panel-body>.col-md-3:has(>#myTab.nav-stacked-left){width:100%;float:none;padding:0 0 12px!important;margin:0!important}
html body .panel-body>.col-md-9:has(>#myTabContent){width:100%;float:none;padding:0!important}
html body #myTab.nav-stacked-left{flex-direction:row!important;display:inline-flex!important;width:auto;max-width:100%}
html body #myTab.nav-stacked-left>li{flex:0 0 auto}
html body #myTab:not(:has(>li+li)){display:none!important}            /* una sola linguetta: non serve */
html body .tab-pane>.col-md-12>hr:first-child{display:none}
html body .tab-pane h4:not(.classeTitolo):first-of-type{margin-top:4px}

/* ---- 21.4 Testata della pagina (titolo a sinistra, comandi accanto, "+" in evidenza) ---- */
html body .panel>.panel-heading:not(.pannelloTestatPrincipale){display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:58px}
html body .panel>.panel-heading>.panel-title{margin:0}
html body .panel-title .btn{height:34px;line-height:32px;padding:0 12px}
html body .panel-title .btn-primary.bottone:has(>.fa-arrow-left){width:34px;padding:0;text-align:center;background:#fff!important;color:var(--ink-2)!important;border-color:var(--line-strong)!important}
html body .panel-title .btn-primary.bottone:has(>.fa-arrow-left):hover{background:var(--n-100)!important}
html body .panel-title a.btn[style*="margin-left:90px"],html body .panel-title a.btn[style*="margin-left: 90px"]{margin-left:8px!important}

/* ---- 21.5 Tabelle: righe uguali, icone in fila, niente intestazione ripetuta in fondo ---- */
html body .table>tbody>tr>td{white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis;height:46px}
html body .table>tbody>tr>td:has(>h4),html body .table>tbody>tr>td:has(>br~*){white-space:normal}
html body .table>tbody>tr>td:first-child:has(>.bottone,>.btn,>button){width:1%;white-space:nowrap}
html body .table>tbody>tr>td .bottone,html body .table>tbody>tr>td>.btn{width:32px;height:32px;padding:0!important;line-height:30px;text-align:center;margin:0 2px 0 0!important;vertical-align:middle}
html body .table>tbody>tr>td .bottone i,html body .table>tbody>tr>td>.btn i{font-size:15px!important}
html body table.dataTable>tfoot:not(:has(input,select)),html body .table>tfoot:not(:has(input,select)){display:none}
html body .table>thead>tr>th{height:40px}
/* barra sopra la tabella (Visualizza / Cerca) e sotto (conteggio / pagine) */
html body .dataTables_wrapper>.row:first-child{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:10px}
html body .dataTables_wrapper>.row:first-child>[class*=col-]{float:none;width:auto;padding:0}
html body .dataTables_wrapper>.row:first-child>[class*=col-]:last-child{flex:1 1 320px;max-width:520px;margin-left:auto}
html body .dataTables_wrapper .dataTables_filter{width:100%;text-align:right}
html body .dataTables_wrapper .dataTables_filter label{font-size:0;width:100%;margin:0;display:block}
html body .dataTables_wrapper .dataTables_filter input{font-size:13px;width:100%!important;margin:0!important;height:36px;padding-left:34px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px center}
html body .dataTables_wrapper .dataTables_length label{margin:0;display:flex;align-items:center;gap:6px}
html body .dataTables_wrapper>.row:last-child{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0;padding:10px 2px 0}
html body .dataTables_wrapper>.row:last-child>[class*=col-]{float:none;width:auto;padding:0}
html body .dataTables_wrapper .dataTables_paginate{margin:0!important}
html body .dataTables_wrapper .pagination{margin:0!important;height:auto!important}
html body .table-responsive{overflow-x:auto}

/* ---- 21.6 Archivio programmi e Magazzino: elenco a RIGHE come una tabella (da 900 px) ----
   Ogni scheda diventa una riga: dati a sinistra, icone a destra, intestazioni solo sulla prima. */
@media (min-width:900px){
  html body .classePannelloOrdine:has(.pulsantiArchivio),
  html body .classePannelloGenerico:has(.pulsantiGenerico){margin:0!important;border-radius:0!important;box-shadow:none!important;border:1px solid var(--line)!important;border-top:0!important;background:#fff}
  html body .classePannelloOrdine:has(.pulsantiArchivio)>.row,
  html body .classePannelloGenerico>div:has(>.pulsantiGenerico){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;float:none;width:auto!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdineTitolo,
  html body div:has(>.classeGenericoTitolo):has(>.pulsantiGenerico)>.classeGenericoTitolo{display:none!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine,
  html body div:has(>.classeGenericoTitolo)>.classeGenerico{grid-column:1;width:auto!important;float:none;padding:8px 12px!important;display:flex;align-items:center;min-height:52px}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta,
  html body div:has(>.classeGenericoTitolo)>.classeGenerico>.etichetta{float:none;padding:0 8px 0 0;min-width:0}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4,
  html body .classeGenerico h4{margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .pulsantiArchivio,
  html body div:has(>.classeGenericoTitolo)>.pulsantiGenerico{grid-column:2;width:auto!important;float:none;background:transparent!important;border:0!important;padding:6px 10px!important;display:flex;flex-wrap:nowrap;gap:4px;justify-content:flex-end}
  html body .pulsantiArchivio .bottoneTabella,html body .pulsantiGenerico .bottoneTabella{width:32px!important;height:32px!important;padding:0!important;margin:0!important;line-height:30px;text-align:center}
  html body .pulsantiArchivio .bottoneTabella i,html body .pulsantiGenerico .bottoneTabella i{font-size:15px!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classePannello,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .panel-body,
  html body .classePannelloGenerico>div:has(>.pulsantiGenerico)>.panel-body{grid-column:1/-1;padding:0!important}
  html body .classePannelloGenerico>div:has(>.pulsantiGenerico){padding:0!important;margin:0!important}
  /* prima riga: bordo superiore arrotondato e intestazioni visibili; righe successive senza etichette */
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio),
  html body .row.height1+.classePannelloGenerico,
  html body .classePannelloOrdine:has(.pulsantiArchivio):first-child{border-top:1px solid var(--line)!important;border-radius:10px 10px 0 0!important;margin-top:10px!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio)+.classePannelloOrdine .etichetta h4 span:first-child,
  html body .classePannelloGenerico+.classePannelloGenerico .etichetta h4 span:first-child{display:none!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio):not(:has(+.classePannelloOrdine)),
  html body .classePannelloGenerico:has(.pulsantiGenerico):not(:has(+.classePannelloGenerico)){border-radius:0 0 10px 10px!important;margin-bottom:10px!important}
  html body .row.height1+.classePannelloGenerico:not(:has(+.classePannelloGenerico)){border-radius:10px!important}
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio):not(:has(+.classePannelloOrdine)){border-radius:10px!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio):hover,
  html body .classePannelloGenerico:has(.pulsantiGenerico):hover{background:var(--primary-50)!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio):hover .classeOrdine,
  html body .classePannelloGenerico:hover .classeGenerico{background:transparent!important}
}

/* ---- 21.7 Magazzino e Lavori: colori delle parti che mancavano ---- */
html body .classeGenericoTitolo,html body .classeTitoloFase{background:var(--primary-50)!important;color:var(--primary)!important;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding-top:6px!important;padding-bottom:6px!important;border-bottom:1px solid var(--blue-line)}
html body .classeGenerico,html body .classePannelloFaseInner,html body .classePannelloFase{background:#fff!important;color:var(--ink)!important}
html body .classeGenerico.text-white,html body .classeGenerico .text-white,html body .classePannelloFaseInner .text-white,html body .classePannelloFaseInner,html body .classePannelloFase .text-white{color:var(--ink)!important}
html body .pulsantiGenerico{background:var(--n-50)!important;border-top:1px solid var(--line);padding:8px 12px!important}
html body .classeDivFaseInterno{border-bottom:1px solid var(--line)!important;padding:8px 0}
html body .classePannelloFase{border:1px solid var(--line);border-radius:10px;margin:8px 10px!important;overflow:hidden}
html body .classeFaseInternoLav,html body .classeFaseEsternoLav{color:var(--ink)!important}
html body .classeFaseInternoLav{background:var(--blue-bg)!important}
html body .classeFaseEsternoLav{background:var(--orange-bg)!important}
html body .spanNumeroFase{background:var(--primary);color:#fff;border-radius:10px;padding:0 6px;font-size:11px;font-weight:800}
html body .classeSpanResponsabile{color:var(--ink-2)}
html body .panelTitolo{background:var(--primary-50)!important;color:var(--primary)!important;border:1px solid var(--blue-line);border-radius:9px;font-weight:800}
html body span.classeSubmenu{background:var(--n-100)!important;color:var(--ink-2)!important;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:800;text-transform:uppercase}
html body td:has(>span.classeSubmenu){background:var(--primary-50)!important;color:var(--primary)!important;font-weight:700}
html body a.dimensione_tipoClick{background:var(--primary-50)!important;color:var(--primary)!important;border:1px solid var(--blue-line);border-radius:9px;padding:6px 12px;font-weight:700}
html body a.dimensione_tipoClick.active,html body a.dimensione_tipoClick:hover{background:var(--primary)!important;color:#fff!important}

/* ---- 21.8 Lavori: scheda ordine più ordinata ---- */
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)){margin:0 0 12px!important}
html body .classeOrdine .etichetta2{margin-top:10px!important}
html body .classePannelloLavoro .panel-heading{border-bottom:1px solid var(--line)!important}
html body .classeLavoro1 .bottoneTabella{width:34px!important;height:34px!important;padding:0!important;line-height:32px;text-align:center;margin:0 3px 4px 0!important}
html body .classeLavoro1 .bottoneTabella i{font-size:15px!important}

/* ---- 21.9 Telefono: sotto i 900 px tutto in colonna (i campi restano con l'etichetta sopra) ---- */
@media (max-width:899px){
  html body .panel>.panel-heading:not(.pannelloTestatPrincipale){min-height:0}
  html body .dataTables_wrapper>.row:first-child>[class*=col-]:last-child{max-width:none}
}

/* ---- 21.10 DataTables vecchio (Visualizza / Cerca / tabella / conteggio / pagine, senza .row) ---- */
html body .dataTables_wrapper:not(:has(>.row)){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
html body .dataTables_wrapper:not(:has(>.row))>*{flex:0 0 100%;min-width:0;max-width:100%}
html body .dataTables_wrapper:not(:has(>.row))>.dataTables_length{flex:0 0 auto;order:1;float:none}
html body .dataTables_wrapper:not(:has(>.row))>.dataTables_filter{flex:1 1 280px;max-width:480px;order:2;margin-left:auto;float:none!important}
html body .dataTables_wrapper:not(:has(>.row))>table,html body .dataTables_wrapper:not(:has(>.row))>.table-responsive{order:3}
html body .dataTables_wrapper:not(:has(>.row))>.dataTables_info{flex:0 0 auto;order:4;float:none;padding:0}
html body .dataTables_wrapper:not(:has(>.row))>.dataTables_paginate{flex:0 0 auto;order:5;margin-left:auto!important;float:none}
html body .dataTables_wrapper:not(:has(>.row))>.dataTables_processing{order:0}
html body #myTab.nav:not(:has(>li+li)){display:none!important}

/* ---- 21.11 Finestre più larghe; anteprima dei programmi grande e non tagliata ---- */
@media (min-width:768px){
  html body .modal-dialog:not(.modal-sm):not(.modal-lg){width:min(760px,94vw)}
  html body .modal-dialog.modal-lg{width:min(1100px,94vw)}
  html body .modal-dialog:has(.classeTextArea),html body .modal-dialog:has(.divAnteprima),html body .modal-dialog:has(.divAnteprima2){width:min(1200px,96vw)!important}
}
html body .classeTextArea,html body textarea.classeTextArea{height:70vh!important;min-height:420px;line-height:1.45!important;white-space:pre;overflow:auto;font-size:13px!important;tab-size:4}
html body .divAnteprima{height:70vh!important;line-height:1.45;white-space:pre;overflow:auto;font-size:13px}
html body .divAnteprima2{margin-bottom:8px}
/* pulsanti accanto al campo (es. "Riporta il nome consigliato"): non si schiacciano */
html body .input-group:has(>.input-group-addon:first-child)>.btn,html body .input-group:has(>.input-group-addon:first-child)>button{flex:0 0 auto!important;white-space:nowrap;height:36px}
html body .input-group>.form-control+.btn,html body .input-group>.form-control+button{border-top-left-radius:0;border-bottom-left-radius:0}

/* ---- 21.12 Linguette a pillola (fasi in Inserimenti/Lavori) ---- */
html body .nav-pills{background:var(--n-100);border-radius:10px;padding:3px;display:inline-flex;flex-wrap:wrap;gap:2px}
html body .nav-pills>li{float:none;margin:0!important}
html body .nav-pills>li>a{border-radius:8px!important;color:var(--muted)!important;font-weight:700;padding:7px 14px;background:transparent!important;border:0!important}
html body .nav-pills>li>a:hover{background:rgba(255,255,255,.6)!important;color:var(--ink)!important}
html body .nav-pills>li.active>a,html body .nav-pills>li.active>a:hover,html body .nav-pills>li.active>a:focus{background:#fff!important;color:var(--primary)!important;box-shadow:0 1px 2px rgba(16,24,40,.12)}
html body .nav-pills .eliminaFase{border-radius:6px;padding:2px 6px!important;margin-left:8px!important;color:#fff!important;font-size:11px}

/* ==========================================================================
   22. MIGLIORAMENTI GRAFICI: barra in alto, home, testate, posizione dei pulsanti
   ========================================================================== */

/* ---- 22.1 Barra in alto: "Home" piccolo, la sezione aperta come titolo della pagina ---- */
html body .top-bar .top-elements>li:first-child>a{font-size:13px!important;height:56px!important;line-height:56px;padding:0 12px!important;color:var(--muted)!important;font-weight:600;display:flex;align-items:center;gap:6px}
html body .top-bar .top-elements>li:first-child>a i.fa-home{font-size:16px!important;margin-top:0!important;color:var(--n-400)}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:left"]>a,
html body .top-bar .top-elements>li.piluku-dropdown[style*="float: left"]>a{display:flex!important;align-items:center;gap:10px;height:56px;padding:0 12px!important}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:left"]>a::before{content:"›";color:var(--n-300);font-size:20px;font-weight:400;margin-right:2px}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:left"] .avatar-holder{width:34px;height:34px;border-radius:10px;background:var(--primary-50);color:var(--primary);display:inline-grid;place-items:center}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:left"] .avatar-holder i{color:var(--primary)!important;font-size:15px;margin:0!important}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:left"] .avatar_info{font-size:17px!important;font-weight:800;color:var(--ink)!important;letter-spacing:-.01em}
/* utente a destra: pastiglia con icona tonda */
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:right"]>a{display:flex!important;align-items:center;gap:8px;height:56px;padding:0 10px!important;background:transparent!important}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:right"] .avatar-holder{width:34px;height:34px;border-radius:50%;background:var(--primary);color:#fff;display:inline-grid;place-items:center;overflow:hidden}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:right"] .avatar-holder img{width:34px;height:34px;object-fit:cover}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:right"] .avatar-holder i{color:#fff!important;font-size:15px!important;margin:0!important}
html body .top-bar .top-elements>li.piluku-dropdown[style*="float:right"] .avatar_info{font-weight:700;color:var(--ink)!important;font-size:13px}
html body .top-bar .top-elements .logo-holder{display:none!important}
html body .dropdown-menu.avatar_drop{font-size:13px!important;min-width:220px}
html body .dropdown-menu.avatar_drop i{width:18px;text-align:center;margin-right:6px;color:var(--primary)!important}
html body .logout_button{font-size:13px!important;color:var(--red)!important}
html body .logout_button i{color:var(--red)!important}

/* ---- 22.2 Home: riquadri orizzontali (icona a sinistra, nome, freccia) ---- */
html body .info-page>[class*=col-]{margin-bottom:14px}
html body .square-info{padding:0!important;height:auto!important;min-height:0!important;transition:border-color .12s,box-shadow .12s,transform .12s}
html body .square-info>a{display:flex!important;align-items:center;gap:14px;padding:16px 18px!important;text-align:left;color:var(--ink)!important;text-decoration:none!important}
html body .square-info h3{order:2;flex:1;margin:0!important;font-size:15px!important;font-weight:800!important;color:var(--ink)!important}
html body .square-info .square-icon{order:1;width:46px;height:46px!important;min-width:46px;max-height:46px;padding:0!important;margin:0!important;border-radius:12px;display:grid!important;place-items:center;background:var(--primary-50)!important}
html body .square-info .square-icon i{font-size:21px!important;color:var(--primary)!important;margin:0!important;line-height:1!important}
html body .square-info p{order:3;display:block!important;margin:0!important;background:none!important;font-size:0!important;color:var(--n-400)!important;padding:0!important}
html body .square-info p i{font-size:22px!important;color:var(--n-400)!important}
html body .square-info:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(16,24,40,.10)}
html body .square-info:hover p i{color:var(--primary)!important}

/* ---- 22.3 Testate di Archivio / Lavori / Magazzino / Articoli / Trace:
        titolo a sinistra, Filtri-Ordinamento accanto, comandi a destra ---- */
html body .pannelloTestatPrincipale{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px!important;width:100%}
html body .pannelloTestatPrincipale>[class*=col-]{float:none;width:auto;padding:0!important}
html body .pannelloTestatPrincipale>.col-md-2:first-child{flex:0 0 auto;min-width:150px}
html body .pannelloTestatPrincipale>.panelRicerca:not([style*="margin-top"]){flex:1 1 600px;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px}
html body .pannelloTestatPrincipale>.panelRicerca:not([style*="margin-top"])>[class*=col-]{float:none;width:auto;padding:0!important;display:flex;align-items:center;gap:6px}
html body .pannelloTestatPrincipale>.panelRicerca:not([style*="margin-top"])>.col-md-8,
html body .pannelloTestatPrincipale>.panelRicerca:not([style*="margin-top"])>[class*=col-]:last-child:has(.btn){margin-left:auto;justify-content:flex-end;flex-wrap:wrap}
html body .pannelloTestatPrincipale>.panelRicerca .btn{margin:0!important;height:34px;line-height:32px;padding-top:0;padding-bottom:0}
html body .pannelloTestatPrincipale>.panelRicerca span.clickGestioneFO,html body .pannelloTestatPrincipale>.panelRicerca span.clickGestioneFO2{width:auto!important;min-width:44px;white-space:nowrap}
/* la zona dei filtri sotto la testata: riquadro chiaro come la barra della lista */
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]{flex:0 0 100%;background:var(--n-50);border:1px solid var(--line);border-radius:10px;padding:12px 12px 0!important;margin-top:4px!important}
html body .classeFiltriContent,html body .classeOrdinamentoContent{margin-bottom:0!important}
html body .classeFiltriContent>[class*=col-],html body .classeOrdinamentoContent>[class*=col-]{padding-right:10px!important}

/* ---- 22.4 Pulsante principale (Registra / Salva) a destra, non a tutta larghezza (da 900 px) ---- */
@media (min-width:900px){
  html body form .btn.btn-block,html body .modal .btn.btn-block,html body .tab-pane .btn.btn-block,html body .panel-body>.btn.btn-block{width:-moz-fit-content!important;width:fit-content!important;min-width:180px;margin-left:auto!important;margin-right:0!important;height:40px;line-height:38px;padding:0 22px}
  html body form:has(>.input-group.form-group~.input-group.form-group~.input-group.form-group)>.btn.btn-block,
  html body form:has(>.col-md-12>.input-group.form-group)>.btn.btn-block{justify-self:end;grid-column:1/-1}
  html body .modal .btn.btn-block+.btn.btn-block{margin-top:8px}
}
/* "Salva/Registra" con un'icona di dischetto davanti (solo grafica) */
html body button.btn.btn-block[type=submit]::before{content:"";display:inline-block;vertical-align:-3px;width:16px;height:16px;margin-right:8px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---- 22.5 Pulsanti secondari: contorno bianco come nello stile unico (colore solo per il significato) ---- */
html body .panel-title .btn-warning,html body .panelRicerca .btn-warning{background:#fff!important;border-color:var(--line-strong)!important;color:var(--ink-2)!important}
html body .panel-title .btn-warning:hover,html body .panelRicerca .btn-warning:hover{background:var(--n-100)!important}
html body .panel-title .btn-warning i,html body .panelRicerca .btn-warning i{color:var(--orange-500)!important}
html body .btn-default i.fa-plus,html body .btn-default i.fa-plus-square{color:var(--green)}
html body .btn-default i.fa-minus-square{color:var(--orange-500)}

/* ---- 22.6 Barra "Totale / pagine / Visualizza" come piede della lista ---- */
html body .row.height1{font-size:12px;color:var(--muted)!important;min-height:44px}
html body .row.height1 .totaleElementi{font-size:13px}

/* ---- 22.7 Sezioni interne delle schede ("Dati Lavoro", "Dati Articolo"...) ---- */
html body .panel .panel{box-shadow:none;border-color:var(--line)}
html body .panel .panel>.panel-heading{background:var(--n-50)!important;padding:10px 14px;min-height:0}
html body .panel .panel>.panel-heading .panel-title,html body .panel .panel>.panel-heading h4{font-size:13px!important}

/* ---- 22.8 Telefono: pulsanti principali di nuovo a tutta larghezza ---- */
@media (max-width:899px){
  html body .pannelloTestatPrincipale>.panelRicerca:not([style*="margin-top"])>[class*=col-]:last-child{margin-left:0}
  html body .square-info>a{padding:12px 14px!important}
}

/* barra in alto: altezza fissa, nessun blocco che sporge */
html body .top-bar,html body .top-bar .navbar,html body nav.top-bar{min-height:56px;height:56px}
html body .top-bar .top-elements>li,html body .top-bar .top-elements>li>a{background:transparent!important}
html body .top-bar .top-elements>li:first-child>a i.fa-home{line-height:56px}
/* foto utente mancante: niente immagine rotta, al suo posto l'icona utente */
html body .top-bar .avatar-holder{background:var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/18px no-repeat}
html body .top-bar li.piluku-dropdown[style*="float:left"] .avatar-holder{background-image:none}
html body .top-bar .avatar-holder img[src$="/"],html body .top-bar .avatar-holder img[src=""],html body .top-bar .avatar-holder img:not([src]){visibility:hidden}
html body .square-info{min-height:0!important}
html body .square-info>a{min-height:78px}
html body .info-page .square-info .square-icon{min-height:46px!important;height:46px!important}
html body .info-page .square-info>a{min-height:0!important;height:auto!important}
html body .top-bar .navbar-nav li.piluku-dropdown .avatar-holder{background:var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/18px no-repeat!important}
html body .top-bar .navbar-nav li.piluku-dropdown[style*="float:left"] .avatar-holder{background:var(--primary-50)!important}

/* ==========================================================================
   23. LAVORI: ordine / lavoro / fasi ben distinti, tendine animate, testo leggibile
   ========================================================================== */

/* ---- 23.1 Testo grigio più scuro (contrasto migliore su bianco) ---- */
:root{--muted:#475569;--n-400:#7b8aa0}
html body .form-control::placeholder{color:#8593a8}
html body .select2-selection__placeholder{color:#8593a8!important}
html body .etichetta h4 span:first-child,html body .classeOrdine .etichetta span:first-child{color:#475569!important}

/* ---- 23.2 Tendine: si aprono scendendo (animazione solo grafica) ---- */
@keyframes su-tendina{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
html body .classePannelloOrdineContent,
html body .classePannelloLavoro>.panel-body,
html body .classePannelloFase,
html body .classeFiltriContent,html body .classeOrdinamentoContent,html body .classefiltriAggiuntivi,
html body .classePannello{animation:su-tendina .24s ease-out}
/* la freccia gira quando la parte è chiusa */
html body .panel-minimize i,html body .panel-minimize2 i{transition:transform .2s ease;display:inline-block}
html body .classePannelloOrdine:has(.classePannelloOrdineContent[style*="none"]) .panel-minimize2 i{transform:rotate(-90deg)}
html body .classePannelloLavoro:not(:has(>.panel-body[style*="block"])) .panel-minimize i{transform:rotate(-90deg)}


/* ---- 23.3 ORDINE (livello 1): barra blu a sinistra, etichetta scura ---- */
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)){border:1px solid var(--line)!important;border-left:4px solid var(--primary)!important;border-radius:12px!important;box-shadow:var(--shadow);margin-bottom:16px!important;overflow:hidden}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio))>.row{margin:0;background:#fff}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)) .classeOrdineTitolo{background:#fff!important;border-bottom:0!important;padding:12px 16px 0!important}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)) .classeOrdineTitolo,
html body .classeLavoroTitolo,html body .classeTitoloFase{font-size:0!important}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)) .classeOrdineTitolo::before{content:"ORDINE";display:inline-block;font-size:11px;font-weight:800;letter-spacing:.8px;color:#fff;background:var(--navy);border-radius:6px;padding:3px 9px}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)) .classeOrdine{padding:8px 16px 12px!important}
html body .classePannelloOrdine:not(:has(.pulsantiArchivio)) .classeOrdine strong{font-size:14px}

/* ---- 23.4 LAVORO (livello 2): rientrato, linea azzurra, etichetta azzurra ---- */
html body .classePannelloOrdineContent{background:var(--n-50);border-top:1px solid var(--line);padding:12px 14px 14px!important}
html body .classePannelloOrdineContent>.classeLavoroTitolo{background:transparent!important;border:0!important;padding:0 0 6px!important}
html body .classeLavoroTitolo::before{content:"LAVORO";display:inline-block;font-size:11px;font-weight:800;letter-spacing:.8px;color:var(--primary);background:var(--primary-50);border:1px solid var(--blue-line);border-radius:6px;padding:2px 9px}
html body .classePannelloOrdineContent>div:not(.classeLavoroTitolo){background:#fff;border:1px solid var(--line);border-left:3px solid var(--blue-line);border-radius:10px;margin:0 0 10px!important;overflow:hidden}
html body .classeLavoro1{padding:10px 14px 4px!important}
html body .classeLavoro1 h4,html body .classeLavoro1 .titolo1{font-size:13px!important;color:var(--ink)!important;line-height:1.5}
html body .classeDescrizioneLavoroTitolo{font-weight:700!important}
html body .classePannelloLavoro>.panel-heading{background:#fff!important;border-top:1px solid var(--line)!important;border-bottom:0!important;padding:8px 12px!important}
html body .classePannelloLavoro>.panel-heading .panel-title.bg-primary{background:transparent!important;color:var(--ink)!important;text-transform:none;letter-spacing:0;padding:0!important;margin:0}

/* ---- 23.5 FASI (livello 3): ancora rientrate, una riga bianca per fase, tipo indicato da una linea ---- */
html body .classePannelloFase{margin:0 12px 12px 26px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;padding:0!important}
html body .classePannelloFaseInner{background:#fff!important}
html body .classeTitoloFase{background:#fff!important;border-bottom:1px solid var(--line)!important;padding:8px 12px!important;margin:0!important}
html body .classeTitoloFase::before{content:"FASI";display:inline-block;font-size:11px;font-weight:800;letter-spacing:.8px;color:var(--ink-2);background:var(--n-100);border:1px solid var(--line-strong);border-radius:6px;padding:2px 9px}
html body .classeDivFaseInterno{background:#fff!important;border-bottom:1px solid var(--line)!important;padding:10px 12px 10px 16px!important;margin:0!important;position:relative}
html body .classeDivFaseInterno:last-child{border-bottom:0!important}
html body .classeDivFaseInterno:hover{background:var(--n-50)!important}
html body .classeDivFaseInterno:has(.classeFaseInternoLav){box-shadow:inset 3px 0 0 var(--primary)}
html body .classeDivFaseInterno:has(.classeFaseEsternoLav){box-shadow:inset 3px 0 0 var(--orange-500)}
/* via gli sfondi colorati dietro al testo */
html body .classeFaseInternoLav,html body .classeFaseEsternoLav,html body .classeFaseInterno,html body .classeFaseEsterno,
html body .classeDivFaseInterno .classNoPaddingLeft{background:transparent!important;color:var(--ink)!important}
html body .classeDivFaseInterno div{color:var(--ink)}
html body .classeDivFaseInterno strong,html body .classeDivFaseInterno b{color:var(--ink)!important;font-weight:700}
/* numero della fase: pallino */
html body .spanNumeroFase{position:absolute!important;left:-9px!important;top:12px!important;min-width:20px;height:20px;line-height:20px;text-align:center;padding:0 5px;border-radius:10px;font-size:11px;font-weight:800;background:var(--navy)!important;color:#fff!important}
html body .classeDivFaseInterno:has(.classeFaseEsternoLav) .spanNumeroFase{background:var(--orange-500)!important}
html body .classeDivFaseInterno:has(.classeFaseInternoLav) .spanNumeroFase{background:var(--primary)!important}
html body .classeLavoriFaseOverflow,html body .classeLavoriFaseOverflow2{background:#fff}
html body .classePannelloFase:not(:has(.classeDivFaseInterno)) .classePannelloFaseInner::after{content:"Nessuna fase inserita";display:block;padding:10px 12px;color:var(--muted);font-size:12px}
/* contrasto minimo 4.5:1 anche per testi secondari */
html body .form-control::placeholder{color:#64748b}
html body .select2-selection__placeholder{color:#64748b!important}
html body .select2-selection__clear{color:var(--muted)!important}
html body .pagination>.disabled>a,html body .pagination>.disabled>span{color:var(--muted)!important}
html body .classeDivFaseInterno:has(.classeFaseEsternoLav) .spanNumeroFase{background:var(--orange)!important}

/* ==========================================================================
   24. ANIMAZIONI (solo grafica: niente cambia nel funzionamento)
   ========================================================================== */
@keyframes su-entra{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes su-dissolvi{from{opacity:0}to{opacity:1}}
@keyframes su-cala{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@keyframes su-destra{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes su-gira{to{transform:rotate(360deg)}}

/* ---- 24.1 Pagina: il contenuto entra con un leggero movimento dal basso ---- */
html body .main-content>.row{animation:su-entra .35s ease-out backwards}
html body .info-page>[class*=col-]{animation:su-entra .35s ease-out backwards}
html body .info-page>[class*=col-]:nth-child(2){animation-delay:.04s}
html body .info-page>[class*=col-]:nth-child(3){animation-delay:.08s}
html body .info-page>[class*=col-]:nth-child(4){animation-delay:.12s}
html body .info-page>[class*=col-]:nth-child(5){animation-delay:.16s}
html body .info-page>[class*=col-]:nth-child(n+6){animation-delay:.2s}

/* ---- 24.2 Pulsanti, campi, link: passaggi morbidi e "pressione" ---- */
html body .btn,html body .bottoneTabella,html body .form-control,html body .select2-selection,
html body .pagination>li>a,html body .nav>li>a,html body .left-bar .menu-parent li a,html body .square-info,
html body .classePannelloOrdine,html body .classeDivFaseInterno,html body .table>tbody>tr>td{transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .12s ease}
html body .btn:active:not(:disabled),html body .bottoneTabella:active{transform:scale(.96)}
html body .btn-primary:hover,html body .btn-success:hover,html body .btn-danger:hover{box-shadow:0 4px 12px rgba(37,99,235,.22)!important}
html body .btn-danger:hover{box-shadow:0 4px 12px rgba(220,38,38,.22)!important}

/* ---- 24.3 Finestre (modal): entrano dall'alto e si ingrandiscono appena ---- */
html body .modal.fade .modal-dialog{transform:translateY(-14px) scale(.98)!important;opacity:0;transition:transform .22s ease-out,opacity .22s ease-out!important}
html body .modal.fade.in .modal-dialog{transform:none!important;opacity:1}
html body .modal-backdrop.fade{transition:opacity .2s ease}
html body .sweet-alert{animation:su-cala .2s ease-out}

/* ---- 24.4 Menu a tendina, tendine di ricerca, linguette ---- */
html body .open>.dropdown-menu,html body .dropdown.open .dropdown-menu{animation:su-cala .16s ease-out}
html body .select2-dropdown{animation:su-cala .14s ease-out}
html body .tab-content>.tab-pane.active{animation:su-dissolvi .2s ease-out}
html body .left-bar .menu-parent>li.submenu>ul{animation:su-cala .18s ease-out}

/* ---- 24.5 Notifiche (in alto a destra): entrano scorrendo ---- */
html body .gritter-item-wrapper{animation:su-destra .25s ease-out}

/* ---- 24.6 Caricamento della pagina: cerchio che gira invece della scritta ---- */
html body .piluku-preloader .loader{font-size:0!important;width:38px;height:38px;border-radius:50%;border:3px solid var(--blue-line);border-top-color:var(--primary);animation:su-gira .8s linear infinite;margin:40vh auto 0;background:none!important;box-shadow:none!important;text-indent:0}
html body .piluku-preloader .loader::before,html body .piluku-preloader .loader::after{display:none!important}
html body div.dataTables_wrapper div.dataTables_processing,html body .dataTables_processing{animation:su-dissolvi .2s ease-out}

/* ---- 24.7 Riga dell'elenco sotto il mouse: si vede bene quale si sta per aprire ---- */
html body .classeDivFaseInterno:hover,html body .table-hover>tbody>tr:hover>td{background:var(--primary-50)!important}



/* ---- 24.8 Ultimi ritocchi: pulsanti nelle testate, zona di caricamento file, liste dei file caricati ---- */
html body .btn.btn-primary,html body .panel-heading .btn.btn-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
html body .btn.btn-primary:hover,html body .panel-heading .btn.btn-primary:hover{background:var(--primary-700)!important;border-color:var(--primary-700)!important}
html body .btn.btn-danger,html body .panel-heading .btn.btn-danger{background:#fff!important;border-color:var(--red-line)!important;color:var(--red)!important}
html body .btn.btn-danger:hover,html body .panel-heading .btn.btn-danger:hover{background:var(--red-bg)!important}
html body .btn.btn-danger .badge{background:var(--red-bg)!important;color:var(--red)!important}
html body .panel-heading .btn,html body .panel-title .btn{border-radius:9px!important}
html body .rigaCustom .bg-primary,html body .row.bg-primary{background:var(--navy)!important;color:var(--blue-bg)!important;border-radius:10px 10px 0 0;font-size:11px!important;font-weight:800;text-transform:uppercase;letter-spacing:.3px;padding:10px 0;margin:0}
html body .row.bg-primary *{color:var(--blue-bg)!important}
html body .rigaCustom{border-bottom:1px solid var(--line);margin:0!important;padding:6px 0}
html body .rigaCustom:hover{background:var(--primary-50)}
html body .rigaCustom.selected{background:var(--primary-50)!important;box-shadow:inset 3px 0 0 var(--primary)}
/* zona "Trascina qui" */
html body #drop,html body .dropClass{border:2px dashed var(--line-strong)!important;border-radius:14px!important;background:var(--n-50)!important;color:var(--ink-2)!important;font-size:15px!important;font-weight:700;text-transform:none!important;padding:36px 16px!important;text-align:center;transition:border-color .15s,background-color .15s}
html body #drop:hover,html body #drop.in,html body #drop.hover,html body .dropClass:hover{border-color:var(--primary)!important;background:var(--primary-50)!important}
html body #drop::before{content:"";display:block;width:34px;height:34px;margin:0 auto 10px;background:var(--primary);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E") center/contain no-repeat}
html body #drop a{background:var(--primary)!important;color:#fff!important;border-radius:9px!important;padding:9px 18px!important;font-size:13px!important;font-weight:700!important;text-transform:none!important;display:inline-block;margin-top:12px;cursor:pointer;transition:background-color .15s}
html body #drop a:hover{background:var(--primary-700)!important}

/* ---- 24.9 Archivio programmi: testo più grande (richiesta) ---- */
html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4,
html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine strong{font-size:15px!important;line-height:1.35}
html body .classePannelloOrdine:has(.pulsantiArchivio) .etichetta h4 span:first-child{font-size:12px!important;margin-bottom:3px!important}
html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{min-height:60px!important;padding-top:10px!important;padding-bottom:10px!important}
html body .pulsantiArchivio .bottoneTabella{width:36px!important;height:36px!important;line-height:34px!important}
html body .pulsantiArchivio .bottoneTabella i{font-size:17px!important}
html body .classeContentArchivi .panel-title,html body .classeContentArchivi h3.panel-title{font-size:18px!important}
html body .classeContentArchivi .input-group-addon:first-child{font-size:12px!important}
html body .classeContentArchivi .form-control,html body .classeContentArchivi .select2-selection__rendered{font-size:14px!important}
html body .classeContentArchivi .row.height1,html body .classeContentArchivi .row.height1 .totaleElementi{font-size:14px!important}
html body .classeContentArchivi .panelRicerca span.clickGestioneFO,html body .classeContentArchivi .pannelloTestatPrincipale .btn{font-size:14px!important}
/* anteprima del programma: carattere un po' più grande */
html body .classeTextArea,html body textarea.classeTextArea,html body .divAnteprima{font-size:14px!important}
html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4{white-space:normal!important;overflow:visible!important}
html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4 span:last-child strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
html body .classeContentArchivi .input-group:has(>.input-group-addon:first-child)>.input-group-addon:first-child{font-size:12px!important}

/* ---- 24.10 Archivio programmi: colonne proporzionate, niente spazi vuoti ---- */
@media (min-width:900px){
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,2.6fr) minmax(0,1.3fr);column-gap:18px;align-items:center}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{width:auto!important;padding:0!important;float:none!important;min-width:0}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:empty{display:none}
  html body .classePannelloOrdine:has(.pulsantiArchivio)>.row{grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px}
  html body .classeContentArchivi{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  html body .classeContentArchivi>.panel{margin-bottom:0;min-height:calc(100vh - 92px)}
  html body .classeContentArchivi .panel-body{padding:12px 14px!important}
  html body .classeContentArchivi .row.height1{margin-left:0!important;margin-right:0!important}
}

/* ---- 24.11 Archivio programmi: righe tutte della stessa altezza, intestazioni in una barra sopra l'elenco ---- */
@media (min-width:900px){
  html body .classePannelloOrdine:has(.pulsantiArchivio){position:relative;overflow:visible!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio)>.row,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4>span{position:static!important}
  /* stessa altezza per ogni riga */
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{height:64px!important;min-height:64px!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4 span:last-child strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:not(:nth-child(4)) h4 span:last-child strong{-webkit-line-clamp:1}
  /* prima riga: le etichette salgono nella barra scura d'intestazione */
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio){margin-top:44px!important;border-radius:0!important}
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio)::before{content:"";position:absolute;left:-1px;right:-1px;top:-34px;height:34px;background:var(--navy);border-radius:10px 10px 0 0}
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio) .etichetta h4 span:first-child{position:absolute!important;top:-24px;z-index:1;color:var(--blue-bg)!important;font-size:11px!important;font-weight:800;letter-spacing:.4px;margin:0!important;white-space:nowrap}
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio) .etichetta h4{display:block}
  html body .classePannelloOrdine:has(.pulsantiArchivio):not(:has(+.classePannelloOrdine)){border-radius:0 0 10px 10px!important}
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio):not(:has(+.classePannelloOrdine)){border-radius:0 0 10px 10px!important}
}
@media (min-width:900px){
  /* testo su UNA riga, con "…" se non ci sta; righe tutte alte uguali */
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{height:52px!important;min-height:52px!important}
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine h4 span:last-child strong,
  html body .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(n) h4 span:last-child strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important}
  /* barra scura d'intestazione (la .row di Bootstrap usa già ::before: va forzata a blocco) */
  html body .row.height1+.classePannelloOrdine:has(.pulsantiArchivio)::before{display:block!important;width:auto!important;z-index:0}
}

/* ---- 24.12 Zona filtri: griglia regolare (campi uguali, spazi uguali) ----
   Nota: non si usa !important su display, così "Filtri"/"Ordinamento" continuano ad aprire e chiudere la zona. */
html body .classeFiltriContent,html body .classeOrdinamentoContent{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;float:none!important;width:100%!important;padding:0 0 12px!important;margin:0!important}
html body .classeFiltriContent>[class*=col-],html body .classeOrdinamentoContent>[class*=col-],
html body .classeFiltriContent>div,html body .classeOrdinamentoContent>div{float:none!important;width:auto!important;padding:0!important;margin:0!important;min-width:0}
html body .classeFiltriContent .input-group,html body .classeOrdinamentoContent .input-group{margin:0!important;width:100%!important}
html body .classeFiltriContent .input-group.form-group,html body .classeOrdinamentoContent .input-group.form-group{margin-bottom:0!important}
/* la ricerca libera ("Cerca" / "Ricerca nei file") più larga: occupa due colonne */
@media (min-width:900px){
  html body .classeFiltriContent{grid-template-columns:repeat(4,minmax(0,1fr))}
  html body .classeFiltriContent>div:has(input[data="ricercaTutto"]){grid-column:span 2}
}
/* riquadro dei filtri: un po' d'aria ai lati */
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]{padding:14px 16px 2px!important}
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]>[class*=col-]{float:none!important;width:100%!important;padding:0!important}

/* ==========================================================================
   25. ARCHIVIO: larghezza "intelligente" delle colonne, colonne vuote nascoste,
       meno spazio orizzontale. FILTRI: celle tutte uguali, tendine compatte.
   ========================================================================== */
@media (min-width:900px){
  /* l'elenco diventa un'unica griglia: ogni colonna è larga quanto il suo testo più lungo,
     la Descrizione prende lo spazio che resta; le righe restano allineate (subgrid) */
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio){display:grid!important;grid-template-columns:fit-content(260px) fit-content(280px) fit-content(200px) minmax(140px,1fr) fit-content(220px) auto;float:none!important;width:100%!important;padding:0!important}
  html body .contentArchivio>.row.height1{grid-column:1/-1;margin-left:0!important;margin-right:0!important}
  html body .contentArchivio>*:not(.classePannelloOrdine):not(.row.height1){grid-column:1/-1}
  html body .contentArchivio>.classePannelloOrdine:has(.pulsantiArchivio){grid-column:1/-1;display:grid!important;grid-template-columns:subgrid}
  html body .contentArchivio>.classePannelloOrdine:has(.pulsantiArchivio)>.row{grid-column:1/-1;display:grid!important;grid-template-columns:subgrid!important;column-gap:0!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{grid-column:1/6;display:grid!important;grid-template-columns:subgrid!important;column-gap:0!important;padding:0!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{padding:0 18px 0 12px!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(1){grid-column:1}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(2){grid-column:2}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(3){grid-column:3}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(4){grid-column:4}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(5){grid-column:5}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .pulsantiArchivio{grid-column:6!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classePannello,
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .panel-body{grid-column:1/-1!important}
  /* colonne vuote in TUTTE le righe (es. dopo un filtro): spariscono, intestazione compresa */
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(1) h4>span:last-child>strong:not(:empty))) .classeOrdine>.etichetta:nth-child(1),
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(2) h4>span:last-child>strong:not(:empty))) .classeOrdine>.etichetta:nth-child(2),
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(3) h4>span:last-child>strong:not(:empty))) .classeOrdine>.etichetta:nth-child(3),
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))) .classeOrdine>.etichetta:nth-child(4),
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))) .classeOrdine>.etichetta:nth-child(5){display:none!important}
  /* se la Descrizione è nascosta, lo spazio libero va all'ultima colonna di dati visibile */
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))){grid-template-columns:fit-content(260px) fit-content(280px) fit-content(200px) 0 minmax(120px,1fr) auto}
}

/* ---- Filtri: celle tutte della stessa dimensione ---- */
html body .classeFiltriContent,html body .classeOrdinamentoContent{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important}
html body .classeFiltriContent>div,html body .classeOrdinamentoContent>div{grid-column:auto!important}
html body .classeFiltriContent .form-control,html body .classeOrdinamentoContent .form-control,
html body .classeFiltriContent .select2-container .selection .select2-selection.select2-selection.select2-selection,
html body .classeOrdinamentoContent .select2-container .selection .select2-selection.select2-selection.select2-selection{height:36px!important;min-height:36px!important;max-height:36px!important}
html body .classeFiltriContent .select2-container,html body .classeOrdinamentoContent .select2-container{height:36px!important}
html body .classeFiltriContent .select2-selection__rendered,html body .classeOrdinamentoContent .select2-selection__rendered{line-height:34px!important;font-size:13px!important}
html body .classeFiltriContent .select2-selection__arrow,html body .classeOrdinamentoContent .select2-selection__arrow{top:5px!important}
html body .classeFiltriContent .input-group-addon:first-child,html body .classeOrdinamentoContent .input-group-addon:first-child{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
/* tendine (lista che si apre): righe compatte, altezza massima, larga quanto serve */
html body .select2-container--open .select2-dropdown{min-width:180px}
html body .select2-results__option{padding:6px 10px!important;font-size:13px;line-height:1.3}
html body .select2-results>.select2-results__options{max-height:260px!important}
html body .select2-search--dropdown{padding:6px!important}
html body .select2-search--dropdown .select2-search__field{height:30px;border:1px solid var(--line-strong)!important;border-radius:7px!important;padding:0 8px}
html body .classeFiltriContent,html body .classeOrdinamentoContent{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}

/* ==========================================================================
   26. FILTRI + ORDINAMENTO IN UN UNICO RIQUADRO (sempre aperto)
   Tolti i pulsanti "Filtri", "Ordinamento" e la lente dei filtri aggiuntivi:
   filtri e ordinamento sono sempre visibili, uno sotto l'altro.
   ========================================================================== */
html body .panelRicerca>div:has(>span.clickGestioneFO[data=filtri]),
html body .panelRicerca>div:has(>span.clickGestioneFO[data=ordinamento]),
html body .panelRicerca span.clickGestioneFO[data=filtri],
html body .panelRicerca span.clickGestioneFO[data=ordinamento],
html body .panelRicerca span.clickGestioneFO2.filtriAggiuntivi{display:none!important}
/* sempre aperti (anche se il programma prova a chiuderli) */
html body .classeFiltriContent,html body .classeOrdinamentoContent{display:grid!important}
html body .classeFiltriContent>.classefiltriAggiuntivi{display:block!important}
/* titoletti dentro al riquadro */
html body .classeFiltriContent::before,html body .classeOrdinamentoContent::before{grid-column:1/-1;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--primary);display:flex;align-items:center;gap:6px;margin-bottom:-2px}
html body .classeFiltriContent::before{content:"Filtra"}
html body .classeOrdinamentoContent::before{content:"Ordina per"}
html body .classeOrdinamentoContent{border-top:1px solid var(--line);padding-top:12px!important;margin-top:2px!important}
/* l'ordinamento ha 2 campi: non serve tutta la riga */
html body .classeOrdinamentoContent{grid-template-columns:repeat(auto-fill,minmax(220px,260px))!important}
/* titoletti fuori dalla griglia, così i campi occupano tutta la riga */
html body .classeFiltriContent,html body .classeOrdinamentoContent{position:relative;padding-top:24px!important}
html body .classeOrdinamentoContent{padding-top:36px!important}
html body .classeFiltriContent::before,html body .classeOrdinamentoContent::before{position:absolute;left:0;top:0;margin:0}
html body .classeOrdinamentoContent::before{top:12px;content:"Ordinamento"}
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]>.classeFiltriContent{padding:24px 0 12px!important}
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]>.classeOrdinamentoContent{padding:36px 0 12px!important}

/* ==========================================================================
   27. TENDINE (select2): posizione corretta con lo zoom della pagina (90%, vedi sezione 31)
   La lista si apre in fondo al <body>, che è ridotto all'80%: la libreria calcola
   la posizione senza zoom, quindi la lista finiva spostata. Qui la riportiamo a scala 1.
   ========================================================================== */
@media screen and (min-width:800px){
  html body>.select2-container.select2-container--open{zoom:1.1112}
  html body>.select2-container.select2-container--open>.select2-dropdown{zoom:.9}
}


/* ==========================================================================
   28. COLORI CHE INDICANO UNO STATO (come prima, ben visibili)
   ========================================================================== */
/* graffetta verde piena = ci sono allegati (archivio, magazzino, lavori, fasi) */
html body .btn.presenzaAllegato,html body .bottoneTabella.presenzaAllegato,html body .btn-default.presenzaAllegato,
html body .pulsantiArchivio .bottoneTabella.presenzaAllegato,html body .pulsantiGenerico .bottoneTabella.presenzaAllegato{background:var(--green-500)!important;border-color:var(--green-500)!important;color:#fff!important}
html body .btn.presenzaAllegato i,html body .bottoneTabella.presenzaAllegato i{color:#fff!important}
html body .btn.presenzaAllegato:hover,html body .bottoneTabella.presenzaAllegato:hover{background:var(--green)!important;border-color:var(--green)!important}
/* pulsanti arancioni / verdi / azzurri nelle righe: pieni come prima */
html body .bottoneTabella.btn-warning,html body .btn-warning.bottone{background:var(--orange-500)!important;border-color:var(--orange-500)!important;color:#fff!important}
html body .bottoneTabella.btn-warning i,html body .btn-warning.bottone i{color:#fff!important}
html body .bottoneTabella.btn-warning:hover,html body .btn-warning.bottone:hover{background:var(--orange)!important;border-color:var(--orange)!important}
html body .bottoneTabella.btn-success{background:var(--green-500)!important;border-color:var(--green-500)!important;color:#fff!important}
html body .bottoneTabella.btn-info{background:var(--blue-400)!important;border-color:var(--blue-400)!important;color:#fff!important}
html body .bottoneTabella.btn-success i,html body .bottoneTabella.btn-info i{color:#fff!important}

/* ==========================================================================
   29. PROCESSA I FILE CARICATI (archivio/caricamentoCustom_lista)
   Stato del file: verde = non presente (da inserire) · arancio = già presente (sostituisci)
   ========================================================================== */
html body .rigaCustom{background:#fff!important;border:1px solid var(--line)!important;border-radius:10px;margin:0 0 8px!important;padding:10px 12px 10px 16px!important;color:var(--ink)!important;position:relative;transition:box-shadow .15s,border-color .15s}
html body .rigaCustom:hover{border-color:var(--line-strong)!important;box-shadow:var(--shadow)}
html body .rigaCustom.rigaCustom_S{box-shadow:inset 4px 0 0 var(--green-500)}
html body .rigaCustom.rigaCustom_W{box-shadow:inset 4px 0 0 var(--orange-500);background:var(--orange-bg)!important}
html body .rigaCustom.rigaCustom_S:hover{box-shadow:inset 4px 0 0 var(--green-500),var(--shadow)}
html body .rigaCustom.rigaCustom_W:hover{box-shadow:inset 4px 0 0 var(--orange-500),var(--shadow)}
html body .rigaCustom.selected{border-color:var(--primary)!important;box-shadow:inset 4px 0 0 var(--primary),0 0 0 2px var(--blue-line)!important}
html body .rigaCustom div{padding-top:0!important}
html body .rigaCustom hr{border-top:1px solid var(--line)!important;margin:4px 0 8px}
html body .rigaCustom strong,html body .rigaCustom b{color:var(--ink)!important}
/* colonna "Stato": scritta come etichetta colorata */
html body .rigaCustom>div:last-child{font-size:13px;font-weight:700;line-height:1.5}
html body .rigaCustom.rigaCustom_S>div:last-child{color:var(--green)!important}
html body .rigaCustom.rigaCustom_W>div:last-child{color:var(--orange-700)!important}
html body .rigaCustom.rigaCustom_S>div:last-child::before,html body .rigaCustom.rigaCustom_W>div:last-child::before{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;border-radius:12px;padding:3px 10px;margin-bottom:6px}
html body .rigaCustom.rigaCustom_S>div:last-child::before{content:"● Nuovo";background:var(--green-bg);color:var(--green);border:1px solid var(--green-line)}
html body .rigaCustom.rigaCustom_W>div:last-child::before{content:"● Già presente";background:#fff;color:var(--orange);border:1px solid var(--orange-line)}
/* anteprima del file nella riga: compatta e leggibile */
html body .rigaCustom textarea{line-height:1.4!important;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;font-size:12px!important;background:var(--n-50)!important;border:1px solid var(--line)!important;border-radius:8px!important;min-height:0;height:96px!important;white-space:pre;resize:vertical}
html body .rigaCustom .bottoneTabella{width:36px!important;height:36px!important;line-height:34px;padding:0!important;margin:0 4px 4px 0!important}
html body .rigaCustom .bottoneTabella i{font-size:16px!important}
/* intestazione della lista (Azioni / Nome file / Anteprima / Stato) */
html body .panel-body>.row.bg-primary{margin:0 0 8px!important;border-radius:10px!important;padding:10px 4px!important}
html body .rigaCustom .clienteTitolo{border-top:0!important;padding-top:0!important;margin-top:0!important}
html body .rigaCustom h5{font-size:11px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)!important;margin:0 0 2px!important}
html body .rigaCustom h5+strong{display:block;margin-bottom:8px;font-size:13px}
html body .rigaCustom h5:has(+strong:empty)::after{content:" —";color:var(--n-400);font-weight:600}
html body .rigaCustom .BottoneSelectRow{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
html body .divAnteprima2{color:var(--ink)!important;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:1.45;background:var(--n-50);border:1px solid var(--line);border-radius:8px;padding:8px 10px;max-height:55vh;overflow:auto;flex:1 1 100%!important}
html body .input-group-addon input[type=checkbox]{width:14px;height:14px;margin:0 0 0 6px;vertical-align:-2px}

/* ---- 25.1 Archivio: colonne ADATTIVE (niente limiti fissi): ogni colonna arriva fino al suo
        testo più lungo; si taglia con "…" solo se la pagina è davvero troppo stretta ---- */
@media (min-width:900px){
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) minmax(70px,max-content) auto!important}
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) 0 minmax(70px,1fr) auto!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{min-width:0;overflow:hidden}
}
html body .signin_wrapper .classBtnLogin.btn-block{width:100%!important;margin-left:0!important}

/* ---- 25.2 Menu laterale ristretto (schermi tra ~800 e 1280 px): icona e nome piccolo sotto, senza andare a capo ---- */
@media (min-width:768px) and (max-width:1279.98px){
  html body .left-bar .menu-parent{padding:52px 6px 10px}
  html body .left-bar .menu-parent>li>a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 2px!important;text-align:center;line-height:1.2}
  html body .left-bar .menu-parent>li>a>i:first-child{margin:0!important;font-size:16px}
  html body .left-bar .menu-parent>li>a span.hidden-minibar,html body .left-bar .menu-parent>li>a span.text{display:block!important;max-width:100%;font-size:10px!important;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
  html body .left-bar .menu-parent>li>a i.chevron{display:none!important}
}
@media (min-width:768px) and (max-width:1279.98px){
  html body .left-bar .menu-parent>li>a span.hidden-minibar,html body .left-bar .menu-parent>li>a span.text{display:none!important}
  html body .left-bar .menu-parent>li>a{padding:11px 2px!important}
  html body .left-bar .menu-parent>li>a>i:first-child{font-size:18px}
}

/* ==========================================================================
   30. ARCHIVIO: filtri ridotti (Cerca, Ricerca nei file, Gruppo macchina, Cliente)
       e ordinamento con le frecce sulle intestazioni delle colonne
   ========================================================================== */
html body .classeContentArchivi .classeOrdinamentoContent,
html body .classeContentArchivi .classeFiltriContent>div:has(input[data="codice"]),
html body .classeContentArchivi .classeFiltriContent>div:has(input[data="descrizione"]),
html body .classeContentArchivi .classeFiltriContent>div:has(input[data="articolo"]){display:none!important}
@media (min-width:900px){
  html body .classeContentArchivi .classeFiltriContent{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)!important}
}
html body .classeContentArchivi .classeFiltriContent input[data="ricercaTutto"]{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 10px center;padding-left:32px}
html body .classeContentArchivi .classeFiltriContent input[data="ricercaFile"]{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5z'/%3E%3Cpath d='M9 1v4h4M6 9h4M6 12h4'/%3E%3C/svg%3E") no-repeat 10px center;padding-left:32px}
/* intestazioni cliccabili con la freccia */
@media (min-width:900px){
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:not(:nth-child(n+6)) h4>span:first-child{cursor:pointer;user-select:none;pointer-events:auto}
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta h4>span:first-child::after{content:"↕";margin-left:5px;opacity:.45;font-size:11px}
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta h4>span:first-child:hover{color:#fff!important}
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta h4>span:first-child:hover::after{opacity:.9}
  /* colonna attiva: freccia piena e testo bianco */
  html body .contentArchivio[data-ord="1"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(1) h4>span:first-child,
  html body .contentArchivio[data-ord="2"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(2) h4>span:first-child,
  html body .contentArchivio[data-ord="3"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(3) h4>span:first-child,
  html body .contentArchivio[data-ord="4"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(4) h4>span:first-child,
  html body .contentArchivio[data-ord="6"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(5) h4>span:first-child{color:#fff!important}
  html body .contentArchivio[data-ord="1"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(1) h4>span:first-child::after,
  html body .contentArchivio[data-ord="2"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(2) h4>span:first-child::after,
  html body .contentArchivio[data-ord="3"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(3) h4>span:first-child::after,
  html body .contentArchivio[data-ord="4"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(4) h4>span:first-child::after,
  html body .contentArchivio[data-ord="6"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(5) h4>span:first-child::after{content:"▲";opacity:1;color:var(--blue-400)}
  html body .contentArchivio[data-ord="1"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(1) h4>span:first-child::after,
  html body .contentArchivio[data-ord="2"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(2) h4>span:first-child::after,
  html body .contentArchivio[data-ord="3"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(3) h4>span:first-child::after,
  html body .contentArchivio[data-ord="4"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(4) h4>span:first-child::after,
  html body .contentArchivio[data-ord="6"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(5) h4>span:first-child::after{content:"▼";opacity:1;color:var(--blue-400)}
}
@media (min-width:900px){
  /* intestazioni larghe solo quanto il loro testo (prima coprivano le colonne accanto) */
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta h4>span:first-child{width:max-content!important;max-width:none;display:inline-block!important;padding:4px 2px}
}
@media (min-width:900px){
  /* ogni colonna almeno larga quanto la sua intestazione con la freccia */
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta{min-width:118px}
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(2){min-width:96px}
}


/* ==========================================================================
   31. AGGIORNAMENTO 10 — dimensioni, icone, selezione, pagine in fondo
   ========================================================================== */

/* 31.1 Scala della pagina come lo stile unico (0,9 invece di 0,8):
   tutto un po' più grande e leggibile, stesse proporzioni del riferimento. */
@media screen and (min-width:800px){
  html body{zoom:90%!important}
}

/* 31.2 Popup aperto: la pagina sotto resta ferma (prima scorreva anche senza motivo) */
html:has(body.modal-open),html:has(body.swal2-shown){overflow:hidden!important}
html body.modal-open{overflow:hidden!important}
html body .modal{overscroll-behavior:contain}

/* 31.3 Icone a linea dello stile unico (stesso disegno del riferimento) */
:root{--ico-edit:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20h9%22/%3E%3Cpath d=%22M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z%22/%3E%3C/svg%3E");--ico-trash:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h18%22/%3E%3Cpath d=%22M8 6V4h8v2%22/%3E%3Cpath d=%22M6 6l1 14h10l1-14%22/%3E%3Cpath d=%22M10 11v6M14 11v6%22/%3E%3C/svg%3E");--ico-download:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v12M7 10l5 5 5-5M5 21h14%22/%3E%3C/svg%3E");--ico-eye:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E");--ico-clip:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 11l-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7%22/%3E%3C/svg%3E");--ico-code:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpath d=%22M14 2v6h6%22/%3E%3Cpath d=%22M10 12l-2.5 3 2.5 3M14 12l2.5 3-2.5 3%22/%3E%3C/svg%3E");--ico-print:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9V2h12v7%22/%3E%3Crect x=%226%22 y=%2214%22 width=%2212%22 height=%228%22/%3E%3Cpath d=%22M6 18H3V9h18v9h-3%22/%3E%3C/svg%3E");--ico-inbox:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v10M8 9l4 4 4-4%22/%3E%3Cpath d=%22M3 14h5l1.5 3h5l1.5-3h5v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z%22/%3E%3C/svg%3E");--ico-swap:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 3v5h-5%22/%3E%3Cpath d=%22M3 12a9 9 0 0 1 15.4-6.4L21 8%22/%3E%3Cpath d=%22M3 21v-5h5%22/%3E%3Cpath d=%22M21 12a9 9 0 0 1-15.4 6.4L3 16%22/%3E%3C/svg%3E");--ico-plus:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14M5 12h14%22/%3E%3C/svg%3E");--ico-check:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5l4.5 4.5L19 7%22/%3E%3C/svg%3E");--ico-upload:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 16V4M7 9l5-5 5 5%22/%3E%3Cpath d=%22M5 20h14%22/%3E%3C/svg%3E");--ico-list:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 6h11M9 12h11M9 18h11%22/%3E%3Ccircle cx=%224.5%22 cy=%226%22 r=%221%22/%3E%3Ccircle cx=%224.5%22 cy=%2212%22 r=%221%22/%3E%3Ccircle cx=%224.5%22 cy=%2218%22 r=%221%22/%3E%3C/svg%3E");}

html body .btn i.ion-edit,
html body .btn i.fa-trash-o,html body .btn i.fa-trash,
html body .btn i.fa-download,
html body .btn i.fa-paperclip,
html body .btn i.fa-print,
html body .btn i.fa-exchange,
html body .btn i.fa-file-text,
html body .AnteprimaFile i,html body .Dettagli i,html body .btn i.fa-search-plus,
html body .InserisciFile i,
html body .bottoneTabella i.fa-plus,
html body .caricaScaricaDati i{
  display:inline-block;width:17px;height:17px;font-size:0!important;line-height:0!important;vertical-align:middle;position:relative;top:-1px
}
html body .btn i.ion-edit::before,
html body .btn i.fa-trash-o::before,html body .btn i.fa-trash::before,
html body .btn i.fa-download::before,
html body .btn i.fa-paperclip::before,
html body .btn i.fa-print::before,
html body .btn i.fa-exchange::before,
html body .btn i.fa-file-text::before,
html body .AnteprimaFile i::before,html body .Dettagli i::before,html body .btn i.fa-search-plus::before,
html body .InserisciFile i::before,
html body .bottoneTabella i.fa-plus::before,
html body .caricaScaricaDati i::before{
  content:""!important;display:block;width:100%;height:100%;background:currentColor;
  -webkit-mask:var(--su-ico) center/contain no-repeat;mask:var(--su-ico) center/contain no-repeat
}
html body .btn i.ion-edit{--su-ico:var(--ico-edit)}
html body .btn i.fa-trash-o,html body .btn i.fa-trash{--su-ico:var(--ico-trash)}
html body .btn i.fa-download{--su-ico:var(--ico-download)}
html body .btn i.fa-paperclip{--su-ico:var(--ico-clip)}
html body .btn i.fa-print{--su-ico:var(--ico-print)}
html body .btn i.fa-exchange,html body .SostituisciFile i{--su-ico:var(--ico-swap)}
html body .btn i.fa-file-text{--su-ico:var(--ico-code)}                      /* Modifica il programma (testo) */
html body .AnteprimaFile i,html body .Dettagli i,html body .btn i.fa-search-plus{--su-ico:var(--ico-eye)}  /* Apri / guarda */
html body .InserisciFile i{--su-ico:var(--ico-inbox)}                         /* Metti nell'archivio */
html body .bottoneTabella i.fa-plus{--su-ico:var(--ico-plus)}
html body .caricaScaricaDati i.fa-plus-square{--su-ico:var(--ico-upload)}
html body .caricaScaricaDati i.fa-minus-square{--su-ico:var(--ico-download)}

/* colori con significato fisso (stile unico): blu = apri/guarda, rosso = elimina,
   verde = inserisci/presente, arancio = sostituisci, neutro = modifica/scarica */
html body .bottoneTabella.AnteprimaFile.btn-default,html body .bottoneTabella.Dettagli.btn-default{background:var(--blue-bg)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .bottoneTabella.AnteprimaFile.btn-default:hover,html body .bottoneTabella.Dettagli.btn-default:hover{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
html body .rigaCustom .bottoneTabella.ModificaCustom{background:#fff!important;color:var(--n-600)!important;border-color:var(--line-strong)!important}
html body .rigaCustom .bottoneTabella i{color:inherit!important}
html body .rigaCustom .bottoneTabella.ModificaCustom:hover{background:var(--primary-50)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .swal2-container .btn-success:has(>i.fa-file-text){background:#fff!important;color:var(--n-600)!important;border:1px solid var(--line-strong)!important;width:34px;height:30px;padding:0!important}

/* 31.4 Lista "Processa i file caricati": colonne ordinate, comandi in fila,
   l'azione principale con il nome scritto, la selezione è una casella di spunta */
@media (min-width:992px){
  html body .row.bg-primary:has(~.rigaCustom),html body .rigaCustom{display:grid;grid-template-columns:300px minmax(150px,1fr) minmax(260px,2.3fr) minmax(200px,1.3fr);column-gap:16px;align-items:start}
  html body .row.bg-primary:has(~.rigaCustom)>[class*=col-],html body .rigaCustom>[class*=col-]{width:auto!important;float:none!important;padding-left:0!important;padding-right:0!important;min-width:0}
  html body .row.bg-primary:has(~.rigaCustom){padding:10px 12px 10px 16px!important}
  html body .row.bg-primary:has(~.rigaCustom)::before,html body .row.bg-primary:has(~.rigaCustom)::after,html body .rigaCustom::before,html body .rigaCustom::after{content:none!important;display:none!important}
}
html body .rigaCustom>[class*=col-]:first-child:has(.bottoneTabella){display:flex;flex-wrap:nowrap;align-items:center;gap:6px}
html body .rigaCustom .bottoneTabella{margin:0!important;flex:0 0 auto}
html body .rigaCustom .bottoneTabella.InserisciFile,html body .rigaCustom .bottoneTabella.SostituisciFile{width:auto!important;padding:0 12px 0 10px!important;gap:6px;color:#fff!important}
html body .rigaCustom .bottoneTabella.InserisciFile{background:var(--green-500)!important;border-color:var(--green-500)!important}
html body .rigaCustom .bottoneTabella.InserisciFile:hover{background:var(--green)!important}
html body .rigaCustom .bottoneTabella.SostituisciFile{background:var(--orange-500)!important;border-color:var(--orange-500)!important}
html body .rigaCustom .bottoneTabella.SostituisciFile:hover{background:var(--orange)!important}
html body .rigaCustom .bottoneTabella.InserisciFile::after{content:"Inserisci";font-size:13px;font-weight:700;margin-left:6px;vertical-align:middle}
html body .rigaCustom .bottoneTabella.SostituisciFile::after{content:"Sostituisci";font-size:13px;font-weight:700;margin-left:6px;vertical-align:middle}
/* file già presente: il comando principale è Sostituisci, Inserisci diventa secondario */
html body .rigaCustom_W .bottoneTabella.InserisciFile{background:#fff!important;color:var(--green)!important;border-color:var(--green-line)!important;padding:0!important;width:36px!important}
html body .rigaCustom_W .bottoneTabella.InserisciFile::after{content:none}
html body .rigaCustom_W .bottoneTabella.SostituisciFile{order:-1}

/* casella di spunta al posto del vecchio pulsante "Selezione" (lista file e archivio) */
html body .rigaCustom .BottoneSelectRow{order:-2;margin-right:6px!important}
html body .rigaCustom .BottoneSelectRow,html body .classePannelloOrdine .BottoneSelectRow{
  width:24px!important;height:24px!important;min-width:24px;min-height:0!important;padding:0!important;line-height:0!important;
  border:2px solid var(--n-400)!important;border-radius:6px!important;background:#fff!important;color:#fff!important;position:relative;box-shadow:none!important
}
html body .rigaCustom .BottoneSelectRow:hover,html body .classePannelloOrdine .BottoneSelectRow:hover{border-color:var(--primary)!important;background:var(--blue-bg)!important}
html body .rigaCustom .BottoneSelectRow>i,html body .classePannelloOrdine .BottoneSelectRow>i{display:none!important}
html body .rigaCustom.selected .BottoneSelectRow,html body .classePannelloOrdine.selected .BottoneSelectRow{background:var(--primary)!important;border-color:var(--primary)!important}
html body .rigaCustom.selected .BottoneSelectRow::before,html body .classePannelloOrdine.selected .BottoneSelectRow::before{
  content:"";position:absolute;inset:1px;background:#fff;-webkit-mask:var(--ico-check) center/contain no-repeat;mask:var(--ico-check) center/contain no-repeat
}
html body .classePannelloOrdine .pulsantiArchivio .BottoneSelectRow{width:24px!important;height:24px!important;margin:0 4px 0 2px!important;align-self:center}

/* 31.5 Numeri delle pagine in fondo alla lista (come lo stile unico: "1–3 di 3" sotto la tabella) */
html body .contentArchivio>.row.height1,html body .contentLavori>.row.height1{order:99;margin-top:10px!important;margin-bottom:0!important}
html body .contentLavori:has(>.row.height1){display:flex!important;flex-direction:column}
html body .contentLavori:has(>.row.height1)>*{width:auto;float:none}
html body .contentGenerico>.row.height1:first-child:has(~.row.height1){display:none!important}
html body .contentGenerico>.row.height1:last-child{margin-top:10px!important}
html body .row.height1,html body .row.height1[style]{background-color:var(--surface)!important;background-image:linear-gradient(var(--surface),var(--surface))!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;padding:8px 2px 0!important;min-height:0!important;box-shadow:none!important}
html body .row.height1 .pagination{margin:0!important}
html body .row.height1 .totaleElementi{font-weight:700;color:var(--ink-2)!important}
html body .row.height1>[class*=col-]{width:auto!important;flex:0 0 auto;float:none!important}
html body .row.height1>.classTestoElementi{margin-left:auto}
html body .row.height1 .pagination{margin-left:14px!important}
@media (min-width:1280px){
  /* colonna Articolo vuota in tutta la pagina: non tiene spazio, la descrizione si allarga */
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) 0 auto!important}
}
html body .bottoneTabella.btn-default:has(>i.fa-search),html body .bottoneTabella.btn-default:has(>i.fa-search-plus){background:var(--blue-bg)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .bottoneTabella.btn-default:has(>i.fa-search):hover,html body .bottoneTabella.btn-default:has(>i.fa-search-plus):hover{background:var(--primary)!important;color:#fff!important}
html body .bottoneTabella>i.fa-search{display:inline-block;width:17px;height:17px;font-size:0!important;line-height:0!important;vertical-align:middle;position:relative;top:-1px}
html body .bottoneTabella>i.fa-search::before{content:""!important;display:block;width:100%;height:100%;background:currentColor;-webkit-mask:var(--ico-eye) center/contain no-repeat;mask:var(--ico-eye) center/contain no-repeat}
/* liste senza griglia (telefono / tablet): pagine in fondo anche qui */
html body .contentArchivio:has(>.row.height1):not([style*="display: none"]){display:flex;flex-direction:column}
html body .contentArchivio:has(>.row.height1)>*{float:none}

/* ==========================================================================
   32. AGGIORNAMENTO 11
   ========================================================================== */
/* niente scritta "Filtra" sopra i filtri */
html body .classeFiltriContent::before{content:none!important;display:none!important}
html body .pannelloTestatPrincipale>.panelRicerca[style*="margin-top"]>.classeFiltriContent.classeFiltriContent,html body .classeFiltriContent.classeFiltriContent{padding-top:2px!important}
/* niente scorrimento se la pagina non ha altro da mostrare (il tema vecchio forzava 1200px di altezza) */
html body .wrapper{min-height:0!important}
/* utente in alto: sempre attaccato al bordo destro */
html body .top-bar .navbar-nav.top-elements>li.piluku-dropdown:not(.hidden-xs){position:fixed!important;right:18px;top:0;z-index:1031}
/* tendine: testo delle voci scuro e leggibile (prima grigio) */
html body .select2-results__option{color:var(--ink)!important;font-weight:500}
html body .select2-results__option.select2-results__message{color:var(--muted)!important}
html body .select2-container .select2-selection__placeholder{color:var(--muted)!important}
/* Archivio: clic sulla riga = testo intero (va a capo), secondo clic = di nuovo su una riga */
html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{cursor:pointer}
@media (min-width:900px){
  html body .contentArchivio .classePannelloOrdine.suEspansa .classeOrdine{height:auto!important;min-height:52px!important;padding-top:10px!important;padding-bottom:10px!important;align-items:start}
  html body .contentArchivio .classePannelloOrdine.suEspansa .classeOrdine h4,
  html body .contentArchivio .classePannelloOrdine.suEspansa .classeOrdine>.etichetta:nth-child(n) h4 span:last-child strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;width:0;min-width:100%}
  html body .contentArchivio .classePannelloOrdine.suEspansa{background:var(--blue-bg)!important}
}
/* casella di selezione: la prima dei comandi */
html body .classePannelloOrdine .pulsantiArchivio .BottoneSelectRow{order:-1;margin-right:8px!important}
html body .classePannelloOrdine .pulsantiArchivio:has(.BottoneSelectRow){display:flex;align-items:center;gap:4px}
/* pulsanti in alto nell'archivio */
html body .suCaricaProgrammi::before,html body .suScaricaSel::before{content:"";display:inline-block;width:16px;height:16px;margin-right:7px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--su-ico) center/contain no-repeat;mask:var(--su-ico) center/contain no-repeat}
html body .suCaricaProgrammi{--su-ico:var(--ico-upload)}
html body .suScaricaSel{--su-ico:var(--ico-download)}
html body .suCaricaProgrammi .badge{background:#fff!important;color:var(--green)!important;margin-left:4px}
html body .suScaricaSel.disabled{opacity:.45;pointer-events:none}
html body .pannelloTestatPrincipale>.panelRicerca:has(>.classeFiltriContent){padding-top:0!important}
:root{--ico-diff:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M12 4v16%22/%3E%3Cpath d=%22M6 9h3M6 13h3M15 9h3M15 13h3%22/%3E%3C/svg%3E");--ico-cloud:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 18a4.5 4.5 0 0 1-.5-9A6 6 0 0 1 18 8a4 4 0 0 1 0 10%22/%3E%3Cpath d=%22M12 12v8M9 15l3-3 3 3%22/%3E%3C/svg%3E")}

/* ---------- Pagina unica "Carica e processa i programmi" ---------- */
html body .suCarica{background:var(--n-50);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 16px}
html body .suCaricaDest{display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto auto;gap:12px;align-items:end;margin-bottom:12px}
html body .suCaricaDest .suCampo label{display:block;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-2);margin:0 0 5px}
html body .suCaricaDest .suNuovo{height:38px;line-height:36px;padding:0 12px!important;font-size:12px}
html body .suDrop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin:0;padding:26px 16px;border:2px dashed var(--line-strong);border-radius:12px;background:#fff;cursor:pointer;text-align:center;transition:border-color .15s,background .15s,opacity .15s;font-weight:500}
html body .suDrop input[type=file]{display:none}
html body .suDrop .suDropIcona{width:40px;height:40px;background:var(--primary);-webkit-mask:var(--ico-cloud) center/contain no-repeat;mask:var(--ico-cloud) center/contain no-repeat}
html body .suDrop .suDropTesto{font-size:15px;color:var(--ink)}
html body .suDrop .suDropTesto u{color:var(--primary);text-underline-offset:3px}
html body .suDrop .suDropAiuto{font-size:12px;color:var(--muted)}
html body .suDrop:hover,html body .suDrop.sopra{border-color:var(--primary);background:var(--blue-bg)}
html body .suCarica:not(.suPronto) .suDrop{opacity:.55}
html body .suCarica:not(.suPronto) .suDrop .suDropAiuto{color:var(--orange);font-weight:700}
html body .suCodaCaricamento{display:none;margin-top:10px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
html body .suCodaCaricamento.attiva{display:block}
html body .suFileRiga{display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(120px,240px) 150px;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px}
html body .suFileRiga .suFileNome{font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .suFileRiga .suFileDim{color:var(--muted);text-align:right}
html body .suFileRiga .suBarra{height:8px;border-radius:99px;background:var(--n-200);overflow:hidden}
html body .suFileRiga .suBarra span{display:block;height:100%;width:0;background:var(--primary);transition:width .2s}
html body .suFileRiga .suFileStato{font-weight:700;color:var(--muted)}
html body .suFileRiga.fatto .suBarra span{background:var(--green-500)}
html body .suFileRiga.fatto .suFileStato{color:var(--green)}
html body .suFileRiga.fatto .suFileStato::before{content:"✓ "}
html body .suFileRiga.errore .suBarra span{background:var(--red-500);width:100%!important}
html body .suFileRiga.errore .suFileStato{color:var(--red)}
html body .suFineCarica{padding:10px 12px;font-weight:700;color:var(--green);background:var(--green-bg)}
html body .suFineCarica.errore{color:var(--red);background:var(--red-bg)}
@media (max-width:899px){
  html body .suCaricaDest{grid-template-columns:1fr 1fr}
  html body .suFileRiga{grid-template-columns:minmax(0,1fr) 90px;row-gap:4px}
  html body .suFileRiga .suBarra{grid-column:1/-1}
}

/* colonna Programma della lista: pulsanti invece del testo intero */
html body .rigaCustom .suNomeFile{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:14px!important;margin-bottom:6px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .rigaCustom .suColProgramma{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body .suBtnAnteprima,html body .suBtnDiff{height:34px;padding:0 12px!important;font-size:13px!important;font-weight:700}
html body .suBtnAnteprima::before,html body .suBtnDiff::before{content:"";display:inline-block;width:16px;height:16px;margin-right:6px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--su-ico) center/contain no-repeat;mask:var(--su-ico) center/contain no-repeat}
html body .suBtnAnteprima{--su-ico:var(--ico-eye);background:var(--blue-bg)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .suBtnAnteprima:hover{background:var(--primary)!important;color:#fff!important}
html body .suBtnDiff{--su-ico:var(--ico-diff);background:var(--orange-bg)!important;color:var(--orange)!important;border-color:var(--orange-line)!important}
html body .suBtnDiff:hover{background:var(--orange-500)!important;color:#fff!important}
html body .rigaCustom .suInfoFile{font-size:12px;color:var(--muted);font-weight:600}
html body .rigaCustom{align-items:center!important}

/* finestra Anteprima / Differenze */
html body .suViewer .modal-dialog{width:min(1100px,95vw)!important;max-width:none;margin:30px auto}
html body .suViewer.suLargo .modal-dialog{width:min(1600px,97vw)!important}
html body .suViewer .modal-header{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html body .suViewer .modal-header .modal-title{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:800;margin-right:auto}
html body .suViewer .modal-header .close{order:9;margin:0 0 0 8px}
html body .suViewer .suViewerBarra{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body .suViewer .suSoloDiff{display:inline-flex;align-items:center;gap:6px;margin:0 6px;font-weight:600;font-size:13px;cursor:pointer}
html body .suViewer .suScegliVecchio{width:auto;height:32px;font-size:12px}
html body .suViewer .modal-body{max-height:calc(100vh - 220px);overflow:auto;padding:0!important}
html body .suPill{display:inline-block;padding:3px 9px;border-radius:99px;font-size:12px;font-weight:700;background:var(--n-100);color:var(--ink-2);border:1px solid var(--line);margin-right:4px}
html body .suPill.mod{background:var(--orange-bg);color:var(--orange);border-color:var(--orange-line)}
html body .suPill.add{background:var(--green-bg);color:var(--green);border-color:var(--green-line)}
html body .suPill.del{background:var(--red-bg);color:var(--red);border-color:var(--red-line)}
html body .suAttendi,html body .suUguali{padding:40px;text-align:center;color:var(--muted);font-weight:600}
html body .suUguali{color:var(--green)}
html body .suCodice,html body .suDiff{width:100%;border-collapse:collapse;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:1.55;table-layout:fixed}
html body .suCodice td,html body .suDiff td{padding:0 10px;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;border:0}
html body .suCodice td.n,html body .suDiff td.n{width:56px;text-align:right;color:var(--n-400);background:var(--n-50);user-select:none;border-right:1px solid var(--line)}
html body .suCodice tr:hover td.t{background:var(--blue-bg)}
html body .suDiff thead th{position:sticky;top:0;z-index:1;background:var(--navy);color:var(--blue-bg);font-family:Inter,sans-serif;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;padding:9px 12px;text-align:left}
html body .suDiff td.t{border-right:1px solid var(--line)}
html body .suDiff tr.del td.t:nth-child(2),html body .suDiff tr.mod td.t:nth-child(2){background:var(--red-bg)}
html body .suDiff tr.add td.t:nth-child(4),html body .suDiff tr.mod td.t:nth-child(4){background:var(--green-bg)}
html body .suDiff tr.del td.n:nth-child(1),html body .suDiff tr.mod td.n:nth-child(1){background:#fde2e0;color:var(--red)}
html body .suDiff tr.add td.n:nth-child(3),html body .suDiff tr.mod td.n:nth-child(3){background:#d9f5e3;color:var(--green)}
html body .suDiff tr.add td.t:nth-child(2),html body .suDiff tr.del td.t:nth-child(4){background:repeating-linear-gradient(135deg,var(--n-50) 0 6px,#fff 6px 12px)}
html body .suDiff tr.mod td:nth-child(2) mark{background:#f9b4ae;color:inherit;padding:0 1px;border-radius:3px}
html body .suDiff tr.mod td:nth-child(4) mark{background:#9fe2b8;color:inherit;padding:0 1px;border-radius:3px}
html body .suDiff tr.salto td{background:var(--n-100);color:var(--muted);text-align:center;font-family:Inter,sans-serif;font-size:12px;font-style:italic;padding:4px}

/* popup Inserisci / Sostituisci: dati a sinistra, programma a destra, spazi ordinati */
html body #modalGenerico2 .modal-dialog:has(.divAnteprima2){width:min(1150px,95vw)!important;max-width:none}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2){display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:14px 22px;align-items:start;margin:0!important}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2)>[class*=col-]{width:auto!important;float:none!important;padding:0!important;min-width:0}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2)>[class*=col-]:nth-of-type(2){grid-row:1/span 2;grid-column:2}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2)>.btn-block{grid-column:1;width:100%;height:42px;background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important;font-size:14px}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2) .well{padding:8px 12px!important;margin:0 0 12px!important;font-size:13px!important;font-weight:800;border-radius:8px;background:var(--blue-bg)!important;color:var(--primary)!important;border:1px solid var(--blue-line)!important;box-shadow:none}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2) .form-group{margin-bottom:12px}
html body #modalGenerico2 .divAnteprima2{height:calc(100vh - 300px)!important;min-height:280px;max-height:640px;overflow:auto!important;background:var(--n-50)!important;border:1px solid var(--line)!important;border-radius:8px;padding:10px 12px!important;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;font-size:12.5px!important;line-height:1.55!important;color:var(--ink)!important;white-space:nowrap;width:100%}
html body #modalGenerico2 .form-group:has(>.divAnteprima2){display:block!important;width:100%}
html body #modalGenerico2 .form-group:has(>.divAnteprima2)>.input-group-addon{display:block!important;width:100%!important;text-align:left;border:0!important;background:transparent!important;padding:0 0 6px!important;font-size:11px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-2)!important}
@media (max-width:899px){
  html body #modalGenerico2 .modal-body>form:has(.divAnteprima2){grid-template-columns:1fr}
  html body #modalGenerico2 .modal-body>form:has(.divAnteprima2)>[class*=col-]:nth-of-type(2){grid-row:auto;grid-column:1}
  html body #modalGenerico2 .divAnteprima2{height:40vh!important}
}

html body .suCodice col.cn,html body .suDiff col.cn{width:58px}
html body .suCodice td.t,html body .suDiff td.t{color:var(--ink)!important}
html body .suViewer .suSoloDiff input[type=checkbox]{display:inline-block!important;position:static!important;opacity:1!important;visibility:visible!important;width:16px;height:16px;margin:0;-webkit-appearance:checkbox;appearance:auto;accent-color:var(--primary)}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2){grid-template-rows:auto 1fr}
html body #modalGenerico2 .modal-body>form:has(.divAnteprima2)>.btn-block{align-self:start;width:100%!important;max-width:none!important;margin:0!important;grid-row:2}
@media (max-width:991px){html body .row.bg-primary:has(~.rigaCustom){display:none!important}}

/* ==========================================================================
   33. AGGIORNAMENTO 12
   ========================================================================== */
/* --- caricamento delle liste: animazione al primo caricamento, poi la lista resta ferma (sbiadita) --- */
@keyframes su-salta{0%,80%,100%{transform:scale(.55);opacity:.35}40%{transform:scale(1);opacity:1}}
@keyframes su-scorri{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
html body .suCaricamento{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:70px 20px;color:var(--muted);font-weight:700;font-size:13px;grid-column:1/-1}
html body .suCaricamentoAnim{display:inline-flex;gap:6px;align-items:center}
html body .suCaricamentoAnim i{display:block;width:11px;height:11px;border-radius:50%;background:var(--primary);animation:su-salta 1s ease-in-out infinite}
html body .suCaricamentoAnim i:nth-child(2){animation-delay:.15s;background:var(--blue-400)}
html body .suCaricamentoAnim i:nth-child(3){animation-delay:.3s;background:var(--blue-line)}
html body .suInCaricamento{position:relative}
html body .suInCaricamento>*:not(.suCaricamentoBarra){opacity:.4;transition:opacity .15s;pointer-events:none}
html body .suCaricamentoBarra{position:absolute;z-index:5;top:10px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:10px;padding:8px 16px;border-radius:99px;background:#fff;border:1px solid var(--blue-line);box-shadow:var(--shadow-lg);color:var(--primary);font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden}
html body .suCaricamentoBarra::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:40%;background:var(--primary);animation:su-scorri 1.1s ease-in-out infinite}
html body .suCaricamentoBarra .suCaricamentoAnim i{width:8px;height:8px}

/* --- archivio: le caselle di selezione ci sono subito (prima comparivano dopo e spostavano le colonne) --- */
html body .contentArchivio .pulsantiArchivio .BottoneSelectRow.BottoneSelectRowNascondi{display:inline-block!important}

/* --- archivio: comandi nella stessa riga della ricerca --- */
html body .suComandiFiltri{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
html body .suComandiFiltri .btn{height:38px;white-space:nowrap}
html body .suAzzeraFiltri::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--ico-swap) center/contain no-repeat;mask:var(--ico-swap) center/contain no-repeat}
html body .suAzzeraFiltri.disabled{opacity:.45;pointer-events:none}
@media (min-width:900px){
  html body .classeContentArchivi .classeFiltriContent{grid-template-columns:minmax(0,1.6fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr)!important}
  html body .classeContentArchivi .classeFiltriContent>.suComandiFiltri{grid-column:1/-1!important;width:100%!important}
}
@media (min-width:1500px){
  html body .classeContentArchivi .classeFiltriContent{grid-template-columns:minmax(0,1.6fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto!important}
  html body .classeContentArchivi .classeFiltriContent>.suComandiFiltri{grid-column:auto!important;width:auto!important}
}

/* --- Carica e processa: caricamento possibile solo dopo cliente + gruppo --- */
html body .suCaricaDest{grid-template-columns:minmax(200px,1fr) minmax(200px,1fr)!important}
html body .suCarica:not(.suPronto) .suDrop{opacity:.5;cursor:not-allowed;pointer-events:none;background:var(--n-50)}
html body .suCarica:not(.suPronto) .suDrop .suDropIcona{background:var(--n-400)}
html body .suCarica:not(.suPronto) .suDrop .suDropTesto u{color:var(--muted)}
html body .suCarica .suSePronto{display:none}
html body .suCarica.suPronto .suSePronto{display:inline}
html body .suCarica.suPronto .suSeNonPronto{display:none}
html body .suCarica .suSeNonPronto{color:var(--orange)!important;font-weight:800}

/* --- lista da processare: una riga per file, colonne allineate (gruppo, cliente, nome, descrizione) --- */
@media (min-width:992px){
  html body .panel-body:has(>.suRigaTitolo){display:grid;grid-template-columns:58px minmax(70px,max-content) minmax(80px,max-content) minmax(90px,max-content) minmax(120px,1fr) max-content max-content max-content;align-content:start}
  html body .panel-body:has(>.suRigaTitolo)>*{grid-column:1/-1;min-width:0}
  html body .panel-body:has(>.suRigaTitolo)>.suRigaTitolo,
  html body .panel-body:has(>.suRigaTitolo)>.rigaCustom.suRiga{display:grid!important;grid-template-columns:subgrid;column-gap:0;align-items:center}
  html body .suRigaTitolo>div,html body .rigaCustom.suRiga>div{padding:0 14px 0 0!important;min-width:0;width:auto!important;float:none!important}
  html body .rigaCustom.suRiga>.suCGruppo,html body .rigaCustom.suRiga>.suCCliente,html body .rigaCustom.suRiga>.suCNome,html body .rigaCustom.suRiga>.suCDesc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
html body .suRigaTitolo{margin:0 0 6px!important;padding:11px 12px 11px 16px!important;border-radius:10px!important;background:var(--navy)!important;color:var(--blue-bg)!important;font-size:11px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase}
html body .suRigaTitolo::before,html body .suRigaTitolo::after,html body .rigaCustom.suRiga::before,html body .rigaCustom.suRiga::after{content:none!important;display:none!important}
html body .rigaCustom.suRiga{min-height:56px;padding:8px 12px 8px 16px!important;margin:0 0 6px!important;font-size:13.5px;font-weight:600;color:var(--ink)!important}
html body .rigaCustom.suRiga>div:last-child::before{content:none!important;display:none!important}
html body .rigaCustom.suRiga>div:last-child{font-size:inherit;font-weight:inherit;line-height:normal;color:inherit!important}
html body .rigaCustom.suRiga .suNomeFile{margin:0!important;font-size:14px!important;display:inline}
html body .rigaCustom.suRiga .suCGruppo,html body .rigaCustom.suRiga .suCCliente{font-weight:700}
html body .rigaCustom.suRiga .suCDesc{color:var(--ink-2);font-weight:500}
html body .rigaCustom.suRiga .suVuoto{color:var(--n-400);font-weight:500}
html body .rigaCustom.suRiga .suCProgramma{display:flex;gap:6px;flex-wrap:nowrap}
html body .rigaCustom.suRiga .suCAzioni{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
html body .rigaCustom.suRiga .suCSel .BottoneSelectRow{margin:0!important}
html body .suStato{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}
html body .suStato::before{content:"● "}
html body .suStatoS{background:var(--green-bg);color:var(--green);border:1px solid var(--green-line)}
html body .suStatoW{background:#fff;color:var(--orange);border:1px solid var(--orange-line)}
html body .suNessunFile{padding:30px;text-align:center;color:var(--muted);font-size:14px!important;font-weight:600}
@keyframes su-nuovo{0%{box-shadow:inset 4px 0 0 var(--primary),0 0 0 3px var(--blue-line);background:var(--blue-bg)}100%{}}
html body .rigaCustom.suAppenaCaricato{animation:su-nuovo 2.5s ease-out}
@media (max-width:991px){
  html body .rigaCustom.suRiga{display:flex!important;flex-wrap:wrap;gap:6px 12px;align-items:center}
  html body .rigaCustom.suRiga>.suCDesc,html body .rigaCustom.suRiga>.suCNome{flex-basis:100%}
  html body .suRigaTitolo{display:none!important}
}

/* --- confronto: titoli centrati sulle due metà e divisione ben visibile --- */
html body .suDiff thead th{text-align:center!important}
html body .suDiff thead th+th,html body .suDiff td.n:nth-child(3){border-left:4px solid var(--navy)!important}
html body .suDiff thead th+th{border-left-color:var(--blue-400)!important}
html body .rigaCustom.suRiga>.suCSel,html body .suRigaTitolo>div:first-child{padding:0!important}
html body .rigaCustom.suRiga .suCSel .BottoneSelectRow{margin:0!important}
/* icone sempre allineate a destra e sempre nello stesso posto, qualunque sia il testo del pulsante principale */
html body .rigaCustom.suRiga .suCAzioni{justify-content:flex-end}
html body .suRigaTitolo>div:last-child{text-align:right}
html body .contentArchivio .classePannelloOrdine .pulsantiArchivio{justify-content:flex-end}
html body .contentArchivio .classePannelloOrdine .pulsantiArchivio .bottoneTabella{flex:0 0 auto}
/* pulsanti in posizioni fisse: principale a larghezza fissa, modifica/elimina sempre in fondo,
   un pulsante in piu' (il "+" dei file gia' presenti) si aggiunge a sinistra senza spostare gli altri */
html body .rigaCustom.suRiga .suCAzioni .InserisciFile,html body .rigaCustom.suRiga .suCAzioni .SostituisciFile{width:132px!important;justify-content:center;text-align:center}
html body .rigaCustom_W.suRiga .suCAzioni .InserisciFile{width:36px!important;order:-2}
html body .rigaCustom_W.suRiga .suCAzioni .SostituisciFile{order:-1}
html body .rigaCustom.suRiga .suCAzioni .ModificaCustom{order:1}
html body .rigaCustom.suRiga .suCAzioni .EliminaCostum{order:2}
html body .suRigaTitolo>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* archivio: niente "manina" sulla riga, la selezione si fa solo con la casella */
html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{cursor:default}
html body .contentArchivio .classePannelloOrdine.suEspansa{background:inherit!important}
/* Azzera filtri colorato (arancio = azione da fare), grigio solo quando non c'e' niente da azzerare */
html body .suAzzeraFiltri{background:var(--orange-bg)!important;color:var(--orange)!important;border-color:var(--orange-line)!important}
html body .suAzzeraFiltri:hover{background:var(--orange-500)!important;color:#fff!important;border-color:var(--orange-500)!important}
html body .suAzzeraFiltri.disabled{background:#fff!important;color:var(--n-400)!important;border-color:var(--line)!important;opacity:1}
html body .suCaricaDest{grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto!important}
html body .suCaricaDest .suAzzeraDest{height:38px}
html body .suViewer .suAltreRighe:not(:empty){display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;color:var(--muted);font-weight:700;font-size:12px}

/* --- Anteprima e Differenze: righe leggere (div), il browser disegna solo i blocchi visibili --- */
html body .suViewer .suBlocco{content-visibility:auto}
html body .suCodice,html body .suDiff{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:20px;width:100%}
html body .suCodice .r{display:grid;grid-template-columns:58px minmax(0,1fr);min-height:20px}
html body .suDiff .r{display:grid;grid-template-columns:58px minmax(0,1fr) 58px minmax(0,1fr);min-height:20px}
html body .suCodice .r i,html body .suDiff .r i{font-style:normal;padding:0 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
html body .suCodice .r i.n,html body .suDiff .r i.n{text-align:right;color:var(--n-400);background:var(--n-50);user-select:none;border-right:1px solid var(--line);white-space:nowrap}
html body .suCodice .r:hover i.t{background:var(--blue-bg)}
html body .suDiff .r i.nb{border-left:4px solid var(--navy)}
html body .suDiffTesta{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:1fr 1fr;background:var(--navy);color:var(--blue-bg);font-family:Inter,sans-serif;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase}
html body .suDiffTesta span{padding:9px 12px;text-align:center}
html body .suDiffTesta span+span{border-left:4px solid var(--blue-400)}
html body .suDiff .r.del i:nth-child(2),html body .suDiff .r.mod i:nth-child(2){background:var(--red-bg)}
html body .suDiff .r.add i:nth-child(4),html body .suDiff .r.mod i:nth-child(4){background:var(--green-bg)}
html body .suDiff .r.del i:nth-child(1),html body .suDiff .r.mod i:nth-child(1){background:#fde2e0;color:var(--red)}
html body .suDiff .r.add i:nth-child(3),html body .suDiff .r.mod i:nth-child(3){background:#d9f5e3;color:var(--green)}
html body .suDiff .r i.vuota{background:repeating-linear-gradient(135deg,var(--n-50) 0 6px,#fff 6px 12px)}
html body .suDiff .r.mod i:nth-child(2) mark{background:#f9b4ae;color:inherit;padding:0 1px;border-radius:3px}
html body .suDiff .r.mod i:nth-child(4) mark{background:#9fe2b8;color:inherit;padding:0 1px;border-radius:3px}
html body .suDiff .r.salto{display:block;background:var(--n-100);color:var(--muted);text-align:center;font-family:Inter,sans-serif;font-size:12px;font-style:italic;padding:2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
/* Carica e processa: freccia per tornare all'archivio */
html body .suIndietro{width:38px;height:38px;padding:0!important;margin-right:10px;vertical-align:middle;border-radius:10px!important;background:#fff!important;border:1px solid var(--line-strong)!important;color:var(--ink-2)!important;position:relative}
html body .suIndietro::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 12H5M12 19l-7-7 7-7%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 12H5M12 19l-7-7 7-7%22/%3E%3C/svg%3E") center/contain no-repeat}
html body .suIndietro:hover{background:var(--blue-bg)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .panel-title:has(>.suIndietro){display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;width:100%!important;float:none!important}
html body .panel-title:has(>.suIndietro)>.panelTitolo+a{margin-left:auto!important}

/* --- niente scatti all'apertura delle pagine --- */
/* il menu laterale nasce gia' chiuso (prima si apriva tutto e uno script lo richiudeva dopo il caricamento) */
html body .left-bar .menu-parent>li.submenu>ul{display:none}
html body .left-bar .menu-parent>li.submenu.active>ul,html body .left-bar .menu-parent>li.submenu.open>ul{display:block}
/* la lista mentre si carica tiene uno spazio minimo, cosi' quello che sta sotto non salta */
html body .suCaricamento{min-height:260px}

/* --- animazione della ricerca piu' grande e ben visibile --- */
html body .suCaricamentoBarra{top:40px;gap:16px;padding:16px 30px 18px;font-size:16px;border-radius:16px;border-width:2px}
html body .suCaricamentoBarra .suCaricamentoAnim{gap:8px}
html body .suCaricamentoBarra .suCaricamentoAnim i{width:14px;height:14px}
html body .suCaricamentoBarra::after{height:4px}
html body .suCaricamento{gap:16px;font-size:16px}
html body .suCaricamento .suCaricamentoAnim{gap:10px}
html body .suCaricamento .suCaricamentoAnim i{width:18px;height:18px}

/* ==========================================================================
   34. AGGIORNAMENTO 14
   ========================================================================== */
/* --- testo scritto nei campi: scuro e leggibile (prima grigio) --- */
html body .form-control,html body input.form-control,html body textarea.form-control,html body input[type=search],html body input[type=text]{color:var(--ink)!important;-webkit-text-fill-color:var(--ink)}
html body .classeFiltriContent input.form-control{font-weight:600}
html body .form-control::placeholder{color:var(--n-400)!important;-webkit-text-fill-color:var(--n-400);font-weight:400}
html body .form-control[disabled],html body .form-control[readonly]:not(.classeTextArea){color:var(--n-600)!important;-webkit-text-fill-color:var(--n-600)}

/* --- linee verticali tra le colonne --- */
@media (min-width:900px){
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{border-right:1px solid var(--line);padding-left:12px!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:first-child{padding-left:12px!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .pulsantiArchivio{border-left:0!important}
  /* nella barra scura dei titoli: linea chiara alla stessa altezza */
  html body .contentArchivio .row.height1+.classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{position:relative}
  html body .contentArchivio .row.height1+.classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta::after{content:"";position:absolute;right:-1px;top:-34px;height:34px;border-right:1px solid rgba(255,255,255,.18);pointer-events:none}
}
@media (min-width:992px){
  html body .rigaCustom.suRiga>div,html body .suRigaTitolo>div{border-right:1px solid var(--line);padding:0 12px!important;align-self:stretch;display:flex;align-items:center}
  html body .suRigaTitolo>div{border-right-color:rgba(255,255,255,.18)}
  html body .rigaCustom.suRiga>div:first-child,html body .suRigaTitolo>div:first-child{padding:0!important;justify-content:center}
  html body .rigaCustom.suRiga>div:last-child,html body .suRigaTitolo>div:last-child{border-right:0;justify-content:flex-end}
  html body .rigaCustom.suRiga>.suCGruppo,html body .rigaCustom.suRiga>.suCCliente,html body .rigaCustom.suRiga>.suCNome,html body .rigaCustom.suRiga>.suCDesc{display:block!important;line-height:38px}
  html body .rigaCustom.suRiga{padding-top:0!important;padding-bottom:0!important}
  html body .rigaCustom.suRiga>div{min-height:54px}
}

/* --- editor / anteprima programmi a tutto schermo --- */
html body .modal-dialog.suEditor{width:96vw!important;max-width:none!important;margin:2vh auto!important}
html body .modal-dialog.suEditor .modal-content{display:flex;flex-direction:column;height:calc(96vh / .9)}
@media (max-width:799px){ html body .modal-dialog.suEditor .modal-content{height:96vh} }
html body .modal-dialog.suEditor .suEditorForm{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0}
html body .modal-dialog.suEditor .modal-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;flex:0 0 auto}
html body .modal-dialog.suEditor .modal-header .modal-title{margin-right:auto;font-weight:800}
html body .modal-dialog.suEditor .modal-header .close{order:9;margin:0}
html body .modal-dialog.suEditor .modal-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:12px 16px!important;overflow:hidden!important;max-height:none!important}
html body .modal-dialog.suEditor .modal-footer{flex:0 0 auto}
html body .suEditorInfo{display:flex;flex-wrap:wrap;gap:6px;width:100%;order:10}
html body .suEditorInfo span{display:inline-flex;gap:6px;align-items:center;padding:4px 10px;border-radius:99px;background:var(--n-100);border:1px solid var(--line);font-size:12px;color:var(--ink);font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suEditorInfo b{font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}
html body .suEditorArea{position:relative;flex:1 1 auto;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);border:1px solid var(--line-strong);border-radius:10px;overflow:hidden;background:#fff;width:100%!important;padding:0!important}
html body .suEditorArea .suGutter{margin:0;padding:10px 8px 10px 12px;min-width:52px;text-align:right;background:var(--n-50);border:0;border-right:1px solid var(--line);color:var(--n-400);font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:20px;overflow:hidden;white-space:pre;user-select:none;border-radius:0}
html body .suEditorArea textarea.classeTextArea{height:100%!important;min-height:0!important;width:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;resize:none!important;padding:10px 12px!important;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;font-size:13px!important;line-height:20px!important;white-space:pre!important;overflow:auto!important;tab-size:4;background:#fff!important}
html body .suSoloLettura .suEditorArea textarea.classeTextArea{background:#fff!important;cursor:text}
html body .suEditorComandi{display:flex!important;align-items:center;justify-content:flex-end;gap:10px;padding:12px 16px!important;border-top:1px solid var(--line);background:var(--n-50)}
html body .suEditorComandi .suEditorStato{margin-right:auto;font-size:13px;font-weight:700;color:var(--muted)}
html body .suEditorForm.suModificato .suEditorStato{color:var(--orange)}
html body .suEditorForm.suModificato .suEditorStato::before{content:"● "}
html body .suEditorComandi .btn{height:40px;min-width:120px;font-size:14px}
html body .suEditorComandi .suSalvaEditor{min-width:150px}
/* pagina "Modifica programma" dei file caricati */
html body .suEditorPagina{display:flex;flex-direction:column;gap:0;height:calc((100vh - 200px) / .9);min-height:420px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
@media (max-width:799px){ html body .suEditorPagina{height:calc(100vh - 200px)} }
html body .suEditorPagina .suEditorArea{border:0;border-radius:0}
/* finestra Anteprima / Differenze della lista: anche lei a tutto schermo */
html body .suViewer .modal-dialog,html body .suViewer.suLargo .modal-dialog{width:96vw!important;margin:2vh auto!important}
html body .suViewer .modal-content{display:flex;flex-direction:column;height:calc(96vh / .9)}
@media (max-width:799px){ html body .suViewer .modal-content{height:96vh} }
html body .suViewer .modal-body{flex:1 1 auto;min-height:0;max-height:none!important}
@media (min-width:900px){
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{align-items:stretch!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta{align-self:stretch;display:flex;align-items:center}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta>h4{width:100%;min-width:0}
  html body .contentArchivio .row.height1+.classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta::after{border-right-color:rgba(255,255,255,.28)}
}
html body .suEditorComandi .btn,html body .suEditorComandi .bottoneSalva{width:auto!important;flex:0 0 auto!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0!important}
html body .suEditorComandi .suEditorStato{white-space:nowrap}

/* --- Magazzino (e liste dello stesso tipo): come Programmi --- */
@media (min-width:900px){
  /* colonne condivise da tutte le righe: le icone stanno sempre nello stesso punto, a destra */
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico){display:grid!important;grid-template-columns:minmax(0,1fr) max-content}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico)>*{grid-column:1/-1}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico)>.row.height1{order:99}
  html body .contentGenerico>.classePannelloGenerico:has(.pulsantiGenerico){display:grid!important;grid-template-columns:subgrid}
  html body .contentGenerico>.classePannelloGenerico:has(.pulsantiGenerico)>div:has(>.pulsantiGenerico){grid-column:1/-1;grid-template-columns:subgrid!important}
  html body .contentGenerico .classePannelloGenerico .pulsantiGenerico{justify-content:flex-end;align-self:stretch;align-items:center;border-left:1px solid var(--line)!important}
  html body .contentGenerico .classePannelloGenerico .pulsantiGenerico .bottoneTabella{flex:0 0 auto}
  /* linee verticali tra le colonne, celle alte quanto la riga */
  html body .contentGenerico div:has(>.classeGenericoTitolo)>.classeGenerico{align-items:stretch!important;padding-top:0!important;padding-bottom:0!important}
  html body .contentGenerico div:has(>.classeGenericoTitolo)>.classeGenerico>.etichetta{border-right:1px solid var(--line);padding:8px 12px!important;display:flex;flex-direction:column;justify-content:center;position:relative}
  html body .contentGenerico div:has(>.classeGenericoTitolo)>.classeGenerico>.etichetta:last-child{border-right:0}
  /* titoli delle colonne nella barra scura sopra la prima riga (come Programmi) */
  html body .contentGenerico .row.height1+.classePannelloGenerico:has(.pulsantiGenerico){margin-top:34px!important;position:relative;overflow:visible!important;border-radius:0!important}
  html body .contentGenerico .row.height1+.classePannelloGenerico:has(.pulsantiGenerico)::before{content:"";display:block!important;position:absolute;left:-1px;right:-1px;top:-34px;height:34px;background:var(--navy);border-radius:10px 10px 0 0;width:auto!important}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4:first-child>span:first-child{display:none!important}
  html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span:first-child{display:block!important;position:absolute;top:-25px;left:12px;right:8px;color:var(--blue-bg)!important;font-size:11px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
  html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta::after{content:"";position:absolute;right:-1px;top:-34px;height:34px;border-right:1px solid rgba(255,255,255,.28)}
  html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta:last-child::after{content:none}
  /* seconda voce nella stessa cella (es. Codice disegno): etichetta piccola davanti al valore */
  html body .contentGenerico .classePannelloGenerico .etichetta>h4+h4>span:first-child{display:inline!important;font-size:10px!important;font-weight:800;text-transform:uppercase;letter-spacing:.3px;color:var(--muted)!important;margin-right:6px}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4+h4>span:last-child{display:inline!important}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4+h4{margin-top:2px!important}
}

/* ==========================================================================
   35. MAGAZZINO COME ARCHIVIO PROGRAMMI
   ========================================================================== */
/* riga della ricerca con i comandi: l'ordinamento si fa dai titoli delle colonne, il pannello non serve */
html body .classeFiltriContent:has(>.suComandiFiltri)~.classeOrdinamentoContent{display:none!important}
html body .classeFiltriContent>.suComandiFiltri{grid-column:1/-1!important;width:100%!important;flex-direction:row!important;flex-wrap:wrap;justify-content:flex-end}
html body .suComandiFiltri>.suAzzeraFiltri{order:0}
html body .suComandiFiltri>.suLinguette{order:1}
html body .suComandiFiltri>.inserisciMaterialeMagazzino{order:3;margin-left:0!important}
html body .suComandiFiltri>*{margin-left:0!important}
/* linguette Poliedro / Cilindro / Tutti */
html body .suLinguette{display:inline-flex;padding:3px;gap:2px;background:#fff;border:1px solid var(--line-strong);border-radius:10px;height:38px;align-items:center}
html body .suLinguette .suLinguetta{height:30px!important;line-height:28px;padding:0 14px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ink-2)!important;font-weight:700;margin:0!important}
html body .suLinguette .suLinguetta:hover{background:var(--n-100)!important}
html body .suLinguette .suLinguetta.active{background:var(--blue-bg)!important;color:var(--primary)!important;box-shadow:inset 0 0 0 1px var(--blue-line)!important}
/* titoli ordinabili con le frecce, come nei Programmi */
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdinabile{cursor:pointer;user-select:none;pointer-events:auto;z-index:2}
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdinabile::after{content:"↕";margin-left:5px;opacity:.45;font-size:11px}
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdinabile:hover{color:#fff!important}
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdAsc,
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdDesc{color:#fff!important}
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdAsc::after{content:"▲";opacity:1;color:var(--blue-400)}
html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdDesc::after{content:"▼";opacity:1;color:var(--blue-400)}
/* righe su una sola linea, tutte alte uguali (testo lungo con "…") */
@media (min-width:900px){
  html body .contentGenerico .classePannelloGenerico .classeGenerico{min-height:52px}
  html body .contentGenerico .classePannelloGenerico .etichetta strong br{display:none}
  html body .contentGenerico .classePannelloGenerico .etichetta strong div{display:inline!important;line-height:inherit!important}
  html body .contentGenerico .classePannelloGenerico .etichetta:has(>h4+h4){flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4+h4{margin-top:0!important}
  html body .contentGenerico .classePannelloGenerico .etichetta>h4 strong{white-space:nowrap}
}

/* ==========================================================================
   36. TABELLE ELENCO (Materiale, Materiale sigla...) COME ARCHIVIO PROGRAMMI
   ========================================================================== */
html body .dataTables_wrapper .suDtTop{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:var(--n-50);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 14px}
html body .suDtTop .dataTables_filter{flex:1 1 320px;float:none!important;text-align:left!important;margin:0!important}
html body .suDtTop .dataTables_filter label{display:flex!important;flex-direction:column;gap:5px;width:100%;margin:0;font-size:11px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-2)!important}
html body .suDtTop .dataTables_filter input{width:100%!important;max-width:none!important;margin:0!important;height:38px;font-size:13px!important;text-transform:none;letter-spacing:0}
html body .suDtTop .suComandiFiltri{flex:0 0 auto;margin-left:auto}
html body .suDtTop .suNuovo{height:38px;display:inline-flex;align-items:center;gap:6px;padding:0 14px!important;font-weight:700;margin:0!important}
/* tabella: titoli ordinabili con ↕ ▲ ▼, linee verticali, azioni in fondo a destra */
html body table.suTabellaLista thead th{background-image:none!important;white-space:nowrap;cursor:pointer;user-select:none;position:relative}
html body table.suTabellaLista thead th.sorting::after,html body table.suTabellaLista thead th.sorting_asc::after,html body table.suTabellaLista thead th.sorting_desc::after{margin-left:6px;font-size:11px}
html body table.suTabellaLista thead th.sorting::after{content:"↕";opacity:.45}
html body table.suTabellaLista thead th.sorting_asc::after{content:"▲";color:var(--blue-400)}
html body table.suTabellaLista thead th.sorting_desc::after{content:"▼";color:var(--blue-400)}
html body table.suTabellaLista thead th.sorting_asc,html body table.suTabellaLista thead th.sorting_desc{color:#fff!important}
html body table.suTabellaLista thead th:last-child{cursor:default;text-align:right}
html body table.suTabellaLista thead th,html body table.suTabellaLista tbody td{border-right:1px solid var(--line)!important}
html body table.suTabellaLista thead th{border-right-color:rgba(255,255,255,.18)!important}
html body table.suTabellaLista thead th:last-child,html body table.suTabellaLista tbody td:last-child{border-right:0!important}
html body table.suTabellaLista tbody td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;height:52px;vertical-align:middle!important}
html body table.suTabellaLista tbody td br{display:none}
html body table.suTabellaLista tbody td strong+strong::before{content:" · ";color:var(--n-400)}
html body table.suTabellaLista td.azioni,html body table.suTabellaLista th.azioni{width:1%!important;white-space:nowrap;text-align:right}
html body table.suTabellaLista td.azioni .btn{width:34px;height:34px;padding:0!important;margin:0 0 0 4px!important;display:inline-flex;align-items:center;justify-content:center}
html body table.suTabellaLista td.azioni .btn i{font-size:17px!important}
html body table.suTabellaLista tfoot{display:none}
/* in fondo: Totale a sinistra, Visualizza e pagine a destra */
html body .dataTables_wrapper .suDtFondo{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:10px;padding:10px 2px 0}
html body .suDtFondo .dataTables_info{margin-right:auto;font-weight:700;color:var(--ink-2)!important;padding:0!important;float:none!important}
html body .suDtFondo .dataTables_length,html body .suDtFondo .dataTables_paginate{float:none!important;margin:0!important;text-align:right}
html body .suDtFondo .dataTables_length label{margin:0;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--muted)}
html body .suDtFondo .dataTables_length select{width:auto;height:30px;border-radius:8px;padding:0 6px}
html body .suDtFondo .pagination{margin:0!important}
html body .dataTables_wrapper>.suDtTop{order:1;flex:0 0 100%}
html body .dataTables_wrapper>.suDtFondo{order:9;flex:0 0 100%}
html body input::placeholder,html body textarea::placeholder{color:var(--n-400)!important;-webkit-text-fill-color:var(--n-400)!important;font-weight:400!important;opacity:1}
html body table.suTabellaLista thead th,html body table.suTabellaLista thead th.sorting_asc,html body table.suTabellaLista thead th.sorting_desc{background-color:var(--navy)!important}

/* ==========================================================================
   37. MAGAZZINO: ricerca, altri filtri, colonne adattive
   ========================================================================== */
/* Cerca generale per primo e piu' largo, poi Fornitore/Cliente, Materiale, Sigla; gli altri filtri a scomparsa */
@media (min-width:900px){
  html body .classeFiltriContent:has(>.suCercaGenerale){grid-template-columns:minmax(280px,2.2fr) repeat(3,minmax(170px,1fr))!important}
}
html body .classeFiltriContent>.suCercaGenerale{order:-1}
html body .classeFiltriContent>.suFiltroExtra{display:none!important}
html body .classeFiltriContent.suAltriAperti>.suFiltroExtra{display:block!important;animation:su-cala .16s ease-out}
html body .suCercaGenerale input{font-weight:600}
html body .suComandiFiltri>.suAltriFiltriBtn{order:-1;margin-right:auto!important}
html body .suAltriFiltriBtn.active{background:var(--blue-bg)!important;color:var(--primary)!important;border-color:var(--blue-line)!important}
html body .suAltriFiltriBtn .badge:empty{display:none}
html body .suAltriFiltriBtn .badge{background:var(--orange-500)!important;color:#fff!important;margin-left:4px}
html body .suAltriFiltriBtn::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--ico-filtro) center/contain no-repeat;mask:var(--ico-filtro) center/contain no-repeat}

:root{--ico-filtro:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 4h16l-6 7v7l-4 2v-9z%22/%3E%3C/svg%3E")}
/* colonne adattive: ogni colonna larga quanto il suo contenuto (uguale in tutte le righe), lo spazio in piu' diviso tra le colonne */
@media (min-width:900px){
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(7):last-child){grid-template-columns:repeat(7,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(8):last-child){grid-template-columns:repeat(8,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(9):last-child){grid-template-columns:repeat(9,minmax(84px,auto)) max-content!important}
  html body .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico):has(.classeGenerico>.etichetta:nth-child(10):last-child){grid-template-columns:repeat(10,minmax(84px,auto)) max-content!important}
  html body .contentGenerico>.classePannelloGenerico>div:has(>.pulsantiGenerico)>.classeGenerico{grid-column:1/-2!important;display:grid!important;grid-template-columns:subgrid!important}
  html body .contentGenerico>.classePannelloGenerico>div:has(>.pulsantiGenerico)>.pulsantiGenerico{grid-column:-2/-1!important}
  html body .contentGenerico>.classePannelloGenerico>div:has(>.pulsantiGenerico)>.classeGenerico>.etichetta{width:auto!important;min-width:0}
}
/* --- finestra Nuovo / Modifica del magazzino: due colonne, misure in fila, comandi in basso a destra --- */
html body .modal-dialog:has(form [name="inserisciDatiMagazzino"]),html body .modal-dialog:has(form [name="modificaDatiMagazzino"]){width:min(860px,94vw)!important;max-width:none}
html body .modal:has(form [name="inserisciDatiMagazzino"]) form,html body .modal:has(form [name="modificaDatiMagazzino"]) form{margin:0!important}
html body .modal:has(form [name="inserisciDatiMagazzino"]) form>.well,html body .modal:has(form [name="modificaDatiMagazzino"]) form>.well{background:var(--blue-bg)!important;color:var(--primary)!important;border:1px solid var(--blue-line)!important;font-size:13px!important;font-weight:800;padding:8px 12px!important;margin:0 0 14px!important;border-radius:8px;text-align:left!important;box-shadow:none}
@media (min-width:700px){
  html body .modal:has(form [name="inserisciDatiMagazzino"]) form>.panel-body,html body .modal:has(form [name="modificaDatiMagazzino"]) form>.panel-body{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;padding:0!important}
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>*{min-width:0}
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row{margin:0!important}
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row:has(.nav-tabs),
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row:has(.tab-content),
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row:has(>h4),
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>h4,
  html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row[style*="border"]{grid-column:1/-1}
}
html body .modal:has(form [name$="DatiMagazzino"]) .tab-content .tab-pane.active{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}
html body .modal:has(form [name$="DatiMagazzino"]) .tab-content .tab-pane>[class*=col-]{width:auto!important;float:none!important;padding:0!important}
html body .modal:has(form [name$="DatiMagazzino"]) .row:has(.nav-tabs){margin:6px 0 4px!important}
html body .modal:has(form [name$="DatiMagazzino"]) .row:has(>[class*=col-md-6]) >[class*=col-md-6]{width:100%!important;float:none}
html body .suComandiModale{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:18px -15px -15px;padding:14px 16px;border-top:1px solid var(--line);background:var(--n-50);border-radius:0 0 12px 12px}
html body .suComandiModale .btn{height:40px;min-width:120px;font-size:14px;width:auto!important;margin:0!important}
html body .suComandiModale .btn-primary{min-width:150px}
html body .modal-footer.suVuoto{display:none!important}
/* --- Magazzino: ricerca e comandi tutti su una fila (vanno a capo solo se lo schermo e' stretto) --- */
@media (min-width:900px){
  html body .panelRicerca .classeFiltriContent.classeFiltriContent:has(>.suCercaGenerale){display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:10px 10px}
  html body .classeFiltriContent:has(>.suCercaGenerale)>div{flex:1 1 150px;max-width:230px}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suCercaGenerale{flex:2 1 220px;max-width:none}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suComandiFiltri{flex:0 0 auto!important;max-width:none;width:auto!important;order:3;margin-left:auto;flex-wrap:nowrap}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suFiltroExtra{order:5;flex:1 1 150px}
}
html body .suComandiFiltri .suSoloIcona{width:38px;padding:0!important;position:relative}
html body .suComandiFiltri .suSoloIcona .suTesto{display:none}
html body .suComandiFiltri .suSoloIcona::before{margin:0!important}
html body .suComandiFiltri .suSoloIcona .badge{position:absolute;top:-7px;right:-7px;margin:0}
html body .suComandiFiltri>.suAltriFiltriBtn{margin-right:0!important}
html body .suComandiFiltri .suNuovoMag::before,html body .suComandiFiltri .suDaArticolo::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--su-ico) center/contain no-repeat;mask:var(--su-ico) center/contain no-repeat}
html body .suComandiFiltri .suNuovoMag{--su-ico:var(--ico-plus)}
html body .suComandiFiltri .suDaArticolo{--su-ico:var(--ico-inbox)}
html body .suComandiFiltri .suNuovoMag,html body .suComandiFiltri .suDaArticolo{height:38px;display:inline-flex;align-items:center}
/* finestra Nuovo / Modifica: niente cella vuota (elemento invisibile di Bootstrap) e linguette su tutta la riga */
html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body::before,html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body::after{content:none!important;display:none!important}
html body .modal:has(form [name$="DatiMagazzino"]) form>.panel-body>.row:has(.dimensione_tipoClick){grid-column:1/-1}
@media (min-width:900px){
  html body .classeFiltriContent:has(>.suCercaGenerale)>div{flex:1 1 128px;max-width:210px}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suCercaGenerale{flex:2 1 170px;max-width:none}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suComandiFiltri{gap:6px}
  html body .classeFiltriContent:has(>.suCercaGenerale) .suLinguette .suLinguetta{padding:0 10px!important}
}

/* --- Archivio: colonna "Ult. caricamento" (6 colonne prima dei pulsanti) --- */
@media (min-width:900px){
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) minmax(70px,max-content) minmax(128px,max-content) auto!important}
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) 0 minmax(70px,1fr) minmax(128px,max-content) auto!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine{grid-column:1/7!important}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .classeOrdine>.etichetta:nth-child(6){grid-column:6}
  html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio) .pulsantiArchivio{grid-column:7!important}
}
@media (min-width:1280px){
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) 0 minmax(128px,max-content) auto!important}
}
html body .contentArchivio[data-ord="7"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(6) h4>span:first-child{color:#fff!important}
html body .contentArchivio[data-ord="7"][data-dir="crescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(6) h4>span:first-child::after{content:"▲";opacity:1;color:var(--blue-400)}
html body .contentArchivio[data-ord="7"][data-dir="decrescente"] .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(6) h4>span:first-child::after{content:"▼";opacity:1;color:var(--blue-400)}
html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(6) h4>span:first-child{cursor:pointer;user-select:none;pointer-events:auto}

/* ==========================================================================
   38. AGGIORNAMENTO 20
   ========================================================================== */
/* Archivio: colonne vuote in tutta la pagina = nessuno spazio e nessuna linea; lo spazio va all'ultima colonna di testo visibile */
@media (min-width:900px){
  /* articolo vuoto (descrizione presente): si allarga la descrizione */
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) 0 minmax(128px,max-content) auto!important}
  /* descrizione e articolo vuoti: si allarga il nome file */
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(120px,1fr) 0 0 minmax(128px,max-content) auto!important}
}
/* Carica e processa: testo centrato in altezza in tutte le celle */
@media (min-width:992px){
  html body .rigaCustom.suRiga>.suCGruppo,html body .rigaCustom.suRiga>.suCCliente,html body .rigaCustom.suRiga>.suCNome,html body .rigaCustom.suRiga>.suCDesc{display:flex!important;align-items:center;line-height:1.35!important}
  html body .rigaCustom.suRiga .suT{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .rigaCustom.suRiga>.suCStato,html body .rigaCustom.suRiga>.suCProgramma,html body .rigaCustom.suRiga>.suCAzioni,html body .rigaCustom.suRiga>.suCSel{display:flex!important;align-items:center}
}
/* Archivio: la × per togliere la selezione sta dentro "Scarica selezionati" (sempre al suo posto, visibile solo con spunte) */
html body .suComandiFiltri .suTogliSelezione{display:none!important}
html body .suScaricaSel .suTogliX{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:6px;border-radius:50%;background:rgba(255,255,255,.22);font-size:15px;line-height:1;font-weight:700;visibility:hidden;cursor:pointer}
html body .suScaricaSel:not(.disabled) .suTogliX{visibility:visible}
html body .suScaricaSel .suTogliX:hover{background:#fff;color:var(--primary)}

/* ---------- Menu laterale: sezioni, ordine logico, apertura fluida ---------- */
html.su-menu-nuovo body #mainMenu{display:flex!important;flex-direction:column}
html.su-menu-nuovo body #mainMenu>li{order:20}
html.su-menu-nuovo body #mainMenu>li:has(>a[href$="lavori"]){order:1}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="archivio"]){order:2}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="magazzino"]){order:3}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="articoli"]){order:4}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="listino"]){order:5}
html.su-menu-nuovo body #mainMenu>li.submenu{order:10}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="autorizzazioni"]){order:30}
/* titoletti delle sezioni */
html.su-menu-nuovo body #mainMenu>li:has(>a[href$="lavori"])::before,
html.su-menu-nuovo body #mainMenu>li.submenu:has(~li.submenu)::before,
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="autorizzazioni"])::before{display:block;padding:14px 14px 6px;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:rgba(255,255,255,.38)}
html.su-menu-nuovo body #mainMenu>li:has(>a[href$="lavori"])::before{content:"Lavoro";padding-top:4px}
html.su-menu-nuovo body #mainMenu>li.submenu:has(~li.submenu)::before{content:"Anagrafiche"}
html.su-menu-nuovo body #mainMenu>li:has(>a[href*="autorizzazioni"])::before{content:"Impostazioni"}
@media (min-width:768px) and (max-width:1279.98px){
  html.su-menu-nuovo body #mainMenu>li::before{display:none!important}
}
/* gruppi: si aprono e chiudono con altezza + dissolvenza (niente scatti) */
html.su-menu-nuovo body #mainMenu>li.submenu>ul{display:block!important;max-height:0;opacity:0;overflow:hidden;transition:max-height .24s cubic-bezier(.2,.7,.2,1),opacity .18s ease;animation:none!important}
html.su-menu-nuovo body #mainMenu>li.submenu.su-aperto>ul{max-height:var(--su-h,400px);opacity:1}
html.su-menu-nuovo body #mainMenu>li.submenu.su-senza-anim>ul{transition:none}
html.su-menu-nuovo body #mainMenu>li.submenu>a .chevron{transition:transform .22s ease}
html.su-menu-nuovo body #mainMenu>li.submenu.su-aperto>a .chevron{transform:rotate(90deg)}
html.su-menu-nuovo body #mainMenu>li>a{transition:background .15s ease,color .15s ease,transform .15s ease}
html.su-menu-nuovo body #mainMenu>li>a:hover{transform:translateX(2px)}
html.su-menu-nuovo body #mainMenu>li.submenu>ul>a{transition:background .15s ease,color .15s ease,padding-left .15s ease}
html.su-menu-nuovo body #mainMenu>li.submenu>ul>a:hover{padding-left:calc(var(--su-pl,40px) + 3px)}

/* ---------- Percorso in alto: Home › gruppo › pagina ---------- */
html body .top-bar ul.top-elements.suHaBriciole>li.hidden-xs.hidden-sm.piluku-dropdown{display:none!important}
html body .top-bar .suBriciole{float:left;display:flex!important;align-items:center;gap:8px;height:64px;padding-left:4px;font-size:13px;white-space:nowrap}
html body .top-bar .suBriciole .suSep{color:var(--n-400);font-size:15px}
html body .top-bar .suBriciole .suTappa{color:var(--muted);font-weight:600;text-decoration:none}
html body .top-bar .suBriciole a.suTappa:hover{color:var(--primary)}
html body .top-bar .suBriciole .suQui{color:var(--ink);font-weight:800;font-size:15px}
@media (max-width:767px){ html body .top-bar .suBriciole{display:none!important} }

/* ---------- Passaggio tra le pagine: dissolvenza 160 ms ---------- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:160ms;animation-timing-function:ease-out}
@keyframes su-appare{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
html body .main-content>.row,html body .info-page>[class*=col-]{animation:su-appare .16s ease-out backwards!important;animation-delay:0s!important}

/* ---------- Finestre e anteprime: dissolvenza + leggero ingrandimento (160 ms) ---------- */
html body .modal.fade .modal-dialog{transform:scale(.97)!important;opacity:0;transition:transform .16s cubic-bezier(.2,.7,.2,1),opacity .16s ease-out!important}
html body .modal.fade.in .modal-dialog{transform:none!important;opacity:1}
html body .modal-backdrop.fade{transition:opacity .16s ease!important}

/* ---------- Ricerca in corso: grande e al centro dello schermo ---------- */
html body .suCaricamentoBarra{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:1040;padding:24px 44px 26px!important;font-size:18px!important;border-radius:20px!important;gap:18px!important;box-shadow:0 24px 70px rgba(16,24,40,.28)!important;animation:su-appare .16s ease-out}
html body .suCaricamentoBarra .suCaricamentoAnim i{width:16px!important;height:16px!important}
html body .suCaricamentoBarra .suCaricamentoAnim{gap:9px!important}
html body .suCaricamentoBarra::after{height:4px!important}
html body .suCaricamento{min-height:calc(60vh / .9)!important;font-size:18px!important;gap:20px!important}
html body .suCaricamento .suCaricamentoAnim i{width:20px!important;height:20px!important}
/* numeri a larghezza fissa nei contatori: i pulsanti non cambiano larghezza */
html body .badge{font-variant-numeric:tabular-nums}
html body #mainMenu a.su-attivo,html body #mainMenu a.su-attivo *,html body #mainMenu a.su-attivo:hover *{color:#fff!important}
html body .top-bar ul.top-elements>li:first-child>a{display:flex!important;align-items:center;height:64px!important;gap:6px}
html body .top-bar ul.top-elements>li:first-child>a i{margin-top:0!important}
/* menu stretto (solo icone): il gruppo si apre sotto la sua icona, dentro la barra; barra sempre alta quanto lo schermo */
@media (min-width:768px) and (max-width:1279.98px){
  html.su-menu-nuovo body #mainMenu>li.submenu>ul{position:static!important;left:auto!important;top:auto!important;width:auto!important;min-width:0!important;box-shadow:none!important;border:0!important;background:rgba(255,255,255,.05)!important;margin:2px 6px!important;border-radius:10px;padding:0!important}
  html.su-menu-nuovo body #mainMenu>li.submenu>ul>a{justify-content:center;padding-left:0!important;padding-right:0!important}
  html.su-menu-nuovo body #mainMenu>li.submenu>ul>a:hover{padding-left:0!important}
}
@media (min-width:800px){ html body .left-bar{min-height:calc(100vh / .9)!important} }
@media (max-width:799.98px){ html body .left-bar{min-height:100vh} }
/* contenitore della pagina alto almeno quanto lo schermo (non di piu': niente scorrimento a vuoto) */
@media (min-width:800px){ html body .wrapper{min-height:calc(100vh / .9)!important} }
@media (max-width:799.98px){ html body .wrapper{min-height:100vh!important} }
/* l'ordine e le sezioni del menu valgono subito (non aspettano lo script) */
html body #mainMenu{display:flex!important;flex-direction:column}
html body #mainMenu>li{order:20}
html body #mainMenu>li:has(>a[href$="lavori"]){order:1}
html body #mainMenu>li:has(>a[href*="archivio"]){order:2}
html body #mainMenu>li:has(>a[href*="magazzino"]){order:3}
html body #mainMenu>li:has(>a[href*="articoli"]){order:4}
html body #mainMenu>li:has(>a[href*="listino"]){order:5}
html body #mainMenu>li.submenu{order:10}
html body #mainMenu>li:has(>a[href*="autorizzazioni"]){order:30}

/* ==========================================================================
   39. AGGIORNAMENTO 21
   ========================================================================== */
/* Archivio: la colonna "Ult. caricamento" e' larga quanto il suo titolo (il titolo non va oltre a destra) */
@media (min-width:900px){
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) minmax(70px,max-content) minmax(168px,max-content) auto!important}
  html body .contentArchivio:not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) 0 minmax(70px,1fr) minmax(168px,max-content) auto!important}
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(70px,max-content) minmax(200px,1fr) 0 minmax(168px,max-content) auto!important}
  html body .contentArchivio:has(>.classePannelloOrdine .pulsantiArchivio):not(:has(.classeOrdine>.etichetta:nth-child(4) h4>span:last-child>strong:not(:empty))):not(:has(.classeOrdine>.etichetta:nth-child(5) h4>span:last-child>strong:not(:empty))){grid-template-columns:minmax(70px,max-content) minmax(90px,max-content) minmax(120px,1fr) 0 0 minmax(168px,max-content) auto!important}
  html body .contentArchivio .row.height1+.classePannelloOrdine .classeOrdine>.etichetta:nth-child(6) h4>span:first-child{max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis}
}

/* Filtri: l'etichetta sta DENTRO il riquadro del campo, a sinistra, centrata in altezza */
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child){flex-wrap:nowrap!important;align-items:center!important;height:40px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child):focus-within{border-color:var(--primary);box-shadow:var(--ring)}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child)>.input-group-addon:first-child{flex:0 0 auto!important;width:auto!important;max-width:none!important;white-space:nowrap;height:100%;display:flex!important;align-items:center;padding:0 6px 0 12px!important;margin:0!important;font-size:10.5px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)!important;background:transparent!important;border:0!important}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child)>input.form-control{border:0!important;box-shadow:none!important;height:38px!important;background-image:none!important;padding:0 10px 0 4px!important;background-color:transparent!important;border-radius:0!important}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child)>.select2-container.select2-container.select2-container{flex:1 1 auto!important;width:auto!important;min-width:0}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child) .select2-selection{border:0!important;box-shadow:none!important;background:transparent!important;height:auto!important;min-height:0!important;display:flex!important;align-items:center;position:relative;padding:0 30px 0 0!important}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child) .select2-selection__rendered{line-height:20px!important;padding-top:0!important;padding-bottom:0!important;flex:1 1 auto;min-width:0;padding-left:4px!important}
html body .classeFiltriContent .suComandiFiltri{align-items:center!important}
html body .classeFiltriContent .suComandiFiltri .btn,html body .classeFiltriContent .suLinguette{height:40px}
html body .classeFiltriContent.classeFiltriContent{align-items:center!important}
html body .classeFiltriContent.classeFiltriContent:not(:has(>.suComandiFiltri)){align-items:end!important}
/* Magazzino: tendine abbastanza larghe per etichetta + valore */
@media (min-width:900px){
  html body .classeFiltriContent:has(>.suCercaGenerale)>div{flex:1 1 185px;max-width:260px}
  html body .classeFiltriContent:has(>.suCercaGenerale)>.suCercaGenerale{flex:2 1 230px;max-width:none}
}
/* Materiale / Sigle: anche qui l'etichetta "Cerca" dentro il campo */
html body .suDtTop .dataTables_filter label{flex-direction:row!important;align-items:center!important;gap:0!important;height:40px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;padding-left:12px;overflow:hidden}
html body .suDtTop .dataTables_filter label:focus-within{border-color:var(--primary);box-shadow:var(--ring)}
html body .suDtTop .dataTables_filter input{border:0!important;box-shadow:none!important;height:38px!important;background-image:none!important;padding-left:8px!important}
html body .dataTables_wrapper .suDtTop{align-items:center!important}
html body .suDtTop .suComandiFiltri .btn{height:40px}

/* ==========================================================================
   40. ASPETTO PIU' MODERNO (solo grafica: stessi colori e significati dello stile unico)
   ========================================================================== */
:root{--ic-users:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E");--ic-settings:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1A1.7 1.7 0 0 0 9 4.6 1.7 1.7 0 0 0 10 3V2.8h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4H21a1.7 1.7 0 0 0-1.6 1z%22/%3E%3C/svg%3E");--ic-wrench:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14.7 6.3a4 4 0 0 1-5 5L4 17l-2 2 3 3 2-2 5.7-5.7a4 4 0 0 1 5-5l-2.4 2.4-3-1-1-3z%22/%3E%3C/svg%3E");--ic-box:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z%22/%3E%3Cpath d=%22M3.3 7l8.7 5 8.7-5M12 22V12%22/%3E%3C/svg%3E");--ic-barcode:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5v14M7 5v14M10 5v14M14 5v14M17 5v14M20 5v14%22/%3E%3Cpath d=%22M8.5 5v14M15.5 5v14%22 stroke-width=%22.9%22/%3E%3C/svg%3E");--ic-euro:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 7a7 7 0 1 0 0 10%22/%3E%3Cpath d=%22M4 10h10M4 14h9%22/%3E%3C/svg%3E");--ic-user:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M4 21a8 8 0 0 1 16 0%22/%3E%3C/svg%3E");--ic-truck:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h11v10H3zM14 10h4l3 3v3h-7z%22/%3E%3Ccircle cx=%227%22 cy=%2218%22 r=%222%22/%3E%3Ccircle cx=%2218%22 cy=%2218%22 r=%222%22/%3E%3C/svg%3E");--ic-layers:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l9 5-9 5-9-5 9-5z%22/%3E%3Cpath d=%22M3 13l9 5 9-5%22/%3E%3C/svg%3E");--ic-package:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7l8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10%22/%3E%3C/svg%3E");--ic-tag:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 12l-8 8-9-9V4h7z%22/%3E%3Ccircle cx=%227%22 cy=%228%22 r=%221%22/%3E%3C/svg%3E");--ic-lock:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%2210%22 width=%2214%22 height=%2211%22 rx=%222%22/%3E%3Cpath d=%22M8 10V7a4 4 0 0 1 8 0v3%22/%3E%3C/svg%3E");--ic-home:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11l9-8 9 8%22/%3E%3Cpath d=%22M5 10v10h14V10%22/%3E%3Cpath d=%22M9 20v-6h6v6%22/%3E%3C/svg%3E");--ic-file:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpath d=%22M14 2v6h6M8 13h8M8 17h8%22/%3E%3C/svg%3E");--ic-clipboard:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%224%22 width=%2214%22 height=%2217%22 rx=%222%22/%3E%3Cpath d=%22M9 4V2h6v2%22/%3E%3Cpath d=%22M8 9h8M8 13h8M8 17h5%22/%3E%3C/svg%3E");--ic-gauge:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.5 18a9 9 0 1 1 15 0%22/%3E%3Cpath d=%22M12 13l4-4%22/%3E%3Ccircle cx=%2212%22 cy=%2213%22 r=%221.4%22/%3E%3C/svg%3E");--ic-database:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cellipse cx=%2212%22 cy=%225%22 rx=%228%22 ry=%223%22/%3E%3Cpath d=%22M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5%22/%3E%3Cpath d=%22M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6%22/%3E%3C/svg%3E");--ic-chevron:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 18l6-6-6-6%22/%3E%3C/svg%3E");--ic-arrowRight:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M12 5l7 7-7 7%22/%3E%3C/svg%3E");--ic-codice:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpath d=%22M14 2v6h6%22/%3E%3Cpath d=%22M10 12l-2.5 3 2.5 3M14 12l2.5 3-2.5 3%22/%3E%3C/svg%3E");--ic-badge:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M7 8h10M7 12h6M7 16h8%22/%3E%3C/svg%3E")}

/* --- icone a linea nel menu e nella Home (al posto delle icone piene) --- */
html body #mainMenu>li>a>i.fa,html body #mainMenu>li>ul>a>i.fa,html body .square-info .square-icon>i.fa{font-size:0!important;width:20px;height:20px;display:inline-block!important;background:currentColor;-webkit-mask:var(--su-mi,var(--ic-file)) center/contain no-repeat;mask:var(--su-mi,var(--ic-file)) center/contain no-repeat;vertical-align:middle;line-height:0!important}
html body #mainMenu i.fa::before,html body .square-info .square-icon>i.fa::before{content:none!important}
html body #mainMenu i.fa-users,html body .square-icon>i.fa-users{--su-mi:var(--ic-users)}
html body #mainMenu i.fa-cogs,html body .square-icon>i.fa-cogs{--su-mi:var(--ic-settings)}
html body #mainMenu i.fa-cog,html body .square-icon>i.fa-cog{--su-mi:var(--ic-settings)}
html body #mainMenu a[href*="autorizzazioni"]>i.fa{--su-mi:var(--ic-lock)}
html body #mainMenu i.fa-wrench,html body .square-icon>i.fa-wrench{--su-mi:var(--ic-wrench)}
html body #mainMenu i.fa-file-code-o,html body .square-icon>i.fa-file-code-o{--su-mi:var(--ic-codice)}
html body #mainMenu i.fa-archive,html body .square-icon>i.fa-archive{--su-mi:var(--ic-box)}
html body #mainMenu i.fa-barcode,html body .square-icon>i.fa-barcode{--su-mi:var(--ic-barcode)}
html body #mainMenu i.fa-eur,html body .square-icon>i.fa-eur{--su-mi:var(--ic-euro)}
html body #mainMenu i.fa-user,html body .square-icon>i.fa-user{--su-mi:var(--ic-user)}
html body #mainMenu i.fa-truck,html body .square-icon>i.fa-truck{--su-mi:var(--ic-truck)}
html body #mainMenu i.fa-id-badge,html body .square-icon>i.fa-id-badge{--su-mi:var(--ic-badge)}
html body #mainMenu i.fa-object-group,html body .square-icon>i.fa-object-group{--su-mi:var(--ic-layers)}
html body #mainMenu i.fa-cube,html body .square-icon>i.fa-cube{--su-mi:var(--ic-package)}
html body #mainMenu i.fa-tag,html body .square-icon>i.fa-tag{--su-mi:var(--ic-tag)}
html body #mainMenu>li>ul>a>i.fa{width:17px;height:17px}

/* --- Home: tessere moderne con descrizione, prima il lavoro poi le anagrafiche --- */
html body .info-page{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin:4px 0 0!important}
html body .info-page::before,html body .info-page::after{content:none!important;display:none!important}
html body .info-page>[class*=col-]{width:auto!important;float:none!important;padding:0!important;order:20}
html body .info-page>[class*=col-]:has(a[href*="lavori"]){order:1}
html body .info-page>[class*=col-]:has(a[href*="archivio"]){order:2}
html body .info-page>[class*=col-]:has(a[href*="magazzino"]){order:3}
html body .info-page>[class*=col-]:has(a[href*="articoli"]){order:4}
html body .info-page>[class*=col-]:has(a[href*="listino"]){order:5}
html body .info-page .square-info{position:relative;height:100%;margin:0!important;padding:0!important;text-align:left!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.05)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;overflow:hidden}
html body .info-page .square-info:hover{transform:translateY(-2px);border-color:var(--blue-line)!important;box-shadow:0 2px 4px rgba(16,24,40,.05),0 14px 32px rgba(37,99,235,.12)!important}
html body .info-page .square-info>a{display:grid!important;grid-template-columns:52px 1fr 20px;grid-template-rows:auto auto;column-gap:16px;align-items:center;padding:20px 20px 20px 18px!important;color:var(--ink)!important;text-decoration:none!important;min-height:96px}
html body .info-page .square-info .square-icon{grid-row:1/span 2;grid-column:1;width:52px!important;height:52px!important;border-radius:14px!important;background:var(--blue-bg)!important;color:var(--primary)!important;display:flex!important;align-items:center;justify-content:center;margin:0!important;position:static!important;transition:background .16s,color .16s}
html body .info-page .square-info:hover .square-icon{background:var(--primary)!important;color:#fff!important}
html body .info-page .square-info .square-icon>i.fa{width:26px;height:26px}
html body .info-page .square-info h3{grid-column:2;grid-row:1;margin:0!important;font-size:17px!important;font-weight:800!important;color:var(--ink)!important;text-align:left!important;line-height:1.25}
html body .info-page .square-info p{grid-column:2;grid-row:2;margin:4px 0 0!important;font-size:0!important;line-height:0;color:var(--muted)!important;text-align:left!important}
html body .info-page .square-info p>i{display:none!important}
html body .info-page .square-info p::after{font-size:13px;line-height:1.4;font-weight:500;color:var(--muted)}
html body .info-page .square-info>a::after{content:"";grid-column:3;grid-row:1/span 2;width:18px;height:18px;background:var(--n-400);-webkit-mask:var(--ic-chevron) center/contain no-repeat;mask:var(--ic-chevron) center/contain no-repeat;transition:transform .16s,background .16s}
html body .info-page .square-info:hover>a::after{transform:translateX(3px);background:var(--primary)}
html body .info-page .square-info:has(a[href*="lavori"]) p::after{content:"Ordini, lavori e fasi di produzione"}
html body .info-page .square-info:has(a[href*="archivio"]) p::after{content:"Programmi CNC: carica, cerca, confronta"}
html body .info-page .square-info:has(a[href*="magazzino"]) p::after{content:"Pezzi e materiale a scaffale"}
html body .info-page .square-info:has(a[href*="articoli"]) p::after{content:"Codici articolo, disegni e assiemi"}
html body .info-page .square-info:has(a[href*="listino"]) p::after{content:"Prezzi e listini"}
html body .info-page .square-info:has(.square-icon .fa-users) p::after{content:"Clienti e fornitori, responsabili"}
html body .info-page .square-info:has(.square-icon .fa-cogs) p::after{content:"Macchine, gruppi, materiali e sigle"}
/* tessere dei gruppi: le voci del gruppo sotto, cliccabili */
html body .info-page .square-info:has(.suSottoVoci)>a{cursor:default}
html body .info-page .square-info:has(.suSottoVoci)>a::after{display:none}
html body .info-page .suSottoVoci{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 18px 86px;margin-top:-6px}
html body .info-page .suSottoVoci a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:99px;background:var(--n-100);border:1px solid var(--line);color:var(--ink-2)!important;font-size:12.5px;font-weight:700;text-decoration:none!important;transition:background .15s,color .15s,border-color .15s}
html body .info-page .suSottoVoci a:hover{background:var(--primary);border-color:var(--primary);color:#fff!important}
html body .info-page .suSottoVoci a i.fa{display:none}

/* --- superfici piu' morbide --- */
html body{background:linear-gradient(180deg,#f5f7fb 0%,#eef1f6 100%) fixed!important}
html body .panel{border-radius:16px!important;border-color:#e6eaf0!important;box-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.05)!important}
html body .modal-content{border-radius:16px!important;box-shadow:0 24px 64px rgba(16,24,40,.24)!important;border:0!important}
html body .top-bar,html body .top-bar.navbar,html body .navbar-default.top-bar{background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px)}
/* --- menu: voce attiva a "pillola", passaggio del mouse morbido --- */
html body .left-bar{background:linear-gradient(180deg,#0c2038 0%,#071727 100%)!important}
html body #mainMenu>li>a,html body #mainMenu>li>ul>a{border-radius:12px!important}
html body #mainMenu>li>a:hover,html body #mainMenu>li>ul>a:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
html body #mainMenu a.su-attivo{background:linear-gradient(135deg,#2f6bf0 0%,#1d4ed8 100%)!important;box-shadow:0 6px 18px rgba(37,99,235,.38)!important}
/* --- pulsanti e righe: piccolo sollevamento al passaggio --- */
html body .btn{border-radius:10px}
html body .btn-primary:not(.disabled):hover,html body .btn-success:not(.disabled):hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(37,99,235,.22)!important}
html body .btn-success:not(.disabled):hover{box-shadow:0 6px 14px rgba(22,163,74,.24)!important}
html body .contentArchivio .classePannelloOrdine:has(.pulsantiArchivio):hover,html body .contentGenerico .classePannelloGenerico:has(.pulsantiGenerico):hover,html body .rigaCustom.suRiga:hover{background:#f7faff!important}

/* ==========================================================================
   41. AGGIORNAMENTO 22: testo centrato nei pulsanti dei filtri, intestazione finestra Anteprima/Differenze
   ========================================================================== */
html body .classeFiltriContent .btn:not(.suTogliSelezione):not(.hide):not(.hidden):not([style*="none"]),html body .suComandiFiltri .btn:not(.suTogliSelezione):not(.hide):not(.hidden):not([style*="none"]){display:inline-flex!important;align-items:center!important;justify-content:center;gap:7px;line-height:1.2!important;padding-top:0!important;padding-bottom:0!important}
html body .classeFiltriContent .btn>i.fa,html body .suComandiFiltri .btn>i.fa{line-height:1}
html body .classeFiltriContent .btn .badge,html body .suComandiFiltri .btn .badge{display:inline-flex;align-items:center;justify-content:center;line-height:1;height:18px;min-width:18px;padding:0 6px}
html body .suViewer .modal-header{min-height:58px;padding:10px 16px!important;gap:8px}
html body .suViewer .modal-header .modal-title{font-size:15px!important;line-height:32px!important;margin:0 auto 0 0!important}
html body .suViewer .modal-header .suPill,html body .suPill{display:inline-flex!important;align-items:center;height:26px;padding:0 10px!important;font-size:12px!important;line-height:1!important;margin:0!important;white-space:nowrap}
html body .suViewer .modal-header .close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;line-height:1!important;border-radius:8px;opacity:.55;margin:0 0 0 4px!important;float:none!important}
html body .suViewer .modal-header .close:hover{opacity:1;background:var(--n-100)}
html body .suViewer .modal-dialog,html body .suViewer.suLargo .modal-dialog{margin:3vh auto!important}
html body .suViewer .modal-content{height:calc(94vh / .9)}
@media (max-width:799px){ html body .suViewer .modal-content{height:94vh} }
/* etichetta dentro il campo: mai tagliata, stessa linea del valore */
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group>.input-group-addon:first-child{flex:0 0 auto!important;max-width:none!important;padding-top:1px!important;white-space:nowrap}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child)>.select2-container{align-self:center!important;height:auto!important}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child) .select2-selection__arrow{top:50%!important;height:20px!important;width:16px!important;margin-top:-10px;right:10px!important}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child) .select2-selection__arrow b{top:50%!important;margin-top:-1px!important}
@media (min-width:900px){
  html body .classeContentArchivi .classeFiltriContent{grid-template-columns:minmax(0,1.4fr) minmax(0,1.4fr) minmax(220px,1fr) minmax(220px,1fr)!important}
}
@media (min-width:1500px){
  html body .classeContentArchivi .classeFiltriContent{grid-template-columns:minmax(150px,1.4fr) minmax(150px,1.4fr) minmax(220px,1fr) minmax(220px,1fr) auto!important}
}
html body .classeFiltriContent:has(>.suComandiFiltri) .select2-selection__rendered{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child)>.select2-container>.selection,html body .classeFiltriContent:has(>.suComandiFiltri) .input-group:has(>.input-group-addon:first-child) .select2-selection{width:100%!important;display:flex!important}

/* ==========================================================================
   42. AGGIORNAMENTO 23: righe/KB nell'Anteprima dell'archivio, filtri centrati nell'area grigia
   ========================================================================== */
html body .modal-dialog.suEditor .modal-header{min-height:58px;padding:10px 16px!important;gap:8px}
html body .modal-dialog.suEditor .modal-header .modal-title{line-height:32px!important;margin:0 auto 0 0!important}
html body .modal-dialog.suEditor .suViewerBarra{display:flex;align-items:center;gap:8px}
html body .modal-dialog.suEditor .modal-header .close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;line-height:1!important;border-radius:8px;opacity:.55;margin:0 0 0 4px!important;float:none!important}
html body .modal-dialog.suEditor .modal-header .close:hover{opacity:1;background:var(--n-100)}
/* area grigia dei filtri: stesso spazio sopra e sotto */
html body .panelRicerca:has(>.classeFiltriContent>.suComandiFiltri){padding-top:12px!important;padding-bottom:12px!important}
html body .pannelloTestatPrincipale .panelRicerca>.classeFiltriContent.classeFiltriContent.classeFiltriContent:has(>.suComandiFiltri){padding-top:0!important;padding-bottom:0!important}

/* ==========================================================================
   43. AGGIORNAMENTO 24: aprire una finestra non deve stringere la pagina sotto.
   Lo spazio della barra di scorrimento resta sempre riservato, quindi niente compensazione di Bootstrap.
   ========================================================================== */
html{scrollbar-gutter:stable}
html body.modal-open{padding-right:0!important}
html body .modal{padding-right:0!important}
html body.swal2-shown:not(.swal2-no-backdrop){padding-right:0!important}

/* ==========================================================================
   44. AGGIORNAMENTO 25: una sola animazione di caricamento ovunque; filtri dei Lavori come Archivio/Magazzino
   ========================================================================== */
/* il vecchio velo a schermo intero (restava finche' non era scaricata ogni immagine) non si usa piu':
   la pagina si vede subito e la lista mostra l'animazione al centro mentre arriva */
html body .piluku-preloader{display:none!important}
html body .suCaricamento{display:none!important}
/* Lavori: Cerca generale + Cliente + Responsabile su una fila; gli altri sotto "Altri filtri" */
@media (min-width:900px){
  html body .panelRicerca .classeFiltriContent.classeFiltriContent:has(>.suCercaGenerale):has(.ricercaLavoriCliente){display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
  html body .classeFiltriContent:has(.ricercaLavoriCliente)>div{flex:1 1 200px;max-width:300px}
  html body .classeFiltriContent:has(.ricercaLavoriCliente)>.suCercaGenerale{flex:3 1 320px;max-width:none}
  html body .classeFiltriContent:has(.ricercaLavoriCliente)>.suFiltroExtra{flex:1 1 220px;max-width:none}
  html body .classeFiltriContent:has(.ricercaLavoriCliente)>.suComandiFiltri{flex:0 0 auto!important;order:3;margin-left:auto;max-width:none;width:auto!important}
}
html body .classeFiltriContent:has(.ricercaLavoriCliente)>div{width:auto!important}
html body .classeFiltriContent:has(.ricercaLavoriCliente) .input-group.col-xs-12{width:100%!important;float:none!important;padding:0!important}
html body .suComandiFiltri .btn .badge:empty,html body .classeFiltriContent .btn .badge:empty{display:none!important}
/* tendine non ancora pronte (primi istanti): stesso aspetto di quelle finite, niente scatto */
html body .classeFiltriContent:has(>.suComandiFiltri) .input-group>select.select2-single:not(.select2-hidden-accessible){flex:1 1 auto;min-width:0;height:100%!important;border:0!important;box-shadow:none!important;background:transparent!important;-webkit-appearance:none;appearance:none;padding:0 30px 0 4px!important;font-size:13px!important;color:transparent!important}

/* ==========================================================================
   45. AGGIORNAMENTO 26: allegati a tutto schermo (prima l'anteprima era fissa a 500 px = mezza pagina).
   Vale per tutte le finestre che mostrano un allegato: archivio, lavori, articoli, assiemi, magazzino, listini.
   ========================================================================== */
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]){width:96vw!important;max-width:none!important;margin:3vh auto!important}
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"])>.modal-content{display:flex!important;flex-direction:column;height:calc(94vh / .9)}
@media (max-width:799px){ html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"])>.modal-content{height:94vh} }
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-body{flex:1 1 auto;min-height:0;max-height:none!important;padding:10px 12px!important;display:flex;overflow:hidden!important}
html body .modal-body>iframe[style*="500px"]{flex:1 1 auto;height:auto!important;min-height:0;width:100%!important;display:block;border:1px solid var(--line)!important;border-radius:10px;background:#fff}
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-header,html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-footer{flex:0 0 auto}
/* in alto a destra la x di chiusura (prima c'era la scritta "Annulla" grigia, doppione di quella in basso) */
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-header .close{font-size:0!important;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;opacity:.55}
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-header .close::before{content:"\00d7";font-size:26px;line-height:1;font-weight:400}
html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]) .modal-header .close:hover{opacity:1;background:var(--n-100)}
@media (min-width:800px){ html body .modal-dialog:has(>.modal-content>.modal-body>iframe[style*="500px"]){width:calc(96vw / .9)!important} }

/* --- Lavori: il colore della fase e' quello dell'operatore (stesso operatore = stesso colore ovunque) --- */
html body .classeDivFaseInterno.suFaseOperatore{box-shadow:inset 5px 0 0 var(--su-op)!important;background:color-mix(in srgb,var(--su-op) 6%,#fff)!important}
html body .classeDivFaseInterno.suFaseOperatore:hover{background:color-mix(in srgb,var(--su-op) 11%,#fff)!important}
html body .classeDivFaseInterno.suFaseOperatore .spanNumeroFase{background:var(--su-op)!important;color:#fff!important}
html body .classeDivFaseInterno .suOperatore strong{display:inline-flex!important;align-items:center;gap:6px;margin-top:2px;padding:2px 10px 2px 8px;border-radius:99px;background:color-mix(in srgb,var(--su-op) 14%,#fff);border:1px solid color-mix(in srgb,var(--su-op) 35%,#fff);color:color-mix(in srgb,var(--su-op) 75%,#000)!important}
html body .classeDivFaseInterno .suOperatore strong::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--su-op);flex:0 0 auto}

/* ==========================================================================
   46. AGGIORNAMENTO 27: pagina "Nuovo lavoro" con gestione fasi (lavoro_nuovo.php), "+" accanto a Lavori nel menu
   ========================================================================== */
:root{
  --ico-grip:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='6' r='1.6'/%3E%3Ccircle cx='15' cy='6' r='1.6'/%3E%3Ccircle cx='9' cy='12' r='1.6'/%3E%3Ccircle cx='15' cy='12' r='1.6'/%3E%3Ccircle cx='9' cy='18' r='1.6'/%3E%3Ccircle cx='15' cy='18' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --ico-su:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
  --ico-giu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --ico-copia:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E");
  --ico-x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
/* menu: "+" rapido accanto a Lavori */
html body #mainMenu>li.current{position:relative}
html body #mainMenu>li>a.suMenuAzione{position:absolute!important;right:10px;top:50%;transform:translateY(-50%);width:28px!important;height:28px!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:8px!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important;display:flex!important;align-items:center;justify-content:center;opacity:.75;transition:opacity .15s,background .15s}
html body #mainMenu>li>a.suMenuAzione::before{content:"";width:14px;height:14px;background:#fff;-webkit-mask:var(--ico-plus) center/contain no-repeat;mask:var(--ico-plus) center/contain no-repeat}
html body #mainMenu>li>a.suMenuAzione:hover{opacity:1;background:var(--primary)!important}
html body #mainMenu>li>a.suMenuAzione::after{content:none!important}
html body .mini-bar #mainMenu>li>a.suMenuAzione,html body.mini-bar #mainMenu>li>a.suMenuAzione{display:none!important}

/* pagina */
html body .suLavNuovo .panel-body{padding:14px 16px 0!important}
html body .suLN{display:grid;gap:16px;align-items:start}
@media (min-width:1200px){ html body .suLN{grid-template-columns:minmax(320px,380px) minmax(0,1fr)} html body .suLNOrdine{position:sticky;top:76px} }
html body .suLNCarta{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px 16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
html body .suLNCarta>header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px}
html body .suLNCarta>header h4{margin:0!important;font-size:15px!important;font-weight:800;color:var(--ink)!important}
html body .suLNPasso{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--blue-bg);color:var(--primary);font-weight:800;font-size:12px}
html body .suLNEtic,html body .suLNCampo>span,html body .suFC>span{display:block;margin:0 0 4px;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
html body .suFC>span small{font-weight:600;text-transform:none;letter-spacing:0;color:var(--n-400)}
html body .suLavNuovo .form-control{height:36px;border-radius:9px;font-size:13.5px;box-shadow:none}
html body .suLNCampi{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin-top:12px}
html body .suLNCampo{margin:0!important;font-weight:400}
html body .suLNTotale output{display:flex;align-items:center;height:36px;font-weight:800;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
/* articolo */
html body .suLNArticolo{position:relative}
html body .suArtScelto{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--blue-line);background:var(--blue-bg);border-radius:11px}
html body .suArtScelto[hidden],html body .suArtRicerca[hidden],html body .suArtElenco[hidden]{display:none!important}
html body .suArtTesto{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
html body .suArtCodice{font-size:15px;color:var(--ink)}
html body .suArtDesc{font-size:13px;color:var(--ink-2)}
html body .suArtAltro{font-size:12px;color:var(--muted)}
html body .suArtCambia{height:30px;padding:0 10px!important;font-size:12px}
html body .suArtRicerca{position:relative}
html body .suArtElenco{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:340px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 16px 40px rgba(16,24,40,.16);padding:4px}
html body .suArtVoce{display:grid;grid-template-columns:auto 1fr;gap:0 10px;padding:7px 10px;border-radius:8px;cursor:pointer}
html body .suArtVoce b{color:var(--ink)}
html body .suArtVoce span{grid-column:1/-1;font-size:12.5px;color:var(--ink-2)}
html body .suArtVoce small{grid-row:1;grid-column:2;justify-self:end;color:var(--muted);font-size:12px}
html body .suArtVoce.suEvid,html body .suArtVoce:hover{background:var(--blue-bg)}
html body .suArtNessuno{padding:10px;color:var(--muted);font-size:13px}
html body .suLavNuovo .suErrore .form-control,html body .suLavNuovo .suErrore.suArtScelto{border-color:var(--red-500,#dc2626)!important;box-shadow:0 0 0 3px rgba(220,38,38,.12)!important}
/* fasi */
html body .suLNRiepilogo{color:var(--muted);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
html body .suLNAggiungi{margin-left:auto;display:flex;gap:8px}
html body .suLNAggiungi .btn{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 12px!important}
html body .suLNAggiungi .btn::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:var(--ico-plus) center/contain no-repeat;mask:var(--ico-plus) center/contain no-repeat}
html body .suLNAiuto{margin:-4px 0 10px;color:var(--muted);font-size:12px}
html body .suLNAiuto .suManiglia{display:inline-block;width:12px;height:14px;vertical-align:-2px;pointer-events:none}
html body .suFasiLista{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
html body .suFase{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:inset 4px 0 0 var(--su-op,var(--primary));transition:opacity .16s,transform .16s,box-shadow .16s}
html body .suFase.suEsterna{--su-op-def:var(--orange-500)}
html body .suFase.suEsterna:not(.suConOp){box-shadow:inset 4px 0 0 var(--orange-500)}
html body .suFase.suConOp{background:color-mix(in srgb,var(--su-op) 4%,#fff)}
html body .suFaseTesta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px 8px 10px;border-bottom:1px solid var(--line)}
html body .suManiglia{flex:0 0 auto;width:22px;height:30px;border:0;padding:0;background:var(--n-400);-webkit-mask:var(--ico-grip) center/18px no-repeat;mask:var(--ico-grip) center/18px no-repeat;cursor:grab;touch-action:none}
html body .suManiglia:hover{background:var(--ink)}
html body .suManiglia:disabled{opacity:.25;cursor:default}
html body .suFaseNum{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;border-radius:50%;background:var(--su-op,var(--primary));color:#fff;font-weight:800;font-size:12.5px}
html body .suFase.suEsterna:not(.suConOp) .suFaseNum{background:var(--orange-500)}
html body .suSegm{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
html body .suSegm button{border:0;background:transparent;height:28px;padding:0 10px;font-size:12px;font-weight:700;color:var(--muted)}
html body .suSegm button+button{border-left:1px solid var(--line)}
html body .suSegm button.on{background:var(--blue-bg);color:var(--primary)}
html body .suSegm.suTipo button[data-v=esterna].on{background:var(--orange-bg);color:var(--orange)}
html body .suFaseStato:not(:empty){display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:99px;background:var(--n-100);color:var(--ink-2);font-size:11.5px;font-weight:700}
html body .suFaseTempo{margin-left:auto;color:var(--ink-2);font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
html body .suFaseAzioni{display:flex;gap:4px}
html body .suIco{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;position:relative;padding:0}
html body .suIco::before{content:"";position:absolute;inset:0;margin:auto;width:15px;height:15px;background:var(--ink-2);-webkit-mask:var(--su-i) center/contain no-repeat;mask:var(--su-i) center/contain no-repeat}
html body .suIco:hover:not(:disabled){border-color:var(--blue-line);background:var(--blue-bg)}
html body .suIco:hover:not(:disabled)::before{background:var(--primary)}
html body .suIco:disabled{opacity:.3;cursor:default}
html body .suIco.suSu{--su-i:var(--ico-su)} html body .suIco.suGiu{--su-i:var(--ico-giu)} html body .suIco.suDuplica{--su-i:var(--ico-copia)} html body .suIco.suTogli{--su-i:var(--ico-trash)}
html body .suIco.suTogli:hover:not(:disabled){border-color:#fecaca;background:#fef2f2} html body .suIco.suTogli:hover:not(:disabled)::before{background:#dc2626}
html body .suFaseCorpo{display:flex;flex-wrap:wrap;gap:10px 12px;padding:10px 12px 12px;align-items:flex-end}
html body .suFC{margin:0!important;font-weight:400;min-width:0}
html body .suFCMacchina,html body .suFCFornitore{flex:1 1 210px}
html body .suFCOperatori{flex:1.4 1 240px}
html body .suFCTempo{flex:0 0 118px} html body .suFCTempo3{flex:0 0 172px}
html body .suFCData{flex:0 0 150px} html body .suFCGiorni{flex:0 0 90px}
html body .suFCNote{flex:1 1 200px}
html body .suFase:not(.suEsterna) .suSoloEst,html body .suFase.suEsterna .suSoloInt{display:none!important}
html body .suTempo{display:flex;align-items:center;gap:3px}
html body .suTempo input{width:100%;min-width:0;text-align:center;padding:0 4px!important;font-variant-numeric:tabular-nums}
html body .suTempo i{font-style:normal;color:var(--muted);font-weight:800}
html body .suOpBox{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:36px;padding:4px 6px;border:1px solid var(--line-strong,#d0d5dd);border-radius:9px;background:#fff}
html body .suOpChips{display:contents}
html body .suOpChip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 4px 0 9px;border-radius:99px;background:color-mix(in srgb,var(--su-op) 14%,#fff);border:1px solid color-mix(in srgb,var(--su-op) 35%,#fff);color:color-mix(in srgb,var(--su-op) 75%,#000);font-size:12.5px;font-weight:700}
html body .suOpChip::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--su-op)}
html body .suOpVia{width:18px;height:18px;border:0;border-radius:50%;padding:0;background:currentColor;opacity:.55;-webkit-mask:var(--ico-x) center/10px no-repeat;mask:var(--ico-x) center/10px no-repeat}
html body .suOpVia:hover{opacity:1}
html body .suOpAggiungi{flex:1 1 110px;min-width:110px;height:26px;border:0;background:transparent;font-size:13px;color:var(--muted);outline:none}
/* stati */
html body .suFase.suTrascina{z-index:5;box-shadow:inset 4px 0 0 var(--su-op,var(--primary)),0 18px 40px rgba(16,24,40,.22);transition:none;cursor:grabbing}
html body .suFase.suTrascina .suManiglia{cursor:grabbing}
html body .suInTrascina,html body .suInTrascina *{user-select:none!important}
html body .suFase.suBloccata{background:var(--n-50)}
html body .suFase.suEntra{opacity:0;transform:translateY(-6px)}
html body .suFase.suEsce{opacity:0;transform:scale(.98)}
html body .suFase.suErrore{border-color:#fca5a5}
html body .suFase.suErrore [data-k=macchina],html body .suFase.suErrore [data-k=fornitore]{border-color:#dc2626!important}
html body .suFasiVuoto{padding:22px;border:1.5px dashed var(--line-strong,#d0d5dd);border-radius:12px;text-align:center;color:var(--muted);font-size:13px}
html body .suFasiVuoto[hidden]{display:none}
/* barra in basso */
html body .suLNBarra{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:16px -16px 0;padding:12px 16px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);border-radius:0 0 16px 16px}
html body .suLNBarra .btn{height:40px;min-width:130px;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
html body .suLNMsg{margin-right:auto;font-size:13px;font-weight:600;color:var(--muted)}
html body .suLNMsg.suNo{color:#dc2626} html body .suLNMsg.suSi{color:#16a34a}
html body .suLNSalva.suInCorso{opacity:.7;pointer-events:none}
@media (max-width:640px){ html body .suLNCampi{grid-template-columns:1fr 1fr} html body .suFaseTempo{margin-left:0;flex-basis:100%} html body .suLNAggiungi{margin-left:0} }
html body .suLavNuovo>.panel-heading{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);padding:0!important;margin:0!important;border:0!important}
html body .suLavNuovo .panel-body{padding-top:16px!important}
/* Lavori: pulsante "Nuovo lavoro" accanto al titolo */
html body .suNuovoLavoro{display:inline-flex!important;align-items:center;gap:6px;height:32px;padding:0 12px!important;margin-left:10px;font-size:13px!important;vertical-align:middle}
html body .suNuovoLavoro::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:var(--ico-plus) center/contain no-repeat;mask:var(--ico-plus) center/contain no-repeat}

/* ==========================================================================
   47. AGGIORNAMENTO 28: lista Lavori nuova (lavori_lista.php): ordine -> lavori -> fasi, compatta e leggibile
   ========================================================================== */
:root{
  --ico-fatto:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 13l2 2 4-4'/%3E%3C/svg%3E");
  --ico-camion:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  --ico-riapri:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
}
html body .contentLavori .suListaLavori{display:flex;flex-direction:column;gap:14px}
html body .suPaginazioneLavori{margin:0!important}
html body .suListaVuota{padding:28px;text-align:center;border:1.5px dashed var(--line-strong,#d0d5dd);border-radius:14px;color:var(--muted);display:flex;flex-direction:column;gap:4px}
html body .suListaVuota b{color:var(--ink);font-size:15px}
/* ordine */
html body .suOrd{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 6px 18px rgba(16,24,40,.04);overflow:hidden}
html body .suOrdTesta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 26px;padding:10px 14px;background:linear-gradient(180deg,#f8fafc,#f1f5f9);border-bottom:1px solid var(--line)}
html body .suOrdTesta small,html body .suLavRiga small{display:block;font-size:10px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;color:var(--muted);line-height:1.3}
html body .suOrdTesta b{display:block;font-size:14px;font-weight:800;color:var(--ink);line-height:1.35}
html body .suOrdTesta b i{font-style:normal;color:var(--muted);font-weight:700}
html body .suOrdTesta b em{font-style:normal;font-weight:600;color:var(--ink-2)}
html body .suOrdNum b{font-size:18px;color:var(--primary)}
html body .suOrdNum b i{font-size:13px}
html body .suOrdCli b{font-size:15px}
html body .suOrdConta{margin-left:auto;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:99px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--ink-2)}
/* lavoro */
html body .suLav{padding:10px 14px 12px;transition:background .3s}
html body .suLav+.suLav{border-top:1px solid var(--line)}
html body .suLav.suLavAttesa{opacity:.6;pointer-events:none}
html body .suLav.suLavAggiornato{background:#f0fdf4}
html body .suLavRiga{display:grid;grid-template-columns:minmax(220px,1fr) 150px 150px 140px auto;gap:10px 22px;align-items:center}
html body .suLavArt{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14.5px;color:var(--ink-2)}
html body .suLavArt b{color:var(--ink);font-weight:800}
html body .suLavArt .suLavDis{color:var(--ink);font-weight:600}
html body .suPunto::before{content:"·";margin:0 7px;color:var(--n-400);font-weight:800}
html body .suLavScad b{display:block;font-size:14px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
html body .suLavScad em{display:block;font-style:normal;font-size:11.5px;color:var(--muted)}
html body .suLavScad.suScadRitardo b,html body .suLavScad.suScadRitardo em{color:#dc2626}
html body .suLavScad.suScadOggi b,html body .suLavScad.suScadOggi em,html body .suLavScad.suScadVicina em{color:#c2410c}
html body .suQtaBox{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 8px;border:1px solid var(--line-strong,#d0d5dd);border-radius:9px;background:#fff;cursor:text}
html body .suQtaBox:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
html body .suQta{width:62px;border:0;outline:0;background:transparent;font-size:15px;font-weight:800;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
html body .suQta::-webkit-outer-spin-button,html body .suQta::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body .suQta::placeholder{color:#a3acb9;font-weight:700}
html body .suQtaDi{display:none;font-size:12px;color:var(--muted);white-space:nowrap}
html body .suQtaBox.suConValore .suQtaDi{display:inline}
html body .suQtaBox:has(.suQta[readonly]){border-color:transparent;background:transparent;padding-left:0}
html body .suQtaBarra{display:block;width:120px;height:3px;margin-top:4px;border-radius:2px;background:var(--n-100);overflow:hidden}
html body .suQtaBarra i{display:block;height:100%;background:#16a34a;border-radius:2px}
html body .suPassi{display:flex;gap:3px;margin:3px 0 3px}
html body .suPassi i{flex:0 0 auto;width:16px;height:7px;border-radius:4px;background:var(--n-200,#e4e7ec)}
html body .suPassi i.ok{background:#16a34a}
html body .suPassi i.ora{background:var(--su-op,var(--primary));animation:su-pulsa 1.4s ease-in-out infinite}
@keyframes su-pulsa{50%{opacity:.45}}
html body .suLavAvanz b{font-size:12.5px;font-weight:700;color:var(--ink-2)}
html body .suLavAvanz b.suNessuna{color:var(--muted);font-weight:600}
html body .suLavAzioni{display:flex;gap:4px;justify-content:flex-end}
/* pulsanti icona */
html body .suAz{width:32px;height:32px;padding:0!important;border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;position:relative;flex:0 0 auto;display:inline-block}
html body .suAz::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:var(--ink-2);-webkit-mask:var(--su-i) center/contain no-repeat;mask:var(--su-i) center/contain no-repeat}
html body .suAz:hover{border-color:var(--blue-line)!important;background:var(--blue-bg)!important}
html body .suAz:hover::before{background:var(--primary)}
html body .suAzMod{--su-i:var(--ico-edit)} html body .suAzFatto{--su-i:var(--ico-fatto)} html body .suAzRiapri{--su-i:var(--ico-riapri)}
html body .suAzEvadi,html body .suAzParziale{--su-i:var(--ico-camion)} html body .suAzAllegati{--su-i:var(--ico-clip)}
html body .suAzStampa,html body .suAzStampaMag{--su-i:var(--ico-print)} html body .suAzElimina{--su-i:var(--ico-trash)}
html body .suAzFatto::before{background:#c2410c} html body .suAzElimina::before{background:#dc2626}
html body .suAzElimina:hover{border-color:#fecaca!important;background:#fef2f2!important} html body .suAzElimina:hover::before{background:#dc2626}
html body .suAz.presenzaAllegato{background:#16a34a!important;border-color:#16a34a!important} html body .suAz.presenzaAllegato::before{background:#fff}
html body .suAzStampaMag{border-color:var(--blue-line)!important}
/* fasi */
html body .suFasiTab.classePannelloFase{display:block;margin:10px 0 0!important;padding:0!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;overflow:hidden;animation:none}
html body .suF{display:grid;grid-template-columns:24px 108px minmax(140px,1.1fr) minmax(130px,1fr) minmax(190px,1.2fr) minmax(200px,auto) 32px;gap:4px 14px;align-items:center;padding:6px 10px 6px 12px;box-shadow:inset 4px 0 0 var(--su-op,var(--primary));background:#fff}
html body .suF.suFEst:not(.suFConOp){box-shadow:inset 4px 0 0 var(--orange-500)}
html body .suF+.suF{border-top:1px solid var(--line)}
html body .suF.suFOk{background:#f7fdf9}
html body .suF.suFOra{background:color-mix(in srgb,var(--su-op,var(--primary)) 6%,#fff)}
html body .suFNum{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--su-op,var(--primary));color:#fff;font-size:11.5px;font-weight:800}
html body .suF.suFEst:not(.suFConOp) .suFNum{background:var(--orange-500)}
html body .suF.suFOk .suFNum{background:#16a34a}
html body .suFTipo{font-size:11.5px;color:var(--muted);line-height:1.25}
html body .suFTipo b{display:block;font-size:12.5px;color:var(--ink);font-weight:800}
html body .suF.suFEst .suFTipo b{color:#c2410c}
html body .suFDove{font-size:13px;font-weight:700;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suFDove i{font-weight:500;color:#dc2626;font-style:normal}
html body .suFOp{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
html body .suFChip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:99px;background:color-mix(in srgb,var(--su-op) 13%,#fff);border:1px solid color-mix(in srgb,var(--su-op) 32%,#fff);color:color-mix(in srgb,var(--su-op) 75%,#000);font-size:11.5px;font-weight:700;white-space:nowrap}
html body .suFChip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--su-op)}
html body .suFTempi{font-size:12.5px;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .suFTempi>i{font-style:normal;color:var(--muted);margin:0 5px}
html body .suFTempi b{margin-left:6px;color:var(--ink);font-weight:800}
html body .suFTempi .suFVuoto{color:var(--n-400)}
html body .suFStatoBox{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
html body .suFStato{font-size:12px;color:var(--muted)}
html body .suFStato b{font-weight:800;font-variant-numeric:tabular-nums}
html body .suFFinita{color:#15803d} html body .suFFinita b{color:#15803d}
html body .suFInCorso{color:var(--primary)} html body .suFInCorso b{color:var(--primary)}
html body .suFData{cursor:pointer;border-bottom:1px dashed currentColor}
html body .suFBtn{height:28px;padding:0 14px!important;border-radius:8px!important;font-size:12.5px!important;font-weight:800!important;border:0!important;line-height:28px}
html body .suFInizia{background:var(--primary)!important;color:#fff!important}
html body .suFInizia[title]{background:#fff!important;color:var(--primary)!important;box-shadow:inset 0 0 0 1px var(--blue-line)}
html body .suFFine{background:#16a34a!important;color:#fff!important}
html body .suFCorreggi{display:flex;align-items:center;gap:6px}
html body .suFCorreggi input{height:30px;width:200px;font-size:12.5px;padding:0 8px}
html body .suFCorreggi .suFBtn{background:var(--primary)!important;color:#fff!important}
html body .suFBtnVia{height:28px;padding:0 10px!important;font-size:12px!important;border:1px solid #fecaca!important;color:#dc2626!important;background:#fff!important;border-radius:8px!important}
html body .suFBtnNo{width:28px;height:28px;padding:0!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;position:relative}
html body .suFBtnNo::before{content:"";position:absolute;inset:0;margin:auto;width:12px;height:12px;background:var(--ink-2);-webkit-mask:var(--ico-x) center/contain no-repeat;mask:var(--ico-x) center/contain no-repeat}
html body .suFAll .suAz{width:28px;height:28px}
html body .suFAll .suAz::before{width:14px;height:14px}
html body .suFNote{grid-column:2/-1;font-size:12px;color:var(--ink-2);background:var(--n-50);border-radius:6px;padding:3px 8px;margin-top:-1px}
html body .suFNote::before{content:"Note: ";font-weight:800;color:var(--muted)}
html body .suFVuota{padding:9px 12px;font-size:12.5px;color:var(--muted)}
html body .suFVuota a{font-weight:700}
@media (max-width:1250px){
  html body .suLavRiga{grid-template-columns:minmax(0,1fr) 140px 140px;}
  html body .suLavArt{grid-column:1/-1}
  html body .suLavAzioni{grid-column:1/-1;justify-content:flex-start}
  html body .suF{grid-template-columns:24px 100px minmax(0,1fr) minmax(0,1fr) 32px}
  html body .suFTempi{grid-column:2/4} html body .suFStatoBox{grid-column:4/6;justify-content:flex-end}
}
@media (max-width:700px){
  html body .suLavRiga{grid-template-columns:1fr 1fr}
  html body .suF{grid-template-columns:24px minmax(0,1fr) 32px}
  html body .suF>*:not(.suFNum):not(.suFAll){grid-column:2}
  html body .suFStatoBox{justify-content:flex-start}
  html body .suOrdConta{margin-left:0}
}
html body .suOrd .suOrdLavori.classePannelloOrdineContent{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;width:auto!important;float:none!important;animation:none}
html body .contentLavori .suListaLavori .suOrd{margin:0!important}
html body .suFInizia[title]{box-shadow:inset 0 0 0 1px var(--line-strong,#d0d5dd)!important;color:var(--ink-2)!important}
/* pagina lavoro: blocco "Ordine" separato e chiaro */
html body .suLNGruppo{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line-strong,#d0d5dd)}
html body .suLNGruppoTit{font-size:12px;font-weight:800;color:var(--ink);margin-bottom:-4px}
html body .suLNGruppo .suLNCampi{margin-top:10px}
html body .suLavAzioni>*{margin:0!important}
html body .suFaseTempo{white-space:pre}
html body .suFaseTesta{flex-wrap:nowrap}
html body .suFaseTempo{white-space:nowrap;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right}
html body .suFaseAzioni{flex:0 0 auto}
@media (max-width:900px){ html body .suFaseTesta{flex-wrap:wrap} }

/* ==========================================================================
   48. AGGIORNAMENTO 29: percorso in alto allineato; lista Lavori con frecce; modifica rapida della fase
   ========================================================================== */
html body .suHaBriciole>li.hidden-xs:first-child>a{display:flex!important;align-items:center!important;gap:7px;height:64px!important;line-height:1.2!important;padding-top:0!important;padding-bottom:0!important;font-size:14px!important}
html body .suHaBriciole>li.hidden-xs:first-child>a>i{margin-top:0!important;line-height:1!important}
html body .suHaBriciole>li.suBriciole{display:flex!important;align-items:center!important;height:64px!important;gap:0}
html body .suBriciole>*{display:inline-flex!important;align-items:center;line-height:1.2!important;height:auto!important;padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}
html body .suBriciole .suTappa{font-size:14px!important;padding:0 2px!important;color:var(--ink-2)!important}
html body .suBriciole .suSep{padding:0 8px!important;color:var(--n-400)}
/* Lavori: niente testata con i tasti occhio; "Nuovo lavoro" nella fila della ricerca */
html body .pannelloTestatPrincipale:has(.ricercaLavoriCliente)>.col-md-2:has(>h3.panel-title),
html body .pannelloTestatPrincipale:has(.ricercaLavoriCliente)>.panelRicerca1{display:none!important}
html body .pannelloTestatPrincipale:has(.ricercaLavoriCliente)>.panelRicerca[style*="margin-top"]{margin-top:0!important}
html body .suComandiFiltri .suNuovoLavoro{margin-left:4px;height:38px}
html body .suComandiFiltri .suVisTutti{height:38px;display:inline-flex;align-items:center;font-size:13px}
/* pagine in fondo alla lista */
html body .suPaginazioneLavori{margin:4px 0 0!important;padding:8px 4px!important;border-top:1px solid var(--line)}
/* frecce */
html body .suFreccia{width:26px;height:26px;padding:0;border:0;border-radius:7px;background:transparent;position:relative;flex:0 0 auto;cursor:pointer}
html body .suFreccia::before{content:"";position:absolute;inset:0;margin:auto;width:14px;height:14px;background:var(--ink-2);-webkit-mask:var(--ico-giu) center/contain no-repeat;mask:var(--ico-giu) center/contain no-repeat;transition:transform .18s ease}
html body .suFreccia:hover{background:var(--n-100)}
html body .suOrd.suChiuso .suOrdApri::before,html body .suLav.suChiuso .suLavApri::before{transform:rotate(-90deg)}
html body .suOrd.suChiuso .suOrdLavori{display:none}
html body .suOrd.suChiuso .suOrdTesta{border-bottom:0}
html body .suLav.suChiuso .suFasiTab{display:none!important}
html body .suOrdTesta{gap:6px 22px}
html body .suLavRiga{grid-template-columns:26px minmax(220px,1fr) 150px 150px 140px auto}
html body .suF{grid-template-columns:26px 24px 104px minmax(140px,1.1fr) minmax(130px,1fr) minmax(190px,1.2fr) minmax(200px,auto) 32px;padding-left:6px}
html body .suFApri::before{-webkit-mask-image:var(--ico-edit);mask-image:var(--ico-edit);width:13px;height:13px}
html body .suF.suFAperta{background:var(--blue-bg)!important}
html body .suF.suFAperta .suFApri::before{-webkit-mask-image:var(--ico-x);mask-image:var(--ico-x)}
html body .suFNote{grid-column:3/-1}
/* modifica rapida della fase */
html body .suFRapida{padding:12px 14px 12px 40px;background:#f8fbff;border-top:1px solid var(--blue-line);box-shadow:inset 4px 0 0 var(--primary);animation:su-cala .16s ease-out}
html body .suQGriglia{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
html body .suQF>span{display:block;margin:0 0 4px;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
html body .suQF .form-control{height:34px;border-radius:9px;font-size:13px}
html body .suQFDove{flex:1 1 200px} html body .suQFOp{flex:1.4 1 240px} html body .suQFNote{flex:1 1 200px} html body .suQFGiorni{flex:0 0 90px}
html body .suTempoSel{display:flex;gap:4px}
html body .suTSel{display:flex;align-items:center;gap:3px;margin:0;font-weight:400}
html body .suTSel select{width:auto;min-width:58px;padding:0 6px!important;font-variant-numeric:tabular-nums}
html body .suTSel i{font-style:normal;font-size:11.5px;color:var(--muted);margin-right:4px}
html body .suQBarra{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}
html body .suQBarra .btn{height:34px;min-width:100px}
html body .suQLink{margin-right:auto;font-size:12.5px;font-weight:700}
@media (max-width:1250px){ html body .suLavRiga{grid-template-columns:26px minmax(0,1fr) 140px 140px} html body .suLavArt{grid-column:2/-1} html body .suLavAzioni{grid-column:2/-1} html body .suF{grid-template-columns:26px 24px 100px minmax(0,1fr) minmax(0,1fr) 32px} html body .suFTempi{grid-column:3/5} html body .suFStatoBox{grid-column:5/7} }
@media (max-width:700px){ html body .suLavRiga{grid-template-columns:26px 1fr 1fr} html body .suF{grid-template-columns:26px 24px minmax(0,1fr) 32px} html body .suF>*:not(.suFNum):not(.suFAll):not(.suFreccia){grid-column:3} html body .suFRapida{padding-left:14px} }
html body .suFCTempo{flex:0 0 auto} html body .suFCTempo3{flex:0 0 auto}
html body .suLavNuovo .suTSel select.form-control{height:36px}

/* ==========================================================================
   49. AGGIORNAMENTO 30: MENU LATERALE NUOVO (#suNav, header/menu.php) - chiaro, sezioni, ricerca, menu stretto
   ========================================================================== */
:root{
  --su-nav-w:252px;
  --ico-cerca:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  --ico-stringi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M9 4v16M15 10l-2 2 2 2'/%3E%3C/svg%3E");
  --ico-esci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 17l-5-5 5-5M5 12h11'/%3E%3C/svg%3E");
}
html.su-nav-stretto{--su-nav-w:76px}
/* posto per il menu: contenuto e barra in alto */
html.su-nav body .wrapper>.content,html.su-nav body #content{margin-left:var(--su-nav-w)!important;transition:margin-left .2s ease}
html.su-nav body .content>.top-bar{left:var(--su-nav-w)!important;right:auto!important;width:calc(100% - var(--su-nav-w))!important;transition:left .2s ease,width .2s ease}
html.su-nav body .menu-bar-mobile{display:none!important}
/* contenitore */
html body .suNav{position:fixed;z-index:1035;left:0;top:0;bottom:0;width:var(--su-nav-w);height:100vh;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e7eaf0;box-shadow:1px 0 0 rgba(16,24,40,.02),8px 0 24px rgba(16,24,40,.03);transition:width .2s ease,transform .22s ease;font-family:Inter,system-ui,sans-serif}
@media (min-width:800px){ html body .suNav{height:calc(100vh / .9)} }
html body .suNavTesta{display:flex;align-items:center;gap:10px;height:64px;padding:0 12px 0 14px;flex:0 0 auto}
html body .suNavMarchio{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none!important}
html body .suNavLogo{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font-weight:800;font-size:16px;box-shadow:0 4px 10px rgba(37,99,235,.3)}
html body .suNavAzienda{font-size:15px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
html body .suNavStringi{margin-left:auto;flex:0 0 auto;width:32px;height:32px;border:0;border-radius:9px;background:transparent;position:relative;cursor:pointer}
html body .suNavStringi::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:#98a2b3;-webkit-mask:var(--ico-stringi) center/contain no-repeat;mask:var(--ico-stringi) center/contain no-repeat;transition:transform .2s}
html body .suNavStringi:hover{background:#f2f4f7} html body .suNavStringi:hover::before{background:#344054}
html body .suNavNuovo{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;margin:2px 12px 12px;border-radius:11px;background:var(--primary);color:#fff!important;font-size:13.5px;font-weight:700;text-decoration:none!important;box-shadow:0 6px 14px rgba(37,99,235,.25);transition:background .15s,transform .15s}
html body .suNavNuovo::before{content:"";width:16px;height:16px;background:#fff;-webkit-mask:var(--ico-plus) center/contain no-repeat;mask:var(--ico-plus) center/contain no-repeat}
html body .suNavNuovo:hover{background:#1d4ed8;transform:translateY(-1px)}
html body .suNavCerca{position:relative;display:block;margin:0 12px 6px;font-weight:400}
html body .suNavCerca::before{content:"";position:absolute;left:11px;top:50%;width:15px;height:15px;margin-top:-7.5px;background:#98a2b3;-webkit-mask:var(--ico-cerca) center/contain no-repeat;mask:var(--ico-cerca) center/contain no-repeat;pointer-events:none}
html body .suNavCerca input{width:100%;height:36px;padding:0 54px 0 33px;border:1px solid #e4e7ec;border-radius:10px;background:#f9fafb;font-size:13px;color:#101828;outline:none;transition:border-color .15s,background .15s,box-shadow .15s}
html body .suNavCerca input:focus{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.14)}
html body .suNavCerca input::-webkit-search-cancel-button{display:none}
html body .suNavCerca kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:2px 5px;border:1px solid #e4e7ec;border-radius:5px;background:#fff;box-shadow:none;color:#98a2b3;font:600 10px/1.2 Inter,sans-serif}
html body .suNavCorpo{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 10px 12px;scrollbar-width:thin;scrollbar-color:#e4e7ec transparent}
html body .suNavLista{list-style:none;margin:0;padding:0}
html body .suNavLista>li{margin:0;padding:0;border:0;background:none}
html body .suNavSez>span{display:block;padding:14px 10px 6px;font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#98a2b3}
html body .suNavLista>li>a{position:relative;display:flex;align-items:center;gap:11px;height:40px;padding:0 10px;margin:1px 0;border-radius:10px;color:#344054;font-size:13.5px;font-weight:600;text-decoration:none!important;transition:background .15s,color .15s;white-space:nowrap}
html body .suNavLista>li>a:hover{background:#f2f4f7;color:#101828}
html body .suNavIco{flex:0 0 auto;width:20px;height:20px;background:currentColor;-webkit-mask:var(--su-mi,var(--ic-file)) center/contain no-repeat;mask:var(--su-mi,var(--ic-file)) center/contain no-repeat;opacity:.85}
html body .suNavLista .text{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body .suNavLista>li>a.su-attivo{background:#eef4ff;color:var(--primary);font-weight:700}
html body .suNavLista>li>a.su-attivo::before{content:"";position:absolute;left:-10px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--primary)}
html body .suNavLista>li>a.su-attivo .suNavIco{opacity:1}
html body .suNavLista>li>a.su-attivo-padre{color:#101828;font-weight:700}
html body .suNavFreccia{margin-left:auto;flex:0 0 auto;width:14px;height:14px;background:#98a2b3;-webkit-mask:var(--ico-giu) center/contain no-repeat;mask:var(--ico-giu) center/contain no-repeat;transition:transform .2s;transform:rotate(-90deg)}
html body .suNavLista>li.su-aperto>a .suNavFreccia{transform:none}
html body .suNavLista>li.submenu>ul{list-style:none;margin:0 0 0 20px;padding:0 0 0 12px;border-left:1.5px solid #eaecf0;max-height:0;overflow:hidden;opacity:0;transition:max-height .22s ease,opacity .18s ease,margin .22s}
html body .suNavLista>li.submenu.su-aperto>ul{max-height:var(--su-h,420px);opacity:1;margin:2px 0 6px 20px}
html body .suNavLista>li.submenu>ul>a{display:flex;align-items:center;height:34px;padding:0 10px;margin:1px 0;border-radius:8px;color:#475467;font-size:13px;font-weight:500;text-decoration:none!important;white-space:nowrap;position:relative}
html body .suNavLista>li.submenu>ul>a:hover{background:#f2f4f7;color:#101828}
html body .suNavLista>li.submenu>ul>a.su-attivo{background:#eef4ff;color:var(--primary);font-weight:700}
html body .suNavLista>li.submenu>ul>a.su-attivo::before{content:"";position:absolute;left:-13.5px;top:8px;bottom:8px;width:1.5px;background:var(--primary)}
html body .suNavLista [hidden],html body .suNav [hidden]{display:none!important}
html body .suNavNessuno{padding:12px 10px;color:#98a2b3;font-size:12.5px}
html body .suNavPiede{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 12px 14px;border-top:1px solid #eaecf0}
html body .suNavAvatar{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#eef4ff;color:var(--primary);font-weight:800;font-size:13px}
html body .suNavUtente{display:flex;flex-direction:column;min-width:0;line-height:1.25}
html body .suNavUtente b{font-size:13px;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .suNavUtente small{font-size:11.5px;color:#98a2b3}
html body .suNavEsci{margin-left:auto;flex:0 0 auto;width:34px;height:34px;border-radius:9px;position:relative}
html body .suNavEsci::before{content:"";position:absolute;inset:0;margin:auto;width:17px;height:17px;background:#98a2b3;-webkit-mask:var(--ico-esci) center/contain no-repeat;mask:var(--ico-esci) center/contain no-repeat}
html body .suNavEsci:hover{background:#fef3f2} html body .suNavEsci:hover::before{background:#d92d20}
html body .suNavVelo{display:none}
/* menu stretto: solo icone (si apre con il pulsante in alto) */
@media (min-width:900px){
  html.su-nav-stretto body .suNavAzienda,html.su-nav-stretto body .suNavLista .text,html.su-nav-stretto body .suNavFreccia,
  html.su-nav-stretto body .suNavUtente,html.su-nav-stretto body .suNavCerca,html.su-nav-stretto body .suNavNuovo span,html.su-nav-stretto body .suNavNessuno{display:none!important}
  html.su-nav-stretto body .suNavTesta{flex-direction:column;justify-content:center;gap:6px;height:auto;padding:12px 0 8px}
  html.su-nav-stretto body .suNavStringi{margin:0}
  html.su-nav-stretto body .suNavStringi::before{transform:scaleX(-1)}
  html.su-nav-stretto body .suNavNuovo{width:44px;height:44px;margin:4px auto 10px;padding:0;border-radius:12px}
  html.su-nav-stretto body .suNavNuovo::before{width:18px;height:18px}
  html.su-nav-stretto body .suNavCorpo{overflow:visible;padding:2px 10px}
  html.su-nav-stretto body .suNavSez>span{font-size:0;padding:0;height:1px;margin:10px 8px;background:#eaecf0}
  html.su-nav-stretto body .suNavLista>li{position:relative}
  html.su-nav-stretto body .suNavLista>li>a{justify-content:center;padding:0;height:44px}
  html.su-nav-stretto body .suNavLista>li>a .suNavIco{width:21px;height:21px}
  html.su-nav-stretto body .suNavLista>li>a.su-attivo::before{left:-10px}
  html.su-nav-stretto body .suNavLista>li.submenu>ul{position:absolute;left:calc(100% + 12px);top:0;margin:0!important;padding:6px;min-width:200px;border:1px solid #eaecf0;border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(16,24,40,.16);max-height:none;opacity:0;visibility:hidden;transform:translateX(-6px);transition:opacity .15s,transform .15s,visibility .15s;z-index:5}
  html.su-nav-stretto body .suNavLista>li.submenu.su-aperto>ul{opacity:1;visibility:visible;transform:none}
  html.su-nav-stretto body .suNavLista>li.submenu>ul>a.su-attivo::before{display:none}
  html.su-nav-stretto body .suNavLista>li.submenu>ul .text{display:inline!important}
  html.su-nav-stretto body .suNavPiede{flex-direction:column;padding:12px 0}
  html.su-nav-stretto body .suNavEsci{margin:0}
}
/* telefono e tablet: il menu entra da sinistra con il pulsante in alto */
@media (max-width:899.98px){
  html.su-nav body .wrapper>.content,html.su-nav body #content{margin-left:0!important}
  html.su-nav body .content>.top-bar{left:0!important}
  html.su-nav body .menu-bar-mobile{display:block!important}
  html body .suNav{width:280px;transform:translateX(-100%);z-index:2147483600;box-shadow:none}
  html.su-nav-aperto body .suNav{transform:none;box-shadow:24px 0 60px rgba(16,24,40,.25)}
  html body .suNavStringi{display:none}
  html body .suNavVelo{display:block;position:fixed;inset:0;z-index:2147483500;background:rgba(15,23,42,.4);opacity:0;pointer-events:none;transition:opacity .2s}
  html.su-nav-aperto body .suNavVelo{opacity:1;pointer-events:auto}
}
@media (max-width:899.98px){ html.su-nav body .content>.top-bar{width:100%!important} }
/* Lavori: Espandi tutto / Comprimi tutto */
html body .suApriChiudi{display:inline-flex;border:1px solid var(--line-strong,#d0d5dd);border-radius:10px;overflow:hidden;height:38px;margin-left:4px}
html body .suApriChiudi .btn{height:36px!important;border:0!important;border-radius:0!important;padding:0 11px!important;font-size:12.5px!important;font-weight:700;background:#fff!important;color:var(--ink-2)!important;display:inline-flex!important;align-items:center;gap:6px;box-shadow:none!important}
html body .suApriChiudi .btn+.btn{border-left:1px solid var(--line)!important}
html body .suApriChiudi .btn::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:var(--ico-giu) center/contain no-repeat;mask:var(--ico-giu) center/contain no-repeat}
html body .suApriChiudi .suComprimiTutto::before{transform:rotate(180deg)}
html body .suApriChiudi .btn:hover{background:var(--blue-bg)!important;color:var(--primary)!important}
@media (max-width:1700px){ html body .suApriChiudi .btn{font-size:0!important;padding:0 11px!important;gap:0} }

/* ==========================================================================
   50. AGGIORNAMENTO 31: controllo stile unico - elenchi delle anagrafiche come Materiali
   ========================================================================== */
html body .suDtTop .suComandiFiltri{display:flex;align-items:center;gap:8px}
html body .suDtTop .suComandiFiltri .suNuovo{order:9}
html body .suDtTop .suComandiFiltri .suLinguette{order:5}
html body table.suTabellaLista tbody td .suPunto::before{content:"·";margin:0 7px;color:var(--n-400);font-weight:800}
html body table.suTabellaLista td.suFlagCella{white-space:nowrap}
html body .suFlag{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;margin-right:4px;border-radius:99px;font-size:11.5px;font-weight:700;border:1px solid var(--line);background:var(--n-50);color:var(--n-400)}
html body .suFlag.suSi{background:#ecfdf3;border-color:#abefc6;color:#067647}
html body .suFlag.suSi::before{content:"";width:6px;height:6px;border-radius:50%;background:#17b26a}
html body .suFlag.suNo{text-decoration:line-through;text-decoration-color:rgba(152,162,179,.6)}
html body .suFlag.suFlagNum{background:#fff;color:var(--ink-2)}
html body table.suTabellaLista td.suFlagCella{max-width:none!important;overflow:visible}
/* Articoli: come Magazzino (Cerca generale, Altri filtri, Azzera, Inserisci articolo nella stessa fila; niente pannello Ordinamento) */
html body .pannelloTestatPrincipale:has(.inserisciMaterialeArticolo)>.col-md-10.panelRicerca,
html body .pannelloTestatPrincipale:has(.inserisciMaterialeArticolo)>.col-md-2:has(>h3.panel-title),
html body .pannelloTestatPrincipale:has(.inserisciMaterialeArticolo) .classeOrdinamentoContent{display:none!important}
html body .suComandiFiltri .suNuovoArt{height:38px;display:inline-flex;align-items:center;gap:6px;padding:0 14px!important;font-weight:700}
html body .suComandiFiltri .suNuovoArt::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:var(--ico-plus) center/contain no-repeat;mask:var(--ico-plus) center/contain no-repeat}
/* Articoli: colonne larghe quanto il contenuto, misure su una riga */
@media (min-width:900px){
  html body:has(.inserisciMaterialeArticolo) .contentGenerico:has(>.classePannelloGenerico .pulsantiGenerico){grid-template-columns:minmax(120px,max-content) minmax(150px,max-content) minmax(140px,1fr) minmax(120px,max-content) minmax(180px,1.2fr) max-content!important}
}
html body:has(.inserisciMaterialeArticolo) .contentGenerico .etichetta h4 strong h4{display:inline!important;margin:0!important;font:inherit!important;color:inherit!important;padding:0!important;border:0!important;background:none!important}
html body:has(.inserisciMaterialeArticolo) .contentGenerico .etichetta h4 strong h4::after,
html body:has(.inserisciMaterialeArticolo) .contentGenerico .etichetta h4 strong span+span::before{content:" · ";color:var(--n-400);font-weight:800}
html body:has(.inserisciMaterialeArticolo) .contentGenerico .etichetta h4 strong>span{display:inline!important}
html body:has(.inserisciMaterialeArticolo) .contentGenerico .etichetta h4:has(>span>strong:empty){display:none!important}
/* Trace: come le altre liste (Cerca, Altri filtri, Azzera; pagine in fondo) */
html body .pannelloTestatPrincipale:has([data="dati_modificati"])>.col-md-10.panelRicerca,
html body .pannelloTestatPrincipale:has([data="dati_modificati"]) .classeOrdinamentoContent{display:none!important}
/* titolo nascosto solo alla vista: il percorso in alto lo legge ancora */
html body .pannelloTestatPrincipale:has([data="dati_modificati"])>.col-md-2:has(>h3.panel-title){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);padding:0!important;margin:0!important}
html body:has([data="dati_modificati"]) .contentGenerico{display:flex!important;flex-direction:column}
html body:has([data="dati_modificati"]) .contentGenerico>.row.height1{order:99;margin:6px 0 0!important;border-top:1px solid var(--line)}
/* Autorizzazioni: Attivo / Disattivo sempre su una riga */
html body .autorizzazioniClick{display:inline-flex!important;flex-wrap:nowrap!important;white-space:nowrap}
html body .autorizzazioniClick .btn{float:none!important}
@media (max-width:1400px){ html body .autorizzazioniClick .btn{padding:0 8px!important;font-size:12px!important;height:30px;line-height:30px} }
@media (max-width:1100px){ html body .autorizzazioniClick .btn{padding:0 6px!important;font-size:11px!important} }
/* pagine in fondo anche su telefono e tablet (elenchi a righe: Articoli, Magazzino...) */
@media (max-width:899.98px){
  html body .contentGenerico:has(>.row.height1){display:flex!important;flex-direction:column}
  html body .contentGenerico>.row.height1{order:99;margin-top:10px!important}
}
@media (max-width:899.98px){
  /* telefono: le schede non hanno la barra dei titoli, quindi niente frecce di ordinamento ed etichette normali */
  html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdinabile::after{content:none!important}
  html body .contentGenerico .row.height1+.classePannelloGenerico .etichetta>h4:first-child>span.suOrdinabile{color:var(--muted)!important}
  /* percorso in alto: a destra del pulsante del menu, non sopra */
  html body .top-bar ul.suHaBriciole{padding-left:60px!important}
}
/* pagina delle regole: l'esempio dell'animazione resta dentro il suo riquadro */
html body .suDoc .suEsempio .suCaricamentoBarra{position:relative!important;top:auto!important;left:auto!important;transform:none!important;animation:none;z-index:1}

/* ==========================================================================
   51. AGGIORNAMENTO 32: nome del gestionale "Dr. Truciolo" (menu e accesso)
   ========================================================================== */
html body .suNavLogo{font-size:13px;letter-spacing:-.02em}
html body .suMarchioLogin{display:inline-flex;align-items:center;gap:12px}
html body .suMarchioLogo{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;font:800 18px/1 Inter,sans-serif;box-shadow:0 6px 14px rgba(37,99,235,.3)}
html body .suMarchioNome{font:800 26px/1.1 Inter,sans-serif;color:#101828;letter-spacing:-.02em}
/* Home: stesso ordine del menu (Lavori, Magazzino, Articoli, Archivio programmi); Listini nascosto */
html body .info-page>[class*=col-]:has(a[href*="lavori"]){order:1}
html body .info-page>[class*=col-]:has(a[href*="magazzino"]){order:2}
html body .info-page>[class*=col-]:has(a[href*="articoli"]){order:3}
html body .info-page>[class*=col-]:has(a[href*="archivio"]){order:4}
html body .info-page>[class*=col-]:has(a[href*="listino"]),
html body .info-page>[class*=col-]:has(a[href*="ticket"]){display:none!important}
/* barra in alto: niente icona dei ticket/messaggi */
html body .top-bar li.dropdown:has(>a>.fa-comments),html body .top-bar li.dropdown:has(>a .fa-comments){display:none!important}

/* ==========================================================================
   52. AGGIORNAMENTO 32: SCHEDE ordinate per argomento (cliente/fornitore, responsabile, macchina, materiale, sigla)
   ========================================================================== */
html.su-pagina-scheda body .main-content .panel-body>.col-md-3:has(#myTab li:only-child){display:none!important}
html.su-pagina-scheda body .main-content .panel-body>.col-md-3:has(#myTab li:only-child)+.col-md-9{width:100%!important}
html.su-pagina-scheda body .tab-pane>.col-md-12{padding:0!important;float:none!important;width:auto!important}
html body .suSchedaForm{display:flex!important;flex-direction:column;gap:14px;margin:0!important}
html body .suSchedaSez{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px 16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
html body .suSchedaSez>h3{margin:0 0 12px!important;font-size:13px!important;font-weight:800;color:var(--ink)!important;letter-spacing:.01em;display:flex;align-items:center;gap:8px}
html body .suSchedaSez>h3::before{content:"";width:4px;height:16px;border-radius:2px;background:var(--primary)}
html body .suSez-contatti>h3::before{background:#16a34a} html body .suSez-indirizzo>h3::before{background:#ea580c}
html body .suSez-macchine>h3::before{background:#9333ea} html body .suSez-accesso>h3::before{background:#475467}
html body .suSchedaGriglia{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px}
html body .suSchedaGriglia>.suSchedaCampo{margin:0!important;width:auto!important;float:none!important;min-width:0}
html body .suSchedaGriglia>.suLargo{grid-column:1/-1}
html body .suSchedaCampo.input-group{display:flex!important;flex-direction:column;align-items:stretch}
html body .suSchedaCampo.input-group>.input-group-addon{display:block!important;width:auto!important;text-align:left!important;padding:0 0 5px!important;border:0!important;background:none!important;font-size:10.5px!important;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)!important;white-space:nowrap}
html body .suSchedaCampo.input-group>.form-control,html body .suSchedaCampo.input-group>.select2-container{width:100%!important;height:38px;border-radius:9px!important;border:1px solid var(--line-strong,#d0d5dd)!important}
html body .suSchedaCampo.input-group>select[multiple]+.select2-container{height:auto;min-height:38px}
html body .suSchedaCampo.input-group:has(.suMostraPw){display:grid!important;grid-template-columns:1fr auto;column-gap:6px}
html body .suSchedaCampo.input-group:has(.suMostraPw)>.input-group-addon{grid-column:1/-1}
html body .suMostraPw{height:38px;border-radius:9px!important}
html body .suSchedaTipo .suSchedaEtic{display:block;padding:0 0 5px;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
html body .suScelta{position:relative;display:inline-flex!important;gap:2px;padding:3px!important;border:0!important;border-radius:11px;margin:0!important;background:var(--n-100)!important;overflow:visible}
html body .suScelta>.suSceltaInd{position:absolute;top:3px;bottom:3px;left:3px;width:0;border-radius:8px;background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.16),0 0 0 1px rgba(16,24,40,.04);transition:left .26s cubic-bezier(.3,.8,.3,1),width .26s cubic-bezier(.3,.8,.3,1),opacity .15s;pointer-events:none;z-index:0}
html body .suScelta>.btn,html body .suScelta>.btn.active,html body .suScelta>.btn:active,html body .suScelta>.btn:focus,html body .suScelta>.btn:hover{position:relative;z-index:1;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--muted)!important;font-weight:700;height:34px;padding:0 14px!important;box-shadow:none!important;outline:0!important;display:inline-flex!important;align-items:center;transition:color .2s}
html body .suScelta>.btn:hover{color:var(--ink)!important}
html body .suScelta>.btn.active,html body .suScelta>.btn:has(input:checked){color:var(--primary)!important}
html body .suScelta>.btn:has(input:focus-visible){box-shadow:var(--ring)!important}
html body .suScelta>.btn input{position:absolute;opacity:0;pointer-events:none}
html body .suSchedaBarra{display:flex;justify-content:flex-end;gap:10px;padding-top:2px}
html body .suSchedaBarra .suSalva{height:40px;min-width:140px;border-radius:10px!important;font-weight:700}
html.su-pagina-scheda body .tab-pane+.tab-pane,html.su-pagina-scheda body .tab-pane>br{display:none}
html.su-pagina-scheda body .tab-pane>.col-md-12+.col-md-12{margin-top:16px!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;height:auto!important;border:0!important;background:none!important;padding:0!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group>.input-group-addon{height:auto!important;min-height:0!important;line-height:1.3!important;flex:0 0 auto!important;max-width:none!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group>.form-control{flex:0 0 auto!important;height:38px!important;min-height:38px!important;width:100%!important;padding:0 11px!important;border-radius:9px!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group>textarea.form-control{height:auto!important;min-height:90px!important;padding:8px 11px!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group>.select2-container{flex:0 0 auto!important;width:100%!important}
html body .suSchedaGriglia>.suSchedaCampo.input-group:has(.suMostraPw){display:grid!important;grid-template-columns:1fr auto!important}
html body .suSchedaGriglia>.suSchedaCampo .suMostraPw{align-self:flex-start;width:auto!important;height:30px!important;margin-top:6px;padding:0 12px!important;font-size:12px}
html body .suSchedaGriglia>.suSchedaTipo{grid-column:span 2}
html body .suTipoAna{display:inline-flex;align-items:center;height:20px;padding:0 8px;margin-right:6px;border-radius:99px;font-size:11px;font-weight:700;vertical-align:1px;border:1px solid var(--line);background:var(--n-50);color:var(--ink-2)}
html body .suTipoAna.suTipo-cliente{background:var(--blue-bg);border-color:var(--blue-line);color:var(--primary)}
html body .suTipoAna.suTipo-fornitore{background:var(--orange-bg);border-color:var(--orange-line);color:#c2410c}
html body .suTipoAna.suTipo-entrambi{background:#f4f3ff;border-color:#d9d6fe;color:#5925dc}
/* schede con piu' parti (es. Macchina: dati, tempi, listino): tutte visibili una sotto l'altra, niente linguette */
html.su-pagina-scheda body #myTabContent:has(>.tab-pane+.tab-pane)>.tab-pane{display:block!important;opacity:1!important;visibility:visible!important;position:static!important;height:auto!important;pointer-events:auto!important}
html.su-pagina-scheda body .panel-body>.col-md-3:has(#myTab),html.su-pagina-scheda body .panel-body #myTab:has(li+li){display:none!important}
html.su-pagina-scheda body .panel-body>.col-md-3:has(#myTab)+.col-md-9{width:100%!important}
html.su-pagina-scheda body #myTabContent>.tab-pane+.tab-pane{margin-top:16px}
/* tempi: tendine strette (ore, minuti, secondi) */
html body .suSchedaGriglia>.suSchedaCampo:has(select[name*="_ora"]),html body .suSchedaGriglia>.suSchedaCampo:has(select[name*="_minuti"]),html body .suSchedaGriglia>.suSchedaCampo:has(select[name*="_secondi"]){max-width:160px}
html body .suSchedaGriglia>.suSchedaCampo select.form-control{text-align:left!important;direction:ltr!important}
html body .suSchedaSez>.suSchedaBarra{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
/* Lavori: "Mostra Ordini · Lavori · Fasi" (quanto aprire la lista), compatto */
html body .suVista{display:inline-flex;align-items:center;height:38px;border:1px solid var(--line-strong,#d0d5dd);border-radius:10px;background:#fff;overflow:hidden;margin-left:4px}
html body .suVistaEtic{padding:0 8px 0 11px;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
html body .suVista .suVistaBtn{height:30px!important;margin:0 3px 0 0!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ink-2)!important;font-size:12.5px!important;font-weight:700;box-shadow:none!important;display:inline-flex!important;align-items:center}
html body .suVista .suVistaBtn:hover{background:var(--n-100)!important}
html body .suVista .suVistaBtn.on{background:var(--blue-bg)!important;color:var(--primary)!important}
html body .suApriChiudi{display:none!important}
/* fase: matita a destra accanto agli allegati */
html body .suF{grid-template-columns:24px 104px minmax(140px,1.1fr) minmax(130px,1fr) minmax(190px,1.2fr) minmax(200px,auto) 66px!important;padding-left:12px!important}
html body .suFAll{display:flex;gap:4px;justify-content:flex-end}
html body .suFAll .suFApri{--su-i:var(--ico-edit)}
html body .suF.suFAperta .suFApri{--su-i:var(--ico-x);background:var(--blue-bg)!important;border-color:var(--blue-line)!important}
html body .suFNote{grid-column:2/-1!important}
html body .suFRapida{padding-left:40px}
@media (max-width:1250px){ html body .suF{grid-template-columns:24px 100px minmax(0,1fr) minmax(0,1fr) 66px!important} html body .suFTempi{grid-column:2/4!important} html body .suFStatoBox{grid-column:4/6!important} }
@media (max-width:700px){ html body .suF{grid-template-columns:24px minmax(0,1fr) 66px!important} html body .suF>*:not(.suFNum):not(.suFAll){grid-column:2!important} }
/* Autorizzazioni: avviso "Salvato" / errore dopo ogni clic */
html body #suAvvisoAut{position:fixed;z-index:3000;right:24px;bottom:24px;padding:10px 16px;border-radius:10px;font:700 13px/1.3 Inter,sans-serif;box-shadow:0 10px 30px rgba(16,24,40,.18);opacity:0;transition:opacity .2s;pointer-events:none}
html body #suAvvisoAut.suOk{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
html body #suAvvisoAut.suErr{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
/* finestre (es. Gruppo macchina): le scelte Attivo / Disattivo tutte uguali e compatte */
html body .modal .bottoneFlag{display:inline-flex!important;width:auto!important;max-width:none!important;border:1px solid var(--line-strong,#d0d5dd);border-radius:10px;overflow:hidden;background:#fff!important;padding:0!important}
html body .modal .bottoneFlag>.btn{margin:0!important;border:0!important;border-radius:0!important;height:34px;padding:0 14px!important;background:#fff!important;color:var(--ink-2)!important;font-weight:700;box-shadow:none!important}
html body .modal .bottoneFlag>.btn+.btn{border-left:1px solid var(--line)!important}
html body .modal .bottoneFlag>.btn.active,html body .modal .bottoneFlag>.btn:has(input:checked){background:var(--blue-bg)!important;color:var(--primary)!important}

/* ==========================================================================
   53. AGGIORNAMENTO 33: lista Lavori allineata (ordine e lavori sulle stesse colonne)
   ========================================================================== */
:root{--su-col-lav:26px 104px minmax(170px,1.5fr) minmax(170px,1.1fr) 140px 150px 236px}
@media (min-width:1251px){
  html body .suOrdTesta{display:grid!important;grid-template-columns:var(--su-col-lav);align-items:center;gap:0 18px}
  html body .suOrdTesta>.suOrdApri{grid-column:1}
  html body .suOrdTesta>.suOrdNum{grid-column:2} html body .suOrdTesta>.suOrdCli{grid-column:3;min-width:0}
  html body .suOrdTesta>.suOrdRif{grid-column:4;min-width:0} html body .suOrdTesta>.suOrdIns{grid-column:5}
  html body .suOrdTesta>.suOrdConta{grid-column:6;justify-self:start;margin:0!important}
  html body .suOrdTesta>.StampaEtichettaOrdine{grid-column:7;justify-self:end}
  html body .suOrdTesta b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .suLavRiga{grid-template-columns:var(--su-col-lav)!important;gap:0 18px!important}
  html body .suLavRiga>.suLavApri{grid-column:1}
  html body .suLavRiga>.suLavArt{grid-column:2/4}
  html body .suLavRiga>.suLavScad{grid-column:4} html body .suLavRiga>.suLavQta{grid-column:5}
  html body .suLavRiga>.suLavAvanz{grid-column:6} html body .suLavRiga>.suLavAzioni{grid-column:7}
  html body .suOrdTesta,html body .suLav{padding-left:14px!important;padding-right:14px!important}
}

/* ==========================================================================
   54. Pagine di configurazione (Macchine e gruppi, Materiali e sigle, Assiemi)
       riquadri + pannello di modifica che entra da destra (js/config_kit.js)
   ========================================================================== */
html body .suCfgPagina .suCfgTitoloNascosto{display:none}
html body .suCfgBarra{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 6px}
html body .suCfgCerca{position:relative;flex:1 1 260px;max-width:420px;margin:0}
html body .suCfgCerca span{position:absolute;left:12px;top:5px;font-size:10px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);pointer-events:none}
html body .suCfgCerca input{width:100%;height:44px;padding:16px 12px 4px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;font-size:14px;outline:0;transition:border-color .15s,box-shadow .15s}
html body .suCfgCerca input:focus{border-color:var(--primary);box-shadow:var(--ring)}
html body .suCfgConta{color:var(--muted);font-weight:700;font-size:12.5px;margin-right:auto}
html body .suCfgBarra .btn{height:40px;padding:0 16px;border-radius:10px;font-weight:700}
html body .suCfgAiuto{color:var(--muted);font-size:12.5px;margin:4px 0 14px}
html body .suCfgGriglia{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;align-items:start}
html body .suCfgCard{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;animation:su-appare .16s ease-out backwards}
html body .suCfgCard>header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--n-50)}
html body .suCfgSenza{border-style:dashed}
html body .suCfgSenza>header{background:var(--orange-bg)}
html body .suCfgCardTit{font-size:15px;font-weight:800;color:var(--ink);background:none;border:0;padding:0;text-align:left;margin-right:auto}
html body button.suCfgCardTit{cursor:pointer;border-bottom:1px dashed transparent}
html body button.suCfgCardTit:hover{color:var(--primary);border-bottom-color:currentColor}
html body .suCfgInfo{display:flex;flex-wrap:wrap;gap:5px}
html body .suCfgTag{display:inline-block;padding:2px 8px;border-radius:99px;background:#fff;border:1px solid var(--line);color:var(--ink-2);font-size:11px;font-weight:700}
html body .suCfgTag.suOn{background:var(--green-bg);border-color:var(--green-line);color:var(--green)}
html body .suCfgMacchine,html body .suCfgVoci{display:flex;flex-direction:column;padding:6px}
html body .suCfgMacchina,html body .suCfgVoce{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:baseline;width:100%;padding:8px 10px;border:0;border-radius:9px;background:none;text-align:left;color:var(--ink);transition:background .12s}
html body button.suCfgMacchina:hover,html body button.suCfgVoce:hover{background:var(--blue-bg)}
html body .suCfgMacchina b,html body .suCfgVoce b{font-size:12px;font-weight:800;color:var(--primary);min-width:44px}
html body .suCfgMacchina span,html body .suCfgVoce span{font-weight:700;font-size:13.5px}
html body .suCfgMacchina small,html body .suCfgVoce small{grid-column:2;color:var(--muted);font-size:11.5px}
html body .suCfgNiente{grid-column:1/-1;padding:50px 20px;text-align:center;color:var(--muted);font-weight:700}
html body .suKitVuoto{color:var(--muted);font-size:12.5px;font-style:italic;padding:8px 10px}
/* pannello */
html body .suKitVelo{position:fixed;inset:0;z-index:10000000;background:rgba(16,24,40,.35);opacity:0;transition:opacity .2s}
html body .suKitVelo.on{opacity:1}
html body .suKitPannello{position:fixed;top:0;right:0;bottom:0;z-index:10000001;width:min(520px,100vw);display:flex;flex-direction:column;background:#fff;box-shadow:-20px 0 60px rgba(16,24,40,.22);transform:translateX(104%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
html body .suKitPannello.on{transform:none}
@media (min-width:800px){html body .suKitPannello{height:calc(100vh / .9)}html body .suKitVelo{height:calc(100vh / .9);width:calc(100vw / .9)}}
html body .suKitTesta{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
html body .suKitTesta h3{margin:0;font-size:17px;font-weight:800;color:var(--ink);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suKitChiudi{width:34px;height:34px;border:0;border-radius:9px;background:var(--n-100);position:relative;flex:none}
html body .suKitChiudi::before{content:"";position:absolute;inset:9px;background:var(--ink-2);-webkit-mask:var(--ico-x) center/contain no-repeat;mask:var(--ico-x) center/contain no-repeat}
html body .suKitChiudi:hover{background:var(--red-bg)}
html body .suKitCorpo{flex:1;overflow:auto;padding:6px 18px 18px}
html body .suKitPiede{display:flex;gap:8px;justify-content:flex-end;padding:12px 18px;border-top:1px solid var(--line);background:var(--n-50)}
html body .suKitPiede .btn{height:40px;padding:0 18px;border-radius:10px;font-weight:700}
html body .suKitPiede .suKitElimina{margin-right:auto}
html body .suKitForm{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
html body .suKitSez{grid-column:1/-1;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--primary)}
html body .suKitForm>.suKitSez:first-child{border-top:0;padding-top:0}
html body .suKitCampo{display:flex;flex-direction:column;gap:5px;margin:0;font-weight:400;min-width:0}
html body .suKitCampo.suLargo{grid-column:1/-1}
html body .suKitCampo>span{font-size:11.5px;font-weight:700;color:var(--ink-2)}
html body .suKitCampo .form-control{height:40px;border-radius:9px}
html body .suKitCampo textarea.form-control{height:84px!important;min-height:0;resize:vertical}
html body .suKitTempi{display:flex;align-items:center;gap:5px}
html body .suKitTempi i{font-style:normal;font-size:12px;color:var(--muted);font-weight:700;margin-right:6px}
html body .suKitTempi .suKitNum{width:64px;padding:0 6px}
html body .suKitScelta{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;background:var(--n-100);border-radius:10px;align-self:flex-start}
html body .suKitScelta button{border:0;background:none;padding:6px 13px;border-radius:8px;font-weight:700;font-size:12.5px;color:var(--ink-2);transition:background .15s,color .15s,box-shadow .15s}
html body .suKitScelta button:hover{color:var(--ink)}
html body .suKitScelta button.on{background:#fff;color:var(--primary);box-shadow:0 1px 3px rgba(16,24,40,.15)}
html body .suKitPillole{display:flex;flex-wrap:wrap;gap:6px}
html body .suKitPillole button{border:1px solid var(--line-strong);background:#fff;padding:6px 12px 6px 28px;border-radius:99px;font-size:12.5px;font-weight:700;color:var(--ink-2);position:relative;transition:background .15s,border-color .15s,color .15s}
html body .suKitPillole button::before{content:"";position:absolute;left:10px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;border:2px solid var(--n-400);transition:all .15s}
html body .suKitPillole button.on{background:var(--blue-bg);border-color:var(--blue-line);color:var(--primary)}
html body .suKitPillole button.on::before{border-color:var(--primary);background:var(--primary);box-shadow:inset 0 0 0 2px #fff}
html body .suKitPillole button:hover{border-color:var(--primary)}
html body #suKitAvviso{position:fixed;z-index:10000002;left:50%;bottom:30px;transform:translateX(-50%);padding:10px 18px;border-radius:99px;font-weight:700;font-size:13px;color:#fff;box-shadow:var(--shadow-lg);transition:opacity .3s;pointer-events:none}
html body #suKitAvviso.suOk{background:var(--green-500)}
html body #suKitAvviso.suErr{background:var(--red-500)}
@media (max-width:600px){html body .suKitForm{grid-template-columns:1fr}html body .suCfgGriglia{grid-template-columns:1fr}}

/* ==========================================================================
   55. Passaggio tra le pagine: barra sottile in alto + entrata morbida
       (sostituisce ogni vecchio "Loading..." / gif / rotellina)
   ========================================================================== */
@keyframes su-navbarra{0%{transform:scaleX(0)}30%{transform:scaleX(.45)}70%{transform:scaleX(.8)}100%{transform:scaleX(.94)}}
html body #suNavBarra{position:fixed;z-index:10000003;top:0;left:0;right:0;height:3px;pointer-events:none;opacity:0;transition:opacity .2s}
html body #suNavBarra::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--blue-400),var(--primary));transform-origin:0 50%;transform:scaleX(0)}
html body #suNavBarra.on{opacity:1}
html body #suNavBarra.on::before{animation:su-navbarra 4s cubic-bezier(.1,.7,.2,1) forwards}
html body.suEsce .main-content{opacity:.55;transition:opacity .25s .15s}
html body .loadmask-msg{border:0!important;background:#fff!important;border-radius:14px!important;box-shadow:var(--shadow-lg)!important;padding:14px 20px!important}
html body .loadmask-msg div{background:none!important;padding:0!important;border:0!important;color:var(--primary)!important;font-weight:700!important}
html body .loadmask-msg .fa-spin,html body .loadmask-msg h1 .fa,html body .loadmask-msg .fa-refresh{display:none!important}
html body .loadmask{background:rgba(255,255,255,.6)!important;opacity:1!important}
html body .suCfgSigle{margin:6px 0 4px}
html body .suCfgChips{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px}
html body .suCfgChips.suPiccole{padding:10px 14px 12px;gap:5px}
html body .suCfgChip{display:inline-flex;align-items:baseline;gap:6px;padding:5px 12px;border-radius:99px;border:1px solid var(--blue-line);background:var(--blue-bg);color:var(--primary);font-weight:700;font-size:12.5px;transition:background .12s,border-color .12s}
html body .suCfgChip small{font-size:10.5px;color:var(--muted);font-weight:700}
html body button.suCfgChip:hover{background:#fff;border-color:var(--primary)}
html body .suCfgChip.suLibera{background:#fff;border-style:dashed;border-color:var(--line-strong);color:var(--ink-2)}
html body .suCfgChip.suFissa{background:var(--n-50);border-color:var(--line);color:var(--ink);font-size:12px;padding:3px 10px}
html body .suCfgNote{margin:0;padding:0 14px 12px;color:var(--muted);font-size:12px;white-space:pre-wrap}
html body .suKitAggiungi{display:flex;gap:8px}
html body .suKitAggiungi .btn{height:40px;border-radius:9px;font-weight:700;flex:none}
/* Assiemi */
html body .suKitPannello.suLargo{width:min(680px,100vw)}
html body .suCfgGriglia.suAsGriglia{grid-template-columns:repeat(auto-fill,minmax(420px,1fr))}
html body .suAsCard .suCfgCardTit{display:flex;flex-direction:column;gap:1px}
html body .suAsCard .suCfgCardTit small{font-size:12px;font-weight:600;color:var(--muted)}
html body .suAsAlbero{padding:6px 8px 10px}
html body .suAsRiga{display:flex;align-items:baseline;gap:10px;padding:5px 8px 5px calc(8px + var(--liv,0) * 18px);border-radius:7px;position:relative}
html body .suAsRiga:nth-child(odd){background:var(--n-50)}
html body .suAsRiga[style*="--liv: 1"]::before,html body .suAsRiga[style*="--liv: 2"]::before,html body .suAsRiga[style*="--liv: 3"]::before{content:"";position:absolute;left:calc(var(--liv) * 18px - 6px);top:0;bottom:0;border-left:2px solid var(--blue-line)}
html body .suAsNome{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
html body .suAsNome b,html body .suAsRis b{font-weight:800;color:var(--ink);font-size:13px}
html body .suAsDis{font-size:12px;color:var(--primary);font-weight:700}
html body .suAsDes{font-size:12.5px;color:var(--ink-2)}
html body .suAsQ{font-weight:800;color:var(--ink);font-size:13px;white-space:nowrap}
html body .suAsBadge{font-style:normal;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.3px;padding:1px 6px;border-radius:5px;background:var(--violet-bg);color:var(--violet)}
html body .suAsComp{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--n-50)}
html body .suAsCompRiga{display:flex;align-items:center;gap:10px;padding:6px 8px;background:#fff;border:1px solid var(--line);border-radius:8px}
html body .suAsQBox{display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden;flex:none}
html body .suAsPM{width:28px;height:30px;border:0;background:var(--n-100);font-weight:800;font-size:15px;color:var(--ink-2)}
html body .suAsPM:hover{background:var(--blue-bg);color:var(--primary)}
html body .suAsQIn{width:48px;height:30px;border:0;text-align:center;font-weight:800;-moz-appearance:textfield}
html body .suAsQIn::-webkit-inner-spin-button{-webkit-appearance:none}
html body .suAsVia{width:28px;height:28px;border:0;border-radius:7px;background:none;position:relative;flex:none}
html body .suAsVia::before{content:"";position:absolute;inset:8px;background:var(--n-500);-webkit-mask:var(--ico-x) center/contain no-repeat;mask:var(--ico-x) center/contain no-repeat}
html body .suAsVia:hover{background:var(--red-bg)}
html body .suAsVia:hover::before{background:var(--red)}
html body .suAsRicerca .form-control{height:40px;border-radius:9px}
html body .suAsRisultati{display:flex;flex-direction:column;gap:2px;max-height:260px;overflow:auto;margin-top:6px}
html body .suAsRisultati:empty{display:none}
html body .suAsRis{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;text-align:left;border:1px solid transparent;background:none;border-radius:8px;padding:7px 10px}
html body .suAsRis:hover{background:var(--blue-bg);border-color:var(--blue-line)}
html body .suAsRis small{margin-left:auto;color:var(--muted);font-weight:700;font-size:11px}
html body .suAsRis.suNo{opacity:.45;cursor:not-allowed}
@media (max-width:600px){html body .suCfgGriglia.suAsGriglia{grid-template-columns:1fr}}
/* Scelta multipla a pillole (select.suChipSelect) */
html body select.suChipNascosto{display:none!important}
html body .input-group.suConChips{display:flex!important;flex-direction:column;align-items:stretch}
html body .input-group.suConChips>.input-group-addon{width:auto!important;text-align:left}
html body .suChips{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--n-50);width:100%}
html body .suChipsTesta{display:flex;align-items:center;gap:6px}
html body .suChipsConta{margin-right:auto;font-size:12px;font-weight:700;color:var(--muted)}
html body .suChipsCmd{border:0;background:none;color:var(--primary);font-weight:700;font-size:12px;padding:2px 6px;border-radius:6px}
html body .suChipsCmd:hover{background:var(--blue-bg)}
html body .suChips .suKitPillole button{padding:5px 11px 5px 26px;font-size:12.5px}

/* ==========================================================================
   56. Magazzino pezzi: righe come la lista lavori
       cliente | articolo · disegno · descrizione | q.ta | posizione | icone
   ========================================================================== */
html body .suMagLista{--su-col-mag:30px minmax(120px,.8fr) minmax(240px,2.6fr) 74px minmax(150px,1fr) max-content;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);margin:0 0 12px}
html body .suMagTesta,html body .suMagRiga{display:grid;grid-template-columns:var(--su-col-mag);align-items:center;column-gap:14px;padding:0 12px}
html body .suMagTesta{min-height:36px;background:var(--n-50);border-bottom:1px solid var(--line);font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
html body .suMagRiga{min-height:52px;padding-top:7px;padding-bottom:7px;border-bottom:1px solid var(--line);transition:background .12s;animation:su-appare .16s ease-out backwards}
html body .suMagRiga:last-child{border-bottom:0}
html body .suMagRiga:hover{background:var(--blue-bg)}
html body .suMagRiga.selected{background:#eef4ff;box-shadow:inset 3px 0 0 var(--primary)}
html body .suMagSel{width:20px;height:20px;border-radius:6px;border:2px solid var(--n-300);background:#fff;padding:0;position:relative;transition:all .12s}
html body .suMagSel:hover{border-color:var(--primary)}
html body .suMagRiga.selected .suMagSel{background:var(--primary)!important;border-color:var(--primary)!important}
html body .suMagRiga.selected .suMagSel::after{content:"";position:absolute;left:5px;top:1px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
html body .suMagCli{display:flex;flex-direction:column;min-width:0}
html body .suMagCli b{font-weight:800;color:var(--ink);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suMagCli small{font-size:11px;color:var(--muted);font-weight:600}
html body .suMagArt{min-width:0;display:flex;flex-direction:column;gap:2px}
html body .suMagRiga1{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0}
html body .suMagRiga1 .suPunto::before,html body .suDaArtNome .suPunto::before{margin:0 6px}
html body .suMagRiga1 b{font-weight:800;color:var(--ink);font-size:13.5px}
html body .suMagDis{color:var(--primary);font-weight:700;font-size:12.5px}
html body .suMagDes{color:var(--ink-2);font-size:13px}
html body .suMagNote{color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .suMagQ{text-align:center}
html body .suMagQta{display:inline-block;min-width:44px;padding:3px 10px;border-radius:99px;background:var(--n-100);font-weight:800;font-size:13.5px;color:var(--ink)}
html body .suMagPos{display:flex;flex-wrap:wrap;gap:4px}
html body .suMagPosV{display:inline-flex;gap:4px;align-items:baseline;padding:2px 8px;border-radius:6px;background:var(--orange-bg);border:1px solid var(--orange-line);color:var(--orange-700);font-weight:700;font-size:12px}
html body .suMagPosV i{font-style:normal;font-weight:600;font-size:10.5px;opacity:.75}
html body .suMagVuoto{color:var(--n-400);font-size:12px;font-style:normal}
html body .suMagAz{display:flex!important;gap:4px;justify-content:flex-end;flex-wrap:nowrap;padding:0!important;border:0!important;background:none!important}
html body .suMagAz .BottoneSelectRow{display:none!important}
html body .suMagAz .bottoneTabella{margin:0!important}
html body .suMagTesta .suMagAz{text-align:right;display:block!important}
@media (max-width:1000px){
  html body .suMagTesta{display:none}
  html body .suMagRiga{grid-template-columns:26px 1fr auto;row-gap:6px}
  html body .suMagCli{grid-column:2/4}
  html body .suMagArt{grid-column:2/4}
  html body .suMagQ{grid-column:2;text-align:left}
  html body .suMagPos{grid-column:3}
  html body .suMagAz{grid-column:1/-1}
}
/* Magazzino > Da articolo: ricerca immediata */
html body .suDaArtDialog{width:min(860px,96vw)!important;max-width:none!important}
html body .suDaArtCerca{display:block;position:relative;margin:0 0 10px}
html body .suDaArtCerca span{position:absolute;left:12px;top:6px;font-size:10px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);pointer-events:none}
html body .suDaArtCerca input.form-control{height:50px;padding:18px 12px 4px;font-size:15px;border-radius:10px}
html body .suDaArtRis{display:flex;flex-direction:column;gap:3px;max-height:min(60vh,520px);overflow:auto;transition:opacity .15s}
html body .suDaArtRis.suInCerca{opacity:.5}
html body .suDaArtAiuto{padding:26px 10px;text-align:center;color:var(--muted);font-weight:600}
html body .suDaArtRiga{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.35fr) max-content;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px;transition:background .12s,border-color .12s}
html body .suDaArtRiga:hover{background:var(--blue-bg);border-color:var(--blue-line)}
html body .suDaArtNome{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0;font-size:13px;color:var(--ink-2)}
html body .suDaArtNome b{font-weight:800;color:var(--ink);font-size:13.5px}
html body .suDaArtNome i{font-style:normal;color:var(--primary);font-weight:700}
html body .suDaArtCli{font-size:12px;color:var(--muted);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suDaArtAz{font-size:12px;font-weight:800;color:#fff;background:var(--green-500);border-radius:7px;padding:5px 10px}
html body .suDaArtRiga.suGiaMag .suDaArtAz{background:var(--orange-bg);color:var(--orange-700);border:1px solid var(--orange-line)}

/* ==========================================================================
   57. Autorizzazioni: persone a sinistra, interruttori a destra
   ========================================================================== */
html body .suAutGriglia{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}
html body .suAutPersone{position:sticky;top:80px;display:flex;flex-direction:column;gap:10px}
html body .suAutPersone .suCfgCerca{max-width:none;flex:none}
html body .suAutLista{display:flex;flex-direction:column;gap:3px;max-height:calc(100vh / .9 - 260px);overflow:auto}
html body .suAutPersona{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid transparent;background:none;border-radius:10px;padding:8px 10px;transition:background .12s,border-color .12s}
html body .suAutPersona:hover{background:var(--n-100)}
html body .suAutPersona.on{background:var(--blue-bg);border-color:var(--blue-line)}
html body .suAutAvatar{flex:none;width:34px;height:34px;border-radius:50%;background:var(--n-200);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}
html body .suAutPersona.on .suAutAvatar{background:var(--primary);color:#fff}
html body .suAutAvatar.suGrande{width:46px;height:46px;font-size:15px;background:var(--primary);color:#fff}
html body .suAutNome{display:flex;flex-direction:column;min-width:0}
html body .suAutNome b{font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .suAutNome small{font-size:11.5px;color:var(--muted)}
html body .suAutDettaglio{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;min-height:200px}
html body .suAutTesta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--n-50)}
html body .suAutChi{display:flex;align-items:center;gap:12px}
html body .suAutChi h4{margin:0;font-size:17px;font-weight:800;color:var(--ink)}
html body .suAutChi small{color:var(--muted);font-weight:600}
html body .suAutPreset{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .suAutPreset>span{font-size:12px;font-weight:700;color:var(--muted);margin-right:2px}
html body .suAutPreset .btn{height:34px;padding:0 12px;border-radius:9px;font-weight:700;font-size:12.5px}
html body .suAutTabella{padding:4px 0 10px}
html body .suAutRiga{display:grid;grid-template-columns:minmax(200px,1fr) repeat(4,96px);align-items:center;padding:8px 18px;border-bottom:1px solid var(--line);transition:background .12s}
html body .suAutRiga:hover{background:var(--n-50)}
html body .suAutIntest{position:sticky;top:0;background:#fff;z-index:1;font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);padding-top:10px;padding-bottom:10px}
html body .suAutIntest:hover{background:#fff}
html body .suAutSez{padding:14px 18px 6px;font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--primary)}
html body .suAutPag{display:flex;flex-direction:column;min-width:0}
html body .suAutPag b{font-size:14px;color:var(--ink)}
html body .suAutPag small{font-size:11.5px;color:var(--muted)}
html body .suAutRiga.suSpenta .suAutPag b{color:var(--n-500)}
html body .suAutCol{text-align:center;margin:0;display:flex;justify-content:center;cursor:pointer}
html body .suAutCol input{position:absolute;opacity:0;pointer-events:none}
html body .suInterr{position:relative;width:38px;height:22px;border-radius:99px;background:var(--n-300);transition:background .2s}
html body .suInterr::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.25);transition:transform .2s cubic-bezier(.3,.8,.3,1)}
html body .suAutCol input:checked+.suInterr{background:var(--green-500)}
html body .suAutCol input:checked+.suInterr::after{transform:translateX(16px)}
html body .suAutCol input:focus-visible+.suInterr{box-shadow:var(--ring)}
html body .suAutCol:hover .suInterr{filter:brightness(.95)}
@media (max-width:900px){
  html body .suAutGriglia{grid-template-columns:1fr}
  html body .suAutPersone{position:static}
  html body .suAutLista{max-height:220px}
  html body .suAutRiga{grid-template-columns:minmax(120px,1fr) repeat(4,54px);padding:8px 10px}
  html body .suAutIntest .suAutCol{font-size:9px}
}

/* ==========================================================================
   58. Icone: misura unica per menu e Home
       menu: 20px | Home: 26px dentro un riquadro di 52px
       stesso tratto (1.9) e stesso ingombro per tutte le icone
   ========================================================================== */
:root{--su-ico-menu:20px;--su-ico-home:26px;--su-ico-home-box:52px;--ic-wrench:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z%22/%3E%3C/svg%3E");--ic-barcode:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2%22/%3E%3Cpath d=%22M7 8v8M10.5 8v8M14 8v8M17 8v8%22/%3E%3C/svg%3E");--ic-badge:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Ccircle cx=%229%22 cy=%2211%22 r=%222.2%22/%3E%3Cpath d=%22M5.8 16.5a3.5 3.5 0 0 1 6.4 0M14.5 9.5h3.5M14.5 13h3.5%22/%3E%3C/svg%3E");--ic-tag:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z%22/%3E%3Ccircle cx=%227.5%22 cy=%227.5%22 r=%221.4%22/%3E%3C/svg%3E")}
html body .suNavIco,html.su-nav-stretto body .suNavLista>li>a .suNavIco{width:var(--su-ico-menu)!important;height:var(--su-ico-menu)!important;flex:0 0 var(--su-ico-menu)!important;-webkit-mask-size:contain!important;mask-size:contain!important}
html body .info-page .square-info .square-icon{width:var(--su-ico-home-box)!important;height:var(--su-ico-home-box)!important;min-width:var(--su-ico-home-box)!important;min-height:var(--su-ico-home-box)!important;max-height:var(--su-ico-home-box)!important;align-self:start!important;margin-top:2px!important}
html body .info-page .square-info .square-icon>i.fa{width:var(--su-ico-home)!important;height:var(--su-ico-home)!important;-webkit-mask-size:contain!important;mask-size:contain!important}
html body .info-page .square-info .square-icon>i.fa-id-badge{--su-mi:var(--ic-badge)}
/* tessere della Home: stessa altezza minima, icona sempre nello stesso punto */
html body .info-page .square-info{min-height:132px}
/* Magazzino: intestazioni ordinabili */
html body .suMagTesta .suOrdinabile{cursor:pointer;user-select:none;border-radius:5px;padding:2px 4px;margin:0 -4px;transition:background .12s,color .12s}
html body .suMagTesta .suOrdinabile:hover{background:var(--n-200);color:var(--ink)}
html body .suMagTesta .suOrdAsc,html body .suMagTesta .suOrdDesc{color:var(--primary)}
html body .suMagTesta .suOrdAsc::after{content:" ▲";font-size:9px}
html body .suMagTesta .suOrdDesc::after{content:" ▼";font-size:9px}
