/* GestAz – la tua azienda, in ordine.
   Identità: blu notte, indaco e viola (dal simbolo G), accento corallo. Montserrat (titoli e marchio) + Manrope (testo). */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/montserrat-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); }

:root {
  --carta: #f5f6fb;
  --superficie: #ffffff;
  --superficie-2: #f0f2f8;
  --testo: #0f172a;
  --tenue: #5b6474;
  --linea: #e4e7f0;
  --linea-forte: #cbd2e0;
  --pino: #4338ca;
  --pino-2: #3730a3;
  --pino-3: #1e1b4b;
  --pino-tenue: #eef0ff;
  --rame: #6d3ae8;
  --rame-scuro: #5b21b6;
  --rame-tenue: #f1ebfe;
  --rosso: #c0262d; --rosso-tenue: #fde8e8;
  --arancio: #9a4a00; --arancio-tenue: #fff0e0;
  --verde: #0f7a55; --verde-tenue: #e3f6ee;
  --blu: #1d5fd0; --blu-tenue: #e6efff;
  --viola: #6d3ae8; --viola-tenue: #f1ebfe;
  --grigio: #4b5565; --grigio-tenue: #edf0f5;
  --ombra: 0 1px 0 rgba(27, 29, 31, .04), 0 18px 40px -28px rgba(67, 56, 202, .28);
  --raggio: 14px;
  --notte: #0f172a;
  --notte-2: #1a2440;
  --corallo: #ff6b5b;
  --sfumatura: linear-gradient(135deg, #c24ce8 0%, #6d3ae8 45%, #2f6fe0 100%);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--carta); color: var(--testo); font: 15px/1.5 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3 { margin: 0; }
h1 { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-bottom: 14px; }
a { color: var(--pino); text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--linea); margin: 10px 0; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--tenue); }
.small { font-size: 13px; }
.forte { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pre { white-space: pre-wrap; }
.blocco { display: block; }
.cresci { flex: 1; min-width: 0; }
.cresci-2 { flex: 999 1 440px; min-width: 0; }
.errore { color: var(--rosso); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.riga { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.centro { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rame); }
.eyebrow::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--corallo); vertical-align: middle; margin-right: 8px; }

/* ---------- Pulsanti ---------- */
.btn { font: inherit; font-size: 14px; font-weight: 700; border-radius: 9px; padding: 0 16px; min-height: 42px; border: 1px solid var(--linea-forte); background: var(--superficie); color: var(--testo); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--superficie-2); border-color: #b5bdd0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; }
.btn-p { background: var(--sfumatura); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(109, 58, 232, .7); }
.btn-p:hover { background: var(--sfumatura); filter: brightness(1.07); border-color: transparent; }
.btn-rame { background: var(--rame); border-color: var(--rame); color: #fff; }
.btn-rame:hover { background: var(--rame-scuro); border-color: var(--rame-scuro); }
.btn-pericolo { color: var(--rosso); border-color: #f3c4c6; }
.btn-pericolo:hover { background: var(--rosso-tenue); }
.btn-piccolo { min-height: 34px; font-size: 13px; padding: 0 11px; border-radius: 8px; }
.btn-icona { border: 0; background: transparent; width: 44px; height: 44px; cursor: pointer; color: var(--tenue); display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.btn-icona:hover { background: var(--superficie-2); }
.pieno { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--pino); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
:focus-visible { outline: 2px solid var(--rame); outline-offset: 2px; }

/* ---------- Campi ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-et { font-size: 13px; font-weight: 700; }
.campo-aiuto { font-size: 12px; color: var(--tenue); }
input, select, textarea { font: inherit; font-size: 15px; min-height: 44px; border: 1px solid var(--linea-forte); border-radius: 9px; padding: 0 12px; background: #fff; color: var(--testo); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pino); box-shadow: 0 0 0 3px rgba(109, 58, 232, .18); }
textarea { padding: 10px 12px; resize: vertical; }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--pino); box-shadow: none; }
.spunta { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.griglia-campi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.griglia-perm { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.cerca { position: relative; display: flex; align-items: center; }
.cerca .ico { position: absolute; left: 12px; color: var(--tenue); pointer-events: none; }
.cerca input { padding-left: 38px; width: 300px; max-width: 100%; }

/* ---------- Etichette ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-rosso { background: var(--rosso-tenue); color: var(--rosso); }
.tag-arancio { background: var(--arancio-tenue); color: var(--arancio); }
.tag-verde { background: var(--verde-tenue); color: var(--verde); }
.tag-blu { background: var(--blu-tenue); color: var(--blu); }
.tag-viola { background: var(--viola-tenue); color: var(--viola); }
.tag-grigio { background: var(--grigio-tenue); color: var(--grigio); }
.tag-rame { background: var(--rame-tenue); color: var(--rame-scuro); }
.c-rosso { color: var(--rosso); } .c-arancio { color: var(--arancio); }

/* ---------- Struttura ---------- */
.guscio { display: flex; flex-wrap: wrap; min-height: 100vh; }
.menu { flex: 1 1 248px; max-width: 100%; background: var(--notte); color: #e2e8f5; padding: 22px 14px; display: flex; flex-direction: column; gap: 20px; }
.contenuto { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 3vw, 44px) 56px; display: flex; flex-direction: column; gap: 20px; max-width: 1400px; }
.marchio { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.logo { width: 38px; height: 38px; flex: none; display: block; }
.marchio-nome { font-family: Montserrat, system-ui, sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; line-height: 1.1; }
.marchio-nome .az { font-weight: 800; color: #8b6cf6; }
.marchio-chiaro .marchio-nome { color: var(--notte); } .marchio-chiaro .marchio-nome .az { color: var(--rame); }
.marchio-sub { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.menu .campo-et, .menu .muted { color: rgba(226, 232, 245, .7); }
.menu select { background: var(--notte-2); border-color: rgba(255, 255, 255, .18); color: #fff; }
.societa-unica { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--notte-2); }
.societa-unica strong { font-size: 15px; }
.voci { display: flex; flex-direction: column; gap: 2px; }
.voce { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: rgba(226, 232, 245, .86); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.voce:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.voce.attiva { background: var(--carta); color: var(--pino); }
.voce.attiva .ico { color: var(--rame); }
.voce.attiva { box-shadow: inset 3px 0 0 var(--corallo); }
.utente { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 8px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--rame-tenue); color: var(--rame-scuro); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.menu .btn-esci { color: #e2e8f5; border-color: rgba(255, 255, 255, .25); background: transparent; }
.menu .btn-esci:hover { background: rgba(255, 255, 255, .08); }
.testata { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 4px; }
.testata .eyebrow { margin-bottom: 8px; display: block; }
.testata .azioni { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.testata-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.testata-card h2 { margin: 0; }
.card { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 22px; min-width: 0; box-shadow: var(--ombra); }
.scorre { overflow-x: auto; padding: 10px 16px; }
.griglia-tessere { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.griglia-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tessera { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.tessera .testa-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tessera .bolla { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--pino-tenue); color: var(--pino); }
.tessera .bolla.rosso { background: var(--rosso-tenue); color: var(--rosso); }
.tessera .bolla.arancio { background: var(--arancio-tenue); color: var(--arancio); }
.tessera .bolla.rame { background: var(--rame-tenue); color: var(--rame-scuro); }
.tessera .numero { font-family: Montserrat, system-ui, sans-serif; font-size: clamp(24px, 2.3vw, 34px); white-space: nowrap; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.due-colonne { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.albero { flex: 1 1 240px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.voce-cartella { font: inherit; font-size: 14px; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--testo); }
.voce-cartella .ico { color: var(--tenue); }
.liv-1 { padding-left: 30px; } .liv-2 { padding-left: 48px; } .liv-3 { padding-left: 66px; } .liv-4 { padding-left: 84px; }
.voce-cartella:hover { background: var(--superficie-2); }
.voce-cartella.attiva { background: var(--pino-tenue); font-weight: 700; color: var(--pino); }
.voce-cartella.attiva .ico { color: var(--pino); }
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; box-shadow: none; }
.banner-blu { background: var(--pino-tenue); border-color: #d6dbff; color: var(--pino-3); }
.banner-arancio { background: var(--rame-tenue); border-color: #dccdfb; color: #3b1a86; }
.stretto { max-width: 500px; }
.vuoto { padding: 26px 6px; text-align: center; }
.filtri { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtri select { width: auto; }
.chip { font: inherit; font-size: 13px; font-weight: 700; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--linea-forte); background: var(--superficie); cursor: pointer; color: var(--testo); transition: background .15s; }
.chip:hover { background: var(--superficie-2); }
.chip.attivo { background: var(--pino); border-color: var(--pino); color: #fff; }

/* ---------- Tabelle ed elenchi ---------- */
.tabella { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabella th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); padding: 10px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabella td { padding: 12px 10px; border-bottom: 1px solid #edf0f6; vertical-align: middle; }
.tabella tbody tr { transition: background .12s; }
.tabella tbody tr:hover { background: #f8f9fd; }
.tabella tbody tr:last-child td { border-bottom: 0; }
.tabella td.largo { min-width: 260px; }
.tabella tr.fatta td { color: var(--tenue); }
.tabella tr.fatta .forte { text-decoration: line-through; text-decoration-color: var(--linea-forte); }
.azioni-riga { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.lista { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.lista li { padding: 10px 0; border-bottom: 1px solid #edf0f6; }
.lista li:last-child { border-bottom: 0; }
.riga-scad { display: flex; gap: 14px; align-items: center; }
.data-box { width: 52px; height: 52px; text-align: center; flex: none; display: flex; flex-direction: column; justify-content: center; border-radius: 10px; background: var(--superficie-2); }
.data-box strong { font-family: Montserrat, system-ui, sans-serif; font-size: 20px; font-weight: 500; line-height: 1; }
.data-box span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rame); }
.attivita li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.attivita .punto { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pino-tenue); color: var(--pino); }
.attivita .punto .ico { width: 15px; height: 15px; }
.elenco-modello { display: flex; flex-direction: column; max-height: 46vh; overflow: auto; border: 1px solid var(--linea); border-radius: 10px; background: #fff; }
.riga-modello { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #edf0f6; font-size: 14px; }

/* Avanzamento dell'anno nel cruscotto */
.avanzamento { display: flex; flex-direction: column; gap: 14px; }
.barra { height: 10px; border-radius: 999px; background: var(--superficie-2); overflow: hidden; display: flex; }
.barra span { display: block; height: 100%; }
.barra .b-fatto { background: var(--sfumatura); }
.barra .b-scaduto { background: var(--rosso); }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--tenue); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legenda i.b-fatto { background: var(--pino); } .legenda i.b-scaduto { background: var(--rosso); } .legenda i.barra { background: var(--superficie-2); border: 1px solid var(--linea-forte); }
.bolla-pw { width: 30px; height: 30px; border-radius: 8px; background: var(--rame-tenue); color: var(--rame-scuro); display: inline-flex; align-items: center; justify-content: center; }
.bolla-pw .ico { width: 15px; height: 15px; }
.mesi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; }
.mese { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mese .col { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--pino-tenue); min-height: 4px; }
.mese .col.pieno-1 { background: #c7c9f7; } .mese .col.pieno-2 { background: #8b7cf0; } .mese .col.pieno-3 { background: var(--sfumatura); }
.mese.ora .col { outline: 2px solid var(--corallo); outline-offset: 2px; }
.mese small { font-size: 11px; font-weight: 700; color: var(--tenue); text-transform: uppercase; }
.h-0 { height: 0; } .h-1 { height: 8%; } .h-2 { height: 16%; } .h-3 { height: 24%; } .h-4 { height: 32%; } .h-5 { height: 40%; } .h-6 { height: 48%; } .h-7 { height: 56%; } .h-8 { height: 64%; } .h-9 { height: 72%; } .h-10 { height: 82%; } .h-11 { height: 92%; } .h-12 { height: 100%; }
.w-0 { width: 0; } .w-1 { width: 10%; } .w-2 { width: 20%; } .w-3 { width: 30%; } .w-4 { width: 40%; } .w-5 { width: 50%; } .w-6 { width: 60%; } .w-7 { width: 70%; } .w-8 { width: 80%; } .w-9 { width: 90%; } .w-10 { width: 100%; }

/* ---------- Cassaforte ---------- */
.codice { font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px; padding: 18px; background: var(--carta); border: 1px dashed var(--rame); border-radius: 10px; text-align: center; word-break: break-all; color: var(--pino-3); }
.riga-segreto { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #edf0f6; }
.riga-segreto .et { width: 80px; }
.segreto { font-size: 15px; background: var(--carta); padding: 7px 11px; border-radius: 7px; min-width: 160px; }
.lucchetto { width: 56px; height: 56px; border-radius: 16px; background: var(--pino-tenue); color: var(--pino); display: flex; align-items: center; justify-content: center; }
.lucchetto .ico { width: 26px; height: 26px; }

/* ---------- Finestre e avvisi ---------- */
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .5); background: var(--superficie); color: var(--testo); }
.dlg[open] { animation: entra .18s ease-out; }
.dlg-larga { width: min(880px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
.dlg-testa { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 0 22px; }
.dlg-testa h2 { margin: 0; font-size: 21px; }
.dlg-corpo { padding: 14px 22px 22px; }
.azioni { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--pino-3); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 1000; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); animation: sale .2s ease-out; }
.toast-errore { background: var(--rosso); }
@keyframes entra { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sale { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.vista { animation: compare .25s ease-out; }
@keyframes compare { from { transform: translateY(6px); } to { transform: none; } }

/* ---------- Accesso ---------- */
.accesso-guscio { min-height: 100vh; display: flex; flex-wrap: wrap; }
.accesso-lato { flex: 1 1 420px; background: radial-gradient(circle at 85% 10%, rgba(109, 58, 232, .45), transparent 45%), radial-gradient(circle at 10% 95%, rgba(47, 111, 224, .35), transparent 50%), var(--notte); color: #e2e8f5; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.accesso-lato h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; max-width: 560px; }
.accesso-lato h1 em { font-style: normal; background: var(--sfumatura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accesso-lato p { color: rgba(226, 232, 245, .78); font-size: 16px; max-width: 480px; margin: 18px 0 0; }
.punti { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 520px; }
.punti li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(226, 232, 245, .9); }
.punti .ico { color: #c4b5fd; margin-top: 2px; }
.accesso-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.accesso { width: 100%; max-width: 400px; background: var(--superficie); }
.accesso h2 { font-size: 26px; margin: 0; }

@media (max-width: 1280px) { .largo-solo { display: none; } }
@media (max-width: 760px) {
  .menu { flex-basis: 100%; }
  .utente { margin-top: 0; }
  .contenuto { padding: 22px 16px 44px; }
  .accesso-lato { gap: 24px; }
  .mesi { height: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  body * { visibility: hidden; }
  .dlg, .dlg * { visibility: visible; }
  .dlg { position: absolute; left: 0; top: 0; box-shadow: none; }
  .dlg button, .dlg label { display: none; }
}

/* ---------- Fase 2: conti, gestione, rimborsi ---------- */
h3 { font-family: Montserrat, system-ui, sans-serif; font-size: 15px; margin: 6px 0 0; }
.riga.spazio { justify-content: space-between; }
.destra { text-align: right; }
.al-centro { text-align: center; }
.mini { font-size: 11px; }
.c-verde { color: var(--verde); }
.importo { font-weight: 700; font-variant-numeric: tabular-nums; }
.importo.entrata { color: var(--verde); }
.importo.uscita { color: var(--testo); }
.tabella td.destra, .tabella th.destra { text-align: right; }
.sel-piccolo { min-height: 34px; font-size: 13px; padding: 0 8px; width: auto; max-width: 220px; }
.largo-sel { max-width: 300px; }
.riga-allerta td { background: #fff7f5; }
.allerta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--rosso); margin-top: 4px; }
.allerta .ico { width: 14px; height: 14px; }
.collegato { display: inline-flex; gap: 6px; align-items: center; color: var(--verde); }
.collegato .ico { width: 14px; height: 14px; }
.btn-icona.piccola { width: 30px; height: 30px; }
.btn-icona.piccola .ico { width: 14px; height: 14px; }
.btn-verde { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-verde:hover { background: #0b6345; }
.chip .conta { display: inline-block; margin-left: 6px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--corallo); color: #fff; font-size: 11px; }
.chip.attivo .conta { background: #fff; color: var(--pino); }
.sep-v { width: 1px; height: 26px; background: var(--linea-forte); margin: 0 4px; }
.griglia-conti { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.conto { display: flex; flex-direction: column; gap: 10px; }
.conto .saldo { font-family: Montserrat, system-ui, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.vuoto-grande { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 20px; }
.ico-grande { width: 40px; height: 40px; color: var(--rame); }
.riepilogo-import { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--superficie-2); font-size: 14px; }
.bordo { border: 1px solid var(--linea); border-radius: 10px; max-height: 320px; overflow: auto; }
.scelta { font: inherit; font-size: 14px; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; cursor: pointer; }
.scelta:hover { border-color: var(--rame); background: var(--rame-tenue); }
.etichette { display: flex; flex-wrap: wrap; gap: 6px; }
.schede { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--linea); }
.scheda { font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--tenue); cursor: pointer; margin-bottom: -1px; }
.scheda:hover { color: var(--testo); }
.scheda.attiva { color: var(--pino); border-bottom-color: var(--rame); }
.scheda .ico { width: 16px; height: 16px; }
.griglia-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grafico-mesi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 200px; align-items: end; margin: 8px 0 12px; }
.gm-mese { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.gm-barre { display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; height: 100%; }
.gm-r, .gm-c { width: 42%; max-width: 16px; border-radius: 4px 4px 2px 2px; min-height: 2px; }
.gm-r { background: var(--sfumatura); }
.gm-c { background: var(--corallo); opacity: .85; }
.gm-mese small { font-size: 11px; font-weight: 700; color: var(--tenue); text-transform: uppercase; }
.legenda i.l-ricavi { background: var(--rame); } .legenda i.l-costi { background: var(--corallo); }
.stretto-l { max-width: 640px; }
.riga-budget { display: flex; gap: 10px; align-items: center; }
.riga-budget input { width: 160px; text-align: right; }
.totale { border-top: 2px solid var(--testo); padding-top: 12px; margin-top: 4px; font-size: 16px; }
.segmenti { display: inline-flex; border: 1px solid var(--linea-forte); border-radius: 10px; overflow: hidden; align-self: flex-start; background: #fff; }
.segmenti button { font: inherit; font-size: 14px; font-weight: 700; min-height: 42px; padding: 0 16px; border: 0; background: transparent; cursor: pointer; color: var(--tenue); }
.segmenti button.attivo { background: var(--sfumatura); color: #fff; }
.colonna-laterale { flex: 1 1 260px; }
.numero-grande { font-family: Montserrat, system-ui, sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0; }
.carica-scontrino { display: flex; gap: 14px; align-items: center; padding: 18px; border: 2px dashed #cbbcfa; border-radius: 12px; background: #faf8ff; cursor: pointer; }
.carica-scontrino .ico { width: 28px; height: 28px; color: var(--rame); }
.carica-scontrino input { position: absolute; left: -9999px; }
.carica-scontrino:focus-within { outline: 2px solid var(--rame); outline-offset: 2px; }
.lettura { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--rame-tenue); font-size: 14px; }
.lettura .ico { color: var(--rame); }
.calcolo { padding: 10px 12px; border-radius: 10px; background: var(--superficie-2); }
select[multiple] { min-height: 90px; padding: 6px; }

.riga > select, .filtri > select { width: auto; }
.tag-lungo { white-space: normal; line-height: 1.3; max-width: 220px; }
.ricevuta-link { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; font-weight: 700; text-decoration: none; }
.ricevuta-link .ico { width: 14px; height: 14px; }
.ripartizione { margin-top: 4px; color: var(--tenue); }
.riga-ricevuta { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; }
.riga-ricevuta .ico { width: 15px; height: 15px; }

/* Anagrafica e Bilanci e crisi */
.dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; margin: 16px 0; }
.dato dt { font-size: 0.78rem; color: var(--tenue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.dato dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.elenco-semplice { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.segnali { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.segnale { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--superficie); border-left-width: 4px; }
.segnale p { margin: 4px 0 0; }
.segnale.s-rosso { border-left-color: var(--rosso); }
.segnale.s-giallo { border-left-color: var(--arancio); }
.segnale.s-verde { border-left-color: var(--verde); }
.segnale.s-grigio { border-left-color: var(--linea-forte); }
.tabella tr.forte td { font-weight: 700; }
.avvisi-crisi { border-left: 4px solid var(--arancio); }
.avvisi-crisi.ac-rosso { border-left-color: var(--rosso); }
.avvisi-crisi .lista li { gap: 10px; align-items: flex-start; }
