/* Corbetta Padel & Fitness – colori del marchio: nero, rosso, bianco */
:root {
  --bg: #f4f4f5; --card: #fff; --ink: #111111; --muted: #6b6b70; --line: #e6e6e8; --line2: #d2d2d6;
  --brand: #111111; --brand2: #e30613; --red-dark: #b8040f; --brand-soft: #f1f1f2; --red-soft: #fdecec;
  --ok: #18794e; --ok-soft: #e8f5ee;
  --danger: #b8040f; --danger-soft: #fdecec; --warn: #8a5a00; --warn-soft: #fff4d6;
  --r: 14px; --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink);
  background: var(--bg); display: flex; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 16px; margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---- barra laterale */
.side { width: var(--side); flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 2px 10px 16px; margin-bottom: 12px; border-bottom: 3px solid var(--brand2); text-align: center; }
.brand img { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto 8px; }
.brand span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand .mini { display: none; }
#nav { display: flex; flex-direction: column; gap: 4px; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #2b2b2e;
  text-decoration: none; font-weight: 550; line-height: 1.25; }
#nav a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
#nav a[hidden] { display: none; }
#nav a:hover { background: var(--brand-soft); }
#nav a.on { background: var(--brand); color: #fff; font-weight: 650; box-shadow: inset 4px 0 0 var(--brand2); }
.side-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); padding: 12px 8px 0; }
.side-foot .auto { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand2); display: inline-block; flex: none; }

/* ---- contenuto */
#main { flex: 1; min-width: 0; padding: 24px 28px 60px; max-width: 1500px; }
.loading { padding: 60px; color: var(--muted); }
.head { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-bottom: 18px; }
.head > div:first-child { min-width: 0; flex: 1 1 320px; }
.head .sp { flex: 0; }
.sub { color: var(--muted); margin: 2px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px; }
.card > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.card > h2 .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.step { width: 24px; height: 24px; border-radius: 50%; background: var(--brand2); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- pulsanti */
.btn { border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: #333; }
.btn.lime { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.btn.lime:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.ico { padding: 8px 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 550; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- campi */
input[type=text], textarea, select { border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; background: #fff;
  width: 100%; min-width: 0; outline: none; }
input[type=text]:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227, 6, 19, .18); }
input.n { text-align: right; font-variant-numeric: tabular-nums; }
input.bad { border-color: var(--danger) !important; background: var(--danger-soft); }
input.big { font-size: 22px; font-weight: 650; padding: 10px 14px; }
label.f { display: block; font-weight: 600; margin-bottom: 6px; }
label.f small { display: block; font-weight: 400; color: var(--muted); }
.euro { position: relative; display: block; } .euro::after { content: "€"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; }
.euro input { padding-right: 26px; }
textarea { min-height: 70px; resize: vertical; }

/* ---- giornata */
.daynav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daytitle { font-size: 20px; font-weight: 700; min-width: 250px; text-align: center; text-transform: capitalize; flex: 0 1 auto; }
.status { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; white-space: nowrap; }
.status.dirty { background: var(--warn-soft); color: var(--warn); }
.status.err { background: var(--danger-soft); color: var(--danger); white-space: normal; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.grid2 > div { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two > * { min-width: 0; }
.sticky { position: sticky; top: 18px; }
.maestro { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.maestro .mh { display: flex; align-items: center; gap: 6px 10px; padding: 10px 14px; background: #fafafa; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.maestro .mh b { font-size: 15px; }
.badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: #333; font-weight: 650; white-space: nowrap; }
.badge.top { background: var(--brand); color: #fff; } .badge.off { background: #eee; color: #666; }
.mh .mtot { margin-left: auto; font-size: 13px; color: var(--muted); }
.mh .mtot b { color: var(--ink); font-size: 13px; white-space: nowrap; }
.rowswrap { overflow-x: auto; }
table.rows { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; }
table.rows th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600;
  text-align: right; padding: 8px 6px 4px; vertical-align: bottom; line-height: 1.2; }
table.rows th:first-child { text-align: left; padding-left: 14px; }
table.rows th.c { text-align: center; }
table.rows td { padding: 5px 6px; text-align: right; vertical-align: middle; }
table.rows td:first-child { text-align: left; padding-left: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
table.rows tr.has td { background: #fdf5f5; }
table.rows input { width: 100%; }
table.rows input.unit { color: var(--muted); }
table.rows td.val { font-weight: 700; font-variant-numeric: tabular-nums; padding-right: 14px; white-space: nowrap; }
table.rows th:last-child { padding-right: 14px; }
table.rows td.val.neg { color: var(--danger); }
.stepper { display: flex; align-items: center; gap: 3px; }
.stepper button { width: 28px; height: 34px; flex: none; border: 1px solid var(--line2); background: #fff; border-radius: 8px; cursor: pointer;
  font-size: 17px; line-height: 1; font-weight: 600; color: var(--brand); padding: 0; }
.stepper button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper input { flex: 1 1 0; width: 0 !important; min-width: 34px; text-align: center; font-weight: 650; padding-left: 4px; padding-right: 4px; }
.comp { display: flex; align-items: center; gap: 2px; }
.comp input { flex: 1 1 0; min-width: 0; }
.comp input.man { border-color: #d9a400; background: var(--warn-soft); }
.comp .reset { display: none; border: 0; background: none; cursor: pointer; color: var(--warn); font-size: 16px; padding: 0 2px; flex: none; }
.comp.man .reset { display: block; }
.link { border: 0; background: none; color: var(--brand2); cursor: pointer; font-weight: 600; padding: 0; font-size: 12px; text-decoration: underline; text-align: left; }
table.ore { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.ore td { padding: 5px 6px; } table.ore td:first-child { font-weight: 600; width: 30%; padding-left: 0; overflow-wrap: anywhere; line-height: 1.25; }
table.ore td.h { width: 130px; }

/* riepilogo laterale */
.sum h2 { margin-bottom: 10px; }
.sum .sr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sum .sr b { white-space: nowrap; }
.sum .sr.tot { font-weight: 700; border-bottom: 1px solid var(--line2); }
.sum .valore { background: var(--brand); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 12px 0; border-left: 5px solid var(--brand2); }
.sum .valore span { font-size: 12px; opacity: .8; display: block; letter-spacing: .05em; }
.sum .valore b { font-size: 25px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.count { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.count span { font-size: 12px; color: var(--muted); display: block; line-height: 1.2; } .count b { font-size: 18px; }

/* ---- kpi */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpis.small6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; line-height: 1.25; margin-bottom: 2px; }
.kpi b { font-size: clamp(19px, 2vw, 26px); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; display: block; }
.kpi.main { background: var(--brand); border-color: var(--brand); color: #fff; border-left: 6px solid var(--brand2); } .kpi.main span { color: #cfcfd3; }
.kpis.small6 .kpi { padding: 12px 14px; } .kpis.small6 .kpi b { font-size: clamp(16px, 1.45vw, 20px); }

/* ---- tabelle dati */
.tw { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650;
  text-align: right; padding: 8px 10px; border-bottom: 2px solid var(--brand); white-space: nowrap; background: #fff; }
table.data td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td.l, table.data th.l { text-align: left; }
table.data tr.click { cursor: pointer; } table.data tr.click:hover td { background: var(--red-soft); }
table.data tr.empty td { color: #a9a9ae; }
table.data tr.we td:first-child { color: var(--brand2); font-weight: 600; }
table.data tfoot td, table.data tr.tot td { font-weight: 700; background: var(--brand-soft); border-top: 2px solid var(--brand2); }
table.data tr.sub td { font-weight: 650; background: #fafafa; }
table.data td.strong { font-weight: 700; }

/* ---- registro ore mensile */
table.reg { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
table.reg th, table.reg td { border-bottom: 1px solid var(--line); padding: 4px 6px; background: #fff; }
table.reg thead th { position: sticky; top: 0; z-index: 2; background: var(--brand); color: #fff; text-align: left; font-size: 13px; padding: 9px 8px; white-space: nowrap; }
table.reg thead th .muted { color: #c9c9cd; }
table.reg th.d, table.reg td.d { position: sticky; left: 0; z-index: 1; white-space: nowrap; font-weight: 600; min-width: 92px; border-right: 2px solid var(--line2); }
table.reg thead th.d { z-index: 3; }
table.reg td.d a { color: inherit; text-decoration: none; } table.reg td.d a:hover { color: var(--brand2); text-decoration: underline; }
table.reg tr.we td { background: #f7f7f8; } table.reg tr.we td.d { color: var(--brand2); }
table.reg td.sep, table.reg th.sep { border-left: 2px solid var(--line2); }
table.reg input.h { width: 54px; text-align: center; font-weight: 650; padding: 6px 4px; }
table.reg input.s { width: 230px; padding: 6px 8px; }
table.reg tfoot td { font-weight: 700; background: var(--brand-soft); border-top: 2px solid var(--brand2); position: sticky; bottom: 0; white-space: nowrap; }
.regwrap { overflow: auto; max-height: calc(100vh - 200px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* ---- grafico */
.chart svg { width: 100%; height: 210px; display: block; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ---- report */
.reports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rep { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rep:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227, 6, 19, .16); }
.rep b { display: flex; gap: 8px; align-items: center; font-size: 15px; line-height: 1.2; }
.rep > span { font-size: 13px; color: var(--muted); }
.rep .dl { margin-top: auto; padding-top: 4px; color: var(--brand2); font-weight: 650; font-size: 13px; }
.pdfico { background: var(--brand2); color: #fff; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 3px 5px; letter-spacing: .03em; flex: none; }

/* ---- calendario */
.cal { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  padding: 14px; width: 320px; }
.cal .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal .ch b { font-size: 15px; }
.cal .cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .wd { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px 0; font-weight: 600; }
.cal .day { height: 38px; border: 0; background: none; border-radius: 9px; cursor: pointer; position: relative; font-weight: 550; padding: 0; }
.cal .day:hover { background: var(--brand-soft); }
.cal .day.out { visibility: hidden; }
.cal .day.today { outline: 2px solid var(--brand2); outline-offset: -2px; }
.cal .day.has::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand2); }
.cal .day.in { background: var(--red-soft); border-radius: 0; }
.cal .day.sel { background: var(--brand); color: #fff; border-radius: 9px; } .cal .day.sel::after { background: #fff; }
.cal .cf { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- finestra */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: 500px; max-width: 100%; max-height: 100%; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border-top: 5px solid var(--brand2); }
.modal h2 { font-size: 18px; margin-bottom: 4px; } .modal .grp { margin-top: 16px; } .modal .grp > span { display: block; font-weight: 600; margin-bottom: 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.price { margin-top: 18px; background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price b { font-size: 24px; white-space: nowrap; }
.modal .act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.banner { position: fixed; left: var(--side); right: 0; top: 0; background: var(--brand2); color: #fff; padding: 12px 20px; z-index: 90; font-weight: 600; text-align: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 95;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-weight: 550; max-width: 90vw; text-align: center; }
.toast.err { background: var(--brand2); }
.info { background: var(--brand-soft); border-left: 4px solid var(--brand2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: #333; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* listino / impostazioni */
table.form { border-collapse: collapse; width: 100%; }
table.form th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px 8px; line-height: 1.2; vertical-align: bottom; }
table.form td { padding: 5px 8px; } table.form td:first-child { font-weight: 600; line-height: 1.25; }
table.form input.n { width: 100%; max-width: 120px; min-width: 70px; }
table.form .euro { display: inline-block; width: 100%; max-width: 120px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.mgrid .card { margin-bottom: 0; }
.mcard .top { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; margin-bottom: 10px; }
.mcard .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand2); }

/* ---- finestre medie: i totali del giorno diventano una barra fissa in basso */
@media (max-width: 1399px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: sticky; top: auto; bottom: 10px; z-index: 20; }
  .sum { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 0; box-shadow: 0 6px 28px rgba(0, 0, 0, .22); border-color: var(--line2); }
  .sum h2, .sum .det { display: none; }
  .sum .sr { flex-direction: column; align-items: flex-start; gap: 0; border: 0 !important; padding: 0; font-weight: 400; }
  .sum .sr span { font-size: 12px; color: var(--muted); } .sum .sr b { font-size: 17px; font-weight: 700; }
  .sum .valore { margin: 0; padding: 6px 14px; } .sum .valore span { font-size: 11px; } .sum .valore b { font-size: 20px; }
  .counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0 auto; }
  .count { padding: 4px 10px; } .count span { font-size: 11px; } .count b { font-size: 15px; }
  .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .kpis.small6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --side: 66px; }
  .side { padding: 14px 8px; } .brand { padding: 0 0 10px; } .brand img, .brand span { display: none; } .brand .mini { display: block; width: 40px; margin: 0 auto; }
  #nav a { font-size: 0; justify-content: center; gap: 0; padding: 12px 0; } .side-foot { display: none; }
  #main { padding: 16px; } .two, .kpis { grid-template-columns: minmax(0, 1fr); } .kpis.small6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts { margin-left: 0; }
}

/* ---- accessi */
.accesso { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; display: flex; padding: 24px 16px; }
.accesso[hidden] { display: none; }
body.fuori > .side, body.fuori > #main { display: none; }
.acc-card { margin: auto; width: 420px; max-width: 100%; background: #fff; border-radius: 16px; border-top: 5px solid var(--brand2);
  box-shadow: var(--shadow); padding: 28px 26px 26px; }
.acc-card img { display: block; width: 210px; max-width: 70%; margin: 0 auto 18px; }
.acc-card h1 { font-size: 22px; text-align: center; }
.acc-card > p.muted { text-align: center; margin: 6px 0 14px; }
.acc-card label.f { margin: 12px 0 5px; }
.acc-card input { width: 100%; border: 1px solid var(--line2); border-radius: 9px; padding: 11px 12px; background: #fff; font-size: 16px; outline: none; }
.acc-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227, 6, 19, .18); }
.acc-card .btn.big { width: 100%; justify-content: center; margin-top: 18px; padding: 12px; font-size: 16px; }
.acc-prof { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin-top: 12px; }
.acc-prof > b { display: block; } .acc-prof > span { display: block; }
.acc-err { background: var(--danger-soft); color: var(--danger); border-radius: 9px; padding: 9px 12px; margin: 14px 0 0; font-weight: 600; font-size: 14px; }
.utente { margin-top: auto; padding: 12px 8px 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.utente:empty { display: none; }
.utente + .side-foot { margin-top: 0; padding-top: 2px; }
.utente .chi { flex: 1; min-width: 0; line-height: 1.25; }
.utente .chi b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.utente .chi span { font-size: 12px; color: var(--muted); }
.utente .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input[type=password] { border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; background: #fff; outline: none; }
input[type=password]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227, 6, 19, .18); }
table.acc { width: 100%; } table.acc td { vertical-align: middle; } table.acc td.az { text-align: right; white-space: nowrap; } table.acc td.az .btn { margin-left: 6px; }
form.accf label.f { margin: 14px 0 5px; } form.accf label.f small { display: inline; } form.accf input, form.accf select { width: 100%; }
form.accf label.conf { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.acc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
/* pagina istruzioni */
.guida { max-width: 900px; font-size: 15.5px; line-height: 1.6; }
.guida p { margin: 0 0 12px; }
.guida h3 { margin: 18px 0 8px; font-size: 15.5px; }
.guida .passi, .guida .punti { margin: 0 0 14px; padding-left: 24px; }
.guida .passi li, .guida .punti li { margin-bottom: 8px; padding-left: 4px; overflow-wrap: anywhere; }
.guida .passi li::marker { font-weight: 700; color: var(--brand2); }
.guida .info { font-size: 14.5px; margin: 0 0 12px; }
.guida .info:last-child, .guida .passi:last-child, .guida .punti:last-child, .guida p:last-child { margin-bottom: 0; }
.guida .info.attenzione { background: var(--red-soft); }
.glink { color: var(--red-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.gparole { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.gparole > div { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; }
.gparole b { display: block; margin-bottom: 2px; }
.gparole span { font-size: 14.5px; color: #333; }
.gfaq { margin: 0; }
.gfaq dt { font-weight: 700; margin-top: 14px; }
.gfaq dt:first-child { margin-top: 0; }
.gfaq dd { margin: 2px 0 0; }
@media (max-width: 900px) { .gparole { grid-template-columns: minmax(0, 1fr); } }
/* profilo di sola lettura */
body.lettura [data-act=step], body.lettura [data-act=stepo], body.lettura [data-act=resetcomp], body.lettura [data-act=listino],
body.lettura [data-act=svuota], body.lettura [data-act=salvalistino], body.lettura [data-act=salvamaestro],
body.lettura [data-act=nuovomaestro], body.lettura [data-act=delmaestro], body.lettura .mcard .foot, body.lettura #accessi,
body.lettura .card:has([data-act=backup]) { display: none !important; }
body.lettura #main input:disabled, body.lettura #main textarea:disabled, body.lettura #main select:disabled {
  background: #fafafa; color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; cursor: default; }
@media (max-width: 900px) {
  .utente { flex-direction: column; padding: 10px 0; } .utente .chi, .utente .btn span { display: none; } .utente .btn { padding: 9px; }
}
.card p { overflow-wrap: anywhere; }
@media (max-width: 900px) { #calR { min-width: 0 !important; flex: 1 1 200px; } }
.mcard { overflow-x: auto; }
