:root {
  --blu:        #1A3A5C;
  --blu-light:  #2a5298;
  --sidebar-w:  220px;
  --grigio-bg:  #f4f6f9;
  --bordo:      #dee2e6;
}

/* ── Layout ── */
body {
  background: var(--grigio-bg);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.875rem;
}

#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--blu);
  padding: 0 0 2rem 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

#main-content {
  margin-left: var(--sidebar-w);
  padding: 1.5rem;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}
.brand-icon {
  width: 32px; height: 32px;
  background: white;
  color: var(--blu);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.brand-text {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.sidebar-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1rem 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-right: 0.5rem;
  transition: background 0.15s, color 0.15s;
  font-size: 0.85rem;
}
.sidebar-link:hover { background: rgba(255,255,255,0.12); color: white; }
.sidebar-link.active { background: rgba(255,255,255,0.18); color: white; font-weight: 600; }
.sidebar-link i { font-size: 1rem; opacity: 0.85; }

/* Periodo corrente in sidebar */
.sidebar-periodo {
  margin: 0.5rem 0.5rem 0.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid rgba(255,255,255,0.4);
}
.sidebar-periodo-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.sidebar-periodo-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.sidebar-periodo-link:hover { color: white; }

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blu);
  margin: 0;
}
.page-title i { margin-right: 0.4rem; }

/* ── Cards ── */
.card {
  border: 1px solid var(--bordo);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-header {
  background: white;
  border-bottom: 1px solid var(--bordo);
  font-weight: 600;
  color: var(--blu);
  border-radius: 0.75rem 0.75rem 0 0 !important;
  padding: 0.65rem 1rem;
}

/* ── KPI cards ── */
.kpi-card {
  background: white;
  border: 1px solid var(--bordo);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.kpi-card.kpi-utile { border-left: 4px solid #198754; }
.kpi-label { font-size: 0.75rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.kpi-value { font-size: 1.35rem; font-weight: 700; color: var(--blu); }

/* ── Piano table ── */
.table-piano th {
  background: var(--blu);
  color: white;
  font-weight: 600;
  font-size: 0.78rem;
  border: none;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.table-piano td { vertical-align: middle; }
.table-piano .row-interno { background: #fafafa; color: #888; }
.table-totali { background: #eef2f7 !important; }

/* Inputs inline nella tabella */
.table-piano input.form-control-sm {
  min-width: 80px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.2rem 0.4rem;
  transition: border-color 0.15s, background 0.15s;
}
.table-piano input.form-control-sm:focus {
  border-color: var(--blu-light);
  background: white;
}
.table-piano input.form-control-sm:hover {
  border-color: var(--bordo);
  background: white;
}
.table-piano input.dirty { background: #fff8e1 !important; border-color: #ffc107 !important; }

/* ── Convenzione foglio Rino: ARANCIONE = input, GRIGIO = calcolato ── */
:root {
  --input-bg:      #FCE4C4;
  --input-bd:      #E8A85C;
  --input-bg-focus:#FFF3E3;
  --calc-bg:       #EDEFF2;
}
input.cell-input,
.cell-input input {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-bd) !important;
  font-weight: 600;
  color: #7A4A10;
  text-align: right;
}
input.cell-input:focus,
.cell-input input:focus {
  background: var(--input-bg-focus) !important;
  border-color: #C97B1E !important;
  box-shadow: 0 0 0 .18rem rgba(232,168,92,.35) !important;
  color: #1c1c1c;
}
input.cell-input::placeholder { color: #B98A54; font-weight: 400; }
/* Celle calcolate */
.cell-calc {
  background: var(--calc-bg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cell-calc-strong { background: var(--calc-bg); text-align: right; font-weight: 700; color: var(--blu); }
.legenda-celle { font-size: .75rem; color: #6c757d; display: flex; gap: 1rem; align-items: center; }
.legenda-celle .box { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: .25rem; }
.legenda-celle .box-input { background: var(--input-bg); border: 1px solid var(--input-bd); }
.legenda-celle .box-calc  { background: var(--calc-bg);  border: 1px solid var(--bordo); }

/* ── Blocco impianto (struttura foglio) ── */
.impianto-blocco { border: 1px solid var(--bordo); border-radius: .75rem; background: white; margin-bottom: 1rem; }
.impianto-blocco > .head {
  background: var(--blu); color: white; border-radius: .7rem .7rem 0 0;
  padding: .5rem .9rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.impianto-blocco > .head .titolo { font-weight: 700; letter-spacing: .5px; }
.param-grid { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; padding: .75rem .9rem; border-bottom: 1px solid var(--bordo); }
.param-grid .campo { display: flex; flex-direction: column; gap: .15rem; }
.param-grid .campo > label { font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: #6c757d; font-weight: 600; }
.param-grid input { width: 92px; padding: .25rem .45rem; border-radius: .35rem; font-size: .85rem; }
.param-grid .risultato { padding: .25rem .6rem; border-radius: .35rem; background: var(--calc-bg); font-weight: 700; color: var(--blu); min-width: 92px; text-align: right; }
.monte-ore-box { background: #E7F0F8; border: 1px solid #B9D3E8; border-radius: .5rem; padding: .35rem .8rem; }
.monte-ore-box .val { font-size: 1.15rem; font-weight: 800; color: var(--blu); }
.riga-residuo-neg { color: #dc3545 !important; }

/* Separatore invisibile fra le righe di schede: occupa tutta la larghezza e
   manda a capo le successive, senza aggiungere altezza. Serve a tenere le
   schede del piano in tre righe fisse pur restando in un solo `ul`, cosi'
   Bootstrap continua a gestire quale e' attiva. */
.nav-a-capo { flex: 0 0 100%; height: 0; list-style: none; }

/* ── Badges impianto ── */
.impianto-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
/* I due essiccatori vanno distinti a colpo d'occhio: erano due blu quasi
   uguali e nella griglia «Prodotti in produzione» non si capiva quale riga
   finisse dove (Luca, 24/08/2026). */
.impianto-TECOMA { background: var(--blu) !important; }
.impianto-FMD    { background: #be185d !important; }
.impianto-ED     { background: #6f42c1 !important; }
/* Le due nanofiltrazioni sono lo stesso processo su macchine diverse: due
   tonalita' della stessa famiglia, non due colori scollegati (27/08/2026). */
.impianto-NF     { background: #0d9488 !important; }
.impianto-NFGEA  { background: #0d9488 !important; }
.impianto-NFAPV  { background: #15803d !important; }
.impianto-BATTO  { background: #4d7c0f !important; }
.impianto-UF     { background: #0891b2 !important; }
.impianto-NIRO   { background: #b45309 !important; }
.impianto-FARCK  { background: #9a3412 !important; }
/* Passaggi di processo senza monte ore */
.impianto-MISC   { background: #64748b !important; }
.impianto-CONF   { background: #475569 !important; }

/* ── Distinta di lavorazione (foglio prodotto in stile CEO) ── */
.distinta > tbody > tr > td { border-bottom-color: #eef1f5; }
.distinta tr.riga-ingrediente td,
.distinta tr.riga-coprodotto td { background: #fbfcfe; font-size: .82rem; padding-top: .2rem; padding-bottom: .2rem; }
.distinta tr.riga-coprodotto td { background: #f7fbfd; }

/* ── Badge stato piano ── */
.badge-stato { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.badge-stato-bozza     { background: #6c757d; color: white; }
.badge-stato-confermato { background: #0d6efd; color: white; }
.badge-stato-chiuso    { background: #198754; color: white; }

/* ── Progress bars ── */
.progress-impianto { height: 10px; border-radius: 5px; }

/* ── Piano card (dashboard) ── */
.piano-card { transition: box-shadow 0.15s; }
.piano-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Nav tabs ── */
.nav-tabs .nav-link { color: #495057; font-size: 0.85rem; }
.nav-tabs .nav-link.active { color: var(--blu); font-weight: 600; border-bottom: 2px solid var(--blu); }

/* ── Simulazioni ── */
.sim-col-a { background: #e8f4fd; }
.sim-col-b { background: #e8fdf0; }
.sim-better { color: #198754; font-weight: 700; }
.sim-worse  { color: #dc3545; font-weight: 700; }

/* ── Consegne ── */
.consegna-row-settimana th {
  background: #f0f4f8;
  color: var(--blu);
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #sidebar { display: none; }
  #main-content { margin-left: 0; padding: 1rem; }
}

/* ── Interruttore costi e ricavi in sidebar ────────────────────────────────── */
.sidebar-valori {
  margin: 1rem .9rem .5rem;
  padding: .5rem .65rem;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: .75rem;
}
.sidebar-valori .form-check-label { color: rgba(255,255,255,.85); font-size: .78rem; }
.sidebar-valori .form-check-input { cursor: pointer; }

/* ── Foglio da condividere con i reparti ───────────────────────────────────── */
.foglio-condiviso .card { break-inside: avoid; }

@media print {
  #sidebar, #update-banner, .d-print-none { display: none !important; }
  #main-content { margin-left: 0 !important; padding: 0 !important; }
  body { background: white !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .table-piano th { background: #eee !important; color: #000 !important;
                    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .impianto-badge { border: 1px solid #666; color: #000 !important;
                    background: #fff !important; }
  a[href]:after { content: none !important; }
}

/* ── Autosalvataggio ──
   Il riscontro di «e' scritto» e' uno solo per tutta l'app: la targhetta in
   basso a destra dice cosa succede, la casella lampeggia verde quando il
   valore e' arrivato. Rosso vuol dire che quel valore NON c'e'. */
#autosalva-stato {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1080;
  padding: .4rem .75rem; border-radius: .5rem;
  font-size: .85rem; font-weight: 600;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.18);
  opacity: 0; transform: translateY(.5rem);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
#autosalva-stato.visibile { opacity: 1; transform: translateY(0); }
#autosalva-stato.stato-invio { background: #eef2f7; color: #475569; }
#autosalva-stato.stato-ok    { background: #dcfce7; color: #166534; }
#autosalva-stato.stato-ko    { background: #fee2e2; color: #991b1b; }

@keyframes lampo-salvato {
  from { background-color: #bbf7d0; }
  to   { background-color: transparent; }
}
.cella-salvata { animation: lampo-salvato 1.4s ease-out; }
.cella-non-salvata {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

@media print {
  #autosalva-stato { display: none !important; }
}

/* ── Caselle numeriche che si adattano alla cifra ──────────────────────────────
   «Tutte le celle dove indico i numeri dovrebbero adattarsi alla grandezza
    della cifra. Se faccio il piano trimestrale, ad esempio, la cella è troppo
    piccola» (Luca, 30/08/2026).

   Su un settimanale si scrivono 20.000 kg, su un trimestrale 1.250.000: la
   stessa casella deve reggere due cifre in più senza tagliare il numero.
   `field-sizing: content` fa crescere la casella con quello che c'è dentro;
   dove il browser non lo conosce restano il min e il max, che sono comunque
   più larghi di prima. Il max serve: senza, una cifra sbagliata di dieci zeri
   sfonderebbe la tabella. */
input.cella-kg,
input.input-siero-prog,
input.input-siero-cons,
input.inp-kg,
input.inp-qui {
  field-sizing: content;
  min-width: 7.5rem;
  max-width: 13rem;
}

/* Le colonne dei numeri non vanno mai mandate a capo: un «1.250.000» spezzato
   su due righe si legge peggio di una tabella che scorre. */
td.text-end, th.text-end { white-space: nowrap; }

/* ── L'ultima colonna, quella dei tasti ────────────────────────────────────────
   «La maschera si è allargata troppo ed il tasto modifica non è più quasi
    leggibile» (Luca, 29/08/2026). Aggiungendo colonne agli ordinativi la
   tabella si è stretta sull'ultima, che è quella che si preme. Adesso i tasti
   hanno il loro spazio e non si comprimono: a stringersi è la tabella, che
   scorre — e scorrere è meno grave che non riuscire a premere. */
td.col-azioni, th.col-azioni {
  white-space: nowrap;
  width: 1%;
}
td.col-azioni .btn { padding-left: .5rem; padding-right: .5rem; }
/* «Non vedo i tasti di modifica ed eliminazione, la maschera è troppo grande»
   (30/09/2026). Con la tabella che scorre i tasti finivano oltre il bordo, e la
   barra per arrivarci sta in fondo all'elenco: chi guarda la prima riga non la
   vede nemmeno. Adesso la colonna dei tasti resta ferma sul bordo destro e il
   resto le scorre sotto. */
.table-responsive td.col-azioni,
.table-responsive th.col-azioni {
  position: sticky;
  right: 0;
  z-index: 1;
  box-shadow: inset 1px 0 0 var(--bordo, #dee2e6), -6px 0 6px -6px rgba(0,0,0,.25);
}
.table-responsive td.col-azioni { background-color: var(--bs-body-bg, #fff); opacity: 1 !important; }

/* ── Come si leggono i campi di una scheda ─────────────────────────────────────
   «I campi che sono liberi usa un colore di fondo diverso da quelli vincolati
    all'inserimento condizionale» e «chiede etichetta come va interpretato»
    (Luca, 31/08/2026).

   Tre stati, e il colore da solo li distingue senza leggere niente:
     obbligatorio  — ambra, come le caselle dei prezzi da compilare: senza,
                     la scheda non si salva;
     condizionale  — azzurro: serve solo in certi casi, e quali lo dice
                     l'aiuto sotto al campo;
     libero        — bianco: si compila se si vuole.
   La legenda sta dentro la finestra, non in un manuale: chi compila ce l'ha
   davanti mentre compila. */
.campo-obbligatorio {
  background: var(--input-bg);
  border-color: var(--input-bd);
}
.campo-obbligatorio:focus {
  background: var(--input-bg-focus);
  border-color: #C97B1E;
  box-shadow: 0 0 0 .18rem rgba(232,168,92,.35);
}
.campo-condizionale {
  background: #EAF3FC;
  border-color: #A9CBEC;
}
.campo-condizionale:focus {
  background: #F5FAFF;
  border-color: #5B9BD5;
  box-shadow: 0 0 0 .18rem rgba(91,155,213,.3);
}
.legenda-campi {
  font-size: .75rem;
  color: #6c757d;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #eef0f2;
  padding-top: .6rem;
  margin-top: .2rem;
}
.legenda-campi .box {
  display: inline-block; width: 13px; height: 13px; border-radius: 3px;
  vertical-align: -2px; margin-right: .3rem; border: 1px solid #ced4da;
}
.legenda-campi .box-obbl { background: var(--input-bg); border-color: var(--input-bd); }
.legenda-campi .box-cond { background: #EAF3FC; border-color: #A9CBEC; }
.legenda-campi .box-lib  { background: #fff; }


/* ══════════════════════════════════════════════════════════════════════════════
   App unica (dall'8 ottobre 2026). Sopra c'è lo stile di Gestione Produzione,
   preso così com'è: le sue pagine arrivano con la fase 2 e lo ritrovano uguale.
   Qui sotto quello che serve al nucleo comune.
   ══════════════════════════════════════════════════════════════════════════════ */

.brand-versione {
  font-size: .65rem;
  letter-spacing: .05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.brand-versione a { color: #fff; opacity: .85; text-decoration: none; }
.brand-versione a:hover { opacity: 1; text-decoration: underline; }

/* L'ambiente di prova si riconosce a colpo d'occhio: chi lo apre per sbaglio
   non deve credere di lavorare sui dati veri. */
.badge-ambiente {
  background: #dc3545;
  color: #fff;
  border-radius: .25rem;
  padding: 0 .3rem;
  font-size: .6rem;
  letter-spacing: .08em;
}
body.ambiente-test #sidebar { border-right: 4px solid #dc3545; }

.sidebar-link-spento {
  opacity: .45;
  cursor: default;
  font-style: italic;
}
.sidebar-link-spento:hover { background: transparent; color: rgba(255,255,255,0.8); }

.sidebar-utente {
  margin-top: auto;
  padding: .9rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.sidebar-utente-nome {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.sidebar-utente-nome:hover { color: #fff; }

#main-content.senza-menu { margin-left: 0; }

/* ── Accesso ── */
.accesso-pagina {
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.accesso-scheda {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--bordo);
  border-top: 4px solid var(--blu);
  border-radius: .75rem;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 6px 24px rgba(26,58,92,.12);
}
.accesso-logo { display: block; height: 64px; margin: 0 auto 1rem; }
.accesso-titolo { font-size: 1.2rem; font-weight: 700; color: var(--blu); text-align: center; margin-bottom: 1.25rem; }
.accesso-nota { font-size: .75rem; color: #6c757d; text-align: center; margin: 1rem 0 0; }
.accesso-piede { font-size: .72rem; color: #8a94a0; }

/* ── Home ── */
.modulo-card { transition: box-shadow .15s; }
.modulo-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.modulo-icona { font-size: 1.4rem; color: var(--blu); }
.modulo-in-arrivo { background: #fbfcfd; }
.modulo-in-arrivo .modulo-icona { color: #8a94a0; }

/* ── Amministrazione ── */
.password-temporanea {
  letter-spacing: .08em;
  background: #fff8e1;
  border: 1px dashed #e8a85c;
  border-radius: .35rem;
  padding: .15rem .5rem;
  color: #7a4a10;
}
.registro-dettaglio { max-width: 28rem; word-break: break-word; }
.btn-primary { background-color: var(--blu); border-color: var(--blu); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--blu-light); border-color: var(--blu-light); }
.btn-outline-primary { color: var(--blu); border-color: var(--blu); }
.btn-outline-primary:hover { background-color: var(--blu); border-color: var(--blu); }


/* ── Costi e Prezzi: editor prodotto (fase 1) ─────────────────────────────── */
.nome-prodotto { max-width: 40rem; }
.sezione-editor {
  background: #1c2530;
  color: #fff;
  padding: .45rem .8rem;
  border-radius: .4rem;
  font-weight: 700;
  margin: .5rem 0 .75rem;
}
.sezione-editor i { margin-right: .35rem; }
.tabella-editor th { font-size: .75rem; color: #5b6672; font-weight: 600; white-space: nowrap; }
.tabella-editor td { vertical-align: middle; }
.tabella-editor .cell-calc { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabella-editor input.campo-num { min-width: 6rem; }
.valore-calcolato { font-variant-numeric: tabular-nums; }
.riga-estratto td { background: #f7f9fb; }
.processo .nome-processo { max-width: 30rem; background: #e9f1f8; border-color: #b9d3e8; }
.totale-sezione {
  background: #eef2f7;
  border-radius: .4rem;
  padding: .45rem .8rem;
  font-weight: 700;
  text-align: center;
}
.riepilogo-costi { border-left: 4px solid var(--blu-light); }
.kpi-card .campo-num { font-weight: 700; }
.kpi-card.kpi-costo { border-left: 4px solid #dc3545; }
.tabella-vendite td, .tabella-vendite th { font-variant-numeric: tabular-nums; }

.tabella-riepilogo th { background: #505050; color: #fff; font-size: .75rem; white-space: nowrap; }
.tabella-riepilogo td { font-size: .8rem; }
.tabella-riepilogo td:nth-child(3), .tabella-riepilogo td:nth-child(4),
.tabella-riepilogo td:nth-child(5), .tabella-riepilogo td:nth-child(6) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabella-riepilogo .riga-sezione td { background: #333; color: #fff; font-weight: 700; }
.tabella-riepilogo .riga-totale td { background: #e6e6e6; font-weight: 700; }
.tabella-riepilogo .riga-prezzo td { background: #1a5f7a; color: #fff; font-weight: 700; font-size: 1.15rem; padding-top: .6rem; padding-bottom: .6rem; }
.tabella-riepilogo .riga-vuota td { height: .6rem; padding: 0; border: 0; }

.grafico { width: 100%; height: auto; display: block; }
.grafico g:hover path { filter: brightness(1.12); }

.editor-attesa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1080;
  background: #eef2f7; color: #475569; border-radius: .5rem;
  padding: .4rem .75rem; font-size: .85rem; font-weight: 600;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.18);
}
