:root {
  --green: #0f5a3c;
  --green-dark: #0a3d29;
  --green-soft: #e8f5ee;
  --amber-bg: #fff6e5;
  --amber: #b45309;
  --text: #1a1a1a;
  --muted: #5c6670;
  --line: #d8e0da;
  --card: #ffffff;
  --radius: 14px;
  --touch: 52px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f3f6f4; color: var(--text); }
body { min-height: 100dvh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.top {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 14px 16px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.brand-row { display: flex; align-items: center; gap: 12px; }
.logo { border-radius: 12px; background: #fff; flex-shrink: 0; }
.top h1 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.subtitle { margin: 2px 0 0; font-size: .88rem; opacity: .92; }
.prova-badge {
  display: inline-block; margin-top: 12px; background: #fbbf24; color: #1a1a1a;
  font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 999px;
}
main { padding: 14px 12px 24px; max-width: 520px; margin: 0 auto; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid var(--line);
}
.card h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--green-dark); }
.card p { margin: 0 0 8px; line-height: 1.45; }
.muted { color: var(--muted); font-size: .9rem; }
.note-amber {
  background: var(--amber-bg); color: var(--amber); border-radius: 10px;
  padding: 10px 12px; font-size: .9rem; font-weight: 600; margin: 10px 0;
}
.home-grid { display: grid; gap: 10px; }
.home-btn {
  display: flex; align-items: center; gap: 14px; min-height: 72px; width: 100%;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; text-align: left; cursor: pointer; font-size: 1.1rem; font-weight: 700;
  color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.home-btn:active { transform: scale(.98); }
.home-btn .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
}
.home-btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.home-btn.primary .ico { background: rgba(255,255,255,.2); color: #fff; }
.home-btn small { display: block; font-weight: 500; font-size: .82rem; opacity: .8; margin-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 0 18px; border-radius: 12px; border: none;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row .btn { flex: 1; margin-top: 0; }
label.field { display: block; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
label.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"] {
  width: 100%; min-height: var(--touch); padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 1.15rem; background: #fff;
}
input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.search-box { margin-bottom: 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit;
}
.list-item:active { background: var(--green-soft); }
.list-item .name { font-weight: 800; font-size: 1.1rem; }
.list-item .meta { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.list-item .stats { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  background: var(--green-soft); color: var(--green-dark); font-weight: 700;
  font-size: .85rem; padding: 4px 10px; border-radius: 999px;
}
.chip.off { background: #f3f4f6; color: #6b7280; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  color: var(--green); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 8px 0; min-height: 44px; margin-bottom: 4px;
}
.salvadanaio-big {
  text-align: center; padding: 20px 12px;
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border-radius: var(--radius); border: 2px solid var(--green); margin-bottom: 14px;
}
.salvadanaio-big .label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.salvadanaio-big .amount {
  font-size: 2.4rem; font-weight: 900; color: var(--green-dark);
  letter-spacing: -0.02em; margin: 4px 0;
}
.preview-box { background: var(--green-soft); border-radius: 12px; padding: 14px; margin: 12px 0; }
.preview-box .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1.05rem; }
.preview-box .row strong { color: var(--green-dark); }
.preview-box .highlight {
  border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px;
  font-size: 1.15rem; font-weight: 800;
}
.history-item {
  display: block; width: 100%; text-align: left;
  border-left: 3px solid var(--green); padding: 10px 12px; margin-bottom: 8px;
  background: #fff; border-radius: 0 10px 10px 0; border: 1px solid var(--line); border-left-width: 3px;
  font: inherit; color: inherit;
}
.history-item.uso { border-left-color: #b91c1c; }
.history-item .when { font-size: .8rem; color: var(--muted); }
.history-item .what { font-weight: 700; margin-top: 2px; }
.history-item .delta { font-weight: 800; color: var(--green); }
.history-item.uso .delta { color: #b91c1c; }
.history-item .mov-actions {
  display: flex; gap: 8px; margin-top: 8px;
}
.history-item .btn-mov-corr,
.history-item .btn-mov-del {
  flex: 1; font: inherit; font-size: .82rem; font-weight: 700;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.history-item .btn-mov-corr {
  background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green);
}
.history-item .btn-mov-del {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.tier-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.tier-table th, .tier-table td { border: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.tier-table th { background: var(--green-soft); color: var(--green-dark); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 1rem; }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fff;
  border-top: 1px solid var(--line); z-index: 20; box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
.nav-btn {
  flex: 1; min-height: 48px; border: none; background: transparent; border-radius: 10px;
  font-size: .92rem; font-weight: 700; color: var(--muted); cursor: pointer;
}
.nav-btn[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 12px 20px;
  border-radius: 999px; font-weight: 600; font-size: .95rem; z-index: 50;
  max-width: 90vw; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px;
}
.toggle-row label { font-weight: 700; }
.error-msg { color: #b91c1c; font-weight: 600; font-size: .95rem; margin: 8px 0; }

.nav-btn { font-size: .78rem; padding: 0 2px; }
.stat-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer;
}
.chip-btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.stat-dates[hidden] { display: none !important; }
.stat-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stat-dates .btn { grid-column: 1 / -1; }
.stat-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.kpi span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.kpi strong { font-size: 1.15rem; color: var(--green-dark); }
.kpi .up { color: #067647; }
.kpi .down { color: #b42318; }
.stat-chart { width: 100%; height: auto; display: block; }
.stat-chart .bar { fill: var(--green); }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; }
.stat-chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.stat-bars { list-style: none; margin: 0; padding: 0; }
.stat-bars li { margin-bottom: 10px; }
.stat-bar-lab { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; margin-bottom: 4px; }
.stat-bar-lab em, .stat-top em { font-style: normal; color: var(--muted); font-weight: 500; }
.stat-bar-track { height: 10px; background: var(--green-soft); border-radius: 999px; overflow: hidden; }
.stat-bar-track > div { height: 100%; background: var(--green); border-radius: 999px; min-width: 0; }
.stat-top { list-style: none; margin: 0; padding: 0; }
.stat-top li {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: .95rem;
}
.stat-top li:last-child { border-bottom: none; }
.stat-top .rk {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft);
  color: var(--green-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex: 0 0 auto;
}
.stat-top .nm { flex: 1; min-width: 0; }
.stat-top strong { color: var(--green-dark); white-space: nowrap; }

/* ——— Offerte del mese ——— */
label.field input[type="date"], label.field textarea, label.field select {
  width: 100%; min-height: var(--touch); padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 1.1rem; background: #fff; font-family: inherit; color: var(--text);
}
label.field textarea { min-height: 84px; resize: vertical; line-height: 1.4; }
.facoltativo { font-weight: 500; color: var(--muted); font-size: .8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foto-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.foto-thumb {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; border: 1.5px dashed var(--line);
  background: #f7f7f7; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--muted);
}
.foto-row .btn { margin-top: 0; width: auto; flex: 1; }
.field-title { display: block; margin-bottom: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.offerta-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.offerta-item .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.offerta-item .name { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.offerta-item .meta { color: var(--muted); font-size: .88rem; margin-top: 4px; line-height: 1.4; }
.offerta-item .btn-row .btn { min-height: 44px; font-size: .95rem; }
.chip.mese { background: #fff6e5; color: #b45309; }
.btn-del-light { background: #fef2f2; color: #b91c1c; border: 1.5px solid #fecaca; }
.btn-edit-light { background: var(--green-soft); color: var(--green-dark); border: 1.5px solid var(--green); }
.foto-thumb { overflow: hidden; }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-row .btn.foto-rimuovi { flex: 0 0 auto; }
.chip.programmata { background: #eef2ff; color: #3730a3; }
.offerta-mini { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.notif-riga { margin: 0 0 10px; font-size: 1.02rem; }
.two-col > .field { min-width: 0; }
label.field input[type="date"] { box-sizing: border-box; max-width: 100%; min-width: 0; padding: 10px 8px; font-size: 1rem; }

/* ——— Offerte del giorno ——— */
.date-rapide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -4px 0 6px; }
.date-rapide .btn { margin-top: 0; min-height: 44px; font-size: .95rem; }
.btn-solo-oggi { background: #fff1ec; color: #b91c1c; border: 1.5px solid #fca5a5; font-weight: 800; }
.btn-solo-oggi.on { background: linear-gradient(90deg, #dc2626 0%, #f97316 100%); color: #fff; border-color: #dc2626; }
#of-tipo-hint { margin: 0 0 12px; }
.chip.solo-oggi { background: linear-gradient(90deg, #dc2626 0%, #f97316 100%); color: #fff; }
.offerta-item .top-row .chip + .chip { margin-left: 6px; }
.offerta-item .top-row { justify-content: flex-start; }
.offerta-item .top-row .offerta-mini { margin-left: auto; }
.foto-row .btn[hidden] { display: none; }

.iscritti-elenco { margin: 0 0 12px; }
.iscritto-row { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font: inherit; color: inherit; cursor: pointer; }
.iscritto-row .name { display: block; font-weight: 800; }
.iscritto-row .meta { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.iscritto-row::after { content: '›'; float: right; margin-top: -30px; font-size: 1.4rem; color: var(--muted); }

/* ——— Avviso attivazioni notifiche ——— */
.avviso-notifica {
  display: flex; gap: 12px; align-items: center; background: linear-gradient(160deg, #e8f5ee 0%, #fff 100%);
  border: 2px solid var(--green); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15,90,60,.15);
}
.avviso-notifica .ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.avviso-notifica strong { display: block; color: var(--green-dark); font-size: 1rem; line-height: 1.35; }
.avviso-notifica span { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; margin-top: 2px; }
.avviso-notifica .chiudi { margin-left: auto; align-self: flex-start; background: none; border: none; font-size: 1.4rem; color: var(--muted); padding: 0 2px; line-height: 1; }
.iscritto-row.nuovo { border: 2px solid var(--green); background: var(--green-soft); }
.chip-nuovo { display: inline-block; margin-left: 6px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* ——— Messaggi dei clienti ——— */
.home-btn { position: relative; }
.home-badge {
  position: absolute; top: -8px; right: -6px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: .95rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.msg-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.msg-item.nonletto { border: 2px solid var(--green); box-shadow: 0 1px 6px rgba(15,90,60,.12); }
.msg-item.letto { background: #f7f8f7; }
.msg-item .top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip-stato { font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.chip-stato.nuovo { background: #dc2626; color: #fff; }
.chip-stato.letto { background: #e5e7eb; color: #4b5563; }
.msg-item .who { font-weight: 800; font-size: 1.02rem; }
.msg-item .when { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.msg-item .testo { margin: 10px 0 4px; font-size: 1.02rem; line-height: 1.45; background: var(--green-soft); border-radius: 10px; padding: 10px 12px; }
.msg-item.letto .testo { background: #eef0ee; color: #374151; }
.msg-item .btn-row .btn { min-height: 44px; font-size: .95rem; }
.msg-item .btn-row .btn-edit-light { flex: 1.6; white-space: nowrap; padding: 0 10px; }
.home-badge[hidden] { display: none; }
.msg-item .testo { white-space: pre-line; overflow-wrap: anywhere; }
.who-link { display: block; background: none; border: none; padding: 0; font: inherit; font-weight: 800; font-size: 1.02rem; color: var(--green-dark); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; }

/* ——— Registro operazioni ——— */
.chip-nuova-voce { display: inline-block; margin-left: 6px; background: #fbbf24; color: #1a1a1a; font-size: .68rem; font-weight: 900; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.home-btn.evidenzia { border: 2px solid var(--green); box-shadow: 0 0 0 3px rgba(15,90,60,.12); }
.reg-filtri { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.reg-filtri .chip-btn { font-size: .9rem; padding: 9px 13px; }
.reg-giorno { margin: 14px 2px 8px; font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.reg-row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.reg-row .ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.reg-row .body { flex: 1; min-width: 0; }
.reg-row .reg-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.reg-row .cosa { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.reg-row .ora { font-size: .85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.reg-row .dett { margin-top: 3px; font-size: .92rem; line-height: 1.4; color: var(--text); }
.reg-row .chi { margin-top: 4px; font-size: .88rem; color: var(--green-dark); font-weight: 700; }
.reg-row .chi.neg { color: var(--muted); font-weight: 600; }
.piu { color: #067647; font-weight: 800; }
.meno { color: #b42318; font-weight: 800; }
.reg-row.uso .ico { background: #fef2f2; }
.reg-row.corr .ico { background: #fff6e5; }
.reg-row.offerta .ico { background: #eef2ff; }
.reg-row.cancellato { border: 2px solid #b42318; background: #fef3f2; }
.reg-row.cancellato .ico { background: #b42318; color: #fff; }
.reg-row.cancellato .cosa { color: #b42318; }
.reg-nota { text-align: center; font-size: .8rem; color: var(--muted); margin: 14px 0 4px; }
.reg-nota::before { content: '🔒 '; }
.link-registro { display: block; text-align: center; font-weight: 700; color: var(--green-dark); text-decoration: underline; margin-top: 8px; font-size: .95rem; }
.card .reg-row { margin-bottom: 8px; }
#reg-q { width: 100%; }
#reg-altri { width: 100%; margin-top: 4px; }
#reg-altri[hidden] { display: none; }

/* Offerte | Avvisi: schede in alto e avvisi del negozio */
.segment { display: flex; gap: 6px; margin: 0 0 12px; }
.segment-btn { flex: 1; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-weight: 800; font-size: .95rem; padding: 8px 4px; font-family: inherit; cursor: pointer; }
.segment-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-weight: 700; font-size: .98rem; line-height: 1.35; cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--green); }
.check-row small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.chip.avviso { background: #fef3c7; color: #92400e; }
.chip.notif { background: #eef2ff; color: #3730a3; }
.anteprima-avviso { background: #fef3c7; border: 2px solid #f59e0b; border-radius: 12px; padding: 10px 12px; font-weight: 800; color: #78350f; margin: 0 0 12px; font-size: .98rem; overflow-wrap: anywhere; }
.anteprima-avviso small { display: block; font-weight: 600; color: #92400e; font-size: .78rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .03em; }
.av-conta { text-align: right; margin: -6px 0 8px; font-size: .8rem; }
.offerta-item .top-row.av-chips { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.offerta-item .top-row.av-chips .chip + .chip { margin-left: 0; }

/* Pagina Clienti: numero tessere e campanella notifiche */
.clienti-conta { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.clienti-conta strong { color: var(--green-dark); font-size: 1.05rem; }
.bell-notifiche { font-size: .95rem; margin-left: 4px; }
.spesa-notif { display: inline-block; margin: -4px 0 12px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 700; font-size: .88rem; }
.spesa-notif[hidden] { display: none; }

/* Spesa cliente senza tessera + incassato con/senza tessera */
.btn-senza-tessera{width:100%;font-size:1.1rem}
.senza-ok{display:flex;gap:12px;align-items:center;border:2px solid var(--green);background:var(--green-soft)}
.senza-ok .ico{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;font-weight:900;font-size:1.3rem;display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.senza-ok strong{display:block;color:var(--green-dark);font-size:1.05rem}
.senza-ok span{display:block;color:var(--muted);font-size:.9rem;margin-top:2px}
.stat-incasso h2{margin-bottom:4px}
.incasso-tot{font-size:1.9rem;font-weight:900;color:var(--green-dark);margin-bottom:10px}
.incasso-barra{display:flex;height:14px;border-radius:999px;overflow:hidden;background:#e5e7eb;margin-bottom:12px}
.incasso-barra .con{background:var(--green)} .incasso-barra .senza{background:#f59e0b}
.incasso-righe>div{display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.incasso-righe>div:last-child{border-bottom:0}
.incasso-righe strong{color:var(--green-dark);font-size:1.05rem;text-align:right}
.incasso-righe em{grid-column:2 / 4;font-style:normal;color:var(--muted);font-size:.82rem}
.pallino{width:12px;height:12px;border-radius:50%;display:inline-block}
.pallino.con{background:var(--green)} .pallino.senza{background:#f59e0b}
.solo-tessera{margin:4px 2px 8px;font-size:.82rem;font-weight:700;color:var(--muted)}
.reg-row.senza .ico{background:#fff6e5}

/* Suggerimenti clienti sotto «Cerca cliente» */
.sugg-clienti{margin:-6px 0 14px;border:1.5px solid var(--green);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.sugg-clienti[hidden]{display:none}
.sugg-item{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 14px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;font:inherit;cursor:pointer;color:inherit}
.sugg-item:last-of-type{border-bottom:0}
.sugg-item:hover,.sugg-item.attivo{background:var(--green-soft)}
.sugg-nome{font-weight:700;font-size:1.02rem}
.sugg-tess{flex:0 0 auto;font-size:.88rem;color:var(--muted);font-weight:600}
.sugg-vuoto,.sugg-altri{margin:0;padding:12px 14px;color:var(--muted);font-size:.92rem}

/* Cliente scelto in Nuova spesa (senza tendina) */
.cliente-scelto{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:-6px 0 12px;padding:10px 12px;border-radius:12px;background:var(--green-soft);border:1.5px solid var(--green)}
.cliente-scelto[hidden]{display:none}
.cs-info{color:var(--green-dark);font-size:.98rem}
.cs-cambia{border:0;background:#fff;color:var(--green-dark);font:inherit;font-weight:700;font-size:.9rem;padding:8px 12px;border-radius:999px;box-shadow:0 0 0 1.5px var(--green) inset;cursor:pointer}

/* Pulsante «← Indietro» in alto a sinistra (al posto del logo nelle sezioni) */
.hdr-back{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:0;border-radius:999px;background:#fff;color:var(--green-dark);font:inherit;font-weight:800;font-size:1rem;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.hdr-back[hidden],.logo[hidden]{display:none}
.hdr-back:active{transform:scale(.97)}
