/* Arbeitszeit – Druckansicht (A4 hoch) */
:root { --ink:#16181d; --muted:#5b6170; --line:#d9dce3; --soft:#f3f4f7; --accent:#1f6feb; --neg:#c0352b; --pos:#1a7f45; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:#e9ebf0; color:var(--ink); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.toolbar { position:sticky; top:0; display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; background:#fff; border-bottom:1px solid var(--line); z-index:2; }
.btn { appearance:none; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:8px; padding:8px 12px; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn-primary { background:var(--accent); border-color:var(--accent); color:#fff; margin-left:auto; }
.sheet { width:min(210mm, 100% - 32px); margin:16px auto 40px; background:#fff; padding:14mm 12mm; box-shadow:0 2px 16px rgba(0,0,0,.08); border-radius:4px; }
.sheet-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:flex-end; border-bottom:2px solid var(--ink); padding-bottom:10px; margin-bottom:14px; }
h1 { font-size:20px; margin:0; letter-spacing:-.01em; }
h2 { font-size:14px; margin:22px 0 6px; }
.owner { margin:2px 0 0; color:var(--muted); }
.kpis { display:flex; gap:18px; margin:0; }
.kpis div { text-align:right; }
.kpis dt { font-size:10px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.kpis dd { margin:0; font-weight:700; font-size:15px; }
table { width:100%; border-collapse:collapse; }
th, td { padding:4px 6px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
thead th { font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); border-bottom:1.5px solid var(--ink); }
tfoot th { border-top:1.5px solid var(--ink); border-bottom:none; }
.num { text-align:right; white-space:nowrap; }
td.note { font-size:11px; color:var(--muted); max-width:70mm; word-wrap:break-word; }
tr.weekend td { background:var(--soft); }
tr.open td { background:#fff4e5; }
small { color:var(--muted); font-size:10px; }
.neg { color:var(--neg); font-weight:600; } .pos { color:var(--pos); font-weight:600; }
.warn { background:#fff4e5; border:1px solid #f0b35b; padding:8px 10px; border-radius:6px; }
.small { font-size:10px; color:var(--muted); }
.sheet-foot { display:grid; grid-template-columns:1fr 1fr; gap:24mm; margin-top:22mm; }
.sign { border-top:1px solid var(--ink); padding-top:4px; font-size:10px; color:var(--muted); }
.generated { margin-top:10px; text-align:right; }
@media (max-width:640px) { .sheet { padding:16px; overflow-x:auto; } h1 { font-size:17px; } .kpis { flex-wrap:wrap; gap:10px 16px; } .kpis div { text-align:left; } .kpis dd { white-space:nowrap; } th, td { padding:4px 3px; } .btn-primary { margin-left:0; } td.note { display:none; } thead th:last-child, tfoot th:last-child { display:none; } }
@page { size:A4 portrait; margin:12mm; }
@media print {
  body { background:#fff; font-size:10.5px; }
  .no-print { display:none !important; }
  .sheet { width:auto; margin:0; padding:0; box-shadow:none; }
  tr { break-inside:avoid; }
  tr.weekend td, tr.open td { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  td.note { display:table-cell !important; }
}
