/* Arbeitszeiterfassung - Fahrbetrieb
   Palette aus der Welt der Verkehrsbeschilderung: Richtzeichen-Blau als
   einziger Akzent, Signalgelb ausschliesslich fuer "heute", Neutralgrau mit
   leichtem Blaustich. Ziffern laufen durchgaengig in IBM Plex Mono, damit
   Zeiten und Kilometer in Spalten stehen wie im Fahrtenbuch. */

:root {
    color-scheme: light;
    --ground: #eceef1;
    --surface: #ffffff;
    --surface-2: #f4f6f8;
    --ink: #14181d;
    --ink-2: #3c4550;
    --muted: #6b7482;
    --line: #d5dae1;
    --line-strong: #b6bfca;
    --accent: #00468f;
    --accent-soft: #e2ecf8;
    --accent-ink: #ffffff;
    --signal: #f2c200;
    --pos: #167a45;
    --neg: #b3261e;
    --pos-soft: #e2f2e9;
    --neg-soft: #fbe6e4;
    --toast-err: #a3221b;
    --toast-err-ink: #ffffff;

    --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgb(20 24 29 / .06), 0 4px 14px -6px rgb(20 24 29 / .12);
    --pad: 16px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ground: #11151a;
        --surface: #1a1f26;
        --surface-2: #222932;
        --ink: #e6eaef;
        --ink-2: #c2cad4;
        --muted: #8d97a5;
        --line: #2d353f;
        --line-strong: #3d4753;
        --accent: #6aa6f5;
        --accent-soft: #17293f;
        --accent-ink: #0b1219;
        --signal: #f2c200;
        --pos: #4cc38a;
        --neg: #f2857a;
        --pos-soft: #11291f;
        --neg-soft: #2e1917;
        --toast-err: #8f2a22;
        --toast-err-ink: #ffecea;
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px -6px rgb(0 0 0 / .5);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ground: #11151a;
    --surface: #1a1f26;
    --surface-2: #222932;
    --ink: #e6eaef;
    --ink-2: #c2cad4;
    --muted: #8d97a5;
    --line: #2d353f;
    --line-strong: #3d4753;
    --accent: #6aa6f5;
    --accent-soft: #17293f;
    --accent-ink: #0b1219;
    --pos: #4cc38a;
    --neg: #f2857a;
    --pos-soft: #11291f;
    --neg-soft: #2e1917;
    --toast-err: #8f2a22;
    --toast-err-ink: #ffecea;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px -6px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 12px 96px;
}
.wrap--wide { max-width: 1100px; }

/* --- Kopfzeile ---------------------------------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px 10px;
}
.topbar__id { min-width: 0; }
.topbar__company {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.topbar__name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar__actions { display: flex; gap: 6px; flex: none; }

/* --- Monatswechsler ----------------------------------------------------- */

.monthnav {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow);
}
.monthnav__label {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
}
.monthnav a {
    display: grid;
    place-items: center;
    height: 46px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}
.monthnav a:hover { background: var(--surface-2); color: var(--accent); }

/* --- Kennzahl ----------------------------------------------------------- */

/* Eine grosse Zahl, der Rest als ruhige Zeile darunter. Der Fahrer will
   wissen, wie viel er hat -- die Aufschluesselung steht im Nachweis. */
.hero {
    margin-top: 12px;
    padding: 18px 18px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero__label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.hero__value {
    font-family: var(--mono);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    margin-top: 2px;
}
.hero__unit {
    font-family: var(--sans);
    font-size: 17px;
    color: var(--muted);
    font-weight: 500;
    margin-left: 7px;
    letter-spacing: 0;
}
.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.is-pos { color: var(--pos); }
.is-neg { color: var(--neg); }

/* --- Tagesliste --------------------------------------------------------- */

.ledger {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.day {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px 10px 10px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    position: relative;
}
.day:last-child { border-bottom: 0; }
.day:hover { background: var(--surface-2); }
.day--quiet .day__wd, .day--quiet .day__num { color: var(--muted); }

.day__rail { text-align: center; font-family: var(--mono); line-height: 1.1; }
.day__wd {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 600;
}
.day__num { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.day--today .day__num { color: var(--ink); }
.day--today::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--signal);
}

.day__body { min-width: 0; }
.day__detail {
    display: block;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.day__empty { font-size: 14px; color: var(--muted); }
.day__body { display: block; }
.day__rail { display: block; }
.day__wd, .day__num, .day__hours, .day__km { display: block; }
.day__go { font-size: 22px; color: var(--line-strong); line-height: 1; }

.day__sum { text-align: right; font-family: var(--mono); line-height: 1.15; }
.day__hours { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day__km { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.gap { border-bottom: 1px solid var(--line); }
.gap:last-child { border-bottom: 0; }
.gap > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-2);
}
.gap > summary::-webkit-details-marker { display: none; }
.gap > summary::after { content: "▾"; font-size: 11px; }
.gap[open] > summary::after { content: "▴"; }
.gap > summary:hover { color: var(--ink); }
.gap__range { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gap .day:last-child { border-bottom: 0; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--surface-2);
    color: var(--muted);
    border: 1px solid var(--line);
}
.tag--urlaub { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag--krank { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.tag--feiertag, .tag--ferien { background: var(--surface-2); color: var(--ink-2); }
.tag--frei { background: var(--surface-2); color: var(--muted); }
.tag--gesperrt { background: var(--neg-soft); color: var(--neg); border-color: transparent; }

/* Schloss-Symbol in Etiketten und Hinweisen. */
.ico { width: 11px; height: 11px; flex: none; }
.note--lock {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--neg-soft);
    border-color: transparent;
    color: var(--neg);
}
.note--lock .ico { width: 14px; height: 14px; }
.tag--sonder {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
    font-size: 10px;
    margin-bottom: 2px;
}
.tag--ok { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.tag--warn { background: var(--neg-soft); color: var(--neg); border-color: transparent; }

/* --- Formulare / Zeilen ------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 14px;
}
.card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}
.card__title {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.card__sum { font-family: var(--mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.card__foot { padding: 0 14px 14px; }

/* Selten Gebrauchtes steckt in einem Aufklapper, damit die Seite kurz bleibt. */
details.card--flat > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
}
details.card--flat > summary::-webkit-details-marker { display: none; }
details.card--flat > summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
details.card--flat[open] > summary::after { content: "▴"; }
details.card--flat[open] > summary { border-bottom: 1px solid var(--line); }
details.card--flat .card__sum { font-family: var(--sans); font-weight: 500; color: var(--muted); }

.extras { margin-top: 14px; }

/* Tagesart direkt als Knoepfe: nichts ausgewaehlt heisst gefahren. */
.daytype {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.daytype input { position: absolute; opacity: 0; pointer-events: none; }
.daytype__btn {
    flex: 1 1 30%;
    min-width: 96px;
    min-height: 50px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
.daytype__btn:hover { background: var(--surface-2); }
.daytype input:checked + label {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.daytype input:checked + .daytype__btn--krank {
    background: var(--neg);
    border-color: var(--neg);
    color: var(--surface);
}
.daytype input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Zwei Zeilen statt vier Spalten: auf einem 360er-Display passen Von, Bis,
   km und der Loeschknopf nicht nebeneinander, ohne dass die Uhrzeit abreisst. */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row input { min-width: 0; }
.row__label { grid-column: 1 / -1; }
.row__foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.field--km { width: 96px; flex: none; }
.row__dur {
    flex: 1;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-bottom: 15px;
}

label.field { display: flex; flex-direction: column; gap: 3px; }
.field__label {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
/* Pflicht und Kuer sind unterschiedlich markiert: der Stern faellt auf,
   "optional" nimmt sich bewusst zurueck. */
.req { color: var(--neg); font-weight: 700; font-size: 11px; }
.opt {
    color: var(--muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: .8;
}
/* Beilaeufiger Hinweistext unter einem Feld oder neben einem Knopf. */
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }

.legend {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    padding: 0 2px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

input, select, textarea {
    font-family: var(--sans);
    font-size: 17px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    width: 100%;
    min-height: 50px;
}
input[type="time"], input[type="number"], input.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
input::placeholder { color: var(--muted); opacity: .7; }

/* Fehlende Pflichtangabe erst nach dem Speicherversuch anzeigen -- waehrend
   des Tippens waere jedes halb gefuellte Feld rot. */
input[aria-invalid="true"] {
    border-color: var(--neg);
    background: var(--neg-soft);
}
input[aria-invalid="true"]:focus-visible { outline-color: var(--neg); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    min-height: 50px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.btn--primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; font-size: 13.5px; padding: 0 12px; }
.btn--big { min-height: 54px; font-size: 16px; padding: 0 22px; }
.btn--icon { min-height: 50px; width: 40px; padding: 0; font-size: 20px; color: var(--muted); }
/* Nebensaechliche Aktion: sieht nach Text aus, ist aber gross genug zum Tippen. */
.btn--quiet {
    border-style: dashed;
    border-color: var(--line-strong);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    width: 100%;
}
.btn--quiet:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn--icon:hover { color: var(--neg); border-color: var(--neg); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1; }

/* Speichern-Leiste am unteren Rand, ueber der Handytastatur erreichbar */
.savebar {
    position: sticky;
    bottom: 0;
    margin: 16px -12px 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    align-items: center;
}
.savebar__sum {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
    line-height: 1.2;
    flex: 1;
    font-variant-numeric: tabular-nums;
}
.savebar__sum > span { text-transform: uppercase; }
.savebar__sum b {
    display: block;
    font-size: 21px;
    color: var(--ink);
    font-weight: 600;
    text-transform: none;
}

.note {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}
.note--warn { background: var(--neg-soft); border-color: transparent; color: var(--neg); }
.note--ok { background: var(--pos-soft); border-color: transparent; color: var(--pos); }


/* --- Anmeldung ---------------------------------------------------------- */

.gate {
    max-width: 380px;
    margin: 0 auto;
    padding: 48px 16px 32px;
}
.gate__mark {
    width: 44px; height: 44px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid; place-items: center;
    font-weight: 700; font-size: 19px;
    font-family: var(--mono);
    letter-spacing: -.04em;
}
.gate h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 4px; }
.gate p.lead { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.gate form { display: flex; flex-direction: column; gap: 12px; }
.pin-input {
    font-family: var(--mono);
    font-size: 28px;
    letter-spacing: .5em;
    text-align: center;
    padding: 12px 10px 12px 20px;
    min-height: 56px;
}

/* --- Tabellen (Verwaltung) ---------------------------------------------- */

.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-top: 14px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
    text-align: left;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    white-space: nowrap;
}
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: var(--surface-2); }
table.grid td.num, table.grid th.num {
    text-align: right;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
table.grid tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
.name { font-weight: 600; white-space: nowrap; }
/* Zweitwert unter dem Hauptwert statt in einer eigenen Spalte. */
.cell__sub {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 1px;
}
.rowactions { display: flex; gap: 8px; justify-content: flex-end; }
table.grid td.num { line-height: 1.25; }

h2.section {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin: 26px 0 0;
}

.linkbox {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.linkbox input {
    font-family: var(--mono);
    font-size: 12px;
    min-height: 38px;
    background: var(--surface-2);
}

details.emp { border-bottom: 1px solid var(--line); }
details.emp:last-of-type { border-bottom: 0; }
details.emp > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
details.emp > summary::-webkit-details-marker { display: none; }
details.emp > summary:hover { background: var(--surface-2); }
details.emp[open] > summary { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.emp__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%) translateY(8px);
    background: var(--ink);
    color: var(--ground);
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 40;
    max-width: min(420px, calc(100vw - 24px));
    text-align: left;
    text-wrap: pretty;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { background: var(--toast-err); color: var(--toast-err-ink); }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* --- Monatsnachweis zum Ausdrucken -------------------------------------- */

.sheet { background: var(--surface); color: var(--ink); }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sheet__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.sheet__meta { font-size: 12px; color: var(--muted); }
table.sheettable { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 10px; }
table.sheettable th, table.sheettable td { border: 1px solid var(--line-strong); padding: 3px 5px; }
table.sheettable th { background: var(--surface-2); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
table.sheettable td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.sheettable tr.we td { background: var(--surface-2); color: var(--muted); }
table.sheettable tfoot td { font-weight: 700; background: var(--surface-2); }
.sign { display: flex; gap: 40px; margin-top: 34px; }
.sign > div { flex: 1; border-top: 1px solid var(--ink); padding-top: 4px; font-size: 11px; color: var(--muted); }

@media print {
    :root { --ground: #fff; --surface: #fff; --surface-2: #f2f2f2; --ink: #000;
            --ink-2: #333; --muted: #555; --line: #999; --line-strong: #666; }
    body { background: #fff; font-size: 11px; }
    .no-print { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    @page { size: A4 portrait; margin: 12mm; }
    table.sheettable { page-break-inside: auto; }
    table.sheettable tr { page-break-inside: avoid; }
}
