/* TEMA SCURO (opzione A, blu notte). File GENERATO da scripts/genera-tema-scuro.mjs: non modificarlo a mano, rilancia lo script. Le regole a mano stanno in fondo. */
html.scuro{--bg:#0E1524;--ink:#EAEFF9;--muted:#9FAAC4;--line:#26324F;--card:#172036;--superficie:#0A101C;--band:#1B2740;
  --amber:#F4B63F;--amber-l:#3A2F12;--green:#3DBE8B;--green-l:#143B2E;--blue:#6EA2F5;--blue-l:#17294A;--red:#F07A68;--red-l:#3B1D1A;color-scheme:dark}
html.scuro body{background:var(--bg);color:var(--ink)}
html.scuro body{background:var(--bg);color:var(--ink)}
html.scuro a{color:inherit}
html.scuro button{color:inherit}
html.scuro input,html.scuro select,html.scuro textarea{color:var(--ink)}
html.scuro .rail{background:var(--superficie)}
html.scuro .nav{color:#C9CFDD}
html.scuro .nav.on{background:var(--amber);color:var(--ink)}
html.scuro .sub{color:var(--muted)}
html.scuro .card{background:var(--card);border:1px solid var(--line)}
html.scuro .dark{background:var(--superficie);color:#fff}
html.scuro .muted{color:var(--muted)}
html.scuro .label{color:var(--muted)}
html.scuro .btn{border:2px solid var(--ink);background:transparent}
html.scuro .btn.primary{background:var(--green);border-color:var(--green);color:#fff}
html.scuro .btn.amber{background:var(--amber)}
html.scuro .btn.ghost{border-color:var(--line);background:#172036}
html.scuro .search{background:#172036;border:2px solid var(--line)}
html.scuro .search input{border:0;outline:0;background:transparent}
html.scuro .search svg{color:var(--muted)}
html.scuro .tile{background:var(--bg)}
html.scuro .tile.amber{background:var(--amber-l)}
html.scuro .tile.green{background:var(--green-l)}
html.scuro .chip{background:#172036;border:2px solid var(--line)}
html.scuro .chip.on{background:var(--amber);border-color:var(--ink)}
html.scuro .kpi{background:#172036;border:1px solid var(--line)}
html.scuro .kpi .v small{color:var(--muted)}
html.scuro .tilelink{background:#172036;border:1px solid var(--line)}
html.scuro .tilelink span{color:var(--muted)}
html.scuro .tilelink.hot{background:var(--amber);border-color:var(--ink)}
html.scuro .pill.red{background:var(--red-l);color:var(--red)}
html.scuro .pill.green{background:var(--green-l);color:var(--green)}
html.scuro .pill.amber{background:var(--amber-l)}
html.scuro .item{background:#172036;border:1px solid var(--line)}
html.scuro .item:hover{border-color:var(--ink)}
html.scuro .item .meta div{color:var(--muted)}
html.scuro .band{background:var(--band)}
html.scuro .band.on{background:var(--green-l);border-top:3px solid var(--green);border-bottom:3px solid var(--green)}
html.scuro .band .t{color:var(--muted)}
html.scuro .band.on .t{color:var(--green)}
html.scuro .tol{background:var(--amber)}
html.scuro .mark{background:var(--ink)}
html.scuro .legend{color:var(--muted)}
html.scuro .legend i{background:var(--amber)}
html.scuro .legend i.k{background:var(--ink)}
html.scuro .note.green{background:var(--green-l);color:var(--green)}
html.scuro .note.amber{background:var(--amber-l)}
html.scuro .note.red{background:var(--red-l);color:var(--red)}
html.scuro .pay{background:#172036;border:2px solid var(--line)}
html.scuro .pay.on{background:var(--amber);border-color:var(--ink)}
html.scuro .pay.dashed{border-color:var(--ink)}
html.scuro .setrow{background:#172036;border:1px solid var(--line)}
html.scuro .sumrow{border-bottom:1px solid var(--line)}
html.scuro .sumrow:last-child{border-bottom:0}
html.scuro .sumrow small{color:var(--muted)}
html.scuro .sumrow.tot{border-top:2px solid var(--ink);border-bottom:0}
html.scuro .diff.ok{color:var(--green)}
html.scuro .diff.bad{color:var(--red)}
html.scuro .field label{color:var(--muted)}
html.scuro .input{border:2px solid var(--line);background:#172036}
html.scuro .input:focus{border-color:var(--ink);outline:0}
html.scuro .tab{background:transparent;border:2px solid transparent;color:var(--muted)}
html.scuro .tab.on{background:var(--ink);color:#0E1524}
html.scuro table.t th{color:var(--muted)}
html.scuro .overlay{background:rgba(23,32,51,.55)}
html.scuro .modal{background:#172036}
html.scuro .toast{background:var(--superficie);color:#fff}
html.scuro .toast.err{background:var(--red)}
html.scuro .empty{color:var(--muted)}
html.scuro .cat{background:#172036;border:2px solid var(--line);color:var(--ink)}
html.scuro .cat.on{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .prenriga{background:transparent;border:0;border-bottom:1px solid var(--line);color:inherit}
html.scuro .prenriga:last-child{border-bottom:0}
html.scuro .prenriga:active,html.scuro .prenriga:hover{background:var(--band)}
@media (max-width:820px){
  html.scuro .portrow{border-bottom:1px solid var(--line)}
}
html.scuro .pill{background:var(--band);color:var(--ink)}
html.scuro .pill.green{background:var(--green-l);color:var(--green)}
html.scuro .pill.amber{background:var(--amber-l)}
html.scuro .pill.blue{background:var(--blue-l);color:var(--blue)}
html.scuro .pill.red{background:var(--red-l);color:var(--red)}
html.scuro .prenriga .dett{color:var(--blue)}
html.scuro .accesso{background:var(--superficie)}
html.scuro .acc-card{background:#172036}
html.scuro .acc-err{color:var(--red)}
html.scuro .acc-ops button{border:2px solid var(--line);background:#172036}
html.scuro .acc-ops small{color:var(--muted)}
html.scuro .av{background:var(--amber);color:var(--ink)}
html.scuro .pinpts span{border:3px solid var(--ink)}
html.scuro .pinpts span.on{background:var(--ink)}
html.scuro .pad button{border:2px solid var(--line);background:#172036}
html.scuro .pad button.alt{background:var(--band)}
html.scuro .pad button:active,html.scuro .acc-ops button:active{background:var(--amber)}
html.scuro .nav-user{background:transparent;border:0}
html.scuro table.t.sticky th:first-child,html.scuro table.t.sticky td:first-child{background:var(--card,#172036)}
html.scuro .nav .dot{background:#E53935;color:#fff;border:2px solid var(--ink)}
html.scuro .wa{background:var(--card);border:1px solid var(--line)}
html.scuro .wa-l{border-right:1px solid var(--line)}
html.scuro .wa-q{border:1px solid var(--line)}
html.scuro .wa-chat{border:0;border-bottom:1px solid var(--line);background:none}
html.scuro .wa-chat.on{background:var(--amber-l)}
html.scuro .wa-av{background:var(--band)}
html.scuro .wa-ct small,html.scuro .wa-meta small{color:var(--muted)}
html.scuro .wa-n{background:#25D366;color:#fff}
html.scuro .wa-r{background:#322C25}
html.scuro .wa-vuoto{color:var(--muted)}
html.scuro .wa-rh{background:var(--card);border-bottom:1px solid var(--line)}
html.scuro .wa-rh small{color:var(--muted)}
html.scuro .wa-g span{background:#172036;color:var(--muted)}
html.scuro .wa-m{background:#172036}
html.scuro .wa-m.me{background:#1E3E19}
html.scuro .wa-m small{color:var(--muted)}
html.scuro .wa-mi{color:var(--blue)}
html.scuro .wa-doc{background:rgba(0,0,0,.05)}
html.scuro .wa-comp{background:var(--card);border-top:1px solid var(--line)}
html.scuro .wa-comp textarea{border:1px solid var(--line)}
@media (max-width:820px){
  html.scuro .wa-l{border-right:0}
}
html.scuro .fthumb{background:var(--band)}
html.scuro .fthumb b{color:#fff}
html.scuro .fthumb button{border:0;background:rgba(23,32,51,.8);color:#fff}
@media (max-width:820px){
  html.scuro .tab{background:#172036;border-color:var(--line)}
  html.scuro .tab.on{background:var(--ink);border-color:var(--ink)}
}
html.scuro #push-banner{background:var(--superficie);color:#fff}
html.scuro #push-banner .btn.ghost{background:transparent;color:#fff;border-color:#4b5568}
html.scuro button.sumrow{color:inherit}
html.scuro .ab-nome{color:var(--ink)}
html.scuro .ab-sub{color:var(--muted)}
html.scuro .ab-tot{color:var(--ink)}
html.scuro .mcell{background:var(--band)}
html.scuro .mcell small{color:var(--muted)}
html.scuro .mcell em{color:var(--muted)}
html.scuro .mcell.t-incassato{background:var(--green-l)}
html.scuro .mcell.t-incassato em{color:var(--green)}
html.scuro .mcell.t-sospeso{background:var(--amber-l)}
html.scuro .mcell.t-sospeso em{color:#F19955}
html.scuro .mcell.t-previsto b{color:var(--muted)}
html.scuro .mcell.t-non_rinnova{background:#3E1D19}
html.scuro .mcell.t-non_rinnova b,html.scuro .mcell.t-non_rinnova em{color:var(--red)}
html.scuro .ab-ctl{border-top:1px solid var(--line)}
html.scuro .ab-non{color:var(--muted)}
html.scuro .conteggio-pr .mcell{background:#172036;border:1px solid var(--line)}
html.scuro .trrow{border-bottom:1px solid var(--line,#26324F);color:inherit}
html.scuro .trrow .tr-info small{color:var(--muted)}
html.scuro .statbar{background:var(--superficie)}
html.scuro .statbar .sb{background:#172036;color:inherit}
html.scuro .statbar .sb .label{color:var(--muted)}
html.scuro .statbar .sb .v small{color:var(--muted)}
html.scuro .semaforo{background:#2E2D28}
html.scuro .semaforo.red{background:#dc2626}
html.scuro .semaforo.amber{background:#f59e0b}
html.scuro .semaforo.green{background:#16a34a}
html.scuro .topbar{background:var(--superficie);color:#fff}
html.scuro .hamb{background:transparent;border:0}
html.scuro .hamb span{background:#172036}
html.scuro .scrim{background:rgba(0,0,0,.4)}
html.scuro button.mcell{color:inherit}
html.scuro .conteggio-pr .mcell.on{background:var(--amber);border-color:var(--ink)}
html.scuro .tb-home{background:var(--amber);color:var(--ink)}
html.scuro .tb-back{border:0;background:rgba(255,255,255,.14);color:#fff}
html.scuro .sem3{background:#1f2937}
html.scuro .sem3 s{background:#4b5563}
html.scuro .sem3.red .r{background:#ef4444}
html.scuro .sem3.amber .a{background:#f59e0b}
html.scuro .sem3.green .g{background:#22c55e}
html.scuro button.trrow{background:transparent;border:0;border-bottom:1px solid var(--line,#26324F)}
html.scuro button.trrow:hover,html.scuro button.trrow:active{background:rgba(240,185,76,.14)}
html.scuro button.trrow:last-child{border-bottom:0}
html.scuro button.trrow::after{color:var(--muted)}
html.scuro .brriga{border:2px solid var(--line,#26324F);background:#172036}
html.scuro .brb{border:2px solid var(--line,#26324F);background:#363021}
html.scuro .brb:active{background:#342F23}
html.scuro .brx{color:#E56962}
html.scuro .fissa{background:var(--bg)}
html.scuro .tessmini{border:1.5px dashed var(--line,#26324F);background:#172036;color:inherit}
html.scuro .tessmini small{color:var(--muted)}
html.scuro .tessprev{border:1.5px dashed var(--line,#26324F);background:#172036}
html.scuro .lettore{border:2px dashed var(--line);color:var(--muted)}
html.scuro .esitoscan{color:#fff}
html.scuro .esitoscan.ok{background:#1f8a4c}
html.scuro .esitoscan.ko{background:#c0392b}
html.scuro .ztlbadge{color:#F4CA7B;background:#3E3219}
html.scuro .ztlbadge.rosso{color:#fff;background:var(--red)}
html.scuro #tastiera{background:#272A30}
html.scuro #tastiera .tk{border:0;background:#172036;color:#9DAED3}
html.scuro #tastiera .tk:active{background:#272A30}
html.scuro #tastiera .tk.spec{background:#272A30}
html.scuro #tastiera .tk.on{background:#172036;outline:3px solid #f5a623}
html.scuro #tastiera .tk.ok{background:#f5a623}
html.scuro #ingPage .ing-btns .btn.primary{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro #scheda{background:rgba(23,32,51,.45)}
html.scuro #scheda .sc-box{background:#172036}
html.scuro #scheda .sc-ok{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .tb-home{background:#2748CF;color:#fff}
@media (min-width:768px){
  html.scuro #uscPage #conferma{background:#2748CF;border-color:#2748CF;color:#fff}
}
html.scuro .notti-row .btn.primary{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .notti-n{border:2px solid var(--line);background:#172036}
html.scuro .tb-clock{color:#fff}
html.scuro .bw-dots span{background:var(--line,#322E25)}
html.scuro .bw-dots span.on{background:#2748CF}
html.scuro .bw-dots span.ok{background:#1A6E4E}
html.scuro .bw-t{color:var(--muted,#9FAAC4)}
html.scuro .tilelink.hot{background:#2748CF;border-color:#2748CF}
html.scuro .tilelink.hot b,html.scuro .tilelink.hot span{color:#fff}
html.scuro .elrow{color:inherit;background:transparent;border:0;border-bottom:1px solid var(--line)}
html.scuro .elrow small{color:var(--muted)}
html.scuro .pm::before{background:currentColor}
html.scuro .pm-piu::after{background:currentColor}
html.scuro .calov{background:rgba(10,14,30,.5)}
html.scuro .calbox{background:#172036}
html.scuro .calmese button{border:2px solid var(--line,#26324F);background:#172036;color:var(--ink)}
html.scuro .calgr .h{color:#9FAAC4}
html.scuro .calgr button{border:0;background:#342E23;color:var(--ink)}
html.scuro .calgr button.p{color:#b5b3ab;background:transparent}
html.scuro .calgr button:disabled{color:#d4d2cb;background:transparent}
html.scuro .calgr button.sel{background:#2f45c9;color:#fff}
html.scuro .calpiede button{border:2px solid var(--line,#26324F);background:#172036;color:var(--ink)}
html.scuro .calpiede .ok{background:#2f45c9;border-color:#2f45c9;color:#fff}
html.scuro .tb-print button{border:2px solid rgba(255,255,255,.35);background:transparent;color:#fff}
html.scuro .tb-print button:active{background:rgba(255,255,255,.18)}
html.scuro .cw-big{border:0;color:#fff}
html.scuro .cw-big.blu{background:#2f45c9}
html.scuro .cw-big.verde{background:#2e6b4c}
html.scuro .cw-big.grigio{background:#9aa0ae}
html.scuro .cw{background:var(--bg)}
html.scuro .cw-top{background:var(--superficie);color:#fff}
html.scuro .cw-x{background:rgba(255,255,255,.15);border:0;color:#fff}
html.scuro .cw-prog i{background:var(--line)}
html.scuro .cw-prog i.on{background:#2f45c9}
html.scuro .cw-att{background:#172036;border:2px solid var(--line)}
html.scuro .cw-att small{color:var(--muted)}
html.scuro .cw-camp{border:3px solid #2f45c9;background:#172036;color:var(--ink)}
html.scuro .cw-diff.ok{background:#223429;color:#94D1B2}
html.scuro .cw-diff.bad{background:#3C221B;color:#E27764}
html.scuro .cw-diff.nd{background:#322E25;color:var(--muted)}
html.scuro .cw-avv{background:#3E3219}
html.scuro .cw-err{background:#3C221B;color:#E27764}
html.scuro .cw-nav button{border:2px solid var(--line);background:#172036;color:var(--ink)}
html.scuro .cw-nav .cw-av{background:#2f45c9;border-color:#2f45c9;color:#fff}
html.scuro .cw-nav .cw-av.v{background:#2e6b4c;border-color:#2e6b4c}
html.scuro .tb-esci{border:2px solid rgba(255,255,255,.35);background:transparent;color:#fff}
html.scuro #ingPage .ing-btns .btn.primary{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro #ingPage #giorniBox .stepper .btn{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .conteggio-pr .mcell.on{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .conteggio-pr .mcell.on small,html.scuro .conteggio-pr .mcell.on b{color:#fff}
html.scuro .btn.cs-dove.primary{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .bici-chips .chip.on{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .bwtile{border:2px solid var(--line);background:#172036}
html.scuro .bwtile.sel{border-color:#2748CF;background:#19203E}
html.scuro .bwtile .n small{color:var(--muted,#9FAAC4)}
html.scuro .bwq button{border:0;background:#2748CF;color:#fff}
html.scuro .bwq button.g{background:#342F23;color:var(--ink,#9DAED3)}
html.scuro .bwdur button{border:2px solid var(--line);background:#172036;color:var(--ink,#9DAED3)}
html.scuro .bwdur button small{color:var(--muted,#9FAAC4)}
html.scuro .bwdur button.sel{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .bwdur button.sel small{color:#dfe5ff}
html.scuro .bwsum{background:var(--band,#322E25)}
html.scuro .bwsum small{color:var(--muted,#9FAAC4)}
html.scuro .bwlink{background:none;border:0;color:#657DE2}
html.scuro .bwmet button{border:2px solid var(--line);background:#172036;color:var(--ink,#9DAED3)}
html.scuro .bwmet button.sel{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .prenriga .pr-num{color:var(--ink,#9DAED3)}
html.scuro .prenriga .pr-f .btn{color:#fff;border:0}
html.scuro .prenriga .pr-ing{background:var(--green)}
html.scuro .prenriga .pr-dett{background:#2748CF}
html.scuro #ingPage .nnotti .stepper .btn{background:#2748CF;border-color:#2748CF;color:#fff}
@media (max-width:767px){
  html.scuro #ingPage .ing-left>.card:first-child{background:none;border:0}
  html.scuro #ingPage .ing-nf .card,html.scuro #ingPage .ing-left>.card:first-child>.card{background:#172036}
}
html.scuro .notti-row .btn[data-act="nottiD"],html.scuro .stepper .btn.exb{background:#2748CF !important;border-color:#2748CF !important;color:#fff !important}
html.scuro .esitoscanbk{background:rgba(0,0,0,.45)}
@media (min-width:768px){
  html.scuro #ingPage .side>.nnotti{background:#172036;border:2px solid var(--line)}
}
html.scuro .pn-burger{border:0;background:var(--card,#172036)}
html.scuro .pn-sel button{border:1px solid #26324F;background:#172036}
html.scuro .pn-hero{background:linear-gradient(135deg,#1e293b,#0f172a);color:#fff}
html.scuro .pn-hero small{color:#cbd5e1}
html.scuro .pn-pill.up{background:#193E26;color:#8AE5AD}
html.scuro .pn-pill.dn{background:#3E1919;color:#E76060}
html.scuro .pn-k{background:#172036}
html.scuro .pn-k small{color:#9FAAC4}
html.scuro .pn-k i{color:#9FAAC4}
html.scuro .pn-card{background:#172036}
html.scuro .pn-leg u{color:#9FAAC4}
html.scuro .pn-bars .b{background:#2563eb}
html.scuro .pn-bars .b.we{background:#f5a300}
html.scuro .pn-bars .b.best{background:#16a34a}
html.scuro .pn-bars .b.low{background:#dc2626}
html.scuro .pn-avg{border-top:2px dashed #111}
html.scuro .pn-avg em{background:#172036}
html.scuro .pn-axis{color:#9FAAC4}
html.scuro .pn-mu{color:#9FAAC4}
html.scuro .pn-list .r{border-bottom:1px solid #26324F}
html.scuro .pn-list .r:last-child{border:0}
html.scuro .pn-list .d span{color:#9FAAC4}
html.scuro .pn-list .m .bar{background:#2563eb}
html.scuro .pn-seg{background:#262930}
html.scuro .pn-seg button{border:0;background:none}
html.scuro .pn-seg button.on{background:#172036}
html.scuro .pn-t th,html.scuro .pn-t td{border-bottom:1px solid #26324F}
html.scuro .pn-t th{color:#9FAAC4}
html.scuro .pn-drawer .bk{background:#0007}
html.scuro .pn-drawer nav{background:#172036}
html.scuro .pn-drawer nav b{color:#9FAAC4}
html.scuro .pn-drawer nav button{border:0;background:none}
html.scuro .pn-drawer nav button.on{background:#f5a300}
html.scuro .pn-hero.g{background:linear-gradient(135deg,#14532d,#052e16)}
html.scuro .pn-r{border-bottom:1px solid #26324F}
html.scuro .pn-r:last-child{border:0}
html.scuro .pn-r small{color:#9FAAC4}
html.scuro .pn-tag{background:#3E3619;color:#F19F6D}
html.scuro .pn-tag.g{background:#193E26;color:#8AE5AD}
html.scuro .pn-tag.r{background:#3E1919;color:#E76060}
html.scuro .pn-diff{background:#3E3A19;color:#EBB584}
html.scuro body{background:var(--bg);color:var(--ink)}
html.scuro .topbar{background:var(--navy) !important}
html.scuro .rail{background:var(--navy)}
html.scuro .nav{color:#CFD7F3}
html.scuro .nav.on{background:var(--accent);color:#fff}
html.scuro .card{border:1px solid var(--line)}
html.scuro .kpi{border:1px solid var(--line)}
html.scuro .tile{background:var(--band)}
html.scuro .tilelink{border:1px solid var(--line)}
html.scuro .tilelink.hot{background:var(--accent);border-color:var(--accent);color:#fff}
html.scuro .tilelink.hot span{color:#dbe4ff}
html.scuro .btn{border:2px solid var(--ink)}
html.scuro .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
html.scuro .btn.amber{background:var(--accent);border-color:var(--accent);color:#fff}
html.scuro .btn.ghost{border-color:var(--line);background:#172036}
html.scuro .tab{background:#1F2638;color:var(--ink)}
html.scuro .tab.on{background:var(--navy);color:#fff}
html.scuro .input{border:2px solid var(--line)}
html.scuro .input:focus{border-color:var(--accent)}
html.scuro .pill{background:var(--band)}
html.scuro .note.amber{background:var(--amber-l);color:#F4C67B}
html.scuro table.t th{background:var(--band);color:var(--ink)}
html.scuro table.t td{border-bottom:1px solid var(--line)}
html.scuro .sumrow.tot{border-top:2px solid var(--navy)}
html.scuro .pn-kp{border:1px solid #1420440a}
html.scuro .pn-kp .ic{background:#ffffffb0}
html.scuro .pn-kp small{color:var(--muted)}
html.scuro .pn-kp .d.up{color:#72E3AD}
html.scuro .pn-kp .d.dn{color:#DE7168}
html.scuro .pn-kp .d.nd{color:var(--muted)}
html.scuro .pn-kp.k1{background:#19253E}
html.scuro .pn-kp.k2{background:#24193E}
html.scuro .pn-kp.k3{background:#1F372A}
html.scuro .pn-kp.k4{background:#3E2B19}
html.scuro .pn-kp.k5{background:#20372E}
html.scuro .pn-kp.k6{background:#3E3019}
html.scuro .pn-kp.k7{background:#1E193E}
html.scuro .pn-kp.k8{background:#3E191C}
html.scuro .pn-ch{border-bottom:1px solid var(--line)}
html.scuro .pn-ch .g.cur{background:#1F2537}
html.scuro .pn-lab{color:var(--muted)}
html.scuro .pn-lab .cur{color:var(--ink)}
html.scuro .pn-dn2 div{background:#172036}
html.scuro .pn-dn2 small{color:var(--muted)}
html.scuro .pn-t th.h1{background:#19243E}
html.scuro .pn-t th.h2{background:#22193E}
html.scuro .pn-t th.h3{background:#203729}
html.scuro .pn-t th.h4{background:#3E2A19}
html.scuro .pn-t th.h5{background:#202637}
html.scuro .pn-t th.h6{background:#192B3E}
html.scuro .pn-t tr.cur td{background:#1D233A}
html.scuro #riCorpo .grid.g4>.kpi{border:1px solid #1420440a}
html.scuro #riCorpo .grid.g4>.kpi::before{background:#ffffffb0}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(1){background:#3E191C}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(2){background:#19253E}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(3){background:#24193E}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(4){background:#1F372A}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(5){background:#3E2B19}
html.scuro #riCorpo .grid.g4>.kpi:nth-child(6){background:#3E3019}
html.scuro .ab-av{background:#19253E;color:#3156d3}
html.scuro .ab-av.st-attivo{background:#1F372A;color:#72E3AD}
html.scuro .ab-av.st-in_scadenza{background:#3E3019;color:#E4AF62}
html.scuro .ab-av.st-scaduto{background:#3E191C;color:#DE7168}
html.scuro .ab-av.az{background:#1E193E;color:#5b3fd0}
html.scuro .ab-av.pv{background:#3E2B19;color:#E89F5F}
html.scuro .ab-item{border-left:5px solid var(--line)}
html.scuro .ab-item.st-attivo{border-left-color:#3fae78}
html.scuro .ab-item.st-in_scadenza{border-left-color:#26324F}
html.scuro .ab-item.st-scaduto{border-left-color:#e5484d}
html.scuro .ab-item.sel{border-color:var(--accent)}
html.scuro .ab-sec{border-top:1px solid var(--line)}
html.scuro .ab-sec span{background:#19253E}
html.scuro .cl-hero{background:linear-gradient(135deg,#1F2537,#19253E)}
html.scuro .grid.g4>.kpi.compatto{border:1px solid #1420440a}
html.scuro .grid.g4>.kpi.compatto:nth-child(4n+1){background:#19253E}
html.scuro .grid.g4>.kpi.compatto:nth-child(4n+2){background:#24193E}
html.scuro .grid.g4>.kpi.compatto:nth-child(4n+3){background:#1F372A}
html.scuro .grid.g4>.kpi.compatto:nth-child(4n+4){background:#3E2B19}
html.scuro .bk-card{border-left:5px solid var(--line)}
html.scuro .bk-card.st-confermata,html.scuro .bk-card.st-in_attesa{border-left-color:#26324F}
html.scuro .bk-card.st-ritirata,html.scuro .bk-card.st-in_deposito{border-left-color:#3156d3}
html.scuro .bk-card.st-riconsegnata,html.scuro .bk-card.st-ritirato{border-left-color:#3fae78}
html.scuro .bk-card.st-annullata,html.scuro .bk-card.st-annullato{border-left-color:#26324F}
html.scuro .bk-card.st-scaduto{border-left-color:#e5484d}
html.scuro .bi-r>.card{border:1px solid #1420440a}
html.scuro .bi-r>.card::before{background:#ffffffb0}
html.scuro .bi-r>.card:nth-of-type(1){background:#19253E}
html.scuro .bi-r>.card:nth-of-type(2){background:#1F372A}
html.scuro .bi-r>.card:nth-of-type(3){background:#3E3019}
html.scuro .bi-r>.card:nth-of-type(4){background:#24193E}
html.scuro .bi-r>.card:nth-of-type(5){background:#3E191C}
html.scuro .prenriga{border-left:5px solid var(--line);background:#172036;border-bottom:0 !important}
html.scuro .prenriga.st-arrivata{border-left-color:#3156d3}
html.scuro .prenriga.st-da_confermare{border-left-color:#26324F}
html.scuro .prenriga.st-attesa{border-left-color:#3fae78}
html.scuro .prenriga.st-uscita,html.scuro .prenriga.st-partita,html.scuro .prenriga.st-conclusa{border-left-color:#3fae78}
html.scuro .prenriga.st-annullata{border-left-color:#e5484d}
html.scuro .prenriga .pr-a b{background:#19253E;color:#3156d3}
html.scuro .prenriga .pr-d b{color:#91A4DF}
html.scuro #prcorpo .kpi.compatto{border:1px solid #1420440a}
html.scuro #prcorpo .kpi.compatto:nth-of-type(3n+1){background:#19253E}
html.scuro #prcorpo .kpi.compatto:nth-of-type(3n+2){background:#3E2B19}
html.scuro #prcorpo .kpi.compatto:nth-of-type(3n+3){background:#1F372A}
html.scuro #prcorpo>.card{background:transparent;border:0}
html.scuro .grid.g2>.kpi,html.scuro .grid.g3>.kpi,html.scuro .grid.g4>.kpi:not(.compatto){border:1px solid #1420440a}
html.scuro .grid.g3>.kpi:nth-child(3n+1),html.scuro .grid.g2>.kpi:nth-child(2n+1),html.scuro .grid.g4>.kpi:not(.compatto):nth-child(4n+1){background:#19253E}
html.scuro .grid.g3>.kpi:nth-child(3n+2),html.scuro .grid.g2>.kpi:nth-child(2n+2),html.scuro .grid.g4>.kpi:not(.compatto):nth-child(4n+2){background:#3E2B19}
html.scuro .grid.g3>.kpi:nth-child(3n+3),html.scuro .grid.g4>.kpi:not(.compatto):nth-child(4n+3){background:#1F372A}
html.scuro .grid.g4>.kpi:not(.compatto):nth-child(4n+4){background:#24193E}
html.scuro .grid.g2>.tile,html.scuro .grid.g3>.tile{border:1px solid #1420440a}
html.scuro .grid.g2>.tile:nth-child(2n+1),html.scuro .grid.g3>.tile:nth-child(3n+1){background:#1F372A}
html.scuro .grid.g2>.tile:nth-child(2n+2),html.scuro .grid.g3>.tile:nth-child(3n+2){background:#19253E}
html.scuro .grid.g3>.tile:nth-child(3n+3){background:#3E2B19}
html.scuro .zkpi{border:1px solid #1420440a !important}
html.scuro .zkpi:nth-child(4n+1){background:#19253E}
html.scuro .zkpi:nth-child(4n+2){background:#1F372A}
html.scuro .zkpi:nth-child(4n+3){background:#3E2B19}
html.scuro .zkpi:nth-child(4n+4){background:#24193E}
html.scuro .card>div[style*="font-size:18px;font-weight:800"]:first-child::before{background:var(--accent)}
html.scuro a.sumrow:hover,html.scuro button.sumrow:hover{background:var(--band)}
html.scuro table.t tbody tr:hover td{background:#172036}
html.scuro .imp-tabs{background:#172036;border:1px solid var(--line)}
html.scuro .imp-tabs .tab.on{background:var(--navy);color:#fff}
html.scuro .bk-st{background:#202637;color:#91A4DF}
html.scuro .bk-st.st-confermata,html.scuro .bk-st.st-in_attesa{background:#3E3019;color:#F4CA7B}
html.scuro .bk-st.st-ritirata{background:#19253E;color:#3156d3}
html.scuro .bk-st.st-riconsegnata{background:#1F372A;color:#72E3AD}
html.scuro .bk-st.st-annullata{background:#3E191C;color:#DE7168}
html.scuro .dd.up{color:#72E3AD}
html.scuro .dd.dn{color:#DE7168}
html.scuro .pn-t tr[data-act]:hover td{background:#1D233A}
html.scuro .pn-ch2{border-bottom:1px solid var(--line)}
html.scuro .pn-ch2 .g.cur{background:#1F2537}
html.scuro .pn-ch2 .g i.a{background:#3156d3}
html.scuro .pn-ch2 .g i.b{background:#1C233B}
html.scuro .dsub{color:var(--muted)}
html.scuro .dm-card{background:#172036;border:1px solid #14204414}
html.scuro .dm-tg{border:1px solid var(--line);background:#172036}
html.scuro .dm-tg button{color:var(--ink);background:transparent;border:0}
html.scuro .dm-tg button.on{background:var(--navy);color:#fff}
html.scuro table.dm th{border-left:1px solid #26324F;background:#1F2537}
html.scuro table.dm tr.sub th{background:#172036;color:var(--muted)}
html.scuro table.dm th.g1{background:#19243E;color:#657DE2}
html.scuro table.dm th.g2{background:#203729;color:#8EE1B7}
html.scuro table.dm th.g3{background:#3E2A19;color:#EDAE75}
html.scuro table.dm th.t1{background:#192B3E;color:#657DE2}
html.scuro table.dm th.t2{background:#203729;color:#8EE1B7}
html.scuro table.dm th.t3{background:#3E3419;color:#F4D87B}
html.scuro table.dm th.t4{background:#22193E;color:#5b3fd0}
html.scuro table.dm td{border-top:1px solid var(--line)}
html.scuro table.dm td.m,html.scuro table.dm th.m{background:#172036}
html.scuro table.dm th.m{background:#1F2537}
html.scuro table.dm td.t1{color:#657DE2}
html.scuro table.dm tr[data-act]:hover td{background:#172036}
html.scuro table.dm tr.cur td{background:#1D233A}
html.scuro table.dm th.g4{background:#22193E;color:#5b3fd0}
html.scuro #tastiera{background:#a9acb4}
html.scuro #tastiera .tk{background:#172036}
html.scuro #tastiera .tk.spec,html.scuro #tastiera .tk.ok{background:#3C231A}
html.scuro #tastiera .tmid .tk.spec{background:#292A2E}
html.scuro #tastiera.scura{background:#172033}
html.scuro #tastiera.scura .tk{background:#2b3650;color:#e8ecf4}
html.scuro #tastiera.scura .tk:active{background:#3a4766}
html.scuro #tastiera.scura .tk.spec,html.scuro #tastiera.scura .tk.ok{background:#e8923a;color:#E4C18B}
html.scuro #tastiera.scura .tmid .tk.spec{background:#3a4766;color:#e8ecf4}
html.scuro .imp-fr{border:0;background:#172036;color:var(--ink)}
html.scuro .imp-fr:hover{background:#1F2638}
html.scuro .topbar .tb-print button{background:#2748CF;border-color:#2748CF;color:#fff}
html.scuro .topbar .tb-print button:active{background:#1E3AA8;border-color:#1E3AA8}
html.scuro .page>.head:first-child{background:var(--bg)}

/* --- regole a mano (public/tema-scuro-mano.css) --- */
/* Ritocchi a mano del tema scuro (blu notte) */
html.scuro .tab.on,
html.scuro .imp-tabs .tab.on,
html.scuro .chip.on{background:#2F5AD6 !important;border-color:#2F5AD6 !important;color:#fff !important}
html.scuro .tab{background:#172036;color:#C5CEE4}
html.scuro .btn.blue,html.scuro .btn.pri,html.scuro .btn.primary{background:#2F5AD6;border-color:#2F5AD6;color:#fff}
html.scuro [style*="background:#fff"],html.scuro [style*="background: #fff"],html.scuro [style*="background:white"]{background:#172036 !important;color:#EAEFF9 !important}
html.scuro [style*="background:#F"],html.scuro [style*="background:#f"]{background:#172036 !important;color:#EAEFF9 !important}
html.scuro [style*="color:#000"],html.scuro [style*="color:#111"],html.scuro [style*="color:#222"],html.scuro [style*="color:#333"]{color:#EAEFF9 !important}
html.scuro [style*="color:#666"],html.scuro [style*="color:#777"],html.scuro [style*="color:#888"]{color:#9FAAC4 !important}
/* Targa: resta bianca con caratteri scuri, ben leggibili */
html.scuro .plate{background:#fff !important;border-color:#111827 !important;color:#111827 !important}
html.scuro .plate .num,html.scuro .plate input{color:#111827 !important;background:transparent !important}
html.scuro .plate .num *{color:#111827 !important}
html.scuro .plate input::placeholder{color:#9AA3B5 !important}
html.scuro .plate .eu{background:#1E3FA8 !important;color:#fff !important}
/* Cerca prenotazione: stesso blu di Registra e stampa */
html.scuro #ingPage .btn[data-act="vaiPrenOggi"]{background:#2748CF !important;border-color:#2748CF !important;color:#fff !important}
/* Altri pulsanti con var(--blue) inline: stesso blu */
html.scuro .btn[style*="background:var(--blue)"]{background:#2748CF !important;border-color:#2748CF !important;color:#fff !important}
html.scuro .imp-fr{background:#172036 !important;color:#EAEFF9 !important;box-shadow:0 0 10px 8px #172036 !important}
html.scuro .imp-fr:hover{background:#2F5AD6 !important}
/* Menu hamburger: linee bianche ben visibili */
html.scuro .hamb span{background:#fff !important}
html.scuro .pn-burger{color:#fff !important}
/* Campo Marca: scritta segnaposto bianca */
html.scuro #marca::placeholder{color:#fff !important;opacity:1 !important}
html.scuro .topbar .tb-print button{background:#2748CF !important;border-color:#2748CF !important;color:#fff !important}
html.scuro .page>.head:first-child{background:#0E1524}
