/* =====================================================================
   STILE «SIGILLO» · MM Security & Investigation (proposta 29/10/2026)
   Nero inchiostro e oro antico, come un documento di sicurezza:
   filigrana guilloche, titoli incisi (Cinzel), numeri da registro (mono).
   Si attiva con <html data-stile="sigillo">. Giorno = carta avorio, Notte = inchiostro.
   ===================================================================== */
/* font: Cinzel, Inter, JetBrains Mono (link in index.html, atlas.html) */

:root[data-stile="sigillo"]{
  --f-d:"Cinzel","Trajan Pro",Georgia,serif;
  --f-b:"Inter","Segoe UI",system-ui,sans-serif;
  --f-m:"JetBrains Mono",ui-monospace,monospace;
  /* GIORNO: carta avorio */
  --bg:#F3EFE6; --surface:#FFFFFF; --surface-2:#FAF7F0;
  --ink:#16140F; --muted:#5F584B; --line:#D9CFBC; --line-2:#E7DFD0;
  --accent:#8A6A2C; --accent-ink:#FFFFFF; --accent-soft:#F2E8D3;
  --btn:#16140F; --btn-ink:#E8D09A;
  --gold:#B08D48; --gold-soft:#F2E8D3;
  --hdr:#0D0C0A; --hdr-ink:#F1EADB; --hdr-muted:#A79E8C;
  --pos:#1E7849; --pos-soft:#E1F0E6; --neg:#B0372D; --neg-soft:#F8E3E0; --warn:#8C5B00; --warn-soft:#F6EBD5;
  --late:#B83228; --late-ink:#FFFFFF;
  --yel:#FBF0D2; --yel-b:#C9A040; --yel-ink:#5A4300; --grn:#E1F0E6; --grn-b:#4E9C6E; --red-soft:#F8E3E0; --red-b:#D2776C;
  --scrim:rgba(13,12,10,.55);
  --shadow:0 1px 2px rgba(22,20,15,.06),0 12px 28px rgba(22,20,15,.10);
  --sg-filigrana:url("/img/stile/band_bronze.svg");
  --sg-rosa:url("/img/stile/ros_bronze.svg");
  --sg-hair:linear-gradient(90deg,transparent,#B08D48 18%,#E2C88E 50%,#B08D48 82%,transparent);
}
:root[data-stile="sigillo"][data-sg="notte"]{
  /* NOTTE: inchiostro */
  --bg:#0B0B0D; --surface:#141416; --surface-2:#1B1B1E;
  --ink:#F2ECE0; --muted:#A69F92; --line:#302B23; --line-2:#24211B;
  --accent:#D4B26E; --accent-ink:#141108; --accent-soft:#2B2416;
  --btn:#D4B26E; --btn-ink:#141108;
  --gold:#D4B26E; --gold-soft:#2B2416;
  --hdr:#070709; --hdr-ink:#F2ECE0; --hdr-muted:#A69F92;
  --pos:#6BC495; --pos-soft:#13261C; --neg:#F07A70; --neg-soft:#2E1614; --warn:#E8B25A; --warn-soft:#2C2210;
  --late:#D2493E;
  --yel:#2C2410; --yel-b:#9C7A2A; --yel-ink:#F3D891; --grn:#12261A; --grn-b:#3D8A5C; --red-soft:#2E1614; --red-b:#9A443B;
  --scrim:rgba(0,0,0,.62);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.4);
  --sg-filigrana:url("/img/stile/band_gold.svg");
  --sg-rosa:url("/img/stile/ros_gold.svg");
}
:root[data-stile="sigillo"] body{background:var(--bg);color:var(--ink);font-family:var(--f-b)}

/* ---------- barra laterale: nero inchiostro con il sigillo in filigrana ---------- */
:root[data-stile="sigillo"] .app > .tabs{background:#0D0C0A!important;border-right:1px solid #2A251C!important;
  background-image:url("/img/stile/ros_gold.svg"),linear-gradient(180deg,#0D0C0A 0%,#100E0B 100%)!important;
  background-repeat:no-repeat!important;background-size:340px 340px,100% 100%!important;background-position:-90px calc(100% + 90px),0 0!important}
:root[data-stile="sigillo"] .app > .tabs::before{content:"MM Security\A & Investigation"!important;white-space:pre;font-family:var(--f-d)!important;font-weight:700!important;
  font-size:15px!important;letter-spacing:.06em!important;color:#E2C88E!important;line-height:1.35!important;border-bottom:1px solid transparent!important;
  border-image:linear-gradient(90deg,#B08D48,transparent) 1!important;padding:6px 12px 20px!important;margin-bottom:10px!important}
:root[data-stile="sigillo"] .app > .tabs button{color:#BDB4A3!important;border-radius:10px!important;position:relative}
:root[data-stile="sigillo"] .app > .tabs button:hover{background:rgba(226,200,142,.07)!important;color:#F1EADB!important}
:root[data-stile="sigillo"] .app > .tabs button[aria-current="page"]{background:linear-gradient(90deg,rgba(212,178,110,.18),rgba(212,178,110,.04))!important;color:#F1E3BE!important;font-weight:600!important}
:root[data-stile="sigillo"] .app > .tabs button[aria-current="page"]::before{content:"";position:absolute;left:-14px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:#D4B26E;box-shadow:0 0 12px rgba(212,178,110,.6)}
:root[data-stile="sigillo"] .app > .tabs button svg{stroke:currentColor!important}

/* ---------- testata ---------- */
:root[data-stile="sigillo"] .app > .top{background:var(--surface)!important;border-bottom:0!important;position:sticky}
:root[data-stile="sigillo"] .app > .top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--sg-hair);opacity:.8}
:root[data-stile="sigillo"] .app > .top .brand-t small{font-family:var(--f-d);letter-spacing:.18em;color:var(--accent)!important;font-weight:600}
:root[data-stile="sigillo"] .app > .top .brand-t b{font-family:var(--f-d);font-weight:700;letter-spacing:.02em}
:root[data-stile="sigillo"] .app > .top .btn.mysvc,:root[data-stile="sigillo"] .app > .top .btn.primary{background:var(--btn)!important;color:var(--btn-ink)!important;border-color:var(--btn)!important;box-shadow:none!important;border-radius:10px!important}
:root[data-stile="sigillo"] .app > .top .icon-btn{background:var(--surface)!important;border-color:var(--line)!important;border-radius:10px!important}

/* ---------- titoli incisi ---------- */
:root[data-stile="sigillo"] .vhead h1{font-family:var(--f-d)!important;font-weight:700!important;letter-spacing:.03em!important;font-size:clamp(26px,5.6vw,36px)!important}
:root[data-stile="sigillo"] .vhead .sub{color:var(--muted)}
:root[data-stile="sigillo"] .sec-t,:root[data-stile="sigillo"] .side-card h3,:root[data-stile="sigillo"] .card-h h2{font-family:var(--f-d)!important;letter-spacing:.14em!important;color:var(--accent)!important;font-weight:700!important;text-transform:uppercase}
:root[data-stile="sigillo"] .sec-t::before{content:"◆";font-size:8px;margin-right:8px;vertical-align:2px;color:var(--gold)}

/* ---------- riquadri numeri (KPI): angoli da documento ufficiale ---------- */
:root[data-stile="sigillo"] .kpi-t{border:1px solid var(--line-2)!important;border-radius:14px!important;background:var(--surface)!important;padding:16px 18px!important;
  background-image:linear-gradient(var(--k-c,var(--gold)),var(--k-c,var(--gold))),linear-gradient(var(--k-c,var(--gold)),var(--k-c,var(--gold))),linear-gradient(var(--k-c,var(--gold)),var(--k-c,var(--gold))),linear-gradient(var(--k-c,var(--gold)),var(--k-c,var(--gold)))!important;
  background-size:16px 2px,2px 16px,16px 2px,2px 16px!important;background-repeat:no-repeat!important;
  background-position:10px 10px,10px 10px,calc(100% - 10px) calc(100% - 10px),calc(100% - 10px) calc(100% - 10px)!important}
:root[data-stile="sigillo"] .kpi-t span{font-family:var(--f-d);letter-spacing:.12em;text-transform:uppercase;font-size:11.5px!important;font-weight:700!important}
:root[data-stile="sigillo"] .kpi-t b{font-size:32px!important;font-weight:800!important;letter-spacing:-.01em}
:root[data-stile="sigillo"] .kpi-t::before{display:none!important}

/* ---------- schede e liste ---------- */
:root[data-stile="sigillo"] .side-card,:root[data-stile="sigillo"] .card,:root[data-stile="sigillo"] .list{border-radius:14px!important;border-color:var(--line-2)!important;background:var(--surface)!important;box-shadow:var(--shadow)}
:root[data-stile="sigillo"] .side-card{position:relative;overflow:hidden}
:root[data-stile="sigillo"] .side-card::after{content:"";position:absolute;left:14px;right:14px;top:0;height:1px;background:var(--sg-hair);opacity:.55}
:root[data-stile="sigillo"] .svc{border-radius:12px!important;border-left-width:4px!important}
:root[data-stile="sigillo"] .svc .when b,:root[data-stile="sigillo"] .t-time b{font-family:var(--f-m)!important;letter-spacing:-.01em}
:root[data-stile="sigillo"] .av{border-radius:50%!important;background:#16140F!important;color:#E2C88E!important;box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--gold);font-weight:700!important}
:root[data-stile="sigillo"] .pill{border-radius:999px!important;font-weight:600}
:root[data-stile="sigillo"] .dot{box-shadow:0 0 0 3px color-mix(in srgb,currentColor 15%,transparent)}

/* ---------- pulsanti ---------- */
:root[data-stile="sigillo"] .btn{border-radius:10px!important;font-weight:600}
:root[data-stile="sigillo"] .btn.primary{background:var(--btn)!important;color:var(--btn-ink)!important;border-color:var(--btn)!important;box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 6px 16px rgba(22,20,15,.18)!important}
:root[data-stile="sigillo"] .btn.primary:hover{filter:brightness(1.12)}
:root[data-stile="sigillo"] .btn.danger{border-color:var(--red-b)!important;color:var(--neg)!important}
:root[data-stile="sigillo"] .seg button[aria-pressed="true"]{background:var(--btn)!important;color:var(--btn-ink)!important}

/* ---------- finestre (fogli) ---------- */
:root[data-stile="sigillo"] .sheet{border-radius:18px 18px 0 0;border-top:1px solid var(--gold)}
:root[data-stile="sigillo"] .sheet-head h2{font-family:var(--f-d)!important;letter-spacing:.04em}

/* ---------- telefono: barra in basso ---------- */
@media (max-width:899px){
  :root[data-stile="sigillo"] .app > .top{background:#0D0C0A!important;color:#F1EADB!important}
  :root[data-stile="sigillo"] .app > .top .brand-t b{color:#F1EADB!important}
  :root[data-stile="sigillo"] .app > .top .brand-t small{color:#D4B26E!important}
  :root[data-stile="sigillo"] .app > .top .icon-btn{background:#1A1814!important;border-color:#3A3328!important}
  :root[data-stile="sigillo"] .app > .top .icon-btn svg{stroke:#F1EADB!important}
  :root[data-stile="sigillo"] .app > .tabs{background:#0D0C0A!important;background-image:none!important;border-top:1px solid #3A3328!important}
  :root[data-stile="sigillo"] .app > .tabs button[aria-current="page"]::before{left:20%;right:20%;top:0;bottom:auto;width:auto;height:3px;border-radius:0 0 3px 3px}
}

/* ---------- stati dei servizi: oro = in corso, ambra = sta per iniziare, verde = fatto/confermato, rosso = problema ---------- */
:root[data-stile="sigillo"] .st-corso{--sr-c:#A8822F;--sr-bg:#F6ECD5;--sr-c2:#7A5A16;--ev-c:#A8822F;--ev-bg:#F6ECD5}
:root[data-stile="sigillo"] .st-presto{--sr-c:#C27A1E;--sr-bg:#FBEBD6;--sr-c2:#8A4F00}
:root[data-stile="sigillo"] .st-avanti{--sr-c:#A79E8C;--sr-bg:#F1ECE2;--sr-c2:#4F4839}
:root[data-stile="sigillo"] .st-fatto{--sr-c:#1E7849;--sr-bg:#E1F0E6;--sr-c2:#1E7849;--ev-c:#857C6B;--ev-bg:#F1ECE2}
:root[data-stile="sigillo"] .st-conf{--ev-c:#1E7849;--ev-bg:#E1F0E6}
:root[data-stile="sigillo"] .st-daconf{--ev-c:#C27A1E;--ev-bg:#FBEBD6}
:root[data-stile="sigillo"] .st-mancato{--sr-c:#B83228;--sr-bg:#F8E3E0;--sr-c2:#9A2A21;--ev-c:#B83228;--ev-bg:#F8E3E0}
:root[data-stile="sigillo"] .st-scoperto{--ev-c:#B83228}
:root[data-stile="sigillo"][data-sg="notte"] .st-corso{--sr-c:#D4B26E;--sr-bg:#2B2416;--sr-c2:#EBD29A;--ev-c:#D4B26E;--ev-bg:#2B2416}
:root[data-stile="sigillo"][data-sg="notte"] .st-presto{--sr-c:#E8A04A;--sr-bg:#2E200E;--sr-c2:#F2BE78}
:root[data-stile="sigillo"][data-sg="notte"] .st-avanti{--sr-c:#7D766A;--sr-bg:#1F1D19;--sr-c2:#CFC7B8}
:root[data-stile="sigillo"][data-sg="notte"] .st-fatto{--sr-c:#6BC495;--sr-bg:#13261C;--sr-c2:#8AD8AE;--ev-c:#8A8273;--ev-bg:#1F1D19}
:root[data-stile="sigillo"][data-sg="notte"] .st-conf{--ev-c:#6BC495;--ev-bg:#13261C}
:root[data-stile="sigillo"][data-sg="notte"] .st-daconf{--ev-c:#E8A04A;--ev-bg:#2E200E}
:root[data-stile="sigillo"][data-sg="notte"] .st-mancato{--sr-c:#F07A70;--sr-bg:#2E1614;--sr-c2:#F59C94;--ev-c:#F07A70;--ev-bg:#2E1614}
:root[data-stile="sigillo"] .k-corso{--k-c:#B08D48}
:root[data-stile="sigillo"] .k-presto{--k-c:#C27A1E}
:root[data-stile="sigillo"] .k-avanti{--k-c:#A79E8C}
:root[data-stile="sigillo"] .k-fatto{--k-c:#1E7849}
:root[data-stile="sigillo"] .k-soldi{--k-c:#B08D48}
:root[data-stile="sigillo"] .k-ritardo{--k-c:#B83228}
:root[data-stile="sigillo"][data-sg="notte"] .k-corso,:root[data-stile="sigillo"][data-sg="notte"] .k-soldi{--k-c:#D4B26E}
:root[data-stile="sigillo"][data-sg="notte"] .k-fatto{--k-c:#6BC495}
:root[data-stile="sigillo"] .kpi-t span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px!important;letter-spacing:.1em}
:root[data-stile="sigillo"] .srow:hover{background:color-mix(in srgb,var(--gold) 6%,transparent)!important}
:root[data-stile="sigillo"] .ssec-h{font-family:var(--f-d);letter-spacing:.14em;color:var(--accent)}
:root[data-stile="sigillo"] .ssec-h b{background:var(--gold-soft)!important;color:var(--accent)!important}
:root[data-stile="sigillo"] .cli-av:not(.has-img),:root[data-stile="sigillo"] .sr-logo:not(.has-img){background-color:#16140F!important;color:#E2C88E!important;border-radius:50%!important;font-family:var(--f-d)!important;box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--gold)!important}
:root[data-stile="sigillo"] .sr-time b,:root[data-stile="sigillo"] .sr-time{font-variant-numeric:tabular-nums}

/* ---------- ritocchi ---------- */
:root[data-stile="sigillo"] .app > .tabs button[aria-current="page"],:root[data-stile="sigillo"] .app > .tabs button[aria-current="page"] *{color:#F1E3BE!important}
:root[data-stile="sigillo"] .kpi-t{padding:20px 20px 16px!important;background-position:7px 7px,7px 7px,calc(100% - 7px) calc(100% - 7px),calc(100% - 7px) calc(100% - 7px)!important;background-size:14px 2px,2px 14px,14px 2px,2px 14px!important}
:root[data-stile="sigillo"] .side-card .list,:root[data-stile="sigillo"] .card .list,:root[data-stile="sigillo"] .sheet .list{box-shadow:none!important}
@media (max-width:899px){
  :root[data-stile="sigillo"] .app > .tabs::before{content:none!important;display:none!important}
  :root[data-stile="sigillo"] .app > .top .btn.mysvc,:root[data-stile="sigillo"] .app > .top .btn.primary{background:#D4B26E!important;color:#141108!important;border-color:#D4B26E!important}
  :root[data-stile="sigillo"] .app > .top::after{opacity:.5}
}
.stile-scelta{grid-template-columns:repeat(2,minmax(0,1fr))}
/* V167 · il logo MM al centro della rosa, come un sigillo (solo computer, barra laterale) */
@media (min-width:900px){
:root[data-stile="sigillo"] .app > .tabs{
  background-image:url("/img/logo-reception.png"),url("/img/stile/ros_gold.svg"),linear-gradient(180deg,#0D0C0A 0%,#100E0B 100%)!important;
  background-size:132px auto,340px 340px,100% 100%!important;
  background-position:14px calc(100% - 52px),-90px calc(100% + 90px),0 0!important;
  background-repeat:no-repeat!important}
}
/* V191 · telefono: numeri dei riquadri interi */
@media (max-width:600px){:root[data-stile="sigillo"] .kpi-t b{font-size:24px!important}}

/* V225 · computer con schermo medio (900-1099 px): intestazione leggibile e menu con i nomi interi */
@media (min-width:900px) and (max-width:1099px){
  :root[data-stile="sigillo"] .app > .top .brand-t b,:root[data-stile="sigillo"] .app > .top .hud-t,:root[data-stile="sigillo"] .app > .top .hud b,:root[data-stile="sigillo"] .app > .top .hud{color:var(--ink)!important}
  :root[data-stile="sigillo"] .app > .tabs::before{content:none!important;display:none!important}
  :root[data-stile="sigillo"] .app > .tabs{background-image:none!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:8px!important}
  :root[data-stile="sigillo"] .app > .tabs button{flex:1 1 104px!important;min-width:0;justify-content:center}
  :root[data-stile="sigillo"] .app > .tabs button span{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;max-width:none!important}
}
/* V225 · tre colori diversi: in ritardo = arancio, entrata non segnata = rosso, da coprire = viola */
:root[data-stile="sigillo"] .st-ritardo,:root .st-ritardo{--ev-c:#C2560C;--ev-bg:#FDEBDD;--sr-c:#C2560C;--sr-bg:#FDEBDD;--sr-c2:#9A3F05}
:root[data-stile="sigillo"] .st-mancato,:root .st-mancato{--ev-c:#B83228;--ev-bg:#F8E3E0;--sr-c:#B83228;--sr-bg:#F8E3E0;--sr-c2:#9A2A21}
:root[data-stile="sigillo"] .st-scoperto,:root .st-scoperto{--ev-c:#6D3FC0;--ev-bg:#EFE7FB;--sr-c:#6D3FC0;--sr-bg:#EFE7FB;--sr-c2:#55309A}

/* V228 · Servizi sul computer: pagina piena e colori chiari degli stati */
@media (min-width:1100px){
  .app > main:has(.cal-week),.app > main:has(.cal-month),.app > main:has(.cal-day){max-width:none!important}
  .cal-week{gap:10px}
  .cal-week .cal-col{min-height:calc(100vh - 470px)}
  .cal-week .cal-ev{font-size:13.5px;padding:9px 11px;min-height:58px}
  .cal-week .cal-ev .ev-t{font-size:13px}
}
:root .cal-ev.st-fatto,:root[data-stile] .cal-ev.st-fatto{--ev-c:#1E8A50;--ev-bg:#DDF3E4;color:#14532D}
:root .cal-ev.st-conf,:root[data-stile] .cal-ev.st-conf{--ev-c:#2563EB;--ev-bg:#EAF1FE}
:root .cal-ev.st-corso,:root[data-stile] .cal-ev.st-corso{--ev-c:#B8902F;--ev-bg:#FBF0D3}
:root .cal-ev.st-daconf,:root[data-stile] .cal-ev.st-daconf{--ev-c:#E08A1E;--ev-bg:#FFEFD9}
:root .cal-ev.st-ritardo,:root[data-stile] .cal-ev.st-ritardo{--ev-c:#E8590C;--ev-bg:#FFE8D6;animation:evLuceA 1.3s ease-in-out infinite}
:root .cal-ev.st-mancato,:root[data-stile] .cal-ev.st-mancato{--ev-c:#E3171E;--ev-bg:#FFE1E2;border-color:#F5A3A6;animation:evLuceR 1.3s ease-in-out infinite}
:root .cal-ev.st-scoperto,:root[data-stile] .cal-ev.st-scoperto{--ev-c:#7C3AED;--ev-bg:#F1E8FF;border-color:#CDB4FA;animation:evLuceV 1.3s ease-in-out infinite}
:root .cal-ev.st-fatto .ev-t::before{content:"✓ ";font-weight:800}
@keyframes evLuceR{0%,100%{box-shadow:0 0 0 0 rgba(227,23,30,0)}50%{box-shadow:0 0 0 3px rgba(227,23,30,.35),0 0 14px rgba(227,23,30,.45)}}
@keyframes evLuceA{0%,100%{box-shadow:0 0 0 0 rgba(232,89,12,0)}50%{box-shadow:0 0 0 3px rgba(232,89,12,.3),0 0 12px rgba(232,89,12,.4)}}
@keyframes evLuceV{0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,0)}50%{box-shadow:0 0 0 3px rgba(124,58,237,.3),0 0 12px rgba(124,58,237,.4)}}
@media (prefers-reduced-motion:reduce){.cal-ev.st-ritardo,.cal-ev.st-mancato,.cal-ev.st-scoperto{animation:none!important}}
.cal-leg .lg.st-fatto::before{background:#1E8A50}.cal-leg .lg.st-conf::before{background:#2563EB}.cal-leg .lg.st-mancato::before{background:#E3171E;box-shadow:0 0 6px rgba(227,23,30,.7)}.cal-leg .lg.st-scoperto::before{background:#7C3AED}.cal-leg .lg.st-ritardo::before{background:#E8590C}

/* V229 · calendario Servizi (settimana): schede nuove, intestazioni con gli stati, colonne curate */
.cal-week .cal-col{background:#FBF8F2;border:1px solid #ECE4D3;border-radius:16px;transition:box-shadow .2s}
.cal-week .cal-col.weekend{background:#F7F2E8}
.cal-week .cal-col:hover{box-shadow:0 8px 24px rgba(22,20,15,.07)}
.cal-week .cal-col.passato .cal-dh{opacity:.78}
.cal-week .cal-col.oggi{border:2px solid #B8902F;box-shadow:0 10px 28px rgba(184,144,47,.18)}
.cal-week .cal-dh{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px 10px!important;background:transparent!important;border-bottom:1px solid #ECE4D3!important;text-align:left;width:100%}
.cal-week .cal-dh span{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8C8170}
.cal-week .cal-dh b{font-family:var(--f-d,Georgia,serif);font-size:30px;line-height:1;color:#16140F}
.cal-week .cal-dh small{font-size:12px;color:#8C8170}
.cal-week .cal-col.oggi .cal-dh{background:linear-gradient(160deg,#8A6A22,#B8902F)!important;border-bottom-color:#8A6A22!important}
.cal-week .cal-col.oggi .cal-dh span,.cal-week .cal-col.oggi .cal-dh small{color:#FBF0D3}.cal-week .cal-col.oggi .cal-dh b{color:#fff}
.cal-week .dh-dots{display:flex;flex-wrap:wrap;gap:3px;align-items:center;min-height:10px;margin-top:4px}
.cal-week .dh-dots i{width:8px;height:8px;border-radius:50%;background:var(--ev-c,#A79E8C);box-shadow:0 0 0 1.5px rgba(255,255,255,.8)}
.cal-week .dh-dots em{font-style:normal;font-size:11px;font-weight:800;color:#fff;background:#E3171E;border-radius:999px;padding:2px 7px;margin-left:4px;box-shadow:0 0 10px rgba(227,23,30,.55)}
.cal-week .cal-evs{padding:10px!important;gap:8px!important}
.cal-ev.ev2{position:relative;display:flex;flex-direction:column;gap:4px;background:#fff!important;border:1px solid #ECE4D3!important;border-left:5px solid var(--ev-c)!important;border-radius:12px!important;padding:10px 11px 9px!important;min-height:0!important;box-shadow:0 1px 2px rgba(22,20,15,.05);transition:transform .15s,box-shadow .15s;color:#16140F}
.cal-ev.ev2:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(22,20,15,.12)}
.cal-ev.ev2 .ev-top{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}
.cal-ev.ev2 .ev-t{font-weight:800;font-size:13.5px;font-variant-numeric:tabular-nums;color:#16140F}
.cal-ev.ev2 .ev-t::before{content:none!important}
.cal-ev.ev2 .ev-ic{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff;background:var(--ev-c)}
.cal-ev.ev2 .ev-who{display:flex;align-items:center;gap:7px;min-width:0;width:100%}
.cal-ev.ev2 .ev-av{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:700 10px/1 system-ui,sans-serif;font-style:normal;background:#16140F;color:#E2C88E}
.cal-ev.ev2 .ev-n{font-size:13.5px;font-weight:800;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cal-ev.ev2 .ev-c{font-size:12px;color:#6F6656;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.cal-ev.ev2 .ev-ft{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;margin-top:2px;padding-top:6px;border-top:1px dashed #EEE6D6}
.cal-ev.ev2 .ev-k{font-size:11px;font-weight:700;color:var(--ev-c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev.ev2 .ev-h{font-size:11px;color:#8C8170;font-variant-numeric:tabular-nums;flex:none}
/* colori: verde = a posto, rosso/viola/arancio accesi che si illuminano = da sistemare */
.cal-ev.ev2.st-fatto{--ev-c:#1E8A50;background:linear-gradient(180deg,#F1FAF4,#fff)!important}
.cal-ev.ev2.st-conf{--ev-c:#2563EB;background:linear-gradient(180deg,#F1F6FF,#fff)!important}
.cal-ev.ev2.st-corso{--ev-c:#B8902F;background:linear-gradient(180deg,#FFF7E3,#fff)!important}
.cal-ev.ev2.st-corso .ev-ic{animation:evPallino 1.4s ease-out infinite}
.cal-ev.ev2.st-daconf{--ev-c:#E08A1E;background:linear-gradient(180deg,#FFF4E6,#fff)!important}
.cal-ev.ev2.st-ritardo{--ev-c:#F05A0E;background:#FFF0E6!important;border-color:#FBC6A8!important}
.cal-ev.ev2.st-mancato{--ev-c:#E3171E;background:#FFECEC!important;border-color:#F7AEB0!important}
.cal-ev.ev2.st-scoperto{--ev-c:#7C3AED;background:#F5EEFF!important;border-color:#D7C2FB!important;border-style:dashed!important;border-left-style:solid!important}
.cal-ev.ev2.st-scoperto .ev-av{background:#7C3AED;color:#fff}
.cal-ev.ev2.st-ann,.cal-ev.ev2.st-ann-paga{--ev-c:#A79E8C;opacity:.6;text-decoration:line-through}
@keyframes evPallino{0%{box-shadow:0 0 0 0 rgba(184,144,47,.6)}100%{box-shadow:0 0 0 8px rgba(184,144,47,0)}}
.cal-week .cal-add{opacity:.35;transition:opacity .2s;border-radius:12px!important}
.cal-week .cal-col:hover .cal-add{opacity:1}
.cal-week .cal-col.con-prob .cal-dh{box-shadow:inset 0 -3px 0 #E3171E}
@media (prefers-reduced-motion:reduce){.cal-ev.ev2 .ev-ic{animation:none!important}}
.cal-week .dh-dots i.st-fatto{background:#1E8A50}.cal-week .dh-dots i.st-conf{background:#2563EB}.cal-week .dh-dots i.st-corso{background:#B8902F}.cal-week .dh-dots i.st-daconf{background:#E08A1E}.cal-week .dh-dots i.st-ritardo{background:#F05A0E}.cal-week .dh-dots i.st-mancato{background:#E3171E;box-shadow:0 0 6px rgba(227,23,30,.8)}.cal-week .dh-dots i.st-scoperto{background:#7C3AED}
.cal-ev.ev2 .ev-n{color:#16140F!important}

/* V230 · computer: tutte le pagine a piena larghezza */
@media (min-width:1100px){:root[data-theme="light"] .app > main,.app > main{max-width:none!important}}
/* V230 · Operatori: tasti raggruppati e schede nuove */
.op-azioni{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;margin:4px 0 16px}
.op-g{background:#fff;border:1px solid #ECE4D3;border-radius:14px;padding:10px 12px}
.op-g > span{display:block;font-family:var(--f-d,Georgia,serif);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8A6A22;margin:0 0 8px}
.op-g > div{display:flex;flex-wrap:wrap;gap:6px}
.op-g .btn.sm{border-radius:999px!important;background:#FBF8F2!important;border:1px solid #E6DCC6!important}
.op-g .btn.sm:hover{background:#16140F!important;color:#F1E3BE!important;border-color:#16140F!important}
.dip-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(290px,1fr))!important;gap:14px!important}
.dip-card{background:#fff!important;border:1px solid #ECE4D3!important;border-radius:18px!important;overflow:hidden;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}
.dip-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(22,20,15,.10)}
.dip-card .dip-open{padding:16px 16px 12px!important;display:flex!important;flex-direction:column;gap:10px;flex:1}
.dip-card .dip-top{display:flex;align-items:center;gap:12px}
.dip-avw{flex:none;border-radius:50%;padding:3px;background:#ECE4D3}
.dip-avw.on{background:conic-gradient(#1E8A50,#34C77B,#1E8A50);box-shadow:0 0 0 3px rgba(30,138,80,.15)}
.dip-avw.ass{background:#E08A1E}
.dip-card .dip-av{width:50px!important;height:50px!important;border-radius:50%!important;font-size:16px!important;background:#16140F!important;color:#E2C88E!important;border:2px solid #fff;display:grid;place-items:center;font-family:var(--f-d,Georgia,serif);font-weight:700}
.dip-card .dip-id b{font-size:15.5px;line-height:1.2;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block;letter-spacing:.01em}
.dip-card .dip-id small{color:#8C8170;font-size:12.5px}
.dip-card .dip-badges{display:flex;flex-wrap:wrap;gap:5px}
.dip-card .dip-stats{display:grid!important;grid-template-columns:1fr 1.3fr;gap:0;background:#FBF8F2;border:1px solid #F0E8D8;border-radius:12px;overflow:hidden}
.dip-card .dip-stats > span{display:flex;flex-direction:column;gap:2px;padding:9px 12px;min-width:0}
.dip-card .dip-stats > span + span{border-left:1px solid #F0E8D8}
.dip-card .dip-stats small{font-size:11px;color:#8C8170;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.dip-card .dip-stats b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dip-card .dip-stats em{font-style:normal;font-size:12.5px;color:#4F4839;font-weight:600}
.dip-card .dip-next{font-size:12.5px;color:#4F4839;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dip-card .dip-foot{display:flex;align-items:center;gap:6px;padding:10px 12px!important;border-top:1px solid #F0E8D8;background:#FDFBF7}
.dip-card .dip-foot .btn.sm{border-radius:999px!important}
.dip-card .dip-foot > :last-child{margin-left:auto}
.dip-card.dim{opacity:.6}

/* V231 · Operatori con colori accesi e animazioni */
.dip-card{position:relative;animation:dipIn .45s ease-out both;animation-delay:calc(min(var(--i,0),14) * 40ms)}
@keyframes dipIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.dip-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--dc,#D4B26E)}
.dip-card.st-ok{--dc:linear-gradient(90deg,#B8902F,#E2C88E)}
.dip-card.st-on{--dc:linear-gradient(90deg,#16A34A,#4ADE80);border-color:#86EFAC!important;box-shadow:0 0 0 1px rgba(34,197,94,.25),0 8px 24px rgba(34,197,94,.18)}
.dip-card.st-docko{--dc:linear-gradient(90deg,#DC2626,#F87171);border-color:#FCA5A5!important;animation:dipIn .45s ease-out both,dipRosso 1.6s ease-in-out .6s infinite}
.dip-card.st-docwarn{--dc:linear-gradient(90deg,#EA580C,#FDBA74)}
.dip-card.st-ass{--dc:linear-gradient(90deg,#F59E0B,#FCD34D)}
.dip-card.st-nuovo{--dc:linear-gradient(90deg,#7C3AED,#C4B5FD);border-color:#C4B5FD!important;animation:dipIn .45s ease-out both,dipViola 1.6s ease-in-out .6s infinite}
@keyframes dipRosso{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}50%{box-shadow:0 0 0 4px rgba(220,38,38,.22),0 0 22px rgba(220,38,38,.35)}}
@keyframes dipViola{0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,0)}50%{box-shadow:0 0 0 4px rgba(124,58,237,.2),0 0 22px rgba(124,58,237,.32)}}
/* anello dell'avatar: verde che gira se in servizio */
.dip-avw.on{position:relative;background:conic-gradient(from 0deg,#16A34A,#4ADE80,#BBF7D0,#16A34A)!important;animation:dipGira 2.4s linear infinite}
.dip-avw.on .dip-av{animation:dipGira 2.4s linear infinite reverse}
@keyframes dipGira{to{transform:rotate(360deg)}}
.dip-avw.ass{background:conic-gradient(#F59E0B,#FCD34D,#F59E0B)!important}
.dip-card.st-docko .dip-avw{background:#F87171}
/* pastiglie più accese */
.dip-card .pill{font-weight:700!important;border-radius:999px!important}
.dip-card .pill.pos{background:#DCFCE7!important;color:#15803D!important}
.dip-card .pill.neg{background:#DC2626!important;color:#fff!important;box-shadow:0 0 10px rgba(220,38,38,.55);animation:pillLuce 1.3s ease-in-out infinite}
.dip-card .pill.warn{background:#FFEDD5!important;color:#C2410C!important}
.dip-card .pill.acc{background:#16A34A!important;color:#fff!important;box-shadow:0 0 10px rgba(22,163,74,.5)}
.dip-card.st-nuovo .pill.acc{background:#7C3AED!important;box-shadow:0 0 10px rgba(124,58,237,.5)}
@keyframes pillLuce{0%,100%{box-shadow:0 0 4px rgba(220,38,38,.35)}50%{box-shadow:0 0 14px rgba(220,38,38,.8)}}
.dip-card.st-on .dip-stats{background:#F0FDF4;border-color:#BBF7D0}
.dip-card.st-on .dip-stats b{color:#15803D}
/* riquadri in alto con i numeri colorati */
.view-operatori .kpi-t b,.dash-kpi .kpi-t.k-corso b{transition:color .2s}
.dash-kpi .kpi-t.k-presto b{color:#DC2626}
@media (prefers-reduced-motion:reduce){.dip-card,.dip-card.st-docko,.dip-card.st-nuovo,.dip-avw.on,.dip-avw.on .dip-av,.dip-card .pill.neg{animation:none!important}}

/* ================= V232 · rifinitura grafica di tutto il gestionale ================= */
/* testata delle pagine: titolo a sinistra, tasti in una striscia ordinata sotto */
@media (min-width:900px){
  :root[data-stile] .vhead{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px 16px}
  :root[data-stile] .vhead > .row-wrap{grid-column:1/-1;justify-content:flex-start!important;gap:6px!important;padding:10px 12px;background:#fff;border:1px solid #ECE4D3;border-radius:16px;box-shadow:0 1px 2px rgba(22,20,15,.04)}
  :root[data-stile] .vhead > .row-wrap .btn{border-radius:999px!important;min-height:36px;padding:0 14px!important;font-size:13.5px!important;background:#FBF8F2!important;border:1px solid #E6DCC6!important;transition:background .15s,color .15s,transform .15s,box-shadow .15s}
  :root[data-stile] .vhead > .row-wrap .btn:hover{background:#16140F!important;color:#F1E3BE!important;border-color:#16140F!important;transform:translateY(-1px)}
  :root[data-stile] .vhead > .row-wrap .btn.primary{margin-left:auto;background:linear-gradient(135deg,#16140F,#3A3226)!important;color:#F1E3BE!important;border-color:#16140F!important;box-shadow:0 6px 16px rgba(22,20,15,.25)!important}
  :root[data-stile] .vhead > .row-wrap .btn.primary:hover{box-shadow:0 0 0 3px rgba(212,178,110,.35),0 8px 20px rgba(22,20,15,.3)!important}
}
:root[data-stile] .vhead h1{position:relative;padding-bottom:6px}
:root[data-stile] .vhead h1::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:3px;border-radius:3px;background:linear-gradient(90deg,#B8902F,#E2C88E)}
/* riquadri numerici: colori vivi, animazione d'ingresso, numeri colorati */
:root[data-stile] .kpi-t{position:relative;overflow:hidden;border-radius:18px!important;transition:transform .18s,box-shadow .18s;animation:v232Su .45s ease-out both}
:root[data-stile] .dash-kpi > :nth-child(2){animation-delay:.05s}:root[data-stile] .dash-kpi > :nth-child(3){animation-delay:.1s}:root[data-stile] .dash-kpi > :nth-child(4){animation-delay:.15s}:root[data-stile] .dash-kpi > :nth-child(5){animation-delay:.2s}
:root[data-stile] .kpi-t:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(22,20,15,.12)!important}
:root[data-stile] .kpi-t::after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,var(--kg,rgba(212,178,110,.18)),transparent 70%);pointer-events:none}
:root[data-stile] .kpi-t b{font-size:34px!important;letter-spacing:-.02em}
:root[data-stile] .kpi-t.k-corso{--kg:rgba(184,144,47,.28)}:root[data-stile] .kpi-t.k-corso b{color:#9A7522}
:root[data-stile] .kpi-t.k-fatto{--kg:rgba(22,163,74,.22)}:root[data-stile] .kpi-t.k-fatto b{color:#15803D}
:root[data-stile] .kpi-t.k-presto{--kg:rgba(234,88,12,.22)}:root[data-stile] .kpi-t.k-presto b{color:#EA580C}
:root[data-stile] .kpi-t.k-soldi{background:linear-gradient(145deg,#16140F,#2E271C)!important;border-color:#16140F!important;--kg:rgba(226,200,142,.3)}
:root[data-stile] .kpi-t.k-soldi span,:root[data-stile] .kpi-t.k-soldi small{color:#CDBF9F!important}:root[data-stile] .kpi-t.k-soldi b{color:#F1E3BE!important}
:root[data-stile] .kpi-t b.neg-t,:root[data-stile] .kpi-t .neg-t{color:#DC2626!important;text-shadow:0 0 18px rgba(220,38,38,.25)}
@keyframes v232Su{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* sotto-menu e selettori: pastiglie con l'attiva nera e oro */
:root[data-stile] .seg{border-radius:999px!important;padding:4px!important;background:#fff!important;border:1px solid #ECE4D3!important;box-shadow:0 1px 2px rgba(22,20,15,.04)}
:root[data-stile] .seg button{border-radius:999px!important;transition:background .15s,color .15s}
:root[data-stile] .seg button:hover:not([aria-pressed="true"]){background:#F6EFE1!important}
:root[data-stile] .seg button[aria-pressed="true"]{background:linear-gradient(135deg,#16140F,#3A3226)!important;color:#F1E3BE!important;box-shadow:0 3px 10px rgba(22,20,15,.25)}
/* campi e ricerca */
:root[data-stile] input.search,:root[data-stile] .toolbar select,:root[data-stile] .toolbar input{border-radius:999px!important;border:1px solid #E6DCC6!important;background:#fff!important;padding-inline:16px!important}
:root[data-stile] input:focus,:root[data-stile] select:focus,:root[data-stile] textarea:focus{outline:none!important;border-color:#B8902F!important;box-shadow:0 0 0 4px rgba(212,178,110,.25)!important}
/* riquadri e schede: angoli morbidi, ombra leggera, effetto al passaggio */
:root[data-stile] .card,:root[data-stile] .side-card{border-radius:18px!important;box-shadow:0 1px 2px rgba(22,20,15,.04),0 8px 24px rgba(22,20,15,.04)!important}
:root[data-stile] .list .row,:root[data-stile] .list button.row{transition:background .15s}
:root[data-stile] .list button.row:hover{background:#FBF5E7!important}
:root[data-stile] table tbody tr:nth-child(even) td{background:#FCFAF5}
:root[data-stile] table tbody tr:hover td{background:#F6EFE1}
:root[data-stile] .btn{transition:transform .12s,box-shadow .15s,background .15s,color .15s}
:root[data-stile] .btn:active{transform:scale(.97)}
/* pastiglie di stato più accese ovunque */
:root[data-stile] .pill.pos{background:#DCFCE7!important;color:#15803D!important}
:root[data-stile] .pill.neg{background:#FEE2E2!important;color:#B91C1C!important;font-weight:700}
:root[data-stile] .pill.warn{background:#FFEDD5!important;color:#C2410C!important}
/* ===== Clienti: schede come gli Operatori ===== */
.cli-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:14px!important}
.cli-card{position:relative;background:#fff!important;border:1px solid #ECE4D3!important;border-radius:18px!important;padding:18px 16px 14px!important;overflow:hidden;transition:transform .15s,box-shadow .15s;animation:v232Su .45s ease-out both;animation-delay:calc(min(var(--i,0),14) * 40ms)}
.cli-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(22,20,15,.12)}
.cli-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--cc,linear-gradient(90deg,#B8902F,#E2C88E))}
.cli-card .cli-av{box-shadow:0 0 0 3px #fff,0 0 0 5px #E2C88E!important}
.cli-card .cli-main b{white-space:normal!important;overflow:visible!important;line-height:1.2;font-size:15.5px}
.cli-card .cli-stats{background:#FBF8F2!important;border:1px solid #F0E8D8;border-radius:12px!important}
.cli-card .cli-stats b{font-size:18px!important}
.cli-card .cli-next{font-size:12.5px;color:#4F4839;font-weight:600}
.cli-card.st-oggi{--cc:linear-gradient(90deg,#2563EB,#93C5FD)}
.cli-card.st-incasso{--cc:linear-gradient(90deg,#EA580C,#FDBA74)}
.cli-card.st-docwarn{--cc:linear-gradient(90deg,#F59E0B,#FCD34D)}
.cli-card.st-scaduto{--cc:linear-gradient(90deg,#DC2626,#F87171);border-color:#FCA5A5!important;animation:v232Su .45s ease-out both,dipRosso 1.6s ease-in-out .6s infinite}
.cli-card.st-scaduto .pill.neg{background:#DC2626!important;color:#fff!important;box-shadow:0 0 10px rgba(220,38,38,.55);animation:pillLuce 1.3s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){:root[data-stile] .kpi-t,.cli-card,.cli-card.st-scaduto,.cli-card .pill.neg{animation:none!important}}
:root[data-stile] .vhead > .row-wrap .btn.ch-btn{background:#FEF2F2!important;color:#B91C1C!important;border-color:#FCA5A5!important}
:root[data-stile] .vhead > .row-wrap .btn.ch-btn:hover{background:#DC2626!important;color:#fff!important}

/* V233 · Operatori: tutta la casella verde se i documenti sono a posto, rossa che lampeggia se manca qualcosa + legende */
.dip-card.doc-ok{background:linear-gradient(180deg,#E7F9EE 0%,#F4FCF7 55%,#fff 100%)!important;border-color:#86EFAC!important}
.dip-card.doc-ok .dip-stats{background:rgba(255,255,255,.75)!important;border-color:#BBF7D0!important}
.dip-card.doc-ok .dip-foot{background:#F0FBF4!important;border-top-color:#C6F0D4!important}
.dip-card.doc-warn{background:linear-gradient(180deg,#FFF3E6 0%,#FFFAF4 55%,#fff 100%)!important;border-color:#FDBA74!important}
.dip-card.doc-ko{border-color:#EF4444!important;animation:dipIn .45s ease-out both,docKo 1.2s ease-in-out .5s infinite!important}
.dip-card.doc-ko .dip-stats{background:rgba(255,255,255,.7)!important;border-color:#FCA5A5!important}
.dip-card.doc-ko .dip-foot{background:transparent!important;border-top-color:#FCA5A5!important}
@keyframes docKo{0%,100%{background:#FEF2F2;box-shadow:0 0 0 0 rgba(239,68,68,0)}50%{background:#FECACA;box-shadow:0 0 0 4px rgba(239,68,68,.25),0 0 24px rgba(239,68,68,.45)}}
.dip-card.doc-ok::before{background:linear-gradient(90deg,#16A34A,#4ADE80)!important}
.dip-card.doc-warn::before{background:linear-gradient(90deg,#EA580C,#FDBA74)!important}
.dip-card.doc-ko::before{background:linear-gradient(90deg,#DC2626,#F87171)!important}
.dip-card.st-nuovo::before{background:linear-gradient(90deg,#7C3AED,#C4B5FD)!important}
.dip-card.st-docko,.dip-card.st-nuovo{animation:dipIn .45s ease-out both}
.dip-card.st-nuovo.doc-ok,.dip-card.st-nuovo.doc-warn{animation:dipIn .45s ease-out both,dipViola 1.6s ease-in-out .6s infinite}
/* legenda */
.leg-col{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;background:#fff;border:1px solid #ECE4D3;border-radius:14px;padding:10px 14px;margin:0 0 14px;font-size:12.5px;color:#4F4839}
.leg-col b{font-family:var(--f-d,Georgia,serif);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#8A6A22;margin-right:4px}
.leg-col span{display:inline-flex;align-items:center;gap:7px}
.leg-col .lc{width:22px;height:14px;border-radius:5px;border:1.5px solid}
.lc-ok{background:#E7F9EE;border-color:#4ADE80!important}.lc-warn{background:#FFF3E6;border-color:#FB923C!important}.lc-ko{background:#FECACA;border-color:#EF4444!important;animation:docKo 1.2s ease-in-out infinite}.lc-nuovo{background:#F3EEFF;border-color:#8B5CF6!important}
.leg-col .lr{width:16px;height:16px;border-radius:50%;border:3px solid}
.lr-on{border-color:#22C55E!important}.lr-ass{border-color:#F59E0B!important}
.leg-col .ls{width:24px;height:6px;border-radius:3px}
.ls-ko{background:#DC2626;animation:pillLuce 1.3s ease-in-out infinite}.ls-inc{background:#EA580C}.ls-doc{background:#F59E0B}.ls-oggi{background:#2563EB}.ls-ok{background:linear-gradient(90deg,#B8902F,#E2C88E)}
@media (prefers-reduced-motion:reduce){.dip-card.doc-ko,.lc-ko,.ls-ko{animation:none!important}.dip-card.doc-ko{background:#FECACA!important}}
/* V234 · «Da coprire» giallo che lampeggia (prima era viola, si confondeva col blu di «Confermato») */
:root .st-scoperto,:root[data-stile] .st-scoperto,:root[data-stile="sigillo"] .st-scoperto{--ev-c:#CA8A04;--ev-bg:#FEF3C7;--sr-c:#CA8A04;--sr-bg:#FEF3C7;--sr-c2:#854D0E}
:root .cal-ev.st-scoperto,:root[data-stile] .cal-ev.st-scoperto{--ev-c:#CA8A04!important;--ev-bg:#FEF3C7!important;border-color:#FCD34D!important;animation:evLuceG 1.1s ease-in-out infinite!important}
.cal-ev.ev2.st-scoperto{--ev-c:#CA8A04!important;background:#FEF3C7!important;border-color:#FACC15!important;border-left-color:#CA8A04!important;animation:evLuceG 1.1s ease-in-out infinite!important}
.cal-ev.ev2.st-scoperto .ev-av{background:#CA8A04!important;color:#fff!important}
.cal-ev.ev2.st-scoperto .ev-ic{background:#CA8A04!important}
.cal-ev.ev2.st-scoperto .ev-k{color:#854D0E!important}
@keyframes evLuceG{0%,100%{box-shadow:0 0 0 0 rgba(234,179,8,0);background-color:#FEF3C7}50%{box-shadow:0 0 0 3px rgba(234,179,8,.45),0 0 16px rgba(234,179,8,.6);background-color:#FDE68A}}
.cal-leg .lg.st-scoperto::before{background:#EAB308!important;box-shadow:0 0 6px rgba(234,179,8,.8);animation:pillLuceG 1.1s ease-in-out infinite}
.cal-week .dh-dots i.st-scoperto{background:#EAB308!important;box-shadow:0 0 6px rgba(234,179,8,.9)}
.cal-m.st-scoperto{animation:evLuceG 1.1s ease-in-out infinite}
:root .sg-box .sg-st.st-scoperto,:root .sg-box .sg-p.st-scoperto{--ev-c:#854D0E;--ev-bg:#FDE68A;animation:pillLuceG 1.1s ease-in-out infinite}
@keyframes pillLuceG{0%,100%{box-shadow:0 0 3px rgba(234,179,8,.4)}50%{box-shadow:0 0 12px rgba(234,179,8,.9)}}
@media (prefers-reduced-motion:reduce){.cal-ev.st-scoperto,.cal-m.st-scoperto,.cal-leg .lg.st-scoperto::before,.sg-box .st-scoperto{animation:none!important}}

/* V235 · Team: riquadri colorati al posto di numeri + menu */
.tq-ban{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;border-radius:16px;margin:4px 0 14px;font-size:14px}
.tq-ban > b{font-size:15px;margin-right:4px}
.tq-ban button{border:0;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;background:#fff;color:inherit;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.tq-ban button:hover{transform:translateY(-1px)}
.tq-ban.ok{background:#DCFCE7;color:#14532D;border:1px solid #86EFAC}
.tq-ban.ok span{color:#166534}
.tq-ban.warn{background:#FFEDD5;color:#7C2D12;border:1px solid #FDBA74}
.tq-ban.ko{background:#FEE2E2;color:#7F1D1D;border:2px solid #EF4444;animation:tqRosso 1.3s ease-in-out infinite}
.tq-ban.ko button{background:#DC2626;color:#fff}
.tq-piu{font-weight:700;color:#9A3412;margin-left:auto}
.team-quadri{background:#fff;border:1px solid #ECE4D3;border-radius:18px;padding:14px 16px 10px;margin-bottom:18px;box-shadow:0 1px 2px rgba(22,20,15,.04)}
.tq-g + .tq-g{margin-top:12px}
.tq-gl{display:block;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#8A6A22;margin:0 0 8px}
.tq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.tq{position:relative;display:flex;align-items:center;gap:10px;text-align:left;font:inherit;color:#16140F;cursor:pointer;border-radius:14px;padding:12px 12px 12px 14px;background:var(--tq-bg);border:1.5px solid var(--tq-bd);border-left:6px solid var(--tq-c);transition:transform .15s,box-shadow .15s}
.tq:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(22,20,15,.12)}
.tq-ic{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:20px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.tq-tx{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.tq-tx b{font-size:14.5px;line-height:1.2}
.tq-tx small{font-size:12px;color:var(--tq-t);font-weight:600;line-height:1.25}
.tq-n{flex:none;min-width:34px;height:34px;padding:0 9px;border-radius:999px;display:grid;place-items:center;font-weight:900;font-size:15px;color:#fff;background:var(--tq-c);font-variant-numeric:tabular-nums}
.tq-n.tq-v{font-size:16px}
.tq-ok{--tq-c:#16A34A;--tq-bg:#F0FDF4;--tq-bd:#BBF7D0;--tq-t:#15803D}
.tq-warn{--tq-c:#EA580C;--tq-bg:#FFF7ED;--tq-bd:#FED7AA;--tq-t:#C2410C}
.tq-ko{--tq-c:#DC2626;--tq-bg:#FEF2F2;--tq-bd:#FCA5A5;--tq-t:#B91C1C}
.tq-info{--tq-c:#64748B;--tq-bg:#F8FAFC;--tq-bd:#E2E8F0;--tq-t:#64748B}
.tq.tq-ko{animation:tqRosso 1.3s ease-in-out infinite}
.tq.tq-ko .tq-n{box-shadow:0 0 12px rgba(220,38,38,.7)}
.tq.on{background:#16140F;border-color:#16140F;color:#F1E3BE;box-shadow:0 0 0 3px rgba(212,178,110,.45),0 10px 24px rgba(22,20,15,.25)}
.tq.on .tq-tx small{color:#E2C88E}
.tq.on .tq-ic{background:#2E271C}
@keyframes tqRosso{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}50%{box-shadow:0 0 0 4px rgba(220,38,38,.35),0 0 18px rgba(220,38,38,.5)}}
.tq-leg{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;padding-top:10px;border-top:1px dashed #EEE6D6;font-size:12px;color:#6F6656}
.tq-leg span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px;background:var(--tq-c)}
.tq-leg .ok{--tq-c:#16A34A}.tq-leg .warn{--tq-c:#EA580C}.tq-leg .ko{--tq-c:#DC2626}.tq-leg .info{--tq-c:#94A3B8}
.tq-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid #ECE4D3}
.tq-head > span:first-child{font-size:24px}
.tq-head h2{margin:0;font-size:22px}
.tq-pill{font-size:12.5px;font-weight:700;border-radius:999px;padding:4px 11px;color:var(--tq-t);background:var(--tq-bg);border:1px solid var(--tq-bd)}
@media (max-width:640px){.tq-grid{grid-template-columns:1fr 1fr;gap:8px}.tq{padding:10px;flex-wrap:wrap}.tq-ic{width:30px;height:30px;font-size:16px}.tq-n{position:absolute;top:8px;right:8px;min-width:26px;height:26px;font-size:13px}.tq-tx small{white-space:normal}}
@media (prefers-reduced-motion:reduce){.tq.tq-ko,.tq-ban.ko{animation:none}}

/* ================= V236 · animazioni in tutto il gestionale ================= */
@keyframes aIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes aSu{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes aLinea{from{width:0}to{width:56px}}
@keyframes aSheet{from{opacity:0;transform:translateY(28px) scale(.97)}to{opacity:1;transform:none}}
@keyframes aFondo{from{opacity:0}to{opacity:1}}
@keyframes aToast{from{opacity:0;transform:translate(-50%,16px) scale(.95)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes aPunto{0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)}100%{box-shadow:0 0 0 9px rgba(22,163,74,0)}}
@keyframes aBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@keyframes aLuccica{from{background-position:-200% 0}to{background-position:200% 0}}
/* entrata della pagina: blocchi e schede arrivano uno dopo l'altro */
#view.v-anim > *{animation:aIn .5s cubic-bezier(.2,.8,.2,1) both}
#view.v-anim > :nth-child(2){animation-delay:.05s}#view.v-anim > :nth-child(3){animation-delay:.1s}#view.v-anim > :nth-child(4){animation-delay:.15s}#view.v-anim > :nth-child(n+5){animation-delay:.2s}
#view.v-anim :is(.list > *, .tq-grid > *, .dash-kpi > *, .cli-list > *, .dip-grid > *, .cal-col, .sg-g, .ssec-day, .side-card, .card, .op-g, .tbl tr, .mez-grid > *, .cal-leg, .tq-ban, .seg, .toolbar){animation:aSu .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(.08s + var(--ai,0) * 40ms)}
#view.v-anim .vhead h1::after{animation:aLinea .7s .15s cubic-bezier(.2,.8,.2,1) both}
/* titolo: riga dorata che luccica */
:root[data-stile] .vhead h1::after{background:linear-gradient(90deg,#B8902F,#F5E3B3,#B8902F)!important;background-size:200% 100%!important;animation:aLuccica 3.5s linear infinite}
/* finestre: salgono morbide con lo sfondo che sfuma */
.sheet-wrap:not([hidden]){animation:aFondo .25s ease-out both}
.sheet-wrap:not([hidden]) > .sheet{animation:aSheet .38s cubic-bezier(.2,.8,.2,1) both}
.toast:not([hidden]){animation:aToast .35s cubic-bezier(.2,.8,.2,1) both}
/* menu laterale: icona che si sposta, voce attiva con barra dorata */
.tabs [data-tab]{transition:background .2s,color .2s,transform .2s}
.tabs [data-tab] svg{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.tabs [data-tab]:hover svg{transform:translateX(3px) scale(1.12)}
.tabs [data-tab][aria-current="page"]{position:relative}
.tabs [data-tab][aria-current="page"] svg{transform:scale(1.12)}
#teamBadge:not([hidden]),.tbadge{animation:aBadge 1.6s ease-in-out infinite}
/* pallino «Operativo» che pulsa */
.hud .dot,.hud-dot,.st-live::before{animation:aPunto 1.8s ease-out infinite;border-radius:50%}
/* righe, pulsanti, schede: piccolo movimento al passaggio */
:root[data-stile] .list > button.row,:root[data-stile] .list > .row{transition:background .18s,transform .18s,box-shadow .18s}
:root[data-stile] .list > button.row:hover{transform:translateX(4px)}
:root[data-stile] .btn:hover{transform:translateY(-1px)}
:root[data-stile] .btn.primary:hover{box-shadow:0 8px 20px rgba(22,20,15,.28)!important}
:root[data-stile] .side-card,:root[data-stile] .card{transition:box-shadow .2s,transform .2s}
:root[data-stile] .side-card:hover{box-shadow:0 1px 2px rgba(22,20,15,.04),0 14px 30px rgba(22,20,15,.08)!important}
:root[data-stile] .pill{transition:transform .15s}
:root[data-stile] button:hover > .pill{transform:scale(1.06)}
:root[data-stile] .seg button,:root[data-stile] .sg-chip{transition:background .2s,color .2s,box-shadow .2s,transform .15s}
:root[data-stile] .seg button:active,:root[data-stile] .sg-chip:active,:root[data-stile] .tq:active{transform:scale(.96)}
/* tendine: il contenuto scende morbido quando le apri */
details[open] > :not(summary){animation:aSu .3s cubic-bezier(.2,.8,.2,1) both}
/* campi: bordo dorato che si accende */
:root[data-stile] input,:root[data-stile] select,:root[data-stile] textarea{transition:border-color .2s,box-shadow .2s}
@media (prefers-reduced-motion:reduce){#view.v-anim *,#view.v-anim > *,.sheet-wrap,.sheet,.toast,#teamBadge,.tbadge,details[open] > *,:root[data-stile] .vhead h1::after{animation:none!important}}

/* V236b · «Operativo» che respira, app operatori animata come il gestionale */
@keyframes aRespiro{0%{text-shadow:0 0 0 rgba(34,197,94,0)}40%{text-shadow:0 0 10px rgba(34,197,94,.85)}100%{text-shadow:0 0 0 rgba(34,197,94,0)}}
.hud-live:not(.off){animation:aRespiro 1s ease-out infinite}
#view.v-anim :is(.dsv, .d-card, .dcard, .riu-card, .bp-card){animation:aSu .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(.08s + var(--ai,0) * 40ms)}
.dtabs [data-dtab],.dtab{transition:transform .2s,background .2s,color .2s}
.dtabs [data-dtab][aria-current="page"] svg,[data-dtab][aria-current="page"] svg{transform:scale(1.15);transition:transform .25s}
@media (prefers-reduced-motion:reduce){.hud-live{animation:none!important}}

/* ================= V237 · Conti: banche in tempo reale e pagina più viva ================= */
.bk-hero{position:relative;overflow:hidden;border-radius:22px;padding:20px 22px 22px;margin:4px 0 18px;color:#F6EBD0;background:radial-gradient(120% 140% at 0% 0%,#3A3226 0%,#16140F 55%,#0E0C09 100%);box-shadow:0 18px 40px rgba(22,20,15,.28);animation:aSu .55s cubic-bezier(.2,.8,.2,1) both}
.bk-hero::before{content:"";position:absolute;inset:-40% -10% auto auto;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(226,200,142,.22),transparent 65%);animation:bkGalleggia 9s ease-in-out infinite;pointer-events:none}
.bk-hero::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#E2C88E,transparent);background-size:200% 100%;animation:aLuccica 3s linear infinite}
.bk-head{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.bk-head h2{margin:4px 0 0;font-family:var(--f-d,Georgia,serif);font-size:24px;color:#fff;letter-spacing:.02em}
.bk-live{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#86EFAC}
.bk-live i{width:9px;height:9px;border-radius:50%;background:#22C55E;animation:aPunto 1.6s ease-out infinite}
.bk-live.off{color:#FCA5A5}.bk-live.off i{background:#EF4444;animation:none}
.bk-tot{text-align:right}
.bk-tot small{display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#CDBF9F}
.bk-tot b{display:block;font-size:40px;line-height:1.05;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;background:linear-gradient(90deg,#F1E3BE,#fff,#E2C88E,#F1E3BE);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:aLuccica 6s linear infinite}
.bk-tot span{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#CDBF9F}
.bk-agg{border:1px solid rgba(226,200,142,.4);background:rgba(255,255,255,.06);color:#F1E3BE;border-radius:50%;width:28px;height:28px;font-size:15px;cursor:pointer;transition:transform .5s,background .2s}
.bk-agg:hover{transform:rotate(180deg);background:rgba(226,200,142,.2)}
.bk-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.bk-card{position:relative;overflow:hidden;border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(4px);transition:transform .2s,box-shadow .2s;animation:aSu .5s cubic-bezier(.2,.8,.2,1) both}
.bk-card:nth-child(2){animation-delay:.08s}
.bk-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(0,0,0,.35)}
.bk-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--bk-c)}
.bk-uc{--bk-c:#E2001A}.bk-ca{--bk-c:#00A19A}
.bk-top{display:flex;align-items:center;gap:9px}
.bk-top b{font-size:15px;color:#fff}
.bk-logo{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-weight:900;font-size:12px;color:#fff;background:var(--bk-c);box-shadow:0 0 14px color-mix(in srgb,var(--bk-c) 60%,transparent)}
.bk-iban{margin-left:auto;font-size:12px;color:#CDBF9F;font-variant-numeric:tabular-nums}
.bk-saldo{margin:10px 0 2px;font-size:30px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.bk-card.neg .bk-saldo{color:#FCA5A5}
.bk-delta{font-size:12.5px;color:#CDBF9F;font-weight:600;min-height:17px}
.bk-delta.su{color:#4ADE80;font-weight:800}.bk-delta.giu{color:#FCA5A5;font-weight:800}
.bk-card.su{animation:aSu .5s both,bkVerde 1.4s ease-in-out .3s 4}
.bk-card.giu{animation:aSu .5s both,bkRosso 1.4s ease-in-out .3s 2}
.bk-card.off{border-style:dashed}
.bk-msg{margin:10px 0;color:#CDBF9F;font-size:13px}
.bk-nota{display:block;margin-top:4px;color:#FCD34D;font-size:11.5px}
.bk-skel{height:34px;width:60%;border-radius:8px;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.18),rgba(255,255,255,.06));background-size:200% 100%;animation:aLuccica 1.2s linear infinite}
.bk-card .btn.sm{margin-top:6px}
@keyframes bkGalleggia{0%,100%{transform:translate(0,0)}50%{transform:translate(-60px,40px)}}
@keyframes bkVerde{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}50%{box-shadow:0 0 0 3px rgba(34,197,94,.55),0 0 26px rgba(34,197,94,.6)}}
@keyframes bkRosso{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}50%{box-shadow:0 0 0 3px rgba(239,68,68,.5),0 0 22px rgba(239,68,68,.5)}}
/* strumenti dei Conti: riquadri ordinati invece di due file di pulsanti */
@media (min-width:900px){
  :root[data-stile] .conti-vh > .row-wrap{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:8px!important}
  :root[data-stile] .conti-vh > .row-wrap .btn{justify-content:flex-start;border-radius:12px!important;min-height:42px;font-weight:600}
  :root[data-stile] .conti-vh > .row-wrap .btn.primary{margin-left:0}
}
/* riquadri numerici e sotto-sezioni */
.conti-kpi .kpi-t{cursor:pointer}
.conti-kpi .kpi-t:hover b{transform:scale(1.04)}
.conti-kpi .kpi-t b{display:inline-block;transition:transform .2s}
:root[data-stile] .conti-seg{position:relative}
:root[data-stile] .conti-seg button[aria-pressed="true"]{animation:bkPremi .35s cubic-bezier(.2,.8,.2,1)}
@keyframes bkPremi{0%{transform:scale(.9)}60%{transform:scale(1.05)}100%{transform:scale(1)}}
/* Guadagni: cifre grandi più vive */
:root[data-stile] .hero .card{position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}
:root[data-stile] .hero .card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(22,20,15,.12)!important}
:root[data-stile] .hero .card::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(212,178,110,.18),transparent 70%);animation:bkGalleggia 10s ease-in-out infinite;pointer-events:none}
:root[data-stile] .hero .big{font-variant-numeric:tabular-nums}
:root[data-stile] .hero .big:not(.neg){color:#15803D}
:root[data-stile] .tiles .tile{transition:transform .18s,box-shadow .18s}
:root[data-stile] .tiles .tile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(22,20,15,.1)}
:root[data-stile] .chart rect,:root[data-stile] .chart path{transition:opacity .2s}
#view.v-anim .chart rect{animation:bkBarra .8s cubic-bezier(.2,.8,.2,1) both;transform-origin:bottom;transform-box:fill-box}
@keyframes bkBarra{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (max-width:640px){.bk-head{align-items:flex-start}.bk-tot{text-align:left}.bk-tot b{font-size:32px}.bk-saldo{font-size:26px}}
@media (prefers-reduced-motion:reduce){.bk-hero,.bk-hero::before,.bk-hero::after,.bk-card,.bk-tot b,.bk-live i,:root[data-stile] .hero .card::after,#view.v-anim .chart rect{animation:none!important}}

/* ================= V238 · tempo reale animato ================= */
/* la scheda appena cambiata (entrata segnata, fattura incassata, cliente modificato…) si illumina d'oro */
.live-lampo{animation:liveLampo 2.4s ease-out!important;position:relative;z-index:1}
@keyframes liveLampo{0%{box-shadow:0 0 0 0 rgba(212,178,110,0);transform:scale(1)}15%{box-shadow:0 0 0 4px rgba(212,178,110,.9),0 0 30px rgba(212,178,110,.8);transform:scale(1.03)}100%{box-shadow:0 0 0 0 rgba(212,178,110,0);transform:scale(1)}}
/* servizi in corso: barra che si riempie man mano che passa il turno */
[data-prog]{position:relative;overflow:hidden}
[data-prog]::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:var(--p,0%);background:linear-gradient(90deg,#B8902F,#F5D27A,#B8902F);background-size:200% 100%;animation:aLuccica 2.2s linear infinite;transition:width 1.2s cubic-bezier(.2,.8,.2,1);border-radius:0 3px 3px 0}
.sg-r.live-corso{background:linear-gradient(90deg,rgba(212,178,110,.10),transparent 60%)}
.live-resta{font-weight:800}
/* collegamento in diretta attivo: «Operativo» con un anello verde */
.hud-live.collegato::after{content:" · LIVE";font-size:10px;font-weight:900;letter-spacing:.14em;color:#16A34A}
@media (prefers-reduced-motion:reduce){.live-lampo,[data-prog]::after{animation:none!important}}

/* ================= V239 · Conti › Guadagni: flusso, barre e classifica animate ================= */
:root[data-stile]{--gq-pos:#16A34A}
@keyframes gqCresci{from{width:0}to{width:var(--w)}}
.gq-flow{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.gq-r{display:grid;grid-template-columns:minmax(150px,1.1fr) 2fr auto;gap:12px;align-items:center}
.gq-l{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;min-width:0}
.gq-l i{font-style:normal;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--gq-bg);flex:none;font-size:14px}
.gq-l small{display:block;font-weight:500;color:#8C8170;font-size:11.5px;margin-left:4px}
.gq-bar{height:12px;border-radius:999px;background:#F3EEE3;overflow:hidden}
.gq-bar > span{display:block;height:100%;width:var(--w);border-radius:999px;background:var(--gq-c);animation:gqCresci 1.1s cubic-bezier(.2,.8,.2,1) both}
.gq-r b{font-variant-numeric:tabular-nums;font-size:15px;white-space:nowrap}
.gq-r.in{--gq-c:linear-gradient(90deg,#16A34A,#4ADE80);--gq-bg:#DCFCE7}
.gq-r.pe{--gq-c:linear-gradient(90deg,#EA580C,#FDBA74);--gq-bg:#FFEDD5}.gq-r.pe b{color:#C2410C}
.gq-r.sp{--gq-c:linear-gradient(90deg,#DC2626,#F87171);--gq-bg:#FEE2E2}.gq-r.sp b{color:#B91C1C}
.gq-r.pe .gq-bar > span{animation-delay:.15s}.gq-r.sp .gq-bar > span{animation-delay:.3s}.gq-r.tot .gq-bar > span{animation-delay:.45s}
.gq-r.tot{padding-top:10px;border-top:2px dashed #E6DCC6;--gq-c:linear-gradient(90deg,#B8902F,#F5D27A,#16A34A);--gq-bg:#FEF3C7}
.gq-r.tot .gq-l{font-size:15.5px;font-weight:800}.gq-r.tot b{font-size:18px;color:#15803D}
.gq-r.tot .gq-bar{height:16px}.gq-r.tot .gq-bar > span{background-size:200% 100%;animation:gqCresci 1.2s .45s cubic-bezier(.2,.8,.2,1) both,aLuccica 3s linear 1.6s infinite}
.gq-r.tot.neg{--gq-c:linear-gradient(90deg,#DC2626,#F87171)}.gq-r.tot.neg b{color:#B91C1C}
.gq-mese{margin:14px 0 4px}
.gq-mh{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#6F6656;font-weight:600;margin-bottom:6px}
.gq-mh b{color:#16140F;font-size:14px}
.gq-d{display:inline-block;width:9px;height:9px;border-radius:3px;vertical-align:0;margin:0 2px}
.gq-d.g{background:#16A34A}.gq-d.p{background:repeating-linear-gradient(45deg,#86EFAC 0 3px,#DCFCE7 3px 6px)}
.gq-mb{display:flex;height:12px;border-radius:999px;background:#F3EEE3;overflow:hidden}
.gq-mb > span{display:block;height:100%;width:var(--w);background:linear-gradient(90deg,#B8902F,#E2C88E);animation:gqCresci 1.1s cubic-bezier(.2,.8,.2,1) both}
.gq-mb.due > span.g{background:linear-gradient(90deg,#16A34A,#4ADE80)}
.gq-mb.due > span.p{background:repeating-linear-gradient(45deg,#86EFAC 0 6px,#DCFCE7 6px 12px);animation-delay:.5s;background-size:200% 100%}
.gq-mb.sm{height:6px;margin-top:8px}
.gq-mb.sm > span{background:var(--gq-c,#16A34A)}
/* riquadri */
:root[data-stile] .tiles .gq-t{position:relative;overflow:hidden;border-radius:16px!important;border:1px solid var(--gq-bd)!important;background:linear-gradient(160deg,var(--gq-bg) 0%,#fff 70%)!important;padding-left:62px!important;text-align:left}
.gq-t::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--gq-c)}
.gq-ic{position:absolute;left:16px;top:16px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-style:normal;font-size:18px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.gq-t:hover .gq-ic{transform:rotate(-8deg) scale(1.12)}
:root[data-stile] .tiles .gq-t > b{color:var(--gq-tx);font-size:24px}
.gq-t.t-ok{--gq-c:#16A34A;--gq-bg:#F0FDF4;--gq-bd:#BBF7D0;--gq-tx:#15803D}
.gq-t.t-warn{--gq-c:#EA580C;--gq-bg:#FFF7ED;--gq-bd:#FED7AA;--gq-tx:#C2410C}
.gq-t.t-ros{--gq-c:#DC2626;--gq-bg:#FEF2F2;--gq-bd:#FECACA;--gq-tx:#B91C1C}
.gq-t.t-blu{--gq-c:#2563EB;--gq-bg:#EFF6FF;--gq-bd:#BFDBFE;--gq-tx:#1D4ED8}
/* classifica clienti */
.gq-cli{display:flex;flex-direction:column;gap:8px}
.gq-c{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:14px;border:1px solid #F0E8D8;background:#FDFBF7;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s;animation:aSu .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms)}
.gq-c:hover{transform:translateX(5px);background:#fff;box-shadow:0 8px 20px rgba(22,20,15,.08)}
.gq-pos{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:15px;background:#F3EEE3;color:#6F6656}
.gq-pos.p1,.gq-pos.p2,.gq-pos.p3{font-size:20px;background:none}
.gq-cn{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.gq-cn b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gq-cn small{color:#8C8170;font-size:12px}
.gq-cn .gq-bar{flex-basis:100%;height:8px;margin-top:4px}
.gq-cn .gq-bar > span{background:linear-gradient(90deg,#B8902F,#F5D27A);animation-delay:calc(.2s + var(--i,0) * 70ms)}
.gq-c:first-child .gq-cn .gq-bar > span{background:linear-gradient(90deg,#16A34A,#4ADE80)}
.gq-cv{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.gq-cv b{font-size:15px;font-variant-numeric:tabular-nums}
@media (max-width:640px){.gq-r{grid-template-columns:1fr auto}.gq-r .gq-bar{grid-column:1/-1;grid-row:2}}
@media (prefers-reduced-motion:reduce){.gq-bar > span,.gq-mb > span,.gq-c{animation:none!important}}
@media (min-width:900px){:root[data-stile] .conti-vh > .row-wrap .btn{white-space:normal!important;line-height:1.2;text-align:left;overflow:hidden}}

/* V241 · «In corso» verde brillante che lampeggia (prima ocra) */
:root .st-corso,:root[data-stile] .st-corso,:root[data-stile="sigillo"] .st-corso{--ev-c:#16A34A;--ev-bg:#DCFCE7;--sr-c:#16A34A;--sr-bg:#DCFCE7;--sr-c2:#166534}
:root .cal-ev.st-corso,:root[data-stile] .cal-ev.st-corso{--ev-c:#16A34A!important;--ev-bg:#DCFCE7!important;border-color:#4ADE80!important;animation:evLuceV 1.2s ease-in-out infinite!important}
.cal-ev.ev2.st-corso{--ev-c:#16A34A!important;background:#ECFDF3!important;border-color:#4ADE80!important;border-left-color:#22C55E!important;animation:evLuceV 1.2s ease-in-out infinite!important}
.cal-ev.ev2.st-corso .ev-ic{background:#22C55E!important;animation:evPallinoV 1.2s ease-out infinite!important}
.cal-ev.ev2.st-corso .ev-av{background:#16A34A!important;color:#fff!important}
.cal-ev.ev2.st-corso .ev-k{color:#15803D!important}
.cal-ev.ev2.st-corso[data-prog]::after{background:linear-gradient(90deg,#16A34A,#86EFAC,#16A34A)!important;background-size:200% 100%!important}
@keyframes evLuceV{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0);background-color:#ECFDF3}50%{box-shadow:0 0 0 3px rgba(34,197,94,.45),0 0 18px rgba(34,197,94,.6);background-color:#BBF7D0}}
@keyframes evPallinoV{0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}100%{box-shadow:0 0 0 9px rgba(34,197,94,0)}}
@keyframes pillLuceV{0%,100%{box-shadow:0 0 3px rgba(34,197,94,.4)}50%{box-shadow:0 0 12px rgba(34,197,94,.9)}}
.cal-leg .lg.st-corso::before{background:#22C55E!important;box-shadow:0 0 6px rgba(34,197,94,.8);animation:pillLuceV 1.2s ease-in-out infinite}
.cal-week .dh-dots i.st-corso{background:#22C55E!important;box-shadow:0 0 6px rgba(34,197,94,.9)}
.cal-m.st-corso{animation:evLuceV 1.2s ease-in-out infinite}
:root .sg-box .sg-st.st-corso,:root .sg-box .sg-p.st-corso{--ev-c:#166534;--ev-bg:#BBF7D0;animation:pillLuceV 1.2s ease-in-out infinite}
.sg-r.live-corso{background:linear-gradient(90deg,rgba(34,197,94,.12),transparent 60%)!important}
:root .ssec-corso .srow,:root .ssec-corso .s-card{border-color:#4ADE80}
/* firme della relazione nella scheda del rapporto */
.rf-firme{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rf-f{border:1px solid #ECE4D3;border-radius:12px;padding:8px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.rf-f img{max-height:70px;max-width:100%;object-fit:contain}
.rf-f.vuota{border-style:dashed;color:#8C8170}.rf-f.vuota span{font-size:22px;line-height:70px}
.rf-f small{font-size:11.5px;color:#6F6656}
@media (prefers-reduced-motion:reduce){.cal-ev.st-corso,.cal-ev.ev2.st-corso,.cal-ev.ev2.st-corso .ev-ic,.cal-leg .lg.st-corso::before,.cal-m.st-corso,.sg-box .sg-st.st-corso,.sg-box .sg-p.st-corso{animation:none!important}}

/* ================= V241 · Conti a quadri + Fatturazione ================= */
.conti-quadri .tq-gl{display:block}
.tq-grid.tq-sm{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.tq-grid.tq-sm .tq{padding:9px 10px 9px 12px;border-left-width:4px}
.tq-grid.tq-sm .tq-ic{width:32px;height:32px;font-size:17px}
.tq-grid.tq-sm .tq-tx b{font-size:13.5px}
.tq-grid.tq-sm .tq-n{min-width:28px;height:28px;font-size:13px}
.tq-ic{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.tq:hover .tq-ic{transform:rotate(-8deg) scale(1.12)}
.tq.on .tq-ic{animation:tqGira .6s cubic-bezier(.2,.8,.2,1)}
@keyframes tqGira{0%{transform:scale(.6) rotate(-20deg)}60%{transform:scale(1.15) rotate(6deg)}100%{transform:none}}
.vhead .sub .lnk{font:inherit;color:#8A6A22;font-weight:700;text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}
/* Fatturazione: quattro numeri grandi */
.fz-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:4px 0 16px}
.fz-k{position:relative;overflow:hidden;border-radius:18px;padding:16px 18px;color:#fff;box-shadow:0 10px 26px rgba(22,20,15,.14);animation:aSu .5s cubic-bezier(.2,.8,.2,1) both;transition:transform .2s}
.fz-k:hover{transform:translateY(-3px)}
.fz-k::after{content:"";position:absolute;right:-40px;top:-40px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.25),transparent 70%);animation:bkGalleggia 8s ease-in-out infinite}
.fz-k small{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.fz-k b{display:block;font-size:30px;font-weight:900;margin:4px 0 2px;font-variant-numeric:tabular-nums}
.fz-k span{font-size:12.5px;opacity:.9}
.fz-k.k1{background:linear-gradient(135deg,#16140F,#3A3226);color:#F1E3BE}
.fz-k.k2{background:linear-gradient(135deg,#15803D,#22C55E);animation-delay:.06s}
.fz-k.k3{background:linear-gradient(135deg,#C2410C,#F97316);animation-delay:.12s}
.fz-k.k4{background:linear-gradient(135deg,#475569,#94A3B8);animation-delay:.18s}
.fz-k.k4.allarme{background:linear-gradient(135deg,#B91C1C,#EF4444);animation:aSu .5s .18s both,tqRosso 1.3s ease-in-out .8s infinite}
.fz-azioni .btn{white-space:nowrap}
@media (prefers-reduced-motion:reduce){.fz-k,.fz-k::after,.tq.on .tq-ic{animation:none!important}}

.fz-body .sumstrip{display:none}

/* ================= V242 · passaggio animato tra le pagine ================= */
#view{view-transition-name:pagina}
.tabs [data-tab][aria-current="page"]{view-transition-name:voce-attiva}
.tq-head{view-transition-name:titolo-sezione}
::view-transition-group(*){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(pagina){animation:vtEsce .28s cubic-bezier(.4,0,1,1) both}
::view-transition-new(pagina){animation:vtEntra .45s cubic-bezier(.2,.8,.2,1) .06s both}
:root[data-vt="indietro"]::view-transition-old(pagina){animation-name:vtEsceDx}
:root[data-vt="indietro"]::view-transition-new(pagina){animation-name:vtEntraSx}
:root[data-vt="sezione"]::view-transition-old(pagina){animation:vtSfuma .2s ease-out both}
:root[data-vt="sezione"]::view-transition-new(pagina){animation:vtSale .35s cubic-bezier(.2,.8,.2,1) both}
::view-transition-old(root),::view-transition-new(root){animation:none}
@keyframes vtEsce{to{opacity:0;transform:translateX(-40px) scale(.985);filter:blur(3px)}}
@keyframes vtEntra{from{opacity:0;transform:translateX(50px) scale(.985);filter:blur(4px)}}
@keyframes vtEsceDx{to{opacity:0;transform:translateX(40px) scale(.985);filter:blur(3px)}}
@keyframes vtEntraSx{from{opacity:0;transform:translateX(-50px) scale(.985);filter:blur(4px)}}
@keyframes vtSfuma{to{opacity:0}}
@keyframes vtSale{from{opacity:0;transform:translateY(14px)}}
/* barra dorata in alto mentre cambia pagina */
:root[data-vt]::after{content:"";position:fixed;left:0;top:0;height:3px;width:100%;z-index:9999;background:linear-gradient(90deg,transparent,#E2C88E,#B8902F,transparent);background-size:200% 100%;animation:aLuccica .6s linear infinite;pointer-events:none}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* ================= V243 · relazioni obbligatorie, schede incomplete ================= */
.rm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.rm-card{background:#fff;border:1px solid #FCA5A5;border-left:5px solid #DC2626;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;animation:aSu .45s both}
.rm-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rm-l{display:flex;flex-direction:column;gap:4px}
.rm-r{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;text-align:left;border:0;background:#FEF2F2;border-radius:8px;padding:6px 9px;font:inherit;font-size:13px;color:inherit;cursor:pointer}
.rm-r small{color:#8C8170;margin-left:auto}
.rel-obbl{border:2px solid #EF4444;background:#FEF2F2;border-radius:16px;padding:12px;margin-bottom:14px;animation:tqRosso 1.4s ease-in-out infinite}
.rel-obbl-h{display:flex;flex-direction:column;gap:2px;margin-bottom:8px;color:#7F1D1D}
.rel-obbl-h b{font-size:16px}.rel-obbl-h small{font-size:12.5px;color:#991B1B}
.rel-obbl-r{display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;border:0;background:#fff;border-radius:12px;padding:10px 12px;margin-top:6px;font:inherit;color:inherit;text-align:left;cursor:pointer}
.rel-obbl-r span:first-child{display:flex;flex-direction:column}.rel-obbl-r small{color:#6F6656;font-size:12px}
.op-incompl{border-color:#FCA5A5!important;background:#FEF2F2!important;animation:pillLuce 1.6s ease-in-out infinite}
.si-l{display:flex;flex-direction:column;gap:8px}
.si-r{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;border:1px solid #ECE4D3;border-radius:12px;padding:10px 12px;background:#fff}
.si-r.fermo{background:#F8FAFC;border-style:dashed}
.si-n{flex:1;min-width:200px;text-align:left;border:0;background:none;font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:0}
.si-n span{display:flex;flex-wrap:wrap;gap:4px}
.si-n i{font-style:normal;font-size:11.5px;font-weight:700;color:#B91C1C;background:#FEE2E2;border-radius:999px;padding:2px 8px}
.si-n small{color:#64748B;font-size:12px}
.si-a{display:flex;gap:6px;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.rel-obbl,.op-incompl{animation:none!important}}

/* V243 · grafico del saldo nel riquadro banche */
.bk-graf{position:relative;margin-top:14px;padding:12px 14px 8px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.bk-gh{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#CDBF9F;margin-bottom:6px}
.bk-gh b{letter-spacing:0;text-transform:none;font-size:14px}.bk-gh b.su{color:#4ADE80}.bk-gh b.giu{color:#FCA5A5}
.bk-graf svg{display:block;width:100%;height:110px;overflow:visible}
.bk-area{fill:url(#bkGr);animation:aFondo 1.2s .4s both}
.bk-linea{fill:none;stroke:#E2C88E;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:bkTraccia 1.6s cubic-bezier(.2,.8,.2,1) .2s forwards}
.bk-zero{stroke:rgba(252,165,165,.5);stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.bk-pt{fill:#22C55E;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke;animation:aFondo .3s 1.7s both,bkPunto 1.6s ease-out 2s infinite;transform-box:fill-box;transform-origin:center}
.bk-gf{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:#A89F8B;margin-top:4px;flex-wrap:wrap}
@keyframes bkTraccia{to{stroke-dashoffset:0}}
@keyframes bkPunto{0%{transform:scale(1)}50%{transform:scale(1.5)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.bk-linea{animation:none;stroke-dashoffset:0}.bk-area,.bk-pt{animation:none}}

/* ================= V244 · Logistica, app operatore ================= */
.lg-tot{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:14px}
.lg-k{background:#fff;border:1px solid #ECE4D3;border-left:5px solid #2563EB;border-radius:14px;padding:12px 14px;animation:aSu .45s both}
.lg-k small{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6F6656}
.lg-k b{font-size:26px;font-weight:900}.lg-k span{display:block;font-size:12px;color:#6F6656}
.lg-k.warn{border-left-color:#EA580C;background:#FFF7ED}.lg-k.warn b{color:#C2410C}
.lg-chips{display:flex;flex-wrap:wrap;gap:6px}
.lg-chip{background:#FBF5E7;border:1px solid #E6DCC6;border-radius:999px;padding:5px 11px;font-size:13px}
.lg-chip b{color:#8A6A22}
.lg-day{background:#fff;border:1px solid #ECE4D3;border-radius:16px;padding:10px 12px;margin-bottom:10px;animation:aSu .45s both}
.lg-day.oggi{border:2px solid #B8902F;box-shadow:0 8px 22px rgba(184,144,47,.15)}
.lg-day h3{display:flex;align-items:baseline;gap:8px;margin:2px 4px 8px;font-size:16px}
.lg-day h3 i{font:700 10px/1 system-ui,sans-serif;letter-spacing:.12em;background:#B8902F;color:#fff;border-radius:6px;padding:3px 6px;font-style:normal}
.lg-day h3 small{margin-left:auto;font-size:12px;color:#8C8170;font-weight:500}
.lg-r{display:grid;grid-template-columns:100px minmax(0,1fr) minmax(0,1.4fr);gap:12px;align-items:center;width:100%;text-align:left;border:0;border-top:1px solid #F3EEE3;background:none;padding:9px 6px;font:inherit;color:inherit;cursor:pointer;transition:background .15s}
.lg-r:hover{background:#FBF5E7}
.lg-o{font-weight:800;font-variant-numeric:tabular-nums}
.lg-n b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lg-n small{color:#6F6656}
.lg-v{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.lg-v i{font-style:normal;font-size:12px;font-weight:600;background:#EFF6FF;color:#1D4ED8;border-radius:999px;padding:3px 9px}
.lg-v i.manca{background:#FFF7ED;color:#C2410C}
@media (max-width:640px){.lg-r{grid-template-columns:70px minmax(0,1fr)}.lg-v{grid-column:1/-1;justify-content:flex-start}}
/* app operatore: servizio in corso verde con barra che avanza */
.shift.in-corso{border-color:#4ADE80!important;box-shadow:0 0 0 2px rgba(34,197,94,.25),0 10px 24px rgba(34,197,94,.15);animation:evLuceV 2s ease-in-out infinite}
.shift{animation:aSu .45s cubic-bezier(.2,.8,.2,1) both}
.shift[data-prog]::after{height:6px;background:linear-gradient(90deg,#16A34A,#86EFAC,#16A34A)!important;background-size:200% 100%!important}
@media (prefers-reduced-motion:reduce){.shift,.shift.in-corso{animation:none!important}}
/* V244 · telefono: riquadri su una colonna, leggibili */
@media (max-width:640px){
  .tq-grid,.tq-grid.tq-sm{grid-template-columns:1fr!important;gap:8px}
  .tq{flex-wrap:nowrap!important;padding:10px 12px!important}
  .tq-n{position:static!important}
  .tq-tx small{white-space:normal}
  .fz-azioni,.vhead > .row-wrap{flex-wrap:wrap!important;overflow:visible!important}
  .fz-k b{font-size:26px}
  .bk-hero{padding:16px 14px}
}
/* V245 · menu laterale con più sezioni: voci più compatte */
@media (min-width:1100px){:root[data-stile="sigillo"] .app > .tabs [data-tab]{padding-top:7px!important;padding-bottom:7px!important;min-height:0!important}}
@media (min-width:1100px){:root[data-theme] .app > .tabs [data-tab]{height:38px!important}}

/* ================= V246 · barra laterale nuova: più nostra ================= */
.tab-brand,.tab-gr,.tab-me{display:none}
@media (min-width:1100px){
  :root[data-stile="sigillo"] .app > .tabs{background:
      radial-gradient(120% 40% at 0% 0%,rgba(212,178,110,.16),transparent 60%),
      radial-gradient(90% 30% at 100% 100%,rgba(212,178,110,.10),transparent 60%),
      linear-gradient(180deg,#14110C 0%,#0B0A08 100%)!important;
    background-size:auto!important;background-position:0 0!important;border-right:0!important;box-shadow:inset -1px 0 0 rgba(212,178,110,.25),6px 0 24px rgba(0,0,0,.18);display:flex!important;flex-direction:column!important;overflow-y:auto}
  :root[data-stile="sigillo"] .app > .tabs::before{content:none!important;display:none!important}
  :root[data-stile="sigillo"] .app > .tabs::after{content:"";position:absolute;right:0;top:0;bottom:0;width:2px;background:linear-gradient(180deg,transparent,#D4B26E 30%,#8A6A22 70%,transparent);background-size:100% 200%;animation:sbOro 6s ease-in-out infinite;pointer-events:none}
  @keyframes sbOro{0%,100%{background-position:0 0}50%{background-position:0 100%}}
  .tab-brand{display:flex;align-items:center;gap:12px;padding:6px 10px 18px;margin:0 0 6px;border-bottom:1px solid rgba(212,178,110,.22)}
  .tab-brand img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(212,178,110,.35));animation:sbRespira 5s ease-in-out infinite}
  .tab-brand b{display:block;font-family:var(--f-d,Georgia,serif);font-size:16px;letter-spacing:.06em;color:#F1E3BE;line-height:1.1}
  .tab-brand small{display:block;font-family:var(--f-d,Georgia,serif);font-size:12px;letter-spacing:.14em;color:#B8902F;text-transform:uppercase}
  @keyframes sbRespira{0%,100%{filter:drop-shadow(0 0 6px rgba(212,178,110,.25))}50%{filter:drop-shadow(0 0 16px rgba(212,178,110,.55))}}
  .tab-gr{display:block;font-size:10.5px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#7A6A4C;padding:14px 12px 4px}
  .tab-me{display:flex;align-items:center;gap:10px;margin-top:auto;padding:12px 10px 4px;border-top:1px solid rgba(212,178,110,.18)}
  .tm-av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;color:#16140F;background:linear-gradient(135deg,#F1E3BE,#B8902F);flex:none}
  .tm-t{min-width:0;flex:1}.tm-t b{display:block;color:#F1EADB;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tm-t small{color:#9C8E72;font-size:11.5px}
  .tm-set{border:0;background:rgba(255,255,255,.06);color:#D4B26E;width:30px;height:30px;border-radius:50%;cursor:pointer;transition:transform .5s,background .2s}
  .tm-set:hover{transform:rotate(90deg);background:rgba(212,178,110,.18)}
  :root[data-stile="sigillo"] .app > .tabs button[aria-current="page"]{background:linear-gradient(90deg,rgba(212,178,110,.28),rgba(212,178,110,.04))!important;box-shadow:inset 0 0 0 1px rgba(212,178,110,.25)}
  :root[data-stile="sigillo"] .app > .tabs [data-tab] svg{transition:transform .25s,color .2s}
  :root[data-stile="sigillo"] .app > .tabs [data-tab][aria-current="page"] svg{color:#E2C88E}
}
@media (prefers-reduced-motion:reduce){.tab-brand img,:root[data-stile="sigillo"] .app > .tabs::after{animation:none!important}}

/* ================= V247 · Spese e scadenze: elenco a gruppi ================= */
.sp-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:10px 0 14px}
.sp-k{position:relative;overflow:hidden;border-radius:16px;padding:14px 16px;background:#fff;border:1px solid #ECE4D3;border-top:4px solid var(--c);animation:aSu .45s both}
.sp-k small{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6F6656}
.sp-k b{display:block;font-size:26px;font-weight:900;color:var(--c);margin:3px 0;font-variant-numeric:tabular-nums}
.sp-k span{font-size:12.5px;color:#6F6656}
.sp-k.k1{--c:#16140F}.sp-k.k2{--c:#15803D;animation-delay:.05s}.sp-k.k3{--c:#C2410C;animation-delay:.1s}.sp-k.k4{--c:#64748B;animation-delay:.15s}
.sp-k.k4.allarme{--c:#DC2626;background:#FEF2F2;border-color:#FCA5A5;animation:aSu .45s .15s both,tqRosso 1.4s ease-in-out .8s infinite}
.sp-bar{display:block;height:8px;border-radius:999px;background:#F3EEE3;overflow:hidden;margin-top:6px}
.sp-bar i{display:block;height:100%;width:var(--w);background:linear-gradient(90deg,#16A34A,#4ADE80);border-radius:999px;animation:gqCresci 1.1s cubic-bezier(.2,.8,.2,1) both}
.sp-g{background:#fff;border:1px solid #ECE4D3;border-radius:18px;margin-bottom:12px;overflow:hidden;border-left:6px solid var(--gc)}
.sp-g-ko{--gc:#DC2626}.sp-g-warn{--gc:#EA580C}.sp-g-info{--gc:#2563EB}.sp-g-ok{--gc:#16A34A}.sp-g-in{--gc:#B8902F}
.sp-g summary{list-style:none;display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer;background:linear-gradient(90deg,color-mix(in srgb,var(--gc) 9%,#fff),#fff 70%)}
.sp-g summary::-webkit-details-marker{display:none}
.sp-gl{font-weight:800;font-size:15.5px}
.sp-gn{font-size:12.5px;color:#6F6656;background:#F3EEE3;border-radius:999px;padding:2px 9px}
.sp-gt{margin-left:auto;font-size:17px;color:var(--gc);font-variant-numeric:tabular-nums}
.sp-fr{color:#8A6A22;transition:transform .2s;font-size:18px}.sp-g[open] .sp-fr{transform:rotate(90deg)}
.sp-g-ko summary .sp-gl{color:#B91C1C}.sp-g-ko{animation:tqRosso 2.4s ease-in-out infinite}
.sp-L{border-top:1px solid #F3EEE3}
.sp-r{display:flex;align-items:center;gap:8px;border-bottom:1px solid #F6F1E7;padding-right:12px;animation:aSu .4s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 35ms)}
.sp-r:last-child{border-bottom:0}
.sp-main{flex:1;min-width:0;display:grid;grid-template-columns:52px 40px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;border:0;background:none;padding:10px 6px 10px 14px;font:inherit;color:inherit;cursor:pointer;transition:background .15s,transform .15s}
.sp-main:hover{background:#FBF8F2;transform:translateX(3px)}
.sp-data{display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:color-mix(in srgb,var(--gc) 10%,#fff);border:1px solid color-mix(in srgb,var(--gc) 30%,#fff)}
.sp-data b{font-size:18px;line-height:1;color:var(--gc)}.sp-data small{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:#6F6656}
.sp-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:19px;background:#F8F5EE}
.sp-tx{min-width:0}.sp-tx b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-tx small{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:3px;font-size:12px;color:#6F6656}
.sp-tx small i{font-style:normal;background:#F3EEE3;border-radius:999px;padding:1px 8px}
.sp-tx small em{font-style:normal;font-weight:600}
.sp-ko .sp-tx small em:first-of-type{color:#B91C1C}.sp-warn .sp-tx small em:first-of-type{color:#C2410C}.sp-ok .sp-tx small em:first-of-type{color:#15803D}
.sp-imp{font-size:16.5px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.sp-ko .sp-imp{color:#B91C1C}.sp-ok .sp-imp{color:#15803D}.sp-in .sp-imp{color:#8A6A22}
.sp-ok .sp-main{opacity:.85}
.sp-paga{flex:none;border:1px solid #BBF7D0;background:#F0FDF4;color:#15803D;font:inherit;font-size:12.5px;font-weight:700;border-radius:999px;padding:6px 12px;cursor:pointer;transition:background .15s,transform .15s}
.sp-paga:hover{background:#16A34A;color:#fff;transform:scale(1.05)}
@media (max-width:640px){.sp-main{grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding-left:10px}.sp-ic{display:none}.sp-data{width:42px;height:42px}.sp-r{flex-wrap:wrap;padding:0 10px 8px 0}.sp-paga{margin-left:62px}}
@media (prefers-reduced-motion:reduce){.sp-r,.sp-k,.sp-g-ko,.sp-bar i{animation:none!important}}
/* menu su schermi medi: le icone non spariscono più */
.app > .tabs button svg{flex:none}

/* V248 · elenchi a gruppi anche in Fatturazione, Commerciale e Archivio */
.sp-az{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.sp-paga.sp-crea{background:#16140F;color:#F1E3BE;border-color:#16140F}
.sp-paga.sp-crea:hover{background:#3A3226;color:#fff}
.sp-paga.sp-gia{background:#fff;color:#4F4839;border-color:#E6DCC6}
.sp-paga.sp-gia:hover{background:#F3EEE3;color:#16140F}
.sp-tx small em.sp-iva{color:#8C8170;font-weight:500}
.sp-tx small em .pill{font-size:11px;padding:1px 7px}
@media (max-width:640px){.sp-az{width:100%;padding-left:62px;justify-content:flex-start}}

/* ================= V249 · menu: gruppi richiudibili, pallini, cerca, impostazioni ================= */
.tab-cerca,.tab-set{display:none}
.nav-dot{position:absolute;right:10px;top:50%;transform:translateY(-50%);min-width:20px;height:20px;padding:0 6px;border-radius:999px;font-style:normal;font-size:11px;font-weight:800;display:grid;place-items:center;color:#fff;line-height:1}
.nav-dot.ko{background:#DC2626;box-shadow:0 0 10px rgba(220,38,38,.7);animation:aBadge 1.6s ease-in-out infinite}
.nav-dot.warn{background:#EA580C}
.nav-dot.info{background:#2563EB}
@media (max-width:1099px){.nav-dot{right:auto;left:55%;top:2px;transform:none;min-width:16px;height:16px;font-size:10px;padding:0 4px}}
@media (min-width:1100px){
  .tab-gr{display:flex!important;align-items:center;justify-content:space-between;width:100%;border:0;background:none;cursor:pointer;font:inherit;font-size:10.5px!important;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#7A6A4C!important;padding:14px 12px 4px!important;height:auto!important}
  .tab-gr:hover{color:#D4B26E!important}
  .tab-gr i{font-style:normal;transition:transform .25s;font-size:12px}
  .tab-gr.chiuso i{transform:rotate(-90deg)}
  .app > .tabs [data-gr].gr-nasc{display:none!important}
  .tab-cerca{display:flex;align-items:center;gap:8px;width:100%;margin:2px 0 6px;padding:9px 12px;border-radius:10px;border:1px solid rgba(212,178,110,.22);background:rgba(255,255,255,.04);color:#9C8E72;font:inherit;font-size:13px;cursor:pointer;transition:border-color .2s,background .2s}
  .tab-cerca:hover{border-color:rgba(212,178,110,.5);background:rgba(255,255,255,.07);color:#F1E3BE}
  .tab-cerca span{flex:1;text-align:left}
  .tab-cerca kbd{font:10.5px/1 system-ui,sans-serif;border:1px solid rgba(212,178,110,.3);border-radius:5px;padding:3px 5px;color:#B8902F}
  .tab-set{display:flex;align-items:center;gap:12px;width:100%;height:38px;padding:0 12px;border:0;border-radius:10px;background:none;color:#BDB4A3;font:inherit;font-size:14px;cursor:pointer}
  .tab-set svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none;transition:transform .6s}
  .tab-set:hover{background:rgba(226,200,142,.07);color:#F1EADB}.tab-set:hover svg{transform:rotate(90deg)}
}
@media (max-width:1099px){.app > .tabs .tab-gr,.app > .tabs .tab-cerca,.app > .tabs .tab-set,.app > .tabs .tab-brand,.app > .tabs .tab-me{display:none!important}}
.app > .tabs .nav-dot{position:static!important;transform:none!important;margin-left:auto;flex:none}
@media (max-width:1099px){.app > .tabs .nav-dot{position:absolute!important;top:2px!important;left:56%!important;margin:0}}

/* V250 · preventivo da foto */
.pv-foto-btn{background:linear-gradient(135deg,#1D4ED8,#3B82F6)!important;color:#fff!important;border-color:#1D4ED8!important;cursor:pointer}
.pvf-ov{position:fixed;inset:0;z-index:9998;background:rgba(14,12,9,.55);backdrop-filter:blur(4px);display:grid;place-items:center;animation:aFondo .25s both}
.pvf-box{background:#fff;border-radius:22px;padding:26px 30px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 30px 60px rgba(0,0,0,.3);animation:aSheet .35s both}
.pvf-box b{font-size:17px}.pvf-box small{color:#6F6656}
.pvf-scan{position:relative;width:110px;height:140px;border-radius:10px;border:2px solid #E6DCC6;background:repeating-linear-gradient(180deg,#FBF8F2 0 14px,#F1EADB 14px 16px);overflow:hidden;margin-bottom:8px}
.pvf-scan i{position:absolute;left:0;right:0;height:22px;background:linear-gradient(180deg,transparent,rgba(212,178,110,.75),transparent);animation:pvfScan 1.4s ease-in-out infinite}
@keyframes pvfScan{0%{top:-22px}100%{top:140px}}

/* ================= V251 · icone più belle e animate (menu e riquadri) ================= */
@keyframes icoEntra{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes icoDondola{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg) scale(1.1)}60%{transform:rotate(9deg) scale(1.1)}}
@keyframes icoBrilla{0%,100%{box-shadow:0 0 0 0 rgba(226,200,142,.0),0 4px 12px rgba(184,144,47,.35)}50%{box-shadow:0 0 0 4px rgba(226,200,142,.18),0 4px 18px rgba(184,144,47,.6)}}
@keyframes icoSale{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes icoTrema{0%,100%{transform:rotate(0)}20%{transform:rotate(-8deg)}40%{transform:rotate(8deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(5deg)}}
@media (min-width:1100px){
  :root[data-stile="sigillo"] .app > .tabs [data-tab],:root[data-stile="sigillo"] .app > .tabs .tab-set{animation:icoEntra .45s cubic-bezier(.2,.8,.2,1) both}
  :root[data-stile="sigillo"] .app > .tabs [data-tab]:nth-of-type(2n){animation-delay:.04s}:root[data-stile="sigillo"] .app > .tabs [data-tab]:nth-of-type(3n){animation-delay:.08s}
  :root[data-stile="sigillo"] .app > .tabs [data-tab] svg,:root[data-stile="sigillo"] .app > .tabs .tab-set svg{width:30px!important;height:30px!important;padding:6px;box-sizing:border-box;border-radius:9px;background:rgba(255,255,255,.045);border:1px solid rgba(212,178,110,.16);stroke-width:1.8!important;transition:transform .35s cubic-bezier(.2,.8,.2,1),background .25s,border-color .25s,box-shadow .25s,color .25s}
  :root[data-stile="sigillo"] .app > .tabs [data-tab]:hover svg,:root[data-stile="sigillo"] .app > .tabs .tab-set:hover svg{background:rgba(212,178,110,.16);border-color:rgba(212,178,110,.45);color:#F1E3BE;animation:icoDondola .6s ease-in-out}
  :root[data-stile="sigillo"] .app > .tabs [data-tab][aria-current="page"] svg{background:linear-gradient(135deg,#F5E3B3,#B8902F)!important;border-color:transparent!important;color:#16140F!important;stroke:#16140F!important;animation:icoBrilla 2.4s ease-in-out infinite!important;transform:scale(1.06)}
  :root[data-stile="sigillo"] .app > .tabs [data-tab]{gap:12px!important;transition:background .2s,color .2s,padding-left .25s}
  :root[data-stile="sigillo"] .app > .tabs [data-tab]:hover{padding-left:16px!important}
  :root[data-stile="sigillo"] .app > .tabs [data-tab][aria-current="page"]::before{left:-14px!important}
}
/* riquadri: icona in una pastiglia colorata, che si muove */
.tq-ic{position:relative;background:linear-gradient(145deg,#fff,var(--tq-bg,#F8F5EE))!important;border:1px solid var(--tq-bd,#ECE4D3);box-shadow:0 3px 10px rgba(22,20,15,.08),inset 0 1px 0 #fff!important;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .25s!important}
.tq-ic::after{content:"";position:absolute;inset:-3px;border-radius:14px;border:2px solid var(--tq-c,#B8902F);opacity:0;transform:scale(.8);transition:opacity .25s,transform .3s}
.tq:hover .tq-ic{transform:translateY(-3px) rotate(-8deg) scale(1.15)!important;box-shadow:0 10px 20px rgba(22,20,15,.16)!important}
.tq:hover .tq-ic::after{opacity:.35;transform:scale(1)}
.tq.tq-ko .tq-ic{animation:icoTrema 1.8s ease-in-out infinite}
.tq.tq-warn .tq-ic{animation:icoSale 2.2s ease-in-out infinite}
.tq.on .tq-ic{background:linear-gradient(135deg,#F5E3B3,#B8902F)!important;border-color:transparent;animation:icoBrilla 2.4s ease-in-out infinite!important}
.tq-n{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.tq:hover .tq-n{transform:scale(1.15)}
.tq-n.tq-v{animation:icoSale 2.6s ease-in-out infinite}
/* icone delle righe (spese, fatture…) e delle intestazioni di sezione */
.sp-ic{transition:transform .35s cubic-bezier(.2,.8,.2,1),background .2s}
.sp-main:hover .sp-ic{transform:rotate(-10deg) scale(1.15);background:#FBF0D3}
.tq-head > span:first-child{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#fff,#F6EDD8);border:1px solid #E6DCC6;box-shadow:0 4px 12px rgba(22,20,15,.08);animation:icoSale 3s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.tq-ic,.tq-n,.tq-head > span:first-child,:root[data-stile="sigillo"] .app > .tabs [data-tab],:root[data-stile="sigillo"] .app > .tabs svg{animation:none!important}}

/* V251 · archivio */
.sp-g-arch{--gc:#94A3B8;opacity:.9}
.sp-arch .sp-imp{color:#64748B}.sp-arch .sp-main{opacity:.75}
.st-arch{--ev-c:#94A3B8;--ev-bg:#F1F5F9;--sr-c:#64748B;--sr-bg:#F1F5F9;--sr-c2:#475569}
.cal-ev.ev2.st-arch{--ev-c:#94A3B8!important;background:#F8FAFC!important;opacity:.75;animation:none!important}
.cal-week .dh-dots i.st-arch{background:#CBD5E1!important}

/* ================= V252 · oggi in breve, margine, app operatore ================= */
.oib{background:linear-gradient(135deg,#16140F,#2E271C);color:#F1E3BE;border-radius:20px;padding:16px 18px;margin:4px 0 16px;box-shadow:0 14px 34px rgba(22,20,15,.22);position:relative;overflow:hidden;animation:aSu .5s both}
.oib::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(226,200,142,.25),transparent 70%);animation:bkGalleggia 9s ease-in-out infinite;pointer-events:none}
.oib-h{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.oib-sole{font-size:30px;animation:icoSale 3s ease-in-out infinite}
.oib-h b{display:block;font-family:var(--f-d,Georgia,serif);font-size:20px;color:#fff}.oib-h small{color:#CDBF9F}
.oib-g{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.oib-r{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid rgba(255,255,255,.08);border-left:4px solid var(--tq-c);background:rgba(255,255,255,.05);border-radius:12px;padding:9px 10px;font:inherit;color:inherit;cursor:pointer;transition:background .2s,transform .2s;animation:aSu .4s both;animation-delay:calc(var(--i) * 50ms)}
.oib-r:hover{background:rgba(255,255,255,.1);transform:translateY(-2px)}
.oib-ic{font-size:20px;flex:none}
.oib-t{flex:1;min-width:0}.oib-t b{display:block;font-size:13px;color:#F6EBD0}.oib-t small{display:block;font-size:11.5px;color:#A89F8B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oib-n{flex:none;min-width:30px;height:30px;padding:0 8px;border-radius:999px;display:grid;place-items:center;font-weight:900;color:#fff;background:var(--tq-c)}
.oib-r.tq-ko .oib-n{animation:aBadge 1.4s ease-in-out infinite;box-shadow:0 0 12px rgba(220,38,38,.7)}
.ev-m{flex:none;font-size:10.5px;font-weight:800;color:#15803D;background:#DCFCE7;border-radius:999px;padding:1px 6px;margin-right:4px}
.ev-m.neg{color:#B91C1C;background:#FEE2E2}
/* app operatore: schede più curate */
.shift{border-radius:18px!important;border:1px solid #ECE4D3!important;background:#fff!important;box-shadow:0 2px 6px rgba(22,20,15,.05),0 10px 24px rgba(22,20,15,.05)!important;transition:transform .2s,box-shadow .2s}
.shift:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(22,20,15,.1)!important}
.shift.oggi{border:2px solid #B8902F!important;background:linear-gradient(180deg,#FFF9EC,#fff)!important}
.shift .shift-top b{font-size:18px}
.vhead.hello h1{background:linear-gradient(90deg,#16140F,#8A6A22);-webkit-background-clip:text;background-clip:text;color:transparent}
.sos-btn{animation:aSu .4s both}
@media (prefers-reduced-motion:reduce){.oib,.oib::after,.oib-sole,.oib-r{animation:none!important}}

/* ================= V253 · app operatore: percorsi e meteo del servizio ================= */
.dc-vai{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:10px 0 8px}
.dc-v{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-decoration:none;color:#16140F;border-radius:14px;padding:10px 12px;border:1px solid #E6DCC6;background:#fff;transition:transform .15s,box-shadow .15s}
.dc-v:hover,.dc-v:active{transform:translateY(-2px);box-shadow:0 8px 18px rgba(22,20,15,.1)}
.dc-v span{font-size:22px}.dc-v b{font-size:14px}.dc-v small{font-size:11.5px;color:#6F6656}
.dc-v.auto{background:linear-gradient(135deg,#EFF6FF,#fff);border-color:#BFDBFE}.dc-v.mezzi{background:linear-gradient(135deg,#F0FDF4,#fff);border-color:#BBF7D0}
.dc-meteo{display:flex;align-items:center;gap:10px;border-radius:14px;padding:9px 12px;margin:0 0 8px;background:#F8FAFC;border:1px solid #E2E8F0;animation:aSu .4s both}
.dc-meteo.ok{background:#F0F9FF;border-color:#BAE6FD}.dc-meteo.attento{background:#FFF7ED;border-color:#FED7AA}.dc-meteo.grave{background:#FEF2F2;border-color:#FCA5A5;animation:tqRosso 1.6s ease-in-out infinite}
.dcm-ic{font-size:28px;animation:icoSale 3s ease-in-out infinite}.dcm-t b{display:block;font-size:13.5px}.dcm-t small{font-size:12px;color:#4F4839}
.dcm-load{font-size:12.5px;color:#6F6656}

/* V254 · anteprima app operatore */
.ant-ban{position:sticky;top:0;z-index:50;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(90deg,#1D4ED8,#3B82F6);color:#fff;border-radius:14px;padding:10px 12px;margin:0 0 12px;box-shadow:0 8px 20px rgba(29,78,216,.3);animation:aSu .4s both}
.ant-ban b{color:#fff}.ant-a{display:flex;gap:6px;flex-wrap:wrap}
.ant-ban .btn{background:rgba(255,255,255,.15)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important}
.ant-ban .btn.primary{background:#fff!important;color:#1D4ED8!important}
.ant-ban.mod{background:linear-gradient(90deg,#B45309,#F59E0B);box-shadow:0 8px 20px rgba(180,83,9,.35)}
.ant-ban.mod .btn.primary{color:#B45309!important}

/* ================= V256 · controllo ore, chi paga tardi, arrivo automatico, scambio turni ================= */
.or-r .grow,.pg-r .grow{display:flex;flex-direction:column;gap:5px;min-width:0}
.or-r .or-n{font-size:15px;white-space:nowrap;align-self:center}
.or-bar,.pg-bar{position:relative;display:block;height:8px;border-radius:99px;background:rgba(22,20,15,.07);overflow:visible;max-width:520px}
.or-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.or-bar i.pp{background:rgba(184,144,47,.28)}.or-bar i.pf{background:linear-gradient(90deg,#B8902F,#D9B45A)}
.or-bar em,.pg-bar em{position:absolute;top:-3px;bottom:-3px;width:2px;background:#16140F;border-radius:2px}
.pg-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:#16a34a;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.pg-bar i.warn{background:#d97706}.pg-bar i.neg{background:#dc2626}
.or-chips{display:flex;flex-wrap:wrap;gap:5px}
.or-c{font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:99px;background:rgba(22,20,15,.06);color:#3b372e;white-space:nowrap}
.or-c.ok{background:rgba(22,163,74,.12);color:#15803d}.or-c.warn{background:rgba(217,119,6,.14);color:#b45309}.or-c.ko{background:rgba(220,38,38,.12);color:#b91c1c}
.or-leg{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#6b6457;margin:0 0 10px}
.or-leg span{display:inline-flex;align-items:center;gap:6px}.or-leg i{display:inline-block;width:18px;height:8px;border-radius:99px}
.or-leg i.pf{background:linear-gradient(90deg,#B8902F,#D9B45A)}.or-leg i.pp{background:rgba(184,144,47,.28)}.or-leg em{display:inline-block;width:2px;height:12px;background:#16140F}
.or-sett{display:flex;gap:8px;align-items:flex-end;margin:0 0 14px}
.or-sett>div{flex:1;position:relative;height:110px;border-radius:10px;background:rgba(22,20,15,.04);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-top:6px;overflow:hidden}
.or-sett>div i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(0deg,#B8902F,#E8CF8E);opacity:.55;animation:orSale .8s cubic-bezier(.2,.8,.2,1) both}
.or-sett>div.warn i{background:linear-gradient(0deg,#d97706,#fbbf24)}.or-sett>div.ko i{background:linear-gradient(0deg,#dc2626,#f87171)}
.or-sett small,.or-sett b{position:relative;z-index:1}.or-sett small{font-size:11px;color:#6b6457}
@keyframes orSale{from{height:0}}
.pg-r{align-items:center;gap:10px}
.pg-r .pg-n{background:none;border:0;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.pg-r .pg-n b .pill{margin-left:6px;vertical-align:1px}
.arr-ban{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;margin:0 0 14px;background:#fff;border:1px solid rgba(22,20,15,.1);box-shadow:0 6px 18px rgba(22,20,15,.06)}
.arr-ban .grow{display:flex;flex-direction:column;gap:2px;min-width:0}.arr-ban small{color:#6b6457}
.arr-ban .arr-ic{font-size:26px;line-height:1}
.arr-ban .arr-ic.pulse{animation:arrPuls 1.6s ease-in-out infinite}
.arr-ban.ok{background:linear-gradient(135deg,#ecfdf3,#d1fadf);border-color:#86efac;animation:arrOk 1.8s ease-in-out infinite}
.arr-ban.ko{background:#fef2f2;border-color:#fca5a5}
@keyframes arrPuls{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.6}}
@keyframes arrOk{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.35)}50%{box-shadow:0 0 0 8px rgba(22,163,74,0)}}
@media (max-width:560px){.arr-ban{flex-wrap:wrap}.arr-ban .btn{width:100%}}
.sc-box{margin-top:10px;padding:12px;border-radius:12px;background:rgba(184,144,47,.08);border:1px solid rgba(184,144,47,.3)}
.sc-box p{margin:6px 0 0}.sc-box .btn{margin-top:10px}
@media (prefers-reduced-motion:reduce){.arr-ban,.arr-ic,.or-sett i{animation:none!important}}

/* ================= V257 · note del servizio e «Dove sono» ================= */
.nota-btn{background:linear-gradient(135deg,#fff8e6,#fdeec4)!important;border-color:#e8cf8e!important}
.pos-live-nota{font-size:12px;color:#15803d;background:rgba(22,163,74,.08);border-radius:8px;padding:6px 9px}
.nt-form{display:flex;flex-direction:column;gap:8px}
.nt-form textarea{width:100%;font:inherit;padding:10px;border-radius:12px;border:1px solid rgba(22,20,15,.15);resize:vertical}
.nt-foto{align-self:flex-start}
.nt-wa{background:#25D366!important;color:#fff!important;border-color:#25D366!important}
.nt-ora{font-weight:700;font-size:12.5px;color:#8a6d1f;background:rgba(184,144,47,.12);border-radius:8px;padding:3px 7px;white-space:nowrap}
.nt-uff{margin-top:10px;padding:12px;border-radius:12px;background:rgba(184,144,47,.07);border:1px solid rgba(184,144,47,.25)}
.nt-u{display:flex;gap:10px;align-items:flex-start;margin-top:10px}.nt-u p{margin:0;white-space:pre-wrap}
.dove-map{height:320px;border-radius:14px;overflow:hidden;margin:0 0 12px;border:1px solid rgba(22,20,15,.1)}

/* ================= V258 · consegne e schermo acceso ================= */
.cons-box{margin-top:10px}
.cons{border:1px solid #fcd34d;background:#fffbeb;border-radius:12px;padding:10px 12px}
.cons summary{cursor:pointer;display:flex;flex-direction:column;gap:2px;list-style:none}.cons summary::-webkit-details-marker{display:none}
.cons summary small{color:#92400e;font-size:12px}
.cons-r{display:flex;gap:9px;align-items:flex-start;margin-top:9px}.cons-r p{margin:0;white-space:pre-wrap}.cons-r small{color:#6b6457;font-size:12px}
.wl-btn{width:100%}

/* ================= V259 · Sei sveglio? ================= */
.sv-ov{position:fixed;inset:0;z-index:9999;background:rgba(127,29,29,.92);display:flex;align-items:center;justify-content:center;padding:20px;animation:svLampo 1s ease-in-out infinite alternate}
.sv-box{background:#fff;border-radius:22px;padding:26px 22px;max-width:420px;width:100%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.sv-box h2{margin:6px 0 8px;font-size:28px}.sv-box p{margin:0 0 18px;color:#3b372e}
.sv-ic{font-size:56px;line-height:1}
.sv-box .btn{width:100%;font-size:18px;padding:18px}
@keyframes svLampo{from{background:rgba(127,29,29,.92)}to{background:rgba(220,38,38,.92)}}
@media (prefers-reduced-motion:reduce){.sv-ov{animation:none}}

/* V266 */
.percorso-btn{margin-top:10px;width:100%}

/* ================= V267 · presenze, compiti, ronde ================= */
.comp-r{align-items:flex-start;gap:12px}.comp-r .grow{display:flex;flex-direction:column;gap:3px}
.comp-ck{width:28px;height:28px;flex:0 0 28px;border-radius:8px;border:2px solid #B8902F;background:#fff;color:#fff;font-weight:800;cursor:pointer}
.comp-r.fatto .comp-ck{background:#16a34a;border-color:#16a34a}.comp-r.fatto b{text-decoration:line-through;opacity:.6}
.comp-r .neg{color:#b91c1c;font-weight:700}.comp-r .warn{color:#b45309;font-weight:700}
.pres-d summary{list-style:none;cursor:pointer}.pres-d summary::-webkit-details-marker{display:none}.pres-d table{margin:4px 0 12px}
.ronda-btn{background:linear-gradient(135deg,#eef2ff,#dbeafe)!important;border-color:#93c5fd!important}
.ronda-giro{margin-top:8px;padding:10px 12px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe}
.ronda-p{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.ronda-p span{font-size:12px;padding:3px 8px;border-radius:99px;background:#fff;border:1px solid #cbd5e1}.ronda-p span.ok{background:#dcfce7;border-color:#86efac;color:#166534}

/* V267b · mappa con perimetro nelle schede */
.mb-box{margin-top:12px;padding:12px;border-radius:14px;border:1px solid rgba(184,144,47,.35);background:rgba(184,144,47,.05)}
.mb-h{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.mb-map{height:300px;border-radius:12px;overflow:hidden;border:1px solid rgba(22,20,15,.12);background:#eee}
.mb-r{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}.mb-r input[type=range]{flex:1;min-width:140px;accent-color:#B8902F}.mb-r input[type=number]{width:84px}
.fgrid > .mb-box{grid-column:1/-1}

/* ================= V267c · checklist, centrale, pagella ================= */
.ck-l{display:flex;flex-direction:column;gap:8px}.ck-r{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid rgba(22,20,15,.12);border-radius:12px;background:#fff;font-size:15px}.ck-r input{width:24px;height:24px;accent-color:#16a34a}
#ckOk{margin-top:12px}
#centrale{position:fixed;inset:0;z-index:9998;background:#0b0d10;color:#e8e6e1;display:flex;flex-direction:column;font-family:inherit}
.cen-h{display:flex;align-items:center;gap:14px;padding:10px 16px;background:#16140F;border-bottom:2px solid #B8902F}.cen-h b{font-size:18px;color:#F5E3B3}.cen-h .sp{flex:1}.cen-h button{background:#2a2620;color:#F5E3B3;border:1px solid #B8902F;border-radius:8px;padding:8px 14px;font-weight:700;cursor:pointer}
.cen-b{flex:1;display:grid;grid-template-columns:1fr 380px;min-height:0}#cenMap{height:100%;min-height:300px}
.cen-side{overflow:auto;padding:12px;background:#111317;border-left:1px solid #2a2620}.cen-t{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#B8902F;margin:10px 0 6px}
.cen-a,.cen-s{padding:10px 12px;border-radius:10px;margin-bottom:8px;background:#1b1e24;border-left:4px solid #475569;display:flex;flex-direction:column;gap:2px}.cen-a small,.cen-s small{color:#a8a29e}
.cen-a.g4,.cen-a.g3,.cen-s.ko{border-left-color:#dc2626;background:#2a1215}.cen-a.g4{animation:cenLampo 1s infinite alternate}.cen-a.g2,.cen-s.warn{border-left-color:#f59e0b;background:#2a2112}.cen-a.g0,.cen-s.ok{border-left-color:#16a34a}
@keyframes cenLampo{from{background:#2a1215}to{background:#5b1219}}
@media(max-width:800px){.cen-b{grid-template-columns:1fr;grid-template-rows:55vh auto}}
.pg-voto{min-width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:#fff}.pg-voto.ok{background:#16a34a}.pg-voto.warn{background:#d97706}.pg-voto.ko{background:#dc2626}

/* V268 */
.auto-r select{width:100%;max-width:640px;padding:8px;border-radius:10px;border:1px solid rgba(22,20,15,.18);font:inherit;font-size:13px}
small.neg,b.neg{color:#b91c1c}

/* V269 */
.cr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.cr-b{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;border-radius:16px;border:1px solid rgba(22,20,15,.12);background:var(--card,#fff);text-align:left;font:inherit;cursor:pointer}
.cr-b span{font-size:26px}.cr-b small{color:var(--muted,#6b665c)}
.sett-v{font-weight:700;white-space:nowrap}.sett-v small{font-weight:600;margin-left:6px}
.pos-t{color:#1f8a4c}.neg-t{color:#c0392b}

/* V270 */
.cv-box{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:14px 16px;border-radius:16px;border:1px solid rgba(201,162,39,.35);background:linear-gradient(135deg,rgba(201,162,39,.10),rgba(201,162,39,.02))}
.cv-box b{display:block}.cv-box small{color:var(--muted,#6b665c)}
.cv-stelle{display:flex;gap:2px}.cv-st{border:0;background:none;font-size:30px;line-height:1;color:rgba(22,20,15,.22);cursor:pointer;padding:2px 3px;transition:transform .15s}
.cv-st.on{color:#d4a017}.cv-st:hover{transform:scale(1.15)}.cv-mini{color:#d4a017;letter-spacing:1px}

/* V271 */
.c60-g{display:flex;flex-direction:column;gap:6px}
.c60-w{border:1px solid rgba(22,20,15,.1);border-radius:12px;background:var(--card,#fff);overflow:hidden}
.c60-w.neg{border-color:rgba(192,57,43,.5);background:rgba(192,57,43,.05)}
.c60-w summary{display:grid;grid-template-columns:62px 1fr auto 96px;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}
.c60-w summary::-webkit-details-marker{display:none}
.c60-d{font-weight:700;font-size:13px}.c60-bars{display:flex;flex-direction:column;gap:3px}
.c60-bars i{display:block;height:7px;border-radius:4px;min-width:2px}.c60-bars i.in{background:#1f8a4c}.c60-bars i.out{background:#c0392b}
.c60-n{display:flex;flex-direction:column;align-items:flex-end;font-size:12px}.c60-s{text-align:right;font-size:15px}
.c60-l{padding:4px 12px 10px;font-size:13px}.c60-l div{display:flex;gap:10px;padding:4px 0;border-top:1px dashed rgba(22,20,15,.1)}.c60-l span:first-child{width:46px;color:var(--muted,#6b665c)}
@media (max-width:560px){.c60-w summary{grid-template-columns:50px 1fr 84px}.c60-n{display:none}}
.isp-r .seg{display:flex;flex-wrap:wrap;gap:6px}.isp-o{display:inline-flex}.isp-o input{position:absolute;opacity:0;pointer-events:none}
.isp-o span{padding:7px 12px;border-radius:999px;border:1px solid rgba(22,20,15,.18);font-size:14px;cursor:pointer}
.isp-o input:checked+span{background:#16140f;color:#fff;border-color:#16140f}

/* V272 */
.mp-map{height:min(60vh,520px);border-radius:14px;overflow:hidden;border:1px solid rgba(22,20,15,.12);background:#eef0ea}
.mp-leg{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:12.5px}.mp-leg i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:2px}

/* V279b · aggiornamento app obbligatorio */
.agg-ov{position:fixed;inset:0;z-index:99999;background:linear-gradient(160deg,#0f5132,#16140f);color:#fff;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}
.agg-box{max-width:460px;width:100%;text-align:center}
.agg-ic{font-size:72px;line-height:1;margin-bottom:8px;animation:aggP 1.6s ease-in-out infinite}
@keyframes aggP{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.agg-box h1{font-size:32px;margin:6px 0 4px;color:#fff}.agg-v{font-size:18px;margin:0 0 14px;color:#d1fae5}
.agg-box p{font-size:16px;line-height:1.45}.agg-box ol{text-align:left;font-size:16px;line-height:1.7;margin:12px auto 18px;max-width:320px}
.agg-btn{display:block;background:#22c55e;color:#04210f;font-weight:800;font-size:20px;padding:20px 16px;border-radius:18px;text-decoration:none;box-shadow:0 10px 30px rgba(34,197,94,.45)}
.agg-new{font-size:13px!important;color:#a7f3d0;margin-top:16px}
.agg-sos{margin-top:18px;background:transparent;border:2px solid #fca5a5;color:#fecaca;font:inherit;font-weight:700;padding:10px 16px;border-radius:12px}

/* V280 · luce notte rossa (app operatore) */
html.notte-rossa{background:#000}
html.notte-rossa::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:2147483647;-webkit-backdrop-filter:grayscale(1) sepia(1) saturate(9) hue-rotate(-50deg) brightness(.8);backdrop-filter:grayscale(1) sepia(1) saturate(9) hue-rotate(-50deg) brightness(.8)}

/* V281 · chat, aiuto aggiornamento */
.cht-box{max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:12px;background:rgba(22,20,15,.04)}
.cht-b{max-width:82%;padding:8px 11px;border-radius:14px;font-size:14.5px;line-height:1.35;background:#fff;border:1px solid rgba(22,20,15,.1);align-self:flex-start}
.cht-b.mio{align-self:flex-end;background:#16140f;color:#f5efe2;border-color:#16140f}
.cht-b small{display:block;font-size:11px;opacity:.65;margin-top:3px}
.cht-in{display:flex;gap:8px;margin-top:8px;align-items:flex-end}.cht-in textarea{flex:1;font-size:15px;border-radius:10px;padding:8px}
.chat-bdg{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;line-height:18px;text-align:center;margin-left:4px}
[data-sg="notte"] .cht-box{background:rgba(255,255,255,.05)}[data-sg="notte"] .cht-b{background:#1c1a16;color:#eee;border-color:rgba(255,255,255,.1)}[data-sg="notte"] .cht-b.mio{background:#b8902f;color:#16140f}
.agg-aiuto{margin:12px 0 4px;text-align:left;font-size:13.5px;background:rgba(255,255,255,.08);border-radius:12px;padding:8px 12px}
.agg-aiuto summary{cursor:pointer;font-weight:700;padding:4px 0}.agg-aiuto p{margin:8px 0}
.agg-ko{width:100%;margin-top:8px;padding:11px;border-radius:10px;border:1px solid rgba(255,255,255,.4);background:transparent;color:inherit;font-weight:700;font-size:14px}
.agg-stato{font-size:13px;margin:8px 0 0;opacity:.9}

/* V285 · strumenti dell'operatore nella pagina principale */
.op-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 14px}
.op-tool{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:14px;border:1px solid rgba(22,20,15,.1);background:#fff;font:inherit;cursor:pointer;color:inherit}
.op-tool span{font-size:22px;line-height:1}.op-tool small{font-size:11.5px;line-height:1.2;text-align:center;font-weight:600}
.op-tool .chat-bdg{position:absolute;top:4px;right:6px;margin:0}
[data-sg="notte"] .op-tool{background:#1c1a16;border-color:rgba(255,255,255,.1)}
@media (max-width:360px){.op-tools{grid-template-columns:repeat(3,1fr)}}

/* V287 · registrazione video */
.vid-ov{position:fixed;inset:0;z-index:99990;background:#000;color:#fff;display:flex;flex-direction:column;align-items:center;padding:calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 14px)}
.vid-top{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.vid-x{background:none;border:0;color:#fff;font-size:24px;cursor:pointer}
.vid-ov video{flex:1;width:100%;max-height:70vh;object-fit:contain;background:#111;border-radius:12px}
.vid-t{margin:10px 0;font-weight:700}.vid-bar{display:flex;justify-content:center}
.vid-rec{width:74px;height:74px;border-radius:50%;border:5px solid #fff;background:#e11d48;cursor:pointer}.vid-rec.on{border-radius:18px;background:#e11d48;animation:vidp 1s infinite}
@keyframes vidp{50%{opacity:.6}}.vid-alt{margin-top:10px}.vid-ok{display:flex;gap:10px;margin-top:10px}.vid-ok .btn{min-width:130px}

/* V293 · foto inizio/fine affiancate */
.ff2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ff2>div>small{display:block;font-weight:600;margin-bottom:4px}
/* V312 · sala operativa */
#centrale{font-variant-numeric:tabular-nums}
.cen-h{flex-wrap:wrap;gap:10px 14px}.cen-logo{font-size:20px}.cen-ora{color:#cfc6b0;font-size:14px;min-width:210px}
.cen-kpi{display:flex;gap:8px;flex-wrap:wrap}.cen-k{display:flex;flex-direction:column;padding:4px 12px;border-radius:8px;background:#1f1c17;border:1px solid #3a342a;line-height:1.15}.cen-k small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#a8a29e}.cen-k b{font-size:17px;color:#F5E3B3}.cen-k.ko{border-color:#dc2626;background:#3a1418}.cen-k.ko b{color:#fecaca}.cen-k.warn{border-color:#f59e0b}.cen-k.ok b{color:#86efac}
.cen-b{grid-template-columns:340px 1fr 320px}
.cen-ev{overflow:auto;padding:12px;background:#111317;border-right:1px solid #2a2620}
.cen-ev .cen-a{width:100%;text-align:left;font:inherit;color:inherit;border:0;border-left:4px solid #475569;cursor:pointer}.cen-a:focus-visible{outline:2px solid #F5E3B3}
.cen-a.sel{box-shadow:0 0 0 2px #F5E3B3 inset}.cen-a.preso{animation:none!important}.cen-a.preso.g4,.cen-a.preso.g3{background:#2a1a1c}
.cen-a-r{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.cen-tm{font-weight:700;color:#fde68a;font-size:13px;white-space:nowrap}.cen-st{font-weight:600;color:#e7e5e4!important}
.cen-mini{display:flex;gap:6px}.cen-mini a,.cen-mini button{background:#26221b;border:1px solid #3a342a;border-radius:6px;padding:2px 6px;color:inherit;text-decoration:none;cursor:pointer;font-size:13px}
.cen-mapw{position:relative;min-height:0}.cen-mapw #cenMap{position:absolute;inset:0}
.cen-det{position:absolute;top:12px;right:12px;bottom:12px;width:min(400px,calc(100% - 24px));z-index:1100;background:#14161a;border:1px solid #3a342a;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.6);display:flex;flex-direction:column;overflow:hidden}
.cen-det-h{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:12px 14px;border-left:6px solid #475569;background:#1b1e24}.cen-det-h.g4,.cen-det-h.g3{border-left-color:#dc2626;background:#2a1215}.cen-det-h.g2{border-left-color:#f59e0b}
.cen-det-h button{background:none;border:0;color:#e8e6e1;font-size:18px;cursor:pointer}
.cen-det-b{overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.cen-det-m{margin:0;color:#cfc6b0;font-size:13px;line-height:1.5}
.cen-big{border:0;border-radius:10px;padding:12px;font:700 15px inherit;font-family:inherit;cursor:pointer;background:#B8902F;color:#16140F}.cen-big.ok{background:#16a34a;color:#fff}
.cen-azioni{display:flex;flex-wrap:wrap;gap:6px}.cen-azioni a,.cen-azioni button{background:#26221b;border:1px solid #B8902F;color:#F5E3B3;border-radius:8px;padding:7px 10px;text-decoration:none;font:600 13px inherit;font-family:inherit;cursor:pointer}
.cen-sop{display:flex;flex-direction:column;gap:6px}.cen-sop label{display:flex;gap:8px;align-items:flex-start;padding:8px;border-radius:8px;background:#1b1e24;cursor:pointer;font-size:14px}.cen-sop input{width:18px;height:18px;margin-top:1px;accent-color:#16a34a;flex:none}.cen-sop input:checked+span{color:#86efac;text-decoration:line-through}
.cen-det select,.cen-det textarea{width:100%;background:#0b0d10;color:#e8e6e1;border:1px solid #3a342a;border-radius:8px;padding:8px;font:14px inherit;font-family:inherit}
@media(max-width:1100px){.cen-b{grid-template-columns:300px 1fr}.cen-side{grid-column:1/-1;max-height:40vh;border-left:0;border-top:1px solid #2a2620}}
@media(max-width:800px){#centrale{overflow:auto}.cen-b{display:flex;flex-direction:column}.cen-mapw{height:55vh;flex:none}.cen-ev,.cen-side{overflow:visible;max-height:none}.cen-ora{min-width:0}.cen-det{position:fixed;inset:auto 0 0 0;top:20vh;width:auto;border-radius:16px 16px 0 0}}
.cen-hb{background:#2a2620;color:#F5E3B3;border:1px solid #B8902F;border-radius:8px;padding:8px 14px;font-weight:700;text-decoration:none}
.cen-suono{background:#3a2a0c;color:#fde68a;text-align:center;padding:6px 10px;font-size:13px;font-weight:600;border-bottom:1px solid #B8902F}
.cen-h button,.cen-hb{padding:7px 10px!important;font-size:13px;white-space:nowrap}.cen-ora{min-width:0!important;font-size:13px}.cen-k b{font-size:15px}.cen-h{gap:8px 10px}
.sala-btn{position:relative}.sala-n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#dc2626;color:#fff;font:700 11px/18px system-ui;font-style:normal;text-align:center}
/* ===== V315 · SALA OPERATIVA video wall ===== */
#centrale{background:radial-gradient(1200px 600px at 50% -10%,#1a1710 0%,#0a0c0f 60%) #0a0c0f;color:#e7e3da;font-family:Inter,system-ui,sans-serif}
.cw-h{display:flex;align-items:center;gap:14px;padding:8px 16px;background:linear-gradient(180deg,#17140e,#0f0d0a);border-bottom:1px solid #3b3221;box-shadow:0 1px 0 #B8902F55;flex-wrap:wrap}
.cw-logo{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 0 6px #B8902F66)}
.cw-tit{display:flex;flex-direction:column;line-height:1.1}.cw-tit b{font-family:Cinzel,'Cormorant Garamond',serif;letter-spacing:.18em;color:#F2D896;font-size:17px}.cw-tit small{color:#8f8676;font-size:11px;letter-spacing:.08em}
.cw-stato{display:flex;align-items:center;gap:10px;padding:6px 16px 6px 12px;border-radius:999px;border:1px solid #2f6b3d;background:#0f2416}.cw-stato i{width:14px;height:14px;border-radius:50%;background:#22c55e;box-shadow:0 0 10px #22c55e,0 0 22px #22c55e88}.cw-stato span{display:flex;flex-direction:column;line-height:1.05}.cw-stato small{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#9ca3af}.cw-stato b{font-size:15px;letter-spacing:.12em;color:#86efac}
.cw-stato.warn{border-color:#a16207;background:#2a1e07}.cw-stato.warn i{background:#f59e0b;box-shadow:0 0 10px #f59e0b,0 0 22px #f59e0b88}.cw-stato.warn b{color:#fcd34d}
.cw-stato.ko{border-color:#dc2626;background:#3a0d10;animation:cwPulse 1s infinite alternate}.cw-stato.ko i{background:#ef4444;box-shadow:0 0 12px #ef4444,0 0 26px #ef4444}.cw-stato.ko b{color:#fecaca}
@keyframes cwPulse{from{box-shadow:0 0 0 #ef444400}to{box-shadow:0 0 24px #ef4444aa}}
.cw-ora{display:flex;flex-direction:column;line-height:1.05}.cw-ora b{font:700 26px 'JetBrains Mono',ui-monospace,monospace;color:#fff;letter-spacing:.04em}.cw-ora small{color:#a8a29e;font-size:11px}
.cw-meteo{display:flex;flex-direction:column;line-height:1.1;padding-left:12px;border-left:1px solid #2c271e}.cw-meteo b{font-size:16px}.cw-meteo small{color:#a8a29e;font-size:11px}
.cw-h .sp{flex:1}.cw-h button,.cw-hb{background:#1d1a14;color:#F2D896;border:1px solid #5b4a26;border-radius:8px;padding:7px 11px;font:600 13px Inter,system-ui;cursor:pointer;text-decoration:none;white-space:nowrap}.cw-h button:hover,.cw-hb:hover{border-color:#B8902F;background:#28231a}
.cw-kpi{display:grid;grid-template-columns:repeat(9,1fr);gap:8px;padding:8px 12px;background:#0c0e11;border-bottom:1px solid #1f2329}
.cw-k{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:linear-gradient(180deg,#15181d,#111317);border:1px solid #232830}.cw-k>span{font-size:18px;opacity:.85}.cw-k div{display:flex;flex-direction:column;line-height:1.1;min-width:0}.cw-k small{font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;color:#8b9099;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-k b{font:700 20px 'JetBrains Mono',ui-monospace,monospace;color:#f5f5f4}
.cw-k.ok b{color:#86efac}.cw-k.warn{border-color:#a16207}.cw-k.warn b{color:#fcd34d}.cw-k.ko{border-color:#dc2626;background:#2a0f12}.cw-k.ko b{color:#fca5a5}
.cw-b{flex:1;display:grid;grid-template-columns:330px 1fr 340px;min-height:0}
.cw-col{display:flex;flex-direction:column;min-height:0;background:#0d0f12;overflow:auto;padding:10px}.cw-ev{border-right:1px solid #1f2329}.cw-side{border-left:1px solid #1f2329}
.cw-list{display:flex;flex-direction:column;gap:8px}
.cw-t{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#C9A24B;margin:12px 2px 8px;font-weight:700}.cw-t i{font-style:normal;color:#e7e3da;margin-left:4px}
.cw-tabs{display:flex;gap:4px;margin-bottom:10px;background:#15181d;border-radius:10px;padding:3px}.cw-tabs button{flex:1;background:none;border:0;color:#a8a29e;font:600 12px Inter,system-ui;padding:8px;border-radius:8px;cursor:pointer}.cw-tabs button.on{background:#2a2418;color:#F2D896}.cw-tabs i{font-style:normal;background:#dc2626;color:#fff;border-radius:9px;padding:0 6px;margin-left:4px;font-size:11px}.cw-tabs i:empty{display:none}
.cw-vuoto{padding:22px 12px;text-align:center;border:1px dashed #2a2f37;border-radius:12px;color:#9ca3af;display:flex;flex-direction:column;gap:4px}.cw-vuoto b{color:#86efac;font-weight:600}
#centrale .cen-a{margin:0;border-radius:10px;background:#15181d;border-left:4px solid #475569;padding:10px 12px}#centrale .cen-a.chiuso{opacity:.75;border-left-color:#16a34a;animation:none}
.cw-mid{display:grid;grid-template-rows:1fr 170px;min-height:0;min-width:0}
.cw-mid .cen-mapw{position:relative;min-height:0}#centrale .leaflet-container{background:#0b0d10;font-family:Inter,system-ui}
.cw-mapbar{position:absolute;top:10px;left:56px;z-index:600;display:flex;gap:4px;background:#0d0f12cc;padding:4px;border-radius:10px;border:1px solid #2a2f37;backdrop-filter:blur(6px)}.cw-mapbar button{background:none;border:0;color:#cbd5e1;font:600 12px Inter,system-ui;padding:6px 10px;border-radius:7px;cursor:pointer}.cw-mapbar button.on{background:#B8902F;color:#16140F}
.cw-leg{position:absolute;left:10px;bottom:10px;z-index:600;display:flex;gap:12px;background:#0d0f12cc;padding:6px 10px;border-radius:10px;border:1px solid #2a2f37;font-size:11px;color:#cbd5e1;backdrop-filter:blur(6px)}.cw-leg span{display:flex;align-items:center;gap:5px}i.lg{width:10px;height:10px;border-radius:50%;display:inline-block}i.lg.op.ok{background:#22c55e}i.lg.op.warn{background:#f59e0b}i.lg.op.ko{background:#ef4444}i.lg.st{border-radius:3px;background:#C9A24B}
.cm-op{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#16a34a;border:3px solid #fff;color:#fff;font:800 13px Inter,system-ui;box-shadow:0 0 0 4px #16a34a55,0 4px 12px #000a;position:relative}.cm-op.warn{background:#d97706;box-shadow:0 0 0 4px #d9770655,0 4px 12px #000a}.cm-op.ko{background:#dc2626;box-shadow:0 0 0 4px #dc262699}.cm-op.ko::after{content:'';position:absolute;inset:-10px;border-radius:50%;border:3px solid #ef4444;animation:cmPing 1.2s infinite}
@keyframes cmPing{from{transform:scale(.7);opacity:1}to{transform:scale(1.6);opacity:0}}
.cm-nm{position:absolute;top:42px;left:50%;transform:translateX(-50%);background:#0d0f12e6;color:#fff;font:700 11px Inter,system-ui;padding:1px 6px;border-radius:6px;white-space:nowrap;border:1px solid #2a2f37}
.cm-site{width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;background:#2a2418;border:2px solid #C9A24B;box-shadow:0 2px 8px #000a}.cm-site.ok{border-color:#22c55e}.cm-site.ko{border-color:#ef4444;background:#3a0d10}.cm-site.arr{border-color:#60a5fa}.cm-site.fine{opacity:.55}
.cw-feed{border-top:1px solid #1f2329;background:#0c0e11;display:flex;flex-direction:column;min-height:0;padding:0 12px 8px}.cw-feed .cw-t{margin:8px 0 6px}
.cw-feedl{overflow:auto;display:flex;flex-direction:column;gap:2px;font-size:13px}.cw-f{display:grid;grid-template-columns:48px 22px 1fr;align-items:baseline;padding:3px 6px;border-radius:6px}.cw-f:nth-child(odd){background:#111419}.cw-f time{font:600 12px 'JetBrains Mono',ui-monospace,monospace;color:#9ca3af}.cw-f p{margin:0;color:#d6d3d1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-f.ok p{color:#bbf7d0}.cw-f.ko p{color:#fecaca;font-weight:600}.cw-f.warn p{color:#fde68a}
.cw-p{background:#14171c;border:1px solid #232830;border-left:4px solid #16a34a;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px}.cw-p.warn{border-left-color:#f59e0b}.cw-p.ko{border-left-color:#ef4444;background:#1f0f12}
.cw-p-h{display:flex;gap:10px;align-items:center}.cw-av{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:800 13px Inter,system-ui;color:#fff;background:#16a34a;flex:none}.cw-av.warn{background:#d97706}.cw-av.ko{background:#dc2626}
.cw-p-n{display:flex;flex-direction:column;min-width:0}.cw-p-n b{font-size:14px}.cw-p-n small{color:#9ca3af;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-bar{height:6px;border-radius:3px;background:#262b33;overflow:hidden}.cw-bar i{display:block;height:100%;background:linear-gradient(90deg,#B8902F,#F2D896)}
.cw-p-t{display:flex;justify-content:space-between;font:600 11px 'JetBrains Mono',ui-monospace,monospace;color:#9ca3af}
.cw-p-s{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:#a8a29e}.cw-p-s .ok{color:#86efac}.cw-p-s .warn{color:#fcd34d}.cw-p-s .ko{color:#fca5a5;font-weight:700}
.cw-p-a{display:flex;gap:6px;flex-wrap:wrap}.cw-p-a a,.cw-p-a button{background:#1d2128;border:1px solid #2f3540;color:#e7e3da;border-radius:7px;padding:4px 8px;font:600 12px Inter,system-ui;text-decoration:none;cursor:pointer}.cw-p-a a:hover,.cw-p-a button:hover{border-color:#B8902F}
.cw-arr{display:grid;grid-template-columns:52px 1fr;gap:8px;align-items:start;background:#14171c;border:1px solid #232830;border-radius:10px;padding:8px 10px}.cw-arr>b{font:700 15px 'JetBrains Mono',ui-monospace,monospace;color:#F2D896}.cw-arr span{display:flex;flex-direction:column}.cw-arr small{color:#9ca3af;font-size:12px}.cw-arr.warn{border-color:#a16207;background:#1f180a}
#centrale .cen-det{background:#111317f2;backdrop-filter:blur(8px)}
@media(max-width:1300px){.cw-kpi{grid-template-columns:repeat(5,1fr)}.cw-meteo{display:none}}
@media(max-width:1150px){.cw-b{grid-template-columns:300px 1fr}.cw-side{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid #1f2329}}
@media(max-width:800px){#centrale{overflow:auto}.cw-kpi{grid-template-columns:repeat(3,1fr)}.cw-b{display:flex;flex-direction:column}.cw-mid{display:flex;flex-direction:column}.cw-mid .cen-mapw{height:55vh;flex:none}.cw-feed{max-height:260px}.cw-col{overflow:visible}.cw-ora b{font-size:20px}.cw-tit small{display:none}.cw-leg{display:none}.cw-mapbar{left:50px}}
#centrale .cen-a{text-align:left;align-items:stretch;width:100%;font:inherit;color:inherit;border-top:0;border-right:0;border-bottom:0;cursor:pointer}
@media(min-width:1301px){.cw-k{padding:6px 8px;gap:8px}.cw-k>span{font-size:15px}.cw-k b{font-size:18px}}
@media(max-width:800px){.cw-b{flex:none!important;min-height:auto}.cw-col,.cw-mid,.cw-feed{flex:none}.cw-k{min-width:0;padding:6px 8px;gap:6px}.cw-k>span{font-size:14px}.cw-k b{font-size:16px}.cw-kpi{gap:6px;padding:6px 8px}}
@media(max-width:800px){.cw-mid{order:-1}}
.cm-site.vuoto{opacity:.45;border-color:#6b7280;background:#1f2329;font-size:11px;width:20px;height:20px}
.cw-cons{background:#1d2433;border:1px solid #3b4a6b;border-left:4px solid #60a5fa;border-radius:10px;padding:8px 10px;margin-bottom:10px;font-size:13px}.cw-cons p{margin:4px 0 0;color:#d6d3d1}
/* V328 · la mappa della sala non si schiaccia mai (schermi 800–1150 px, es. portatili con zoom 125%) */
.cw-mid .cen-mapw{min-height:320px}
@media(max-width:1150px){#centrale{overflow:auto}.cw-b{flex:none;display:grid;grid-template-columns:300px 1fr;grid-auto-rows:auto}.cw-mid{grid-template-rows:62vh 200px;min-height:calc(62vh + 200px)}.cw-ev{max-height:calc(62vh + 200px);overflow:auto}}
@media(max-width:800px){.cw-b{display:flex}.cw-mid{min-height:0}.cw-ev{max-height:none}}
.cw-menu{position:relative}.cw-menu>summary{list-style:none;cursor:pointer;background:#1d1a14;color:#F2D896;border:1px solid #5b4a26;border-radius:8px;padding:7px 12px;font-weight:700}.cw-menu>summary::-webkit-details-marker{display:none}
.cw-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:2000;display:flex;flex-direction:column;gap:6px;min-width:240px;padding:8px;background:#14161a;border:1px solid #3a342a;border-radius:12px;box-shadow:0 14px 40px #000c}
.cw-menu>div button,.cw-menu>div a{text-align:left;width:100%}
.cen-det-b .cw-feedl{flex:none}.cen-det-b>*{flex-shrink:0}
/* V353 · tema notte: niente più riquadri bianchi con scritte chiare */
[data-sg="notte"] :is(.seg,.cal-col,.cli-stats,.dip-card,.dip-stats,.lg-k,.lg-day,.gq-c,.gq-ic,.sp-g,.cw-tool,.sett-bar,.toolbar.qa){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)}
[data-sg="notte"] .cal-col.oggi{background:var(--surface-2)!important;border-color:var(--gold)!important}
[data-sg="notte"] .seg>button:not([aria-pressed="true"]){color:var(--muted)}
[data-sg="notte"] .btn:not(.primary):not(.danger):not(.sos-btn){background:var(--surface-2)!important;color:var(--ink)!important;border-color:var(--line)!important}
[data-sg="notte"] .row-wrap{background:transparent}
[data-sg="notte"] .lg-k.warn{background:var(--warn-soft)!important}
[data-sg="notte"] .vhead>.row-wrap,[data-sg="notte"] .vhead .row-wrap{background:var(--surface)!important;border-color:var(--line)!important}
[data-sg="notte"] :is(select,input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea){background:var(--surface-2)!important;color:var(--ink)!important;border-color:var(--line)!important}
[data-sg="notte"] .cal-dh b{color:var(--ink)!important}
[data-sg="notte"] .cal-col.oggi .cal-dh b{color:#141108!important}
[data-sg="notte"] .shift,[data-sg="notte"] .shift.oggi,[data-sg="notte"] .shift.in-corso{background:var(--surface)!important;color:var(--ink)!important}
[data-sg="notte"] .shift .shift-top b,[data-sg="notte"] .shift .shift-c b{color:var(--ink)!important}
