/* STILE «VETRO» (prova nella copia 360): vetro semilucido sui colori del logo, aurora di sfondo, luce che segue il mouse.
   Si carica DOPO tutti gli altri fogli e cambia solo l'aspetto (sfondi, bordi, ombre, raggi): nessuna classe nuova nelle pagine.
   Per togliere lo stile basta non caricare questo file e vetro.js. */
:root{
 --ease-out:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1);
 --vt-gloss:linear-gradient(180deg,#ffffff2c 0,#ffffff0e 38%,#ffffff06 100%);--vt-gloss-h:linear-gradient(180deg,#ffffff3e 0,#ffffff18 38%,#ffffff0c 100%);
 --vt-line:#ffffff24;--vt-riga:#ffffff14;--vt-blur:blur(24px) saturate(175%);
 --vt-ombra:0 1px 0 #ffffff2e inset,0 -1px 0 #ffffff08 inset,0 26px 46px -22px #000000aa,0 3px 8px #0005;
 --vt-acc:#4cc0f0;--vt-acc2:#0369a1}
html[data-theme="light"]{
 --vt-gloss:linear-gradient(180deg,#ffffffe8 0,#ffffffa8 40%,#ffffff82 100%);--vt-gloss-h:linear-gradient(180deg,#fffffff4 0,#ffffffc8 40%,#ffffffa6 100%);
 --vt-line:#ffffffd9;--vt-riga:#0c1f3312;
 --vt-ombra:0 1px 0 #fff inset,0 -1px 0 #ffffff80 inset,0 24px 42px -20px #2a5a8238,0 2px 6px #2a5a8218;--vt-acc:#0369a1}

/* ---------- sfondo: aurora lenta nei colori del logo ---------- */
html{background:#08131f}
html[data-theme="light"]{background:#e4edf6}
body{background:transparent!important}
body::before{content:"";position:fixed;inset:-20vmax;z-index:-1;pointer-events:none;will-change:transform;animation:vt-deriva 40s ease-in-out infinite alternate;
 background:radial-gradient(40vmax 36vmax at 12% 8%,#0369a1cc,transparent 70%),radial-gradient(38vmax 34vmax at 88% 12%,#0b86c977,transparent 70%),radial-gradient(44vmax 38vmax at 55% 98%,#4cc0f055,transparent 70%)}
html[data-theme="light"] body::before{background:radial-gradient(40vmax 36vmax at 12% 8%,#8cc8ecc4,transparent 70%),radial-gradient(38vmax 34vmax at 88% 12%,#b8def5aa,transparent 70%),radial-gradient(44vmax 38vmax at 55% 98%,#c9e8f8c0,transparent 70%)}
@keyframes vt-deriva{to{transform:translate3d(6vmax,4vmax,0) scale(1.08)}}

/* ---------- testata e menu ---------- */
html body .testata{background:var(--vt-gloss)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);border-bottom:1px solid var(--vt-line)!important;box-shadow:0 12px 30px -18px #0007!important}
html body .menu-voci,html body .campanella-pannello,html body .menu-laterale,html body .menu-risultati{background:var(--vt-gloss-h)!important;backdrop-filter:blur(34px) saturate(180%);-webkit-backdrop-filter:blur(34px) saturate(180%);border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra),0 30px 60px -20px #000a!important}
html[data-theme="light"] body .menu-voci,html[data-theme="light"] body .campanella-pannello,html[data-theme="light"] body .menu-laterale,html[data-theme="light"] body .menu-risultati{background:#ffffffe6!important}
html body .menu-home.active,html body .menu-voci a.active{background:linear-gradient(135deg,#4cc0f0,#0369a1)!important;color:#fff!important;box-shadow:0 8px 20px -8px #0369a1cc,inset 0 1px 0 #ffffff80}
@media (hover:hover){html body .menu-home:hover,html body .menu-barra summary:hover,html body .menu-barra details[open] summary{background:var(--vt-gloss-h)!important;box-shadow:inset 0 0 0 1px var(--vt-line)}}

/* ---------- pannelli di vetro semilucido ---------- */
html body .scheda,html body .kpi,html body .oggi-voce,html body .tessera,html body .az-grande,html body .da-fare-voce,html body .tabella-scroll,html body .timer-card,html body .azione,html body .passo-card,html body .passo-riga,
html body .notizia,html body .flusso,html body .gruppo-home .scheda,html body .editor,html body .campanella summary{
 background:radial-gradient(260px circle at var(--mx,-300px) var(--my,-300px),#ffffff26,transparent 70%),var(--vt-gloss)!important;
 backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra)!important;border-radius:22px}
html[data-theme="light"] body .scheda,html[data-theme="light"] body .kpi,html[data-theme="light"] body .oggi-voce,html[data-theme="light"] body .tessera,html[data-theme="light"] body .az-grande,html[data-theme="light"] body .tabella-scroll,html[data-theme="light"] body .notizia{
 background:radial-gradient(260px circle at var(--mx,-300px) var(--my,-300px),#fff,transparent 70%),var(--vt-gloss)!important}
html body .oggi-voce.critico{background-color:#fb718516!important}html body .oggi-voce.avviso{background-color:#fbbf2412!important}
html body .tessera-icona{background:linear-gradient(135deg,#4cc0f0,#0369a1)!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff80,0 8px 16px -6px #0369a1aa}
html body .tessera-icona.avviso{background:linear-gradient(135deg,#ffd27a,#ff9f43)!important;color:#4a2b00!important}
html body .tessera-badge,html body .chip-badge{box-shadow:0 0 0 2px #0a1a2866}
html body .kpi-grid{gap:16px}

/* bordo luminoso che si accende dove passa il mouse */
html body .oggi-voce::after,html body .tessera::after,html body .az-grande::after,html body .scheda::after,html body .kpi::after,html body .notizia::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;opacity:0;transition:opacity 220ms;
 background:radial-gradient(200px circle at var(--mx,-300px) var(--my,-300px),#ffffffcc,transparent 65%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
html[data-theme="light"] body .oggi-voce::after,html[data-theme="light"] body .tessera::after,html[data-theme="light"] body .az-grande::after,html[data-theme="light"] body .scheda::after,html[data-theme="light"] body .kpi::after,html[data-theme="light"] body .notizia::after{background:radial-gradient(200px circle at var(--mx,-300px) var(--my,-300px),#4a8fc4,transparent 65%)}
@media (hover:hover) and (pointer:fine){
 html body .oggi-voce:hover::after,html body .tessera:hover::after,html body .az-grande:hover::after,html body .scheda:hover::after,html body .kpi:hover::after,html body .notizia:hover::after{opacity:1}
 html body .oggi-voce:hover,html body .tessera:hover,html body .az-grande:hover{transform:translateY(-3px)}
}
html body .oggi-voce,html body .tessera,html body .az-grande{transition:transform 180ms var(--ease-out),box-shadow 200ms}
html body .oggi-voce:active,html body .tessera:active,html body .az-grande:active{transform:scale(.985)}

/* ---------- tabelle ---------- */
html body table{background:transparent!important;border:0!important;box-shadow:none!important}
html body th{background:transparent!important;border-bottom:1px solid var(--vt-line)!important;font-weight:500}
html body td{background:transparent!important;border-color:var(--vt-riga)!important}
html body tr:last-child td{border-bottom:0!important}
@media (hover:hover){html body tbody tr:hover td{background:var(--vt-riga)!important}}
html body .tabella-scroll{padding:4px 8px 8px;overflow:auto}

/* ---------- pulsanti e campi ---------- */
html body button:not(.menu-tasto):not(.testata-nascondi):not(.testata-mostra):not(.scheda-tab):not(.chiudi):not(.primario),html body a.az-chip,html body a.azione-link{
 background:var(--vt-gloss)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra)!important;border-radius:999px;
 transition:transform 160ms var(--ease-out),background 160ms,box-shadow 200ms}
html body td button{box-shadow:none!important}
html body button:active,html body a.az-chip:active{transform:scale(.97)}
html body .primario,html body a.primario,html body button.primario{border-radius:999px;background:linear-gradient(180deg,#6ccdf5,#0369a1)!important;color:#fff!important;border-color:#ffffff70!important;font-weight:600;
 box-shadow:0 1px 0 #ffffffaa inset,0 -10px 16px #0000001c inset,0 14px 28px -10px #0369a1cc!important}
@media (hover:hover) and (pointer:fine){
 html body button:not(.primario):hover,html body a.az-chip:hover{background:var(--vt-gloss-h)!important}
 html body .primario:hover,html body a.primario:hover{background:linear-gradient(180deg,#8ad8f7,#0b86c9)!important}
}
html body input,html body select,html body textarea{background:var(--vt-gloss)!important;border:1px solid var(--vt-line)!important;border-radius:14px;backdrop-filter:blur(8px)}
html[data-theme="light"] body input,html[data-theme="light"] body select,html[data-theme="light"] body textarea{background:#ffffffb8!important;border-color:#c6d6e4!important}
html body input:focus,html body select:focus,html body textarea:focus{box-shadow:0 0 0 3px #4cc0f066!important;outline:0}

/* ---------- finestre e pannelli di modifica ---------- */
html body .modale-sfondo{background:#02070d70!important;backdrop-filter:blur(6px)}
html body .modale,html body .scheda.modale,html body .pannello-lat{background:var(--vt-gloss-h)!important;backdrop-filter:blur(40px) saturate(190%);border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra),0 40px 90px -20px #000a!important;border-radius:26px}
html[data-theme="light"] body .modale,html[data-theme="light"] body .scheda.modale{background:#ffffffeb!important}
html body .modale-testa{background:linear-gradient(135deg,#0b86c9,#0369a1)!important}

/* ---------- stati e anelli ---------- */
html body .stato,html body .etichetta{backdrop-filter:blur(6px);font-weight:600}
html body .anello,html body .avanz-passi{filter:drop-shadow(0 0 6px #4cc0f055)}

@media (prefers-reduced-motion:reduce){body::before{animation:none}html body .oggi-voce,html body .tessera,html body .az-grande,html body button{transition:none!important}}
@media (prefers-reduced-transparency:reduce){html body *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html body .scheda,html body .tabella-scroll,html body .oggi-voce{background:var(--vt-gloss-h)!important}}

/* finestre: più opache del resto, perché contengono campi da leggere */
html[data-theme="dark"] body .modale,html[data-theme="dark"] body .scheda.modale,html[data-theme="dark"] body .pannello-lat{background:linear-gradient(180deg,#18293cf0,#101e2ef2)!important}
html body .modale input,html body .modale select,html body .modale textarea,html body .scheda.modale input,html body .scheda.modale select,html body .scheda.modale textarea{background:#ffffff14!important}
html[data-theme="light"] body .modale input,html[data-theme="light"] body .modale select,html[data-theme="light"] body .scheda.modale input,html[data-theme="light"] body .scheda.modale select{background:#fff!important}

/* ===== anelli di avanzamento (lead, stato degli ordini) ===== */
@property --p{syntax:"<number>";inherits:true;initial-value:0}
:root{--vt-inner:#0e1b29;--vt-traccia:#ffffff26}
html[data-theme="light"]{--vt-inner:#f6fafd;--vt-traccia:#0c1f3322}
.anello{--c:var(--vt-acc);position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;flex-shrink:0;vertical-align:middle;
 background:conic-gradient(var(--c) calc(var(--p)*1%),var(--vt-traccia) 0);transition:--p 900ms var(--ease-out);filter:drop-shadow(0 0 6px color-mix(in srgb,var(--c) 45%,transparent))}
.anello::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--vt-inner)}
.anello b{position:relative;font-size:12px;font-weight:600;color:inherit;line-height:1}
.anello.piccolo{width:36px;height:36px}.anello.piccolo::before{inset:4px}.anello.piccolo b{font-size:10.5px}
.anello.grande{width:60px;height:60px}.anello.grande::before{inset:6px}.anello.grande b{font-size:15px}
.anello.ok{--c:#22c55e}.anello.avviso{--c:#f59e0b}.anello.critico{--c:#ef4444}
html body .avanz{flex-direction:row;align-items:center;gap:8px;min-width:0}
html body .avanz-passi{display:none}
html body .elenco-riga .anello{margin-right:2px}
@media (prefers-reduced-motion:reduce){.anello{transition:none}}

/* ===== dettaglio a pannello laterale (lead): al posto della finestra al centro, la lista resta visibile e utilizzabile ===== */
html body .scheda.editor.modale.pannello-lat{inset:0 0 0 auto!important;left:auto!important;right:0!important;top:0!important;bottom:0!important;height:auto!important;
 width:min(500px,100vw)!important;max-width:min(500px,100vw)!important;border-radius:28px 0 0 28px!important;padding-top:20px;
 box-shadow:var(--vt-ombra),-40px 0 70px -30px #000b!important;animation:vt-pannello 240ms var(--ease-out)}
@keyframes vt-pannello{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
html body .pannello-lat .testa-scheda{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:6px;padding-right:0}
html body .pannello-lat .testa-scheda h2{margin:0;padding-right:0}
html body .pannello-lat .barra-schede{flex-basis:100%;display:flex;gap:6px;flex-wrap:wrap}
html body .scheda.editor.modale.pannello-lat>h2:first-child{padding-right:0}
@media(max-width:760px){html body .scheda.editor.modale.pannello-lat{border-radius:0!important;width:100vw!important;max-width:100vw!important}}
@media(prefers-reduced-motion:reduce){html body .scheda.editor.modale.pannello-lat{animation:none}}

/* ===== stati attivi e pulsanti colorati: il vetro generico non deve cancellarli (trovato nel giro delle pagine) ===== */
html body button.attivo:not(#z),html body a.attivo-link:not(#z),html body a.azione-link.attivo-link:not(#z),html body .attivo.azione-link:not(#z){
 background:linear-gradient(180deg,#6ccdf5,#0369a1)!important;color:#fff!important;border-color:#ffffff70!important;font-weight:600;box-shadow:0 1px 0 #ffffffaa inset,0 10px 20px -10px #0369a1cc!important}
html body button.mag-btn.verde:not(#z){background:linear-gradient(180deg,#34d399,#0f9f6e)!important;color:#fff!important;border-color:#ffffff66!important}
html[data-theme="dark"] body .avanz.avviso .avanz-fase{color:#fca5a5}html[data-theme="dark"] body .avanz.ok .avanz-fase{color:#86efac}

/* ===== notifiche (popup in basso a destra): vetro, icona a riquadro sfumato, barra del tempo sottile ===== */
html body .ntf-box{gap:12px;right:22px;bottom:22px}
html body .ntf{padding:13px 12px 15px 13px;gap:13px;align-items:center;border:1px solid var(--vt-line)!important;border-left:1px solid var(--vt-line)!important;border-radius:20px;
 background:background:linear-gradient(180deg,#1d3046f4,#132232f6)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);
 box-shadow:var(--vt-ombra),0 24px 48px -16px #000c!important;animation:vt-ntf-entra 300ms var(--ease-out)}
html[data-theme="light"] body .ntf{background:linear-gradient(180deg,#fffffff4,#f3f8fcf2)!important;box-shadow:var(--vt-ombra),0 20px 40px -16px #2a5a8250!important}
@keyframes vt-ntf-entra{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes vt-ntf-esce{to{opacity:0;transform:translateY(8px) scale(.97)}}
html body .ntf.uscita{animation:vt-ntf-esce 180ms ease-in forwards}
html body .ntf-icona{width:34px;height:34px;border-radius:11px;font-size:16px;font-weight:700;color:#fff!important;background:linear-gradient(135deg,#4cc0f0,#0369a1)!important;box-shadow:inset 0 1px 0 #ffffff80,0 6px 14px -5px #0369a1aa}
html body .ntf-successo .ntf-icona{background:linear-gradient(135deg,#34d399,#0f9f6e)!important;box-shadow:inset 0 1px 0 #ffffff80,0 6px 14px -5px #0f9f6eaa}
html body .ntf-errore .ntf-icona{background:linear-gradient(135deg,#fb7185,#c8283f)!important;box-shadow:inset 0 1px 0 #ffffff80,0 6px 14px -5px #c8283faa}
html body .ntf-testo{font-size:14.5px;line-height:1.4;color:#e6f0f8!important}
html[data-theme="light"] body .ntf-testo{color:#0c1f33!important}
html body .ntf-chiudi{width:28px;height:28px;border-radius:50%;padding:0;display:inline-grid;place-items:center;color:#9fb6c9!important;background:#ffffff12!important;font-size:18px;transition:background 150ms,transform 160ms var(--ease-out)}
html body .ntf-chiudi:active{transform:scale(.92)}
@media (hover:hover){html body .ntf-chiudi:hover{background:#ffffff26!important;color:#fff!important}}
html[data-theme="light"] body .ntf-chiudi{background:#0c1f3312!important;color:#44607b!important}
html body .ntf-barra{left:16px;right:16px;bottom:6px;width:auto;height:3px;border-radius:2px;background:linear-gradient(90deg,#4cc0f0,#0369a1)!important;opacity:.7}
html body .ntf-successo .ntf-barra{background:linear-gradient(90deg,#34d399,#0f9f6e)!important}
html body .ntf-errore .ntf-barra{background:linear-gradient(90deg,#fb7185,#c8283f)!important}
@media (prefers-reduced-motion:reduce){html body .ntf,html body .ntf.uscita{animation-duration:.01s}}

/* ===== schermata di accesso e messaggi in pagina ===== */
html body .accesso{background:var(--vt-gloss)!important;backdrop-filter:blur(30px) saturate(180%);-webkit-backdrop-filter:blur(30px) saturate(180%);border:1px solid var(--vt-line)!important;border-radius:30px;
 box-shadow:var(--vt-ombra),0 40px 80px -30px #000b!important}
html[data-theme="light"] body .accesso{background:linear-gradient(180deg,#fffffff2,#f3f8fcee)!important}
html body .messaggio{border-radius:16px;border:1px solid #fb718555!important;background:#fb718516!important}

/* ===== v2 sobria (dopo la revisione con frontend-design): meno decorazione, una sola cosa memorabile (la barra a lente) ===== */
/* sfondo fermo e calmo: nessun movimento che non dipenda da un gesto */
body::before{animation:none!important;
 background:radial-gradient(62vmax 46vmax at 6% -6%,#0369a166,transparent 72%),radial-gradient(52vmax 40vmax at 100% 100%,#0b86c92e,transparent 72%)}
html[data-theme="light"] body::before{background:radial-gradient(62vmax 46vmax at 6% -6%,#9fd0ee99,transparent 72%),radial-gradient(52vmax 40vmax at 100% 100%,#cfe6f6aa,transparent 72%)}

/* gerarchia delle superfici: luce, bordo e sollevamento solo su cio che si clicca */
html body .scheda,html body .kpi,html body .notizia,html body .editor{background:var(--vt-gloss)!important}
html body .scheda::after,html body .kpi::after,html body .notizia::after{display:none}
@media (hover:hover) and (pointer:fine){html body .oggi-voce:hover,html body .tessera:hover,html body .az-grande:hover{transform:none}}

/* scala tipografica unica: titolo 30, sezione 18, testo 15, dettagli 13; niente maiuscolo per le etichette */
html body h1{font-size:30px;font-weight:600;letter-spacing:-.6px;line-height:1.15}
html body h2{font-size:18px;font-weight:600;letter-spacing:-.2px}
html body h3{font-size:16px;font-weight:600}
html body .gruppo-home h2,html body .lavoro-area h2,html body .eyebrow,html body .menu-titolo,html body .menu-laterale .menu-voci .menu-gruppo>summary.menu-titolo{text-transform:none!important;letter-spacing:0!important}
html body .eyebrow{font-size:14px;font-weight:500}
html body .gruppo-home h2,html body .lavoro-area h2{margin:26px 0 12px}
html body .menu-laterale .menu-voci .menu-gruppo>summary.menu-titolo{font-size:12.5px;font-weight:500}

/* pulsanti e icone a tinta piena: meno gradienti */
html body .primario,html body a.primario,html body button.primario,html body button.attivo:not(#z),html body a.attivo-link:not(#z),html body a.azione-link.attivo-link:not(#z){
 background:#0369a1!important;background-image:linear-gradient(180deg,#ffffff24,#ffffff00)!important;color:#fff!important;border-color:#ffffff38!important;
 box-shadow:0 1px 0 #ffffff40 inset,0 8px 16px -10px #0369a1!important}
@media (hover:hover) and (pointer:fine){html body .primario:hover,html body a.primario:hover{background:#0b78b8!important;background-image:linear-gradient(180deg,#ffffff24,#ffffff00)!important}}
html body .tessera-icona{background:#0369a11f!important;color:var(--vt-acc)!important;box-shadow:none!important}
html[data-theme="dark"] body .tessera-icona{background:#4cc0f024!important}
html body .tessera-icona.avviso{background:#f59e0b24!important;color:#d98a06!important}
html body .ntf-icona{background:#0369a1!important;box-shadow:none!important}
html body .ntf-successo .ntf-icona{background:#0f9f6e!important}html body .ntf-errore .ntf-icona{background:#c8283f!important}
html body .ntf-barra{background:#0369a1!important}html body .ntf-successo .ntf-barra{background:#0f9f6e!important}html body .ntf-errore .ntf-barra{background:#c8283f!important}
html body .anello,html body .avanz-passi{filter:none}
html body .stato,html body .etichetta{backdrop-filter:none}
html body .mag-filtri label,html body .mag-ordina,html body .dlg-campo,html body .ps-modale label,html body .ps-liste h4,html body .prev-riepilogo .titolo-voci td,html body .chiamata-titolo{text-transform:none!important;letter-spacing:0!important;font-size:13px;font-weight:500}
html body .gruppo-home h2,html body .lavoro-area h2{color:#0c1f33}
html[data-theme="dark"] body .gruppo-home h2,html[data-theme="dark"] body .lavoro-area h2{color:#eaf3fb}
/* la data della home arriva gia in maiuscolo dal programma: si riporta a «Martedi 24 novembre» solo con il CSS */
html body .benvenuto .eyebrow{text-transform:lowercase!important}
html body .benvenuto .eyebrow::first-letter{text-transform:uppercase}
html body th{text-transform:none!important;letter-spacing:0!important;font-size:13px;font-weight:600}

/* ===== correzioni dopo la prova di Marco (2026-11-24) ===== */
/* intestazioni di tabella: piene (sono fisse in alto, altrimenti le righe passano sotto e si leggono attraverso) */
:root{--vt-th:#182a3d;--vt-pop:#152538}
html[data-theme="light"]{--vt-th:#e7f0f7;--vt-pop:#fbfdff}
html body thead th,html body .tabella-scroll thead th,html body .ts-elenco thead th{background:var(--vt-th)!important;backdrop-filter:none!important;z-index:3}
/* la fascia dietro Indietro e i pulsanti tondi (barra della pagina) non deve avere sfondo */
html body .barra-pagina,html body #barra-pagina{background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important}
/* tendine e pannelli che si aprono sopra il contenuto: opachi, cosi non si legge cio che sta sotto */
html body .menu-voci,html body .campanella-pannello,html body .menu-risultati,html body .presenza-pannello{background:var(--vt-pop)!important;background-image:none!important}

/* ===== hover uniforme: lo stesso sfondo e la stessa forma del pulsante (prima la regola generica copriva l hover) ===== */
html body .testata-nascondi,html body .testata-mostra{background:var(--vt-gloss)!important;backdrop-filter:var(--vt-blur);border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra)!important;border-radius:50%}
@media (hover:hover) and (pointer:fine){
 html body button:not(.menu-tasto):not(.scheda-tab):not(.chiudi):not(.primario):not(.ntf-chiudi):not(#z):hover,
 html body a.az-chip:not(#z):hover,html body a.azione-link:not(.attivo-link):not(#z):hover,html body .campanella summary:not(#z):hover{
  background:var(--vt-gloss-h)!important;box-shadow:var(--vt-ombra),0 0 0 3px #4cc0f038!important}
 html[data-theme="light"] body button:not(.menu-tasto):not(.scheda-tab):not(.chiudi):not(.primario):not(.ntf-chiudi):not(#z):hover,
 html[data-theme="light"] body a.az-chip:not(#z):hover,html[data-theme="light"] body a.azione-link:not(.attivo-link):not(#z):hover,html[data-theme="light"] body .campanella summary:not(#z):hover{
  box-shadow:var(--vt-ombra),0 0 0 3px #0369a122!important}
 html body button.primario:not(#z):hover,html body a.primario:not(#z):hover{background:#0b78b8!important;background-image:linear-gradient(180deg,#ffffff24,#ffffff00)!important}
 html body tbody tr:hover td{background:var(--vt-riga)!important}
}
/* testi molto tenui nel tema chiaro (giorni del calendario, voci spente, conteggi, note): almeno 4,5:1 */
html[data-theme="light"] body .cal-num,html[data-theme="light"] body .spento,html[data-theme="light"] body i.sett,html[data-theme="light"] body .notizie-nota,html[data-theme="light"] body .procedure-conta,html[data-theme="light"] body a small,html[data-theme="light"] body li>small{color:#566f84!important}
/* pannelli a tendina davvero opachi: superano anche le regole piu specifiche del tema chiaro */
html body .menu-barra .menu-voci:not(#z),html body .campanella-pannello:not(#z),html body .menu-risultati:not(#z),html body .presenza-pannello:not(#z),html[data-theme] body .campanella-pannello:not(#z){background:var(--vt-pop)!important;background-image:none!important}

/* ===== tabelle coerenti con il resto: intestazione e riga evidenziata arrotondate (prima erano rettangoli spigolosi) ===== */
html body table{border-collapse:separate!important;border-spacing:0!important}
html body .tabella-scroll{padding:0 8px 8px!important}
html body thead th:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
html body thead th:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}
@media (hover:hover) and (pointer:fine){
 html body tbody tr:hover td:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}
 html body tbody tr:hover td:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}
}

/* ===== tabelle: intestazione e riga dei totali come parti dello stesso riquadro (a tutta larghezza, angoli del contenitore) ===== */
html body .tabella-scroll{padding:0 8px 0!important}
html body thead th:first-child,html body thead th:last-child{border-radius:0}
html body thead th{border-bottom:1px solid var(--vt-line)!important}
html body thead th:first-child{box-shadow:-8px 0 0 0 var(--vt-th)}
html body thead th:last-child{box-shadow:8px 0 0 0 var(--vt-th)}
html body .tabella-scroll::after{margin:0 -8px;padding:9px 22px;border:0;border-top:1px solid var(--vt-line);border-radius:0;background:var(--vt-th);color:#41586b;font-size:13px;font-weight:500}
html[data-theme="dark"] body .tabella-scroll::after{color:#b3c5d4}
/* barre di scorrimento sottili e senza frecce di sistema */
html body *{scrollbar-width:thin;scrollbar-color:#9db3c6 transparent}
html[data-theme="dark"] body *{scrollbar-color:#46607a transparent}

/* ===== barre di scorrimento: stile proprio, senza frecce di sistema (le proprieta standard scrollbar-color/width le disattiverebbero) ===== */
html body *,html[data-theme="dark"] body *{scrollbar-width:auto!important;scrollbar-color:auto!important}
html body *::-webkit-scrollbar{width:10px;height:10px}
html body *::-webkit-scrollbar-track{background:transparent}
html body *::-webkit-scrollbar-corner{background:transparent}
html body *::-webkit-scrollbar-button{display:none;width:0;height:0}
html body *::-webkit-scrollbar-thumb{background:#9db3c6;border-radius:8px;border:2px solid transparent;background-clip:padding-box;min-height:36px;min-width:36px}
html body *::-webkit-scrollbar-thumb:hover{background:#7d97ad;background-clip:padding-box}
html[data-theme="dark"] body *::-webkit-scrollbar-thumb{background:#46607a;background-clip:padding-box}
html[data-theme="dark"] body *::-webkit-scrollbar-thumb:hover{background:#5f7d99;background-clip:padding-box}

/* ===== riga dei totali: stesso colore dell intestazione, a tutta larghezza, senza il grigio del vecchio tema scuro ===== */
html body .tabella-scroll:not(#z)::after{background:var(--vt-th)!important;border-top:1px solid var(--vt-line)!important;border-radius:0!important;margin:0 -8px!important;color:#41586b}
html[data-theme="dark"] body .tabella-scroll:not(#z)::after{color:#b3c5d4}
/* intestazione: un cenno al passaggio del mouse (colonne ordinabili), stessa forma */
@media (hover:hover) and (pointer:fine){html body thead th:not(#z):hover{background:var(--vt-th-h)!important}}
:root{--vt-th-h:#203449}html[data-theme="light"]{--vt-th-h:#dbe8f2}

/* ===== fasce di intestazione e fondo: lunghe quanto tutto il riquadro (anche sotto la barra di scorrimento e fino al bordo sinistro) =====
   Sono due strati di sfondo del riquadro, alti quanto l intestazione (misurata da vetro.js in --vt-hh) e quanto la riga dei totali (--vt-fh). */
html body .tabella-scroll:not(#z){
 background:linear-gradient(var(--vt-th),var(--vt-th)) top left/100% var(--vt-hh,0px) no-repeat,
            linear-gradient(var(--vt-th),var(--vt-th)) bottom left/100% var(--vt-fh,37px) no-repeat,
            var(--vt-gloss)!important}

/* ===== correzione: le schede generiche NON devono essere position:relative (rompeva le finestre fisse come l editor di fatture e ordini, .ts-editor) ===== */
html body .oggi-voce,html body .tessera,html body .az-grande,html body .da-fare-voce{position:relative}
/* finestre di modifica (fatture, ordini, articoli...): fisse e centrate come prima, in vetro opaco, con la pagina oscurata dietro */
html body .scheda.ts-editor:not(#z){border-radius:26px;background:var(--vt-pop)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 box-shadow:var(--vt-ombra),0 0 0 100vmax #02070d66,0 40px 90px -20px #000a!important}
html[data-theme="light"] body .scheda.ts-editor:not(#z){box-shadow:var(--vt-ombra),0 0 0 100vmax #1a2b3d55,0 40px 90px -24px #1d4a7060!important}
html body .scheda.editor.modale:not(.pannello-lat):not(#z){box-shadow:var(--vt-ombra),0 0 0 100vmax #02070d66,0 40px 90px -20px #000a!important}
html[data-theme="light"] body .scheda.editor.modale:not(.pannello-lat):not(#z){box-shadow:var(--vt-ombra),0 0 0 100vmax #1a2b3d55,0 40px 90px -24px #1d4a7060!important}

/* ===== finestre di modifica: UN solo sfondo pieno per finestra, testata e barra dei pulsanti (con gradienti separati le sfumature non coincidevano) ===== */
html body .scheda.editor.modale:not(#z),html body .ts-editor:not(#z),html body .modale:not(#z){background:var(--vt-pop)!important;background-image:none!important}
html body .modale .testa-scheda:not(#z),html body .ts-editor .testa-scheda:not(#z),html body .modale .azioni-scheda:not(#z),html body .ts-editor .azioni-scheda:not(#z){background:var(--vt-pop)!important;background-image:none!important}
html body .modale .azioni-scheda:not(#z),html body .ts-editor .azioni-scheda:not(#z){border-top:1px solid var(--vt-line)!important}
/* schede (Anagrafica, Contatti...) nelle finestre: pillole di vetro come gli altri pulsanti; quella attiva e piena */
html body .scheda-tab:not(.attivo):not(#z){background:var(--vt-gloss)!important;border:1px solid var(--vt-line)!important;border-radius:999px!important;box-shadow:var(--vt-ombra)!important}
html[data-theme="light"] body .scheda-tab:not(.attivo):not(#z){color:#0369a1!important}
html body .scheda-tab.attivo:not(#z){border-radius:999px!important}
@media (hover:hover) and (pointer:fine){html body .scheda-tab:not(.attivo):not(#z):hover{background:var(--vt-gloss-h)!important;box-shadow:var(--vt-ombra),0 0 0 3px #4cc0f038!important}}

/* ===== barre di scorrimento: il cursore non deve toccare gli angoli arrotondati ne sporgere (corsa rientrata) ===== */
html body .tabella-scroll::-webkit-scrollbar-track{margin:44px 0 46px}
html body .tabella-scroll::-webkit-scrollbar-track:horizontal{margin:0 26px}
html body .ts-editor::-webkit-scrollbar-track,html body .scheda.editor.modale::-webkit-scrollbar-track,html body .modale::-webkit-scrollbar-track{margin:30px 0}
html body .scheda.editor.modale.pannello-lat::-webkit-scrollbar-track{margin:34px 0 34px}

/* ===== i quattro pulsanti tondi della testata (presenza, posta, ticket, notifiche): UNA sola regola, stesso aspetto ===== */
html body .campanella summary:not(#z),html body a.posta-link:not(#z){width:38px;height:38px;min-height:0;padding:0;border-radius:50%;
 background:var(--vt-gloss)!important;border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);
 color:#76cbf9;transition:background 160ms,box-shadow 200ms,transform 160ms var(--ease-out)}
html[data-theme="light"] body .campanella summary:not(#z),html[data-theme="light"] body a.posta-link:not(#z){color:#0369a1}
html body .campanella summary:not(#z):active,html body a.posta-link:not(#z):active{transform:scale(.95)}
@media (hover:hover) and (pointer:fine){
 html body .campanella summary:not(#z):hover,html body .campanella[open] summary:not(#z),html body a.posta-link:not(#z):hover{background:var(--vt-gloss-h)!important;box-shadow:var(--vt-ombra),0 0 0 3px #4cc0f038!important}
 html[data-theme="light"] body .campanella summary:not(#z):hover,html[data-theme="light"] body a.posta-link:not(#z):hover{box-shadow:var(--vt-ombra),0 0 0 3px #0369a122!important}
}

/* ===== tasto "Come si usa questa pagina" (?): e un link, non un pulsante: stesso aspetto tondo degli altri della barra della pagina ===== */
html body .barra-pagina #btn-guida:not(#z){background:var(--vt-gloss)!important;border:1px solid var(--vt-line)!important;box-shadow:var(--vt-ombra)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);
 color:#76cbf9;border-radius:50%;font-weight:600;transition:background 160ms,box-shadow 200ms,transform 160ms var(--ease-out)}
html[data-theme="light"] body .barra-pagina #btn-guida:not(#z){color:#0369a1}
html body .barra-pagina #btn-guida:not(#z):active{transform:scale(.95)}
@media (hover:hover) and (pointer:fine){
 html body .barra-pagina #btn-guida:not(#z):hover{background:var(--vt-gloss-h)!important;box-shadow:var(--vt-ombra),0 0 0 3px #4cc0f038!important}
 html[data-theme="light"] body .barra-pagina #btn-guida:not(#z):hover{box-shadow:var(--vt-ombra),0 0 0 3px #0369a122!important}
}

/* ===== grafici: scheda di vetro, barre con gradiente nei colori del logo, valori e assi discreti ===== */
html body a.grafico:not(#z){background:var(--vt-gloss)!important;backdrop-filter:var(--vt-blur);-webkit-backdrop-filter:var(--vt-blur);border:1px solid var(--vt-line)!important;border-radius:22px;
 box-shadow:var(--vt-ombra)!important;padding:16px 18px 14px;gap:8px;transition:background 160ms,box-shadow 200ms}
@media (hover:hover) and (pointer:fine){html body a.grafico:not(#z):hover{background:var(--vt-gloss-h)!important;box-shadow:var(--vt-ombra),0 0 0 3px #4cc0f02a!important}}
html body .grafico-testa h3{font-size:16px;font-weight:600;letter-spacing:-.2px}
html body .grafico-testa small{font-size:13px;line-height:1.4}
html body a.grafico svg rect{rx:6px;ry:6px;transition:filter 150ms,opacity 150ms}
html body a.grafico svg rect.gb-s0{fill:url(#vt-gb0)}
html body a.grafico svg rect.gb-s1{fill:url(#vt-gb1)}
html body a.grafico svg rect.gb-scaduto{fill:url(#vt-gbr)}
html body .gb-chip{width:11px;height:11px;border-radius:4px}
html body .gb-chip.gb-s0{background:linear-gradient(180deg,#4cc0f0,#0369a1)}
html body .gb-chip.gb-s1{background:linear-gradient(180deg,#fcd34d,#f59e0b)}
@media (hover:hover) and (pointer:fine){html body a.grafico svg rect:hover{filter:brightness(1.18)}}
html body .gb-base{stroke:#ffffff26;stroke-dasharray:2 4;stroke-linecap:round}
html[data-theme="light"] body .gb-base{stroke:#0c1f3330}
html body .gb-val{font-size:10.5px;font-weight:600;fill:#c9d6df}
html body .gb-et{font-size:10.5px;fill:#8fa5b8}
html[data-theme="light"] body .gb-val{fill:#33506a}
html[data-theme="light"] body .gb-et{fill:#5d7890}
