/* app.css — tool tarature. Base derivata da tools/audit/app.css (22/10/2026), copia indipendente:
   modificare uno dei due tool non cambia l'altro. Classi proprie con prefisso tar-. */
:root {
    --navy: #002147;
    --gold: #D4AF37;
    --slate: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --light: #f8fafc;
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #e6eaf1;
    color: var(--slate);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── topbar ── */
.topbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
    background: var(--navy); padding: 14px 24px; color: #fff;
}
.topbar .logo { justify-self: start; font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; text-decoration: none; white-space: nowrap; }
.topbar .logo span { color: var(--gold); }
.topbar .brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.3px; justify-self: center; }
.topbar .brand em { color: var(--gold); font-style: normal; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .btn-link { background: none; border: none; font-family: inherit; color: #cbd5e1; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.topbar .btn-link:hover { color: var(--gold); }
.topbar .link-moduli { color: #cbd5e1; font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar .link-moduli:hover { color: var(--gold); }
@media (max-width: 760px) {
    .topbar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .topbar .logo, .topbar-right { justify-self: center; }
}

main { width: 100%; margin: 0; padding: 40px 24px 72px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ── connect view ── */
.connect { max-width: 720px; margin: 24px auto; text-align: center; background: #002147; border-radius: 16px; padding: 56px 44px; }
.connect h1 { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 18px; }
.connect h1 em { color: var(--gold); font-style: normal; }
.connect p { font-size: 1.02rem; color: #cbd5e1; margin-bottom: 24px; }
.connect p strong { color: #fff; }
.connect .hint { font-size: 0.85rem; color: #94a3b8; margin-top: 16px; }
.trust-list { list-style: none; margin: 0 0 26px; padding: 0; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.trust-list li { color: #dfe7f1; font-size: 0.92rem; }
.trust-list li::before { content: "✓ "; color: var(--gold); font-weight: 800; }
.connect-or { display: block; margin-top: 18px; margin-bottom: 8px; color: #8ea0c2; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.connect-alt-link {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: transparent; color: var(--gold); border: 1.5px solid var(--gold);
    font-family: inherit; font-size: 0.9rem; font-weight: 700;
    border-radius: 10px; padding: 12px 24px; cursor: pointer; transition: background .15s, color .15s;
}
.connect-alt-link:hover { background: var(--gold); color: var(--navy); }
.tool-intro { max-width: 700px; margin: 34px auto 30px; padding-top: 26px; border-top: 1px solid rgba(212,175,55,.22); text-align: left; color: #cfdaea; font-size: 0.92rem; line-height: 1.7; }
.tool-intro h2 { color: var(--gold); font-size: 0.98rem; font-weight: 800; margin: 22px 0 8px; letter-spacing: -0.2px; }
.tool-intro h2:first-child { margin-top: 0; }
.tool-intro p { margin: 0 0 12px; font-size: 0.92rem; color: #cfdaea; }
.tool-intro ul, .tool-intro ol { margin: 0 0 12px; padding-left: 20px; }
.tool-intro li { margin-bottom: 7px; }
.tool-intro strong { color: #fff; }
.tool-intro a { color: var(--gold); font-weight: 700; }
.tool-intro .formula { font-family: ui-monospace, Consolas, monospace; color: #fff; background: rgba(255,255,255,.07); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 0.86rem; line-height: 1.8; }

.btn-primary {
    background: var(--gold); color: var(--navy);
    border: none; border-radius: 10px; padding: 15px 30px;
    font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: transform .15s, background .2s;
}
.btn-primary:hover:not(:disabled) { background: #fff; transform: translateY(-2px); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.notice { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; padding: 14px 18px; font-size: 0.9rem; margin-top: 20px; }

/* ── tab e liste ── */
.detail-tab-nav { display: flex; gap: 3px; align-items: flex-end; border-bottom: 2px solid #002147; padding: 0 4px; }
.detail-tab-btn { padding: 8px 22px 10px; font-size: 12px; font-weight: 700; color: #64748b; background: #eef2f7; border: 1px solid #e2e8f0; border-bottom: 2px solid #002147; border-radius: 6px 6px 0 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em; position: relative; top: 2px; font-family: inherit; }
.detail-tab-btn:hover { background: #e2e8f0; color: #334155; }
.detail-tab-btn.active { color: #002147; background: #fff; border: 1px solid #002147; border-bottom: 3px solid #fff; font-weight: 800; }

.list-card { background: #fff; border: 1px solid #002147; border-radius: 0 10px 10px 10px; overflow: hidden; padding: 0; margin: 0; box-shadow: none; } /* padding/margin/ombra: annullano .list-card di site-new.css (25/10) */
.list-header { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #002147; color: #f1f5f9; flex-wrap: wrap; }
.list-header .lc-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.list-header .folder-info { flex: 1; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--gold); }
.list-header .folder-info a { color: var(--gold); text-decoration: underline; font-weight: 800; }
.btn-new { background: var(--gold); color: #002147; font-weight: 800; font-size: 0.82rem; border: none; border-radius: 6px; padding: 7px 14px; cursor: pointer; font-family: inherit; transition: background .15s; flex-shrink: 0; }
.btn-new:hover { background: #fff; }
.list-body { padding: 16px; background: #fff; }
.empty { color: var(--muted); font-size: 0.92rem; padding: 8px 0; }

.tar-filtri { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.tar-filtri input, .tar-filtri select { font-family: inherit; font-size: 0.88rem; color: var(--slate); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.tar-filtri input { flex: 1; min-width: 180px; }
.tar-filtri input:focus, .tar-filtri select:focus { outline: none; border-color: var(--gold); }

.s35-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; font-size: 13px; }
.s35-table thead { background: #1e3a5f; }
.s35-table th { text-align: left; padding: 7px 10px; font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #162d4a; border-right: 1px solid #2a4a72; }
.s35-table th:last-child { border-right: none; }
.s35-table td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; color: #334155; vertical-align: middle; }
.s35-table td:last-child { border-right: none; }
.s35-table tbody tr { transition: background .15s; cursor: pointer; }
.s35-table tbody tr:nth-child(even) { background: #f8fafc; }
.s35-table tbody tr:hover td { background: #eef2f7; }
.s35-table td.num, .s35-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.s35-wrap { overflow-x: auto; }
.tar-mini { background: none; border: 1px solid var(--border); color: var(--navy); font-family: inherit; font-weight: 700; font-size: 0.74rem; border-radius: 6px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.tar-mini:hover { border-color: var(--gold); background: #fffbeb; }

.badge { display: inline-block; font-weight: 700; font-size: 11px; padding: 2px 9px; border-radius: 10px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; white-space: nowrap; }
.badge-ok, .badge-attivo, .badge-chiusa { background: #dcfce7; color: #15803d; border-color: #86efac; }
.badge-in_scadenza, .badge-bozza { background: #fef3c7; color: #a16207; border-color: #fde68a; }
.badge-scaduto, .badge-fuori_servizio { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.badge-dismesso { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }

/* ── editor / compilazione ── */
.compile-head { background: #002147; color: #fff; border-radius: 10px; padding: 14px 20px 16px; margin-bottom: 20px; }
.compile-head-row { display: flex; align-items: center; gap: 16px; }
.btn-back { font-family: inherit; font-size: 0.8rem; font-weight: 800; background: #fff; color: var(--navy); border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; text-decoration: none; }
.btn-back:hover { background: var(--gold); transform: translateY(-1px); }
.ch-title { flex: 1; text-align: center; font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.btn-print { font-family: inherit; font-size: 0.86rem; font-weight: 800; background: var(--gold); color: var(--navy); border: none; border-radius: 10px; padding: 10px 18px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; }
.btn-print:hover { background: #fff; transform: translateY(-1px); }
.btn-danger { font-family: inherit; font-size: 0.88rem; font-weight: 700; background: transparent; color: #fca5a5; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 10px 18px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { font-family: inherit; font-size: 0.9rem; font-weight: 700; background: #fff; color: var(--slate); border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 22px; cursor: pointer; transition: border-color .15s; }
.btn-ghost:hover { border-color: var(--slate); }
@media (max-width: 560px) {
    .connect h1 { font-size: 1.55rem; }
    .connect { padding: 40px 22px; }
    .compile-head-row { flex-wrap: wrap; justify-content: center; }
    .ch-title { order: -1; flex-basis: 100%; }
}

.az-hint { color: var(--muted); font-size: 0.88rem; margin: 16px 0 20px; }
.tar-sez { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); padding-bottom: 8px; margin: 26px 0 14px; border-bottom: 1px solid var(--border); }
.tar-sez small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 8px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 12px; }
.meta-grid label, .note-block { display: flex; flex-direction: column; gap: 5px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.meta-grid input, .meta-grid select, .note-block textarea, .note-block input {
    font-family: inherit; font-size: 0.92rem; font-weight: 400; text-transform: none; letter-spacing: 0;
    color: var(--slate); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
}
.meta-grid input:focus, .meta-grid select:focus, .note-block textarea:focus { outline: none; border-color: var(--gold); }
.meta-grid input[readonly] { background: var(--light); color: var(--muted); cursor: default; }
.meta-grid input:disabled, .meta-grid select:disabled, .note-block textarea:disabled, .tar-in:disabled { background: var(--light); color: var(--muted); }
.note-block { margin: 16px 0; }
.note-block textarea { resize: vertical; }
.tar-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.tar-checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--slate); cursor: pointer; }
.tar-checks input { width: 16px; height: 16px; }

.tar-in { width: 100%; font-family: inherit; font-size: 0.86rem; color: var(--slate); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; background: #fff; }
.tar-in:focus { outline: none; border-color: var(--gold); }
.tar-box { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow-x: auto; margin-bottom: 16px; }
.tar-grid { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tar-grid th { background: var(--navy); color: #fff; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 8px 6px; text-align: center; }
.tar-grid th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: #bfd4ee; font-size: 0.62rem; }
.tar-grid td { border-top: 1px solid var(--border); padding: 5px 5px; text-align: center; }
.tar-grid td.nome { text-align: left; font-weight: 700; color: var(--navy); padding-left: 10px; white-space: nowrap; }
.tar-grid td.calc { background: var(--light); font-variant-numeric: tabular-nums; color: var(--slate); }
.tar-grid td.calc.T { font-weight: 800; color: var(--navy); background: #fffbeb; }
.tar-grid tr.fun td { background: #eef2f7; color: var(--navy); font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; padding: 6px 10px; }
.tar-grid .tar-in { text-align: right; min-width: 74px; }
.tar-grid.campioni .tar-in { text-align: left; }
.btn-add-row { display: block; width: 100%; background: var(--light); border: none; border-top: 1px solid var(--border); color: var(--navy); font-weight: 700; font-size: 0.82rem; font-family: inherit; padding: 9px; cursor: pointer; }
.btn-add-row:hover { background: #eef2f6; }
.btn-del-row { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; line-height: 1; padding: 4px 6px; }
.btn-del-row:hover { color: var(--red); }
.btn-del-row:disabled { opacity: .3; cursor: default; }

.tar-formule { font-size: 0.8rem; color: var(--muted); margin: -4px 0 16px; line-height: 1.7; }
.tar-formule b { color: var(--navy); }

.tar-riepilogo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tar-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tar-card h4 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.tar-card .v { font-size: 1.25rem; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.tar-card .p { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.tar-card.peggiorata { border-color: #fca5a5; background: #fef2f2; }
.tar-card.peggiorata .v { color: var(--red); }
.tar-avviso { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 8px; padding: 10px 14px; font-size: 0.88rem; margin-bottom: 10px; }
.tar-nota { background: #fffbeb; border: 1px solid #fde68a; color: #854d0e; border-radius: 8px; padding: 10px 14px; font-size: 0.84rem; margin-bottom: 14px; }

.save-bar {
    position: sticky; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: #fff; border-top: 2px solid var(--gold);
    padding: 14px 24px; margin: 24px -24px -72px;
    box-shadow: 0 -6px 20px rgba(0,33,71,.06);
}
.save-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.closed-badge { font-size: 0.85rem; font-weight: 700; color: var(--green); }
.save-status { font-size: 0.82rem; font-weight: 600; color: var(--muted); min-width: 150px; }


/* ── colonna di servizio accanto agli elenchi (25/10) ──
   Dati azienda, Backup, Ripristina e Supporto, ognuno con la sua spiegazione:
   prima erano pulsanti in testata con un'icona e una parola. */
/* ── tre colonne a tutta larghezza (25/10, Antonio) ──
   servizio a sinistra | area di lavoro | colonna libera a destra, larga come la sinistra.
   Le viste senza colonne (schede da compilare, dati azienda) rientrano dello stesso
   spazio, così il lavoro sta sempre nella stessa fascia centrale. */
.tool-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 270px; grid-template-areas: "side main free"; gap: 24px; align-items: start; }
.tool-main { grid-area: main; }
.tool-free { grid-area: free; }
.tool-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; padding-top: 40px; }
main > section:not(#connect-view):not(#app-view) { padding-inline: 294px; }
.side-card { background: #fff; border: 1px solid #002147; border-radius: 10px; padding: 14px 16px 16px; }
.side-card-t { font-size: 0.86rem; font-weight: 800; color: #002147; margin-bottom: 6px; }
.side-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.side-btn { display: inline-block; background: var(--gold); color: #002147; font-family: inherit; font-weight: 800; font-size: 0.8rem; border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-decoration: none; transition: background .15s; }
.side-btn:hover { background: #002147; color: #fff; }
.side-btn:disabled { opacity: .6; cursor: default; }
.side-card-sup { background: #002147; }
.side-card-sup .side-card-t { color: var(--gold); }
.side-card-sup p { color: #cbd5e1; }
.side-card-sup .side-btn:hover { background: #fff; color: #002147; }
/* Pagina d'ingresso: la presentazione navy riempie la colonna centrale, i comandi stanno a sinistra. */
.tool-layout-intro .connect { max-width: none; margin: 0; }
.tool-layout-intro .tool-side { padding-top: 0; }
.side-btn-big { display: block; width: 100%; text-align: center; padding: 12px 14px; font-size: 0.88rem; }
.side-hint { font-size: 0.76rem !important; color: var(--muted); margin: 10px 0 0 !important; }
.side-card .notice { margin-top: 10px; font-size: 0.8rem; padding: 10px 12px; }
.side-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.side-links a { font-size: 0.82rem; font-weight: 700; color: #002147; text-decoration: none; border-bottom: 1px solid var(--gold); }
.side-links a:hover { color: #a97e14; }
/* Viste da compilare: sotto i 1700px la striscia di lavoro prende anche lo spazio della colonna libera (25/10, dal controllo con Chromium:
   a 1366px la tabella delle misure scorreva e la testata della visita andava a capo). */
@media (max-width: 1700px) {
    main > section:not(#connect-view):not(#app-view) { padding-inline: 294px 0; }
}
@media (max-width: 1280px) {
    .tool-layout { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "side main"; }
    .tool-free { display: none; }
    main > section:not(#connect-view):not(#app-view) { padding-inline: 294px 0; }
}
@media (max-width: 1000px) {
    .tool-layout { grid-template-columns: 1fr; grid-template-areas: "main" "side"; }
    .tool-side { padding-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    main > section:not(#connect-view):not(#app-view) { padding-inline: 0; }
    /* Ingresso: il pulsante per iniziare prima del testo lungo. */
    .tool-layout-intro { grid-template-areas: "side" "main"; }
}

/* ── footer ── */
.tool-footer { background: var(--navy); border-top: 1px solid rgba(212,175,55,.3); padding: 22px 24px; margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tool-footer-logo { font-size: 1rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -0.3px; }
.tool-footer-logo span { color: var(--gold); }
.tool-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.tool-footer nav a { color: #cbd5e1; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.tool-footer nav a:hover { color: var(--gold); }
.tool-footer-copy { color: #8ea0c2; font-size: 0.78rem; }
@media (max-width: 560px) { .tool-footer { justify-content: center; text-align: center; } }

/* ── scheda a video in stile modulo TS-01 (25/10) ──
   Stesso linguaggio della stampa (#stampa table.mod): barre navy numerate, etichette
   grigie, celle bianche da compilare. Classi proprie: la stampa resta separata. */
.tar-mod { background: #fff; border: 1px solid #1e3a5f; margin-bottom: 16px; }
.tar-mod-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tar-mod-t td { border: 1px solid #1e3a5f; vertical-align: middle; }
.tar-mod-t tr:first-child td { border-top: none; }
.tar-mod-t td:first-child { border-left: none; }
.tar-mod-t td:last-child { border-right: none; }
.tar-mod-t td.sez { background: #1e3a5f; color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.tar-mod-t td.sez em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: #bfd4ee; font-size: 0.74rem; margin-left: 10px; }
.tar-mod-t td.et { background: #eef2f7; color: #1e3a5f; font-size: 0.76rem; font-weight: 700; padding: 6px 10px; line-height: 1.3; }
.tar-mod-t td.ca { background: #fff; padding: 0; }
.tar-mod-t td.nota { background: #fff; color: var(--muted); font-size: 0.8rem; padding: 6px 12px; line-height: 1.5; }
.tar-mod-t td.nota b { color: var(--navy); }
.tar-mod-t td.ca input, .tar-mod-t td.ca select {
    width: 100%; height: 100%; min-height: 38px; border: none; border-radius: 0; background: transparent;
    font-family: inherit; font-size: 0.9rem; color: var(--slate); padding: 8px 10px;
}
.tar-mod-t td.ca input:focus, .tar-mod-t td.ca select:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: #fffbeb; }
.tar-mod-t td.ca input:disabled, .tar-mod-t td.ca select:disabled, .tar-mod-t td.ca textarea:disabled { background: var(--light); color: var(--muted); }
.tar-mod-t td.ca input[readonly] { background: var(--light); color: var(--muted); cursor: default; }
.tar-mod-t td.ca input[readonly]:focus { outline: none; }
.tar-mod-t td.ca textarea {
    display: block; width: 100%; border: none; border-radius: 0; background: transparent; resize: vertical;
    font-family: inherit; font-size: 0.9rem; color: var(--slate); padding: 8px 10px;
}
.tar-mod-t td.ca textarea:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: #fffbeb; }
/* Caselle da spuntare: la regola sopra allargherebbe anche il checkbox. */
.tar-mod-t td.ck { padding: 8px 12px; }
.tar-mod-t td.ck label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--slate); cursor: pointer; }
.tar-mod-t td.ca.ck input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; flex-shrink: 0; }
.tar-mod-t td.pad { padding: 12px 12px 0; background: #fff; }
.tar-mod-t td.pad .tar-riepilogo { margin-bottom: 12px; }
/* Campioni: stessa tabella della scheda di taratura (campioniBlock), qui con l'aspetto del modulo. */
.tar-mod .tar-box { border: none; border-radius: 0; margin: 0; }
.tar-mod .tar-grid th { background: #eef2f7; color: #1e3a5f; border: 1px solid #1e3a5f; border-top: none; }
.tar-mod .tar-grid th:first-child, .tar-mod .tar-grid td:first-child { border-left: none; }
.tar-mod .tar-grid th:last-child, .tar-mod .tar-grid td:last-child { border-right: none; }
.tar-mod .tar-grid td { border: 1px solid #1e3a5f; padding: 0; }
.tar-mod .tar-grid .tar-in { border: none; border-radius: 0; min-height: 36px; background: transparent; }
.tar-mod .tar-grid .tar-in:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: #fffbeb; }
.tar-mod .btn-add-row { border-top: none; }
/* Tabella misure: le celle senza input riprendono il loro spazio interno. */
.tar-mod .tar-grid td.nome, .tar-mod .tar-grid td.calc { padding: 5px 8px; }
.tar-mod .tar-grid tr.fun td { padding: 6px 10px; }@media screen and (max-width: 760px) {
    .tar-mod-t, .tar-mod-t tbody, .tar-mod-t tr, .tar-mod-t td { display: block; width: 100%; }
    .tar-mod-t colgroup { display: none; }
    .tar-mod-t td { border-left: none; border-right: none; border-top: none; }
}

/* ── stampa: la scheda ricalca il modulo TS-01 di /download/scheda-taratura-calibro/ ── */
#stampa { display: none; }
@media print {
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    /* Solo quando si stampa la scheda o il registro (classe messa dal tool): su un Ctrl+P generico la pagina resta com'è. */
    body.printing .topbar, body.printing main, body.printing .tool-footer, body.printing .site-header, body.printing .site-footer,
    body.printing #cookie-banner, body.printing .cookie-banner { display: none !important; }
    body.printing { background: #fff; display: block; min-height: 0; }
    body.printing #stampa { display: block; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11pt; color: #111; }
    @page { size: A4 landscape; margin: 8mm 10mm; }
}
#stampa .pagina { page-break-after: always; }
#stampa .pagina:last-child { page-break-after: auto; }
#stampa .mod-head { display: flex; border: 1px solid #1e3a5f; border-bottom: none; }
#stampa .mod-head-logo { min-width: 15%; max-width: 35%; padding: 5px 8px; border-right: 1px solid #1e3a5f; font-size: 8pt; color: #374151; min-height: 15mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.3; }
#stampa .mod-head-logo b { font-size: 9.5pt; color: #1e3a5f; }
#stampa .mod-head-title { flex: 1; padding: 5px 10px; border-right: 1px solid #1e3a5f; display: flex; flex-direction: column; justify-content: center; text-align: center; }
#stampa .mod-head-title .tit { font-size: 14pt; font-weight: 900; color: #1e3a5f; letter-spacing: -.3px; line-height: 1.15; }
#stampa .mod-head-title span { font-size: 8pt; color: #6b7280; margin-top: 2px; }
#stampa .mod-head-ref { width: 15%; font-size: 7.5pt; color: #374151; }
#stampa .mod-head-ref div { padding: 2px 8px; border-bottom: 1px solid #c9d5e3; line-height: 1.5; }
#stampa .mod-head-ref div:last-child { border-bottom: none; }
#stampa .mod-head-ref b { color: #1e3a5f; }
#stampa table.mod { width: 100%; border-collapse: collapse; table-layout: fixed; }
#stampa table.mod + table.mod { margin-top: -1px; }
#stampa table.mod td { border: 1px solid #1e3a5f; vertical-align: middle; }
#stampa td.sez { background: #1e3a5f; color: #fff; font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
#stampa td.sez em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: #bfd4ee; font-size: 7.5pt; margin-left: 10px; }
#stampa td.et { background: #eef2f7; color: #1e3a5f; font-size: 7.5pt; font-weight: 700; padding: 3px 5px; line-height: 1.25; text-align: center; }
#stampa td.et.sx { text-align: left; padding-left: 7px; }
#stampa td.et small { display: block; font-weight: 400; color: #4b5563; font-size: 6.5pt; }
#stampa td.ca { background: #fff; height: 7mm; padding: 2px 6px; font-size: 9pt; }
#stampa td.ca.r { text-align: right; font-variant-numeric: tabular-nums; }
#stampa td.ca.alto { vertical-align: top; height: 16mm; }
#stampa td.fun { font-size: 8.5pt; font-weight: 700; color: #1e3a5f; padding: 2px 6px; }
#stampa .ck { display: inline-block; width: 3.3mm; height: 3.3mm; border: 1px solid #1e3a5f; margin-right: 3px; vertical-align: -0.5mm; text-align: center; line-height: 3mm; font-size: 8pt; font-weight: 900; }
#stampa .opz { display: inline-block; margin-right: 14px; font-size: 8pt; font-weight: 600; white-space: nowrap; }
#stampa .avv { color: #b91c1c; font-weight: 700; }
#stampa .firme { display: flex; gap: 10mm; margin-top: 6mm; }
#stampa .firma { flex: 1; }
#stampa .firma-ruolo { font-size: 7.5pt; font-weight: 700; text-transform: uppercase; color: #6b7280; letter-spacing: .5px; margin-bottom: 11mm; }
#stampa .firma-linea { border-bottom: 1px solid #374151; }
#stampa .firma-data { font-size: 7.5pt; color: #9ca3af; margin-top: 3px; }
#stampa .mod-piede { margin-top: 4mm; padding-top: 3px; border-top: 1px solid #e5e7eb; font-size: 7pt; color: #9ca3af; display: flex; justify-content: space-between; }

/* ── quick-start: timeline verticale centrata (copia da tools/audit/app.css, 25/10: qui solo nella finestra "Come funziona") ── */
.qs-title { text-align: center; font-size: 1.6rem; font-weight: 900; color: var(--navy); letter-spacing: -0.02em; margin: 0 auto 22px; max-width: 620px; }
.qs-title .qs-title-ic { color: var(--gold); }
.qs-diagram { max-width: 620px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 30px 20px; }
.qs-tl-row { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
.qs-tl-rail { position: relative; display: flex; justify-content: center; }
.qs-tl-rail::before { content: ''; position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.qs-tl-row:last-child .qs-tl-rail::before { display: none; }
.qs-tl-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.qs-tl-content { padding-bottom: 22px; }
.qs-tl-content strong { display: block; color: var(--navy); font-size: 0.98rem; font-weight: 800; }
.qs-tl-content span { font-size: 0.82rem; color: var(--muted); }
.qs-tl-branch { margin: 8px 0 4px 2px; padding: 10px 14px; border: 1px dashed #b9c3d6; border-radius: 10px; background: var(--light); display: flex; align-items: center; gap: 10px; }
.qs-tl-branch .qs-tl-icon { font-size: 1.2rem; }
.qs-tl-branch strong { font-size: 0.86rem; }
.qs-tl-branch span { font-size: 0.76rem; }
.qs-tl-optional { display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #7a5c0e; background: rgba(212,175,55,.18); border: 1px solid rgba(212,175,55,.4); border-radius: 20px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.qs-lead { text-align: center; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); margin: 0 0 14px; }

/* ── "Ecco come funziona" in finestra, con anteprima nella colonna destra (25/10) ── */
.howto-dlg { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; border: none; border-radius: 16px; padding: 22px 24px 18px; background: #002147; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; text-align: center; }
.howto-dlg::backdrop { background: rgba(0,20,45,.62); }
.howto-head { position: relative; margin-bottom: 4px; }
.howto-head .qs-lead { margin: 4px 0 14px; }
.howto-x { position: absolute; top: -6px; right: -8px; background: none; border: none; color: #cbd5e1; font-size: 1.1rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.howto-x:hover { color: var(--gold); background: rgba(255,255,255,.06); }
.howto-dlg .qs-diagram { margin: 0 auto; }
.howto-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.howto-mai { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: #cbd5e1; cursor: pointer; }
.howto-mai input { width: 16px; height: 16px; accent-color: var(--gold); }
.howto-card { text-align: left; }
.howto-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #002147; cursor: zoom-in; margin-bottom: 10px; }
.howto-thumb img { display: block; width: 100%; height: auto; transition: transform .25s; }
.howto-thumb:hover img { transform: scale(1.03); }
.howto-card.howto-arrivata { animation: howto-arrivo 1.1s ease-out; }
@keyframes howto-arrivo { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,.75); } 100% { box-shadow: 0 0 0 14px rgba(212,175,55,0); } }
/* Sotto i 1280px la colonna destra non c'è: nell'ingresso l'anteprima scende nella colonna sinistra. */
@media (max-width: 1280px) {
    .tool-layout-intro { grid-template-areas: "side main" "free main"; grid-template-rows: auto 1fr; }
    .tool-layout-intro .tool-free { display: block; }
}
@media (max-width: 1000px) {
    .tool-layout-intro { grid-template-areas: "side" "free" "main"; grid-template-rows: none; }
}
.howto-dlg:focus { outline: none; }
/* Scheda d'anteprima: pulsante grande in cima, immagine sotto (25/10). */
.howto-card .side-btn-big { margin-bottom: 12px; }
.howto-card .howto-thumb { margin-bottom: 0; }
