/* App rapportini Komponext - pensata per il telefono, usabile anche da PC (versione 6, con tema scuro; la precedente è in backup/app.css.v5) */
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Bold.woff) format('woff'); font-weight: 700; font-display: swap; }

/* ---------- Colori: chiaro (predefinito) ---------- */
:root {
	--accent: #f29f1d; --accent-dark: #d9860a; --accent-soft: #fff4e0; --accent-line: #fbe1b5; --accent-glow: rgba(242,159,29,.35);
	--ink: #1f2a37; --ink-2: #4b5565; --muted: #7b8494;
	--strong: #1f2a37; --on-strong: #fff;
	--bg: #f3f5f8; --surface: #fff; --surface-2: #fafbfc; --field: #fff; --chip: #eef1f4; --seg-bg: #e8ebf0; --seg-on: #fff;
	--line: #e8ebf0; --line-2: #d5dae3; --tabs-bg: rgba(255,255,255,.94); --ring: #e8ebf0;
	--hero-1: #151e2a; --hero-2: #243246;
	--ok: #16a34a; --ok-soft: #e7f7ed; --warn: #b45309; --warn-soft: #fef3c7; --warn-line: #fde68a; --err: #d63b2f; --err-soft: #fde8e6; --blu: #2563eb; --blu-soft: #e6eefe; --blu-ink: #1d4ed8;
	--radius: 18px; --radius-sm: 12px;
	--shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
	--shadow-up: 0 10px 30px rgba(16,24,40,.12);
	--tabs: 68px;
	color-scheme: light;
}
/* ---------- Colori: scuro (scelto nel profilo, oppure "Automatico" col telefono in modalità scura) ---------- */
:root[data-tema="scuro"] {
	--accent-soft: rgba(242,159,29,.14); --accent-line: rgba(242,159,29,.3);
	--ink: #eef0f3; --ink-2: #c3c9d2; --muted: #8b94a1;
	--strong: #eef0f3; --on-strong: #12151a;
	--bg: #0d0f13; --surface: #171a20; --surface-2: #1d2027; --field: #1d2027; --chip: #262a33; --seg-bg: #1d2027; --seg-on: #2c313b;
	--line: #262a32; --line-2: #343a46; --tabs-bg: rgba(20,23,29,.92); --ring: #2a2f39;
	--hero-1: #1a1d24; --hero-2: #262b35;
	--ok-soft: rgba(22,163,74,.16); --warn: #f2b25c; --warn-soft: rgba(180,83,9,.2); --warn-line: rgba(242,178,92,.25); --err-soft: rgba(214,59,47,.18); --blu: #6b9bff; --blu-soft: rgba(37,99,235,.2); --blu-ink: #9dbcff;
	--shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
	--shadow-up: 0 10px 30px rgba(0,0,0,.45);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root[data-tema="auto"] {
		--accent-soft: rgba(242,159,29,.14); --accent-line: rgba(242,159,29,.3);
		--ink: #eef0f3; --ink-2: #c3c9d2; --muted: #8b94a1;
		--strong: #eef0f3; --on-strong: #12151a;
		--bg: #0d0f13; --surface: #171a20; --surface-2: #1d2027; --field: #1d2027; --chip: #262a33; --seg-bg: #1d2027; --seg-on: #2c313b;
		--line: #262a32; --line-2: #343a46; --tabs-bg: rgba(20,23,29,.92); --ring: #2a2f39;
		--hero-1: #1a1d24; --hero-2: #262b35;
		--ok-soft: rgba(22,163,74,.16); --warn: #f2b25c; --warn-soft: rgba(180,83,9,.2); --warn-line: rgba(242,178,92,.25); --err-soft: rgba(214,59,47,.18); --blu: #6b9bff; --blu-soft: rgba(37,99,235,.2); --blu-ink: #9dbcff;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
		--shadow-up: 0 10px 30px rgba(0,0,0,.45);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blu); }
small { color: var(--muted); font-weight: 500; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 600px) { body { background: color-mix(in srgb, var(--bg) 88%, #808a99); } .app { box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(16,24,40,.08); } }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.main > :not(.invio):not(.spazio-fondo):not(.stepper) { animation: entra .28s ease both; }
.main > *:nth-child(2) { animation-delay: .03s; } .main > *:nth-child(3) { animation-delay: .06s; } .main > *:nth-child(4) { animation-delay: .09s; }

/* Barra superiore */
.bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
	background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; }
.bar__logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.bar__title { flex: 1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__back, .bar__user { border: 0; background: rgba(255,255,255,.1); color: #fff; height: 38px; min-width: 38px; border-radius: 12px; font-size: 18px; padding: 0 9px; display: grid; place-items: center; transition: background .15s; }
.bar__back:active { background: rgba(255,255,255,.2); }
.bar__back .ico { width: 20px; height: 20px; }
.bar__user { font-size: 13px; font-weight: 700; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(242,159,29,.25); }
.avviso { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); color: var(--warn); padding: 10px 16px; font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--warn-line); }
.main { flex: 1; padding: 16px 14px calc(var(--tabs) + 30px); }

/* Schede in basso con pulsante centrale */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; align-items: stretch; background: var(--tabs-bg);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 6; height: calc(var(--tabs) + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(16,24,40,.05); }
.tabs button { flex: 1; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; transition: color .15s; }
.tabs button .ico { width: 23px; height: 23px; transition: transform .15s; }
.tabs button.on { color: var(--accent-dark); }
.tabs button.on .ico { transform: translateY(-1px); }
.tabs button.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabs .tabs__fab { color: var(--ink); }
.tabs .tabs__fab .ico { width: 52px; height: 52px; padding: 13px; border-radius: 18px; background: linear-gradient(135deg, #f7b13f, var(--accent-dark)); color: #fff; stroke-width: 2.6;
	margin-top: -26px; box-shadow: 0 8px 20px var(--accent-glow), 0 0 0 5px var(--bg); transition: transform .12s; }
.tabs .tabs__fab:active .ico { transform: scale(.94); }
.tabs .tabs__fab.on::before { display: none; }

/* Benvenuto (Oggi) */
.benvenuto { margin: -16px -14px 6px; padding: 6px 18px 22px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 70%, #3a3226); color: #fff; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.benvenuto::after { content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,159,29,.35), transparent 70%); }
.benvenuto__data { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); text-transform: capitalize; }
.benvenuto__ciao { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 16px; }
.numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.numeri div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 10px 9px; transition: background .15s; }
.numeri div.tap { cursor: pointer; }
.numeri div.tap:active { background: rgba(255,255,255,.16); }
.numeri b { display: block; font-size: 20px; font-weight: 700; color: #fff; }
.numeri div:first-child b { color: #ffc266; }
.numeri span { font-size: 11.5px; color: rgba(255,255,255,.65); font-weight: 500; }

/* Prossimo intervento */
.card.prossimo { background: linear-gradient(150deg, #2a1f0e, #3a2a12 45%, #1b2230); color: #fff; border: 1px solid rgba(242,159,29,.35); position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(242,159,29,.18); }
.prossimo::before { content: ''; position: absolute; left: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(242,159,29,.45), transparent 70%); pointer-events: none; }
.prossimo > * { position: relative; }
.prossimo__testa { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prossimo__quando { background: var(--accent); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 11px; border-radius: 999px; box-shadow: 0 4px 12px var(--accent-glow); }
.prossimo__ore { font-weight: 700; color: #ffd59a; font-size: 15px; letter-spacing: -.01em; }
.prossimo__titolo { font-size: 20px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
.prossimo__sub { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 2px; }
.prossimo__sub .ico { color: #ffc266; }
.prossimo__azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.prossimo__azioni .btn { margin: 0; padding: 12px; font-size: 15px; }

/* Striscia dei giorni */
.giorni { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.giorno { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; box-shadow: var(--shadow); transition: background .15s, transform .1s, border-color .15s; }
.giorno:active { transform: scale(.95); }
.giorno span { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.giorno b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.giorno i { display: flex; gap: 3px; height: 6px; align-items: center; }
.giorno em { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.giorno.oggi span { color: var(--accent-dark); }
.giorno.on { background: linear-gradient(160deg, #f7b13f, var(--accent-dark)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }
.giorno.on span { color: rgba(255,255,255,.85); }
.giorno.on em { background: #fff; }

/* Indicatore di avanzamento del rapportino */
.stepper { position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 4; display: flex; gap: 6px; margin: 0 -14px 4px; padding: 9px 14px; background: var(--tabs-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.stepper a { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.stepper a span { width: 23px; height: 23px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex-shrink: 0; transition: background .2s, border-color .2s, color .2s; }
.stepper a:not(:last-child)::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .2s; }
.stepper a.ok { color: var(--ink); }
.stepper a.ok span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper a.ok::after { background: var(--ok); }
.passo { scroll-margin-top: 120px; }

/* Caricamento a scheletro */
@keyframes brilla { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk { display: block; height: 86px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--line);
	background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 40%, var(--chip) 50%, var(--surface-2) 60%, var(--surface) 100%); background-size: 200% 100%; animation: brilla 1.3s ease-in-out infinite; }
.sk--alto { height: 150px; }

/* Testi e sezioni */
.titolo-sez { margin: 24px 4px 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.titolo-sez .ico { color: var(--accent-dark); width: 19px; height: 19px; }
.titolo-sez small { margin-left: auto; background: var(--chip); color: var(--ink-2); border-radius: 10px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.sezione { margin: 14px 4px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sezione::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.passo { display: flex; align-items: center; gap: 10px; margin: 24px 4px 10px; font-size: 16px; font-weight: 700; }
.passo span { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #f7b13f, var(--accent-dark)); color: #fff; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 10px var(--accent-glow); }
.passo span .ico { width: 16px; height: 16px; }
.nota { font-size: 13px; color: var(--muted); margin: 6px 4px 8px; }
.con-ico-riga { display: flex; align-items: center; gap: 6px; }
.con-ico-riga .ico { color: var(--accent-dark); }
.centro { text-align: center; }
.vuoto { text-align: center; color: var(--muted); padding: 20px 12px; font-size: 14px; }
.vuoto__ico { display: block; width: 30px; height: 30px; margin: 0 auto 8px; color: var(--line-2); }
.etichetta { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }

/* Card */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 16px; margin-bottom: 10px; border: 1px solid var(--line); }
.card.tap { cursor: pointer; transition: transform .1s, box-shadow .15s, border-color .15s; }
.card.tap:hover { border-color: var(--accent-line); }
.card.tap:active { transform: scale(.985); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card__titolo { font-size: 16px; font-weight: 700; margin: 3px 0 2px; letter-spacing: -.01em; }
.card__titolo.piccolo { font-size: 15px; }
.card__sub { color: var(--ink-2); font-size: 14px; }
.etich { color: var(--accent-dark); }
.riga-card { display: flex; align-items: center; gap: 12px; }
.riga-card__corpo { flex: 1; min-width: 0; }
.riga-card__ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.riga-card__ico .ico { width: 21px; height: 21px; }
.riga-card__ico--ticket { background: var(--blu-soft); color: var(--blu); }
.riga-card__ico--commessa { background: var(--accent-soft); color: var(--accent-dark); }
.riga-card__freccia { color: var(--line-2); width: 20px; height: 20px; }
.invito { display: flex; gap: 12px; border: 1.5px dashed var(--accent-line); background: var(--accent-soft); margin-top: 14px; }
.invito__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.invito .btn { margin-top: 10px; }
.hero { background: linear-gradient(140deg, var(--hero-1), var(--hero-2) 75%, #3a3226); color: #fff; border: 0; box-shadow: 0 10px 26px rgba(21,30,42,.25); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -50px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(242,159,29,.3), transparent 70%); pointer-events: none; }
.hero .card__top, .hero .card__sub { color: rgba(255,255,255,.72); }
.hero__titolo { font-size: 21px; font-weight: 700; margin: 4px 0; line-height: 1.25; letter-spacing: -.01em; }
.hero.piccolo .hero__titolo { font-size: 17px; }
.hero__quando { font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 7px; color: #ffc266; }
.hero .pillola { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.profilo { display: flex; align-items: center; gap: 14px; }
.profilo__avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 19px; box-shadow: 0 0 0 4px rgba(242,159,29,.25); flex-shrink: 0; }
.nota-box { background: var(--accent-soft); border-color: var(--accent-line); white-space: pre-wrap; font-size: 14px; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.chip--blu { background: var(--blu-soft); color: var(--blu-ink); } .chip--arancio { background: var(--accent-soft); color: var(--accent-dark); }
.chip--verde { background: var(--ok-soft); color: var(--ok); } .chip--rosso { background: var(--err-soft); color: var(--err); }
.avatar { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; border: 2px solid var(--surface); }
.colleghi { display: flex; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.colleghi .avatar + .avatar { margin-left: -8px; }
.colleghi span { margin-left: 8px; }
.riga { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.riga:last-child { border-bottom: 0; }
.riga > span:first-child { color: var(--muted); }
.riga > :last-child { text-align: right; }
.riga__tec { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 600; }
.totale-riga b { font-size: 17px; color: var(--accent-dark); }
.azione-riga { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.azione-riga__ico { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.azione-riga span:last-child { color: var(--on-strong); background: var(--strong); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; }
.azioni-card { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.azioni-card a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-decoration: none; color: var(--accent-dark); background: var(--accent-soft); padding: 7px 12px; border-radius: 10px; }
.azioni-card a:nth-child(2) { color: var(--ink); background: var(--chip); }
.azioni-card a:last-child { margin-left: auto; color: var(--muted); background: none; padding-right: 0; }

/* Interventi pianificati */
.pian { display: flex; gap: 13px; padding: 13px 14px; }
.pian__ora { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 8px 0; }
.pian__ora b { font-size: 17px; color: var(--accent-dark); letter-spacing: -.02em; }
.pian__ora span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pian__corpo { flex: 1; min-width: 0; }

/* Pulsanti */
.btn { display: block; width: 100%; border: 0; border-radius: 15px; padding: 14px; font-size: 16px; font-weight: 700; background: var(--strong); color: var(--on-strong); margin-top: 10px; text-align: center; text-decoration: none; transition: transform .1s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn--ico { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn--accent { background: linear-gradient(135deg, #f6ab31, var(--accent-dark)); color: #fff; } .btn--accent:active { background: var(--accent-dark); }
.btn--ok { background: linear-gradient(135deg, #22b45a, #15803d); color: #fff; box-shadow: 0 6px 16px rgba(22,163,74,.3); }
.btn--chiaro { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.btn--grande { padding: 17px; font-size: 17px; box-shadow: 0 8px 20px var(--accent-glow); }
.btn--piccolo { display: inline-block; width: auto; padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn--vetro { background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn--esci { color: var(--err); margin-top: 16px; }
.btn[disabled] { opacity: .5; }
.link { border: 0; background: none; color: var(--blu); font-weight: 700; padding: 6px 0; }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Modulo */
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.campo input, .campo select, .campo textarea, .orari input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 13px; background: var(--field); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo textarea.corto { min-height: 70px; }
.con-ico { position: relative; }
.con-ico .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.con-ico input { padding-left: 40px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(242,159,29,.18); }
.tecnico { border: 1px solid var(--line); border-radius: 15px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.tecnico__testa { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.tecnico__testa .avatar { width: 32px; height: 32px; font-size: 12px; border: 0; }
.tecnico__testa b { flex: 1; }
.tecnico__ore { background: var(--strong); color: var(--on-strong); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 700; }
.x { border: 0; background: var(--chip); width: 28px; height: 28px; border-radius: 14px; color: var(--muted); font-size: 16px; }
.orari { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.orari label { font-size: 12px; font-weight: 600; color: var(--muted); }
.orari input { margin-top: 4px; padding: 10px; }
.interruttore { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin: 6px 0 8px; cursor: pointer; }
.interruttore input { display: none; }
.interruttore span { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.interruttore span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.interruttore input:checked + span { background: var(--ok); }
.interruttore input:checked + span::after { left: 21px; }
details.aggiungi summary { cursor: pointer; font-weight: 700; color: var(--blu); padding: 6px 0; list-style: none; }
details.aggiungi .pillole { margin-top: 6px; }
.pillole { display: flex; flex-wrap: wrap; gap: 7px; }
.pillola { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; transition: background .12s, border-color .12s, color .12s; }
.pillola.on { background: var(--strong); border-color: var(--strong); color: var(--on-strong); box-shadow: 0 3px 8px rgba(31,42,55,.25); }
.pillole.statiche { margin-top: 12px; }
.frasi { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.frasi button { flex-shrink: 0; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.seg { display: flex; background: var(--seg-bg); border-radius: 15px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 11px; border-radius: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.seg button.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.seg button.on.ok { color: var(--ok); }
.seg button.on.attesa { color: var(--warn); }
.seg--schede { margin-bottom: 14px; }
.seg--schede .ico { width: 18px; height: 18px; }
.seg--schede .conta { background: var(--chip); color: var(--ink-2); font-size: 12px; padding: 0 8px; border-radius: 999px; margin-left: 2px; }
.seg--schede button.on .conta { background: var(--accent); color: #fff; }
.materiale { display: grid; grid-template-columns: 64px 1fr 40px; gap: 6px; margin-bottom: 6px; }
.materiale input { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px; font-size: 15px; min-width: 0; background: var(--field); }
.materiale button { border: 0; background: var(--chip); border-radius: var(--radius-sm); font-size: 18px; color: var(--muted); }
.foto { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.foto > div { position: relative; }
.foto img { width: 80px; height: 80px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
.foto > div button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--surface); background: var(--strong); color: var(--on-strong); font-size: 13px; }
.foto__aggiungi { width: 80px; height: 80px; border: 1.5px dashed var(--line-2); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; background: var(--surface-2); color: var(--ink-2); }
.foto__aggiungi .ico { width: 24px; height: 24px; }
.foto__aggiungi span { font-size: 11px; font-weight: 600; color: var(--muted); }
/* l'area firma resta bianca anche col tema scuro: la firma è a inchiostro blu */
.firma { width: 100%; height: 170px; background: #fff; border: 1.5px dashed #9aa6b5; border-radius: 15px; touch-action: none; display: block; }
.firma__azioni { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: 2px; }
.firma-salvata { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 8px 12px; background: var(--surface-2); }
.firma-salvata img { height: 56px; max-width: 70%; object-fit: contain; background: #fff; border-radius: 8px; }
.firma-salvata.vuota { color: var(--muted); font-size: 14px; display: block; }
.errore { color: var(--err); font-size: 14px; font-weight: 600; min-height: 20px; margin: 6px 4px; }

/* Barra di invio sempre visibile */
.spazio-fondo { height: 74px; }
.invio { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); z-index: 5;
	display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--tabs-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16,24,40,.06); }
.invio__tot { display: flex; flex-direction: column; line-height: 1.15; }
.invio__tot span { font-size: 12px; color: var(--muted); font-weight: 600; }
.invio__tot b { font-size: 21px; letter-spacing: -.02em; }
.invio .btn { margin: 0; flex: 1; }

/* Ricerca */
.cerca-box { position: relative; margin-bottom: 12px; }
.cerca-box .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.cerca { width: 100%; border: 1px solid var(--line-2); border-radius: 15px; padding: 14px 14px 14px 46px; font-size: 16px; background: var(--field); box-shadow: var(--shadow); }

/* Esito invio */
.esito { text-align: center; padding-top: 18px; }
.esito__icona { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, #22b45a, #15803d); color: #fff; display: grid; place-items: center; margin: 6px auto 14px;
	box-shadow: 0 12px 28px rgba(22,163,74,.35), 0 0 0 10px var(--ok-soft); animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.esito__icona .ico { width: 46px; height: 46px; stroke-width: 2.6; }
.esito__icona.attesa { background: linear-gradient(135deg, #f6ab31, var(--accent-dark)); box-shadow: 0 0 0 10px var(--accent-soft); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.esito h2 { margin: 0 0 2px; font-size: 25px; letter-spacing: -.02em; }

/* Ore della settimana */
.card--ore__testa { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.ore-riepilogo { display: flex; align-items: center; gap: 18px; margin: 12px 0 4px; }
.anello-box { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.anello { width: 100%; height: 100%; transform: rotate(-90deg); }
.anello circle { fill: none; stroke-width: 12; }
.anello__fondo { stroke: var(--ring); }
.anello__val { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 2px 6px rgba(242,159,29,.4)); transition: stroke-dasharray .8s ease; }
.anello__testo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anello__testo b { font-size: 22px; letter-spacing: -.02em; }
.anello__testo span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ore-numeri { display: grid; gap: 8px; flex: 1; }
.ore-numeri div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ore-numeri div:last-child { border-bottom: 0; }
.ore-numeri span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ore-numeri b { font-size: 15px; }
.ore-numeri .totale { font-size: 22px; letter-spacing: -.02em; color: var(--accent-dark); }
.settimana { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 12px; }
.settimana div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 12px; color: var(--muted); font-weight: 600; gap: 4px; }
.settimana i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #fbd08a, #f6b955); min-height: 4px; opacity: .8; }
.settimana .oggi i { background: linear-gradient(180deg, #f6ab31, var(--accent-dark)); box-shadow: 0 4px 12px var(--accent-glow); opacity: 1; }
.settimana .oggi { color: var(--ink); }
.settimana b { color: var(--ink); font-size: 11px; }
.card--reg .durata { color: var(--ink); background: var(--chip); padding: 2px 9px; border-radius: 999px; font-size: 12.5px; }

/* Accesso */
.login { margin: -16px -14px calc(-1 * (var(--tabs) + 30px)); padding: 0 20px 30px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
	background: linear-gradient(165deg, var(--hero-1) 0%, var(--hero-2) 48%, var(--bg) 48.2%); }
.login::before { content: ''; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(242,159,29,.35), transparent 70%); }
.login__testa { position: relative; text-align: center; margin-bottom: 22px; }
.login__logo { width: 104px; height: 104px; border-radius: 28px; display: block; margin: 0 auto 16px; box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.login h1 { color: #fff; font-size: 27px; margin: 0 0 4px; letter-spacing: -.02em; }
.login p.sotto { color: rgba(255,255,255,.7); margin: 0; }
.login__form { padding: 22px; box-shadow: var(--shadow-up); position: relative; }
.login__piede { text-align: center; color: var(--muted); font-size: 12px; font-weight: 500; margin: 18px 0 0; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 90px); transform: translateX(-50%); background: var(--strong); color: var(--on-strong); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; z-index: 20; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.caricamento { text-align: center; color: var(--muted); padding: 34px; }
.caricamento::before { content: ''; display: block; width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Scelte a spunta: attività della commessa, attrezzature ---------- */
.scelte { display: flex; flex-direction: column; gap: 7px; }
.scelta { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 10px 12px; transition: border-color .15s, background .15s; }
.scelta__spunta { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .15s; }
.scelta__spunta .ico { width: 15px; height: 15px; stroke-width: 3; }
.scelta__testo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scelta__testo b { font-size: 14px; font-weight: 600; }
.scelta__testo small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scelta em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.scelta.on { border-color: var(--ok); background: var(--ok-soft); }
.scelta.on .scelta__spunta { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- Materiali dal magazzino ---------- */
.materiale-blocco { position: relative; margin-bottom: 6px; }
.materiale-blocco .materiale { margin-bottom: 0; }
.materiale__info { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok); margin: 4px 0 0 70px; }
.materiale__info .ico { width: 14px; height: 14px; }
.suggerimenti { position: absolute; left: 70px; right: 46px; top: 46px; z-index: 8; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-up); overflow: hidden; }
.suggerimenti button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.suggerimenti button:last-child { border-bottom: 0; }
.suggerimenti button:active, .suggerimenti button:hover { background: var(--accent-soft); }
.suggerimenti span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggerimenti b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggerimenti small { font-size: 12px; color: var(--muted); }
.suggerimenti em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.suggerimenti em.zero { color: var(--err); background: var(--err-soft); }
.frasi__titolo { flex-shrink: 0; align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- Esito: cosa è successo oltre al rapportino ---------- */
.esito-extra { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; margin-bottom: 8px; font-size: 14px; }
.esito-extra .ico { color: var(--ok); width: 20px; height: 20px; }

/* attività della commessa: stato scelto sotto la scelta */
.scelta-blocco { display: flex; flex-direction: column; gap: 6px; }
.seg--piccolo { margin: 0 0 4px 34px; padding: 3px; border-radius: 12px; }
.seg--piccolo button { padding: 7px 8px; font-size: 13px; border-radius: 9px; }
.seg--piccolo .ico { width: 15px; height: 15px; }

/* ======================================================================
 * Versione 9: calendario di tutti, assenze, nuovo ticket, pianifica, clienti, "Altro"
 * ====================================================================== */
/* il "+" in basso: foglio delle azioni */
.foglio { position: fixed; inset: 0; z-index: 60; background: rgba(10,14,20,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.foglio.aperto { background: rgba(10,14,20,.45); }
.foglio__box { width: 100%; max-width: 560px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-up); transform: translateY(100%); transition: transform .22s ease; }
.foglio.aperto .foglio__box { transform: none; }
.foglio__maniglia { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 10px; }
.foglio h2 { margin: 0 4px 8px; font-size: 17px; }
.foglio__voce { display: flex; align-items: center; gap: 13px; width: 100%; border: 0; background: none; text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.foglio__voce:active { background: var(--surface-2); }
.foglio__voce > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.foglio__voce b { font-size: 15.5px; }
.foglio__voce small { font-size: 13px; }
.foglio__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.foglio__ico .ico { width: 22px; height: 22px; }
.foglio__ico--rapportino { background: var(--accent-soft); color: var(--accent-dark); }
.foglio__ico--ticket { background: var(--blu-soft); color: var(--blu); }
.foglio__ico--pianifica { background: var(--ok-soft); color: var(--ok); }
.foglio__ico--assenza { background: var(--err-soft); color: var(--err); }

/* calendario: settimana, filtro per tecnico, assenze */
.sett-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sett-nav__freccia { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; flex-shrink: 0; }
.sett-nav__freccia .ico { width: 20px; height: 20px; }
.sett-nav__titolo { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sett-nav__titolo b { font-size: 17px; letter-spacing: -.01em; }
.sett-nav__titolo .link { font-size: 12.5px; padding: 0; }
.filtro-tec { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 2px; scrollbar-width: none; }
.filtro-tec::-webkit-scrollbar { display: none; }
.filtro-tec .pillola { flex-shrink: 0; padding: 6px 12px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.filtro-tec .pillola .ico { width: 16px; height: 16px; }
.giorno em.ass { background: #e5484d; }
.giorno.on em.ass { background: #ffd0d2; }
.pallino { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.assenti { border-color: color-mix(in srgb, var(--err) 25%, var(--line)); background: color-mix(in srgb, var(--err-soft) 45%, var(--surface)); }
.assenti__titolo { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--err); margin-bottom: 6px; }
.assenti__titolo .ico { width: 17px; height: 17px; }
.assente { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.assente span { display: flex; flex-direction: column; font-size: 14px; }
.assente small { display: flex; align-items: center; font-size: 12.5px; }
.assenti--oggi, .assenti--mia { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 14px; }
.assenti--oggi > .ico { color: var(--err); width: 20px; height: 20px; }
.assenti--oggi span, .assenti--mia span { flex: 1; }
.assenti--mia { background: var(--surface); border-color: var(--line); font-weight: 600; }

/* le mie assenze */
.assenza { border-left: 5px solid var(--c); }
.assenza__testa { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.assenza__tipo { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.assenza .x { display: grid; place-items: center; width: 34px; height: 34px; }
.assenza .x .ico { width: 17px; height: 17px; }
.tipi-ass { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipo-ass { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 14.5px; display: flex; align-items: center; transition: all .12s; }
.tipo-ass.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.nota .ico { width: 15px; height: 15px; color: var(--accent-dark); }

/* scelta del cliente */
.cerca-cli { position: relative; }
.cerca-cli .cerca-box { margin-bottom: 0; }
.cerca-cli .cerca { box-shadow: none; padding: 12px 13px 12px 44px; }
.suggerimenti--cli { left: 0; right: 0; top: 52px; max-height: 300px; overflow-y: auto; }
.suggerimenti--cli .vuoto { padding: 12px; }
.scelto { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 15px; margin-bottom: 4px; }
.scelto .ico { color: var(--accent-dark); width: 19px; height: 19px; }
.scelto b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scelto .link { padding: 0; font-size: 13.5px; }
.scelto--ticket { background: var(--blu-soft); border-color: transparent; margin-bottom: 12px; }
.scelto--ticket .ico { color: var(--blu); }
.pillola--rossa.on { background: var(--err); border-color: var(--err); color: #fff; }

/* pianifica: chi è libero */
.disp-elenco { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.disp { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 9px 11px; transition: border-color .12s, background .12s; }
.disp > span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.disp b { font-size: 14.5px; }
.disp b em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--strong); color: var(--on-strong); padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.disp small { display: flex; align-items: center; font-size: 12.5px; }
.disp--si small { color: var(--ok); }
.disp--occ small { color: var(--warn); }
.disp--no { background: var(--surface-2); }
.disp--no small { color: var(--err); }
.disp--no[disabled] { opacity: .6; cursor: not-allowed; }
.disp--no[disabled] b { text-decoration: line-through; }
.disp__spunta { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.disp__spunta .ico { width: 15px; height: 15px; stroke-width: 3; }
.disp.on { border-color: var(--ok); background: var(--ok-soft); }
.disp.on .disp__spunta { background: var(--ok); border-color: var(--ok); color: #fff; }
.disp.on.disp--no { border-color: var(--err); background: var(--err-soft); }
.disp.on.disp--no .disp__spunta { background: var(--err); border-color: var(--err); }
.avviso-rosso { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--err-soft); color: var(--err); font-size: 13.5px; }
.avviso-rosso .ico { width: 18px; height: 18px; margin-top: 1px; }

/* clienti */
.riga-card__ico--cliente { background: var(--ok-soft); color: var(--ok); }

/* altro: tessere */
.tessere { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tessera { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 14px; text-decoration: none; color: var(--ink); transition: transform .1s; }
.tessera:active { transform: scale(.97); }
.tessera b { font-size: 15px; margin-top: 8px; }
.tessera small { font-size: 12.5px; line-height: 1.35; }
.tessera__ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); }
.tessera__ico .ico { width: 22px; height: 22px; }
.tessera__ico--assenze { background: var(--err-soft); color: var(--err); }
.tessera__ico--clienti { background: var(--ok-soft); color: var(--ok); }
.tessera__ico--storico { background: var(--accent-soft); color: var(--accent-dark); }
.tessera__ico--ore { background: var(--blu-soft); color: var(--blu); }
/* i campi data/ora nativi non devono allargare la pagina sui telefoni stretti */
.orari label, .orari input { min-width: 0; }
.orari input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 44px; }
