/* =====================================================================
   Zeiterfassung / Time Tracking — design system v10
   System fonts only (no Google Fonts -> no GDPR/DSGVO issue, works offline)
   Tokens -> base -> components -> layouts -> pages -> print
   ===================================================================== */
:root {
    color-scheme: light;
    --bg: #F5F6F8;
    --surface: #FFFFFF;
    --surface-2: #F1F3F7;
    --surface-3: #E7EAF0;
    --text: #0F172A;
    --text-2: #334155;
    --muted: #5B6678;
    --border: #E2E6EE;
    --border-strong: #CBD2DE;

    --primary: #C2410C;
    --primary-dark: #9A3412;
    --primary-soft: #FFEDE3;
    --primary-text: #C2410C;
    --on-primary: #FFFFFF;

    --ok: #166534;
    --ok-soft: #DCF5E4;
    --ok-solid: #22A55B;
    --warn: #92400E;
    --warn-soft: #FDF0D0;
    --warn-solid: #E0A100;
    --danger: #B42318;
    --danger-soft: #FDE7E4;
    --info: #1D4ED8;
    --info-soft: #E3ECFF;

    --nav: #0E1420;
    --nav-2: #161E2E;
    --nav-text: #C4CCDA;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.22);
    --ring: 0 0 0 3px rgba(194,65,12,.32);
    --ease: cubic-bezier(.2,.8,.2,1);
    --sidebar-w: 264px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B1019;
    --surface: #131A29;
    --surface-2: #1A2336;
    --surface-3: #232E45;
    --text: #EEF2F8;
    --text-2: #CBD3E1;
    --muted: #9CA8BC;
    --border: #263047;
    --border-strong: #354262;
    --primary-soft: #3A1E12;
    --primary-text: #FF9A66;
    --ok: #4ADE80;
    --ok-soft: #12301F;
    --warn: #FBBF24;
    --warn-soft: #33270A;
    --danger: #FCA5A5;
    --danger-soft: #3A1717;
    --info: #93B4FF;
    --info-soft: #17254A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
    --ring: 0 0 0 3px rgba(255,154,102,.4);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0B1019;
        --surface: #131A29;
        --surface-2: #1A2336;
        --surface-3: #232E45;
        --text: #EEF2F8;
        --text-2: #CBD3E1;
        --muted: #9CA8BC;
        --border: #263047;
        --border-strong: #354262;
        --primary-soft: #3A1E12;
        --primary-text: #FF9A66;
        --ok: #4ADE80;
        --ok-soft: #12301F;
        --warn: #FBBF24;
        --warn-soft: #33270A;
        --danger: #FCA5A5;
        --danger-soft: #3A1717;
        --info: #93B4FF;
        --info-soft: #17254A;
        --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
        --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
        --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
        --ring: 0 0 0 3px rgba(255,154,102,.4);
    }
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
    font-family: var(--font);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top);
}
a { color: inherit; }
button { font-family: inherit; color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--primary-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 2px; border-radius: 6px; }
button, a, summary, .chip, .btn-small { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary, .chip, a.btn-small, .period-tab, .nav-links a { cursor: pointer; }
.icon { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--primary); color: #fff;
    padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .15s var(--ease);
}
.skip-link:focus { top: calc(10px + env(safe-area-inset-top)); }

/* ===== Shared controls ===== */
.lang-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch a {
    text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
    color: rgba(255,255,255,.72); min-height: 28px; display: inline-flex; align-items: center; transition: background .15s, color .15s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: #fff; color: #0E1420; }

.install-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); background: transparent;
    color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; min-height: 36px; border-radius: 999px; transition: background .15s;
}
.install-btn:hover { background: rgba(255,255,255,.12); }
@media (display-mode: standalone) { .install-btn { display: none !important; } }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
    background: transparent; color: inherit; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert > div { min-width: 0; flex: 1; }

/* ===== Buttons ===== */
.btn-small {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none;
    padding: 7px 12px; min-height: 36px; border-radius: var(--radius-xs); background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
    transition: background .15s, border-color .15s, transform .08s;
}
.btn-small:hover { background: var(--surface-2); }
.btn-small:active { transform: scale(.97); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-settle { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-settle:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-cancel { display: inline-block; margin-left: 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.btn-cancel:hover { color: var(--text); text-decoration: underline; }
.btn-print { display: inline-flex; align-items: center; gap: 8px; background: var(--nav); color: #fff; border: none; border-radius: 10px; padding: 10px 18px; min-height: 42px; font-size: 14px; font-weight: 600; transition: background .15s; }
.btn-print:hover { background: #26324A; }
.btn-icon { width: 36px; padding: 0; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }
.log-link { font-size: 12px; font-weight: 600; color: var(--primary-text); text-decoration: none; margin-left: 6px; }
.log-link:hover { text-decoration: underline; }

/* loading state (added by ui.js on submit) */
button.is-loading, .btn-small.is-loading { position: relative; pointer-events: none; color: transparent !important; }
button.is-loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; left: calc(50% - 9px); top: calc(50% - 9px);
    border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-small.is-loading::after, .form-box button.btn-small.is-loading::after { border-color: var(--border-strong); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Badges / chips ===== */
.badge-active, .badge-inactive, .badge-overtime, .badge-pending, .badge-settled, .badge-expired, .badge-break, .badge-done {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-active::before, .badge-break::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--ok-soft); color: var(--ok); }
.badge-inactive { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-overtime { background: var(--warn-soft); color: var(--warn); margin-left: 6px; }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-settled { background: var(--ok-soft); color: var(--ok); }
.badge-expired { background: var(--danger-soft); color: var(--danger); }
.badge-break { background: var(--warn-soft); color: var(--warn); }
.badge-done { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

.chip {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
    font-size: 14px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--muted); }
.chip .chip-n { font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .chip-n { background: rgba(255,255,255,.2); color: inherit; }

/* ===== Avatars ===== */
.av { --h: 24; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
    font-size: 13px; font-weight: 800; letter-spacing: .02em; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 60% 28%); }
:root[data-theme="dark"] .av { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 82%); } }
.av-0 { --h: 18; } .av-1 { --h: 38; } .av-2 { --h: 150; } .av-3 { --h: 190; }
.av-4 { --h: 220; } .av-5 { --h: 260; } .av-6 { --h: 300; } .av-7 { --h: 340; }
.av-lg { width: 44px; height: 44px; font-size: 15px; }
.kiosk-body .av { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 82%); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-name { font-weight: 700; color: var(--text); line-height: 1.25; }
.person-sub { font-size: 13px; color: var(--muted); line-height: 1.25; }

/* ===== Login ===== */
.login-body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); position: relative; }
.login-top { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 18px; z-index: 5; display: flex; gap: 8px; align-items: center; }
.login-top .lang-switch { background: var(--surface-2); }
.login-top .lang-switch a { color: var(--muted); }
.login-top .lang-switch a.active { background: var(--text); color: var(--bg); }
.login-top .icon-btn { color: var(--text-2); }
.login-top .icon-btn:hover { background: var(--surface-2); }
.login-hero {
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px 56px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(900px 500px at 10% 0%, rgba(194,65,12,.55) 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(59,91,170,.35) 0%, transparent 60%), var(--nav);
}
.login-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.hero-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; position: relative; z-index: 1; }
.hero-brand img { border-radius: 12px; }
.hero-copy { position: relative; z-index: 1; max-width: 520px; }
.hero-copy h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.hero-copy p { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 17px; }
.hero-points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.9); font-size: 15px; }
.hero-points .pt { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.hero-foot { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,.55); }
.login-main { display: grid; place-items: center; padding: 28px 22px; }
.login-box { width: 100%; max-width: 400px; }
.login-box .login-logo { display: none; border-radius: 16px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(194,65,12,.3); }
.login-box h1 { font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.login-box .subtitle { color: var(--muted); font-size: 15px; margin: 8px 0 26px; }
.login-box form label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin: 16px 0 6px; }
.field { position: relative; }
.field input { width: 100%; }
.login-box form input, .form-box input, .form-box select, .form-box textarea {
    width: 100%; padding: 12px 14px; min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 16px;
    background: var(--surface); color: var(--text); font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.login-box form input:focus, .form-box input:focus, .form-box select:focus, .form-box textarea:focus, .table-search:focus, .kiosk-search:focus { outline: none; border-color: var(--primary-text); box-shadow: var(--ring); }
.field .reveal { position: absolute; right: 4px; top: 3px; width: 40px; height: 40px; border: none; background: none; color: var(--muted); border-radius: 10px; display: grid; place-items: center; }
.field .reveal:hover { color: var(--text); background: var(--surface-2); }
.field.has-reveal input { padding-right: 48px; }
.field-hint { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--warn); }
.field-hint.on { display: block; }
.login-box form button[type=submit] {
    width: 100%; margin-top: 24px; padding: 13px; min-height: 50px; background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(194,65,12,.28); transition: background .15s, transform .08s;
}
.login-box form button[type=submit]:hover { background: var(--primary-dark); }
.login-box form button[type=submit]:active { transform: scale(.985); }
.login-install { margin-top: 18px; text-align: center; }
.login-install .install-btn { color: var(--text-2); border-color: var(--border-strong); }
.login-install .install-btn:hover { background: var(--surface-2); }

/* ===== Kiosk (staff room) — always dark ===== */
.kiosk-body {
    color-scheme: dark;
    --surface: #161E2E; --surface-2: #1D2740; --surface-3: #27324D; --text: #F2F5FA; --text-2: #D0D8E6; --muted: #A1ADC2; --border: #2B3652; --border-strong: #3A4768;
    --ok: #6EE7A0; --ok-soft: #12301F; --danger: #FFA89C; --danger-soft: #3A1717; --warn: #FBCB52; --warn-soft: #33270A; --primary-text: #FF9A66; --ring: 0 0 0 3px rgba(255,154,102,.4);
    min-height: 100vh; min-height: 100dvh; padding: calc(20px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));
    background: radial-gradient(1100px 520px at 88% -10%, rgba(194,65,12,.28) 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(59,91,170,.2) 0%, transparent 60%), #0B1019;
    color: var(--text);
}
.kiosk-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.kiosk-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.kiosk-brand img { border-radius: 9px; }
.kiosk-header h1 { font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -.02em; }
.kiosk-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.kiosk-clock { text-align: right; }
.kiosk-time { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.kiosk-date { font-size: 14px; color: var(--muted); margin-top: 6px; }
.kiosk-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logout-link { font-size: 13px; color: var(--muted); text-decoration: none; padding: 10px 6px; min-height: 40px; display: inline-flex; align-items: center; }
.logout-link:hover { color: #fff; }

.kiosk-toolbar { display: flex; align-items: center; gap: 12px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.kiosk-search-wrap { position: relative; flex: 1 1 260px; max-width: 420px; }
.kiosk-search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.kiosk-search { width: 100%; padding: 13px 16px 13px 46px; min-height: 50px; border-radius: 999px; font-size: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.kiosk-body .chip { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.kiosk-body .chip[aria-pressed="true"] { background: #F2F5FA; color: #0E1420; border-color: #F2F5FA; }
.kiosk-body .chip[aria-pressed="true"] .chip-n { background: rgba(14,20,32,.12); }
.kiosk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kiosk-count { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: auto; }

.kiosk-message {
    display: flex; align-items: center; gap: 12px; background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(110,231,160,.3);
    padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 17px; font-weight: 700; transition: opacity .5s, transform .5s; animation: slide-in .35s var(--ease);
}
.kiosk-message-error { background: var(--danger-soft); color: var(--danger); border-color: rgba(255,168,156,.3); }
.kiosk-message.fade { opacity: 0; transform: translateY(-6px); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.employee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.employee-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 16px 16px; position: relative;
    transition: border-color .2s, box-shadow .2s, transform .15s var(--ease); animation: card-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms);
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.employee-card.status-in { border-color: rgba(60,190,120,.55); box-shadow: 0 0 0 1px rgba(60,190,120,.2), 0 12px 32px rgba(60,190,120,.08); }
.employee-card.status-break_pause, .employee-card.status-break_rauchen_kaffee { border-color: rgba(230,170,40,.6); box-shadow: 0 0 0 1px rgba(230,170,40,.18); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
    position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 19px; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border-strong);
}
.status-in .avatar { background: rgba(60,190,120,.16); color: #7FE0A8; border-color: rgba(60,190,120,.65); }
.status-break_pause .avatar, .status-break_rauchen_kaffee .avatar { background: rgba(230,170,40,.16); color: #F2C45A; border-color: rgba(230,170,40,.65); }
.status-in .avatar::after, .status-break_pause .avatar::after, .status-break_rauchen_kaffee .avatar::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--surface); background: #3CBE78;
}
.status-break_pause .avatar::after, .status-break_rauchen_kaffee .avatar::after { background: #E6AA28; }
.card-id { min-width: 0; }
.employee-name { font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.employee-position { font-size: 13px; color: var(--muted); min-height: 18px; margin-top: 2px; }
.card-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; margin-bottom: 12px; }
.status-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.status-pill-in { background: rgba(60,190,120,.18); color: #7FE0A8; }
.status-pill-break { background: rgba(230,170,40,.2); color: #F2C45A; }
.status-pill-out { background: var(--surface-2); color: var(--muted); }
.card-since { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-direction: column; gap: 8px; }

.btn-clockin, .btn-clockout, .btn-break {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px; border: none; border-radius: 14px;
    font-size: 17px; font-weight: 800; color: #fff; transition: filter .15s, transform .08s;
}
.btn-clockin:active, .btn-clockout:active, .btn-break:active { transform: scale(.98); }
.btn-clockin { background: #1F8F52; }
.btn-clockout { background: #C2410C; }
.btn-break { background: var(--surface-3); color: var(--text); min-height: 48px; font-size: 15px; font-weight: 700; }
.btn-break-rk { background: #4A3B22; color: #FBE3B0; }
.btn-clockin:hover, .btn-clockout:hover { filter: brightness(1.12); }
.btn-break:hover { filter: brightness(1.2); }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-pair .btn-break { font-size: 14px; padding: 10px 6px; }
.btn-myhours {
    margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--muted);
    border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px; min-height: 44px; font-size: 14px; font-weight: 600; transition: color .15s, border-color .15s;
}
.btn-myhours:hover { color: #fff; border-color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px 20px; }

/* ===== PIN pad & modals ===== */
.pin-modal-overlay { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,9,15,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pin-modal-overlay.active { display: flex; }
.pin-modal {
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); width: 100%; max-width: 360px; border-radius: 28px;
    padding: 26px 22px 22px; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); text-align: center;
}
@keyframes pop { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.pin-modal .av { margin: 0 auto 10px; }
.pin-modal-name { font-size: 20px; font-weight: 800; }
.pin-modal-action { font-size: 14px; color: var(--muted); margin: 2px 0 18px; font-weight: 600; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); transition: all .12s; }
.pin-dot.filled { background: var(--primary-text); border-color: var(--primary-text); transform: scale(1.12); }
.pin-error { display: none; color: var(--danger); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pin-pad button { min-height: 66px; border: none; border-radius: 18px; background: var(--surface-2); color: var(--text); font-size: 26px; font-weight: 700; transition: background .1s, transform .08s; }
.pin-pad button:hover { background: var(--surface-3); }
.pin-pad button:active { background: var(--surface-3); transform: scale(.96); }
.pin-pad .pin-pad-cancel, .pin-pad .pin-pad-back { font-size: 15px; font-weight: 600; background: transparent; color: var(--muted); }
.pin-checking { display: none; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; min-height: 22px; }
.pin-checking::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--border-strong); border-top-color: var(--primary-text); animation: spin .7s linear infinite; }
.pin-modal.is-busy .pin-checking { display: flex; }
.pin-modal.is-busy .pin-pad { opacity: .45; pointer-events: none; }

.settle-modal { text-align: left; max-width: 420px; }
.settle-modal form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.settle-modal form input { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 16px; background: var(--surface-2); color: var(--text); }
.settle-modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.settle-modal-actions button { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 11px 18px; min-height: 44px; font-weight: 700; }

/* ===== Admin shell: sidebar (desktop) / top bar + bottom nav (mobile) ===== */
.admin-body > .no-print { display: contents; }
.admin-nav { color: #F2F5FA; background: var(--nav); z-index: 30; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 16px; min-width: 0; color: #fff; }
.nav-brand img { border-radius: 10px; flex: none; }
.nav-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links a {
    display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--nav-text);
    padding: 11px 14px; min-height: 44px; border-radius: 12px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-links a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(194,65,12,.35); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-tools .icon-btn { color: var(--nav-text); }
.nav-tools .icon-btn:hover { color: #fff; }
.nav-logout { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--nav-text); text-decoration: none; padding: 9px 12px; min-height: 40px; border-radius: 12px; }
.nav-logout:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-section { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(196,204,218,.5); padding: 0 14px; margin: 18px 0 6px; }
.theme-ico-moon { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-ico-sun { display: none; }
    :root:not([data-theme="light"]) .theme-ico-moon { display: block; }
}

.admin-content { max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; }
.admin-content h1 { font-size: 28px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 6px; }
.page-subtitle { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .page-subtitle { margin-bottom: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 999px; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-solid); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,165,91,.55); } 100% { box-shadow: 0 0 0 10px rgba(34,165,91,0); } }
.section-heading { font-size: 18px; margin: 30px 0 12px; letter-spacing: -.01em; }

@media (min-width: 900px) {
    body.admin-body { padding-left: var(--sidebar-w); }
    .admin-nav {
        position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); display: flex; flex-direction: column; gap: 4px; padding: calc(20px + env(safe-area-inset-top)) 14px 16px;
        border-right: 1px solid rgba(255,255,255,.06); overflow-y: auto;
    }
    .nav-brand { padding: 4px 8px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-links { display: flex; flex-direction: column; gap: 4px; flex: 1; margin: 6px 0 12px; }
    .nav-tools { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
    .nav-tools .lang-switch { align-self: flex-start; }
    .nav-tools .install-btn { width: 100%; }
    .nav-tools-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
}

/* ===== Cards, stats ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 16px; letter-spacing: -.01em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.stat-ok .stat-ico { background: var(--ok-soft); color: var(--ok); }
.stat-warn .stat-ico { background: var(--warn-soft); color: var(--warn); }
.stat-info .stat-ico { background: var(--info-soft); color: var(--info); }
.stat-primary .stat-ico { background: var(--primary-soft); color: var(--primary-text); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-top: 2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-ok .stat-value { color: var(--ok); }

/* presence strip (dashboard) */
.presence { display: flex; gap: 10px; overflow-x: auto; padding: 16px 20px; scrollbar-width: thin; }
.presence-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); flex: none; }
.presence-item .pi-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.presence-item .pi-sub { font-size: 12px; color: var(--muted); line-height: 1.2; font-variant-numeric: tabular-nums; }
.presence-item.is-break { border-color: color-mix(in srgb, var(--warn-solid) 55%, transparent); }
.presence-empty { padding: 20px; color: var(--muted); font-size: 14px; }

/* ===== Tables ===== */
.table-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.table-search-wrap { position: relative; flex: 1 1 240px; max-width: 360px; }
.table-search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.table-search { width: 100%; padding: 10px 14px 10px 40px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit; }
.table-count { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: auto; }
.data-table {
    width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14px;
}
.data-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table .empty-state { padding: 40px; }
.data-table code { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: 13px; letter-spacing: .08em; }
.data-table .num { font-variant-numeric: tabular-nums; }
.data-table-dark { background: var(--surface); }
.log-totals-row td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border); }

/* ===== Forms ===== */
.form-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.form-box label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.form-box > label:not(:first-child) { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 18px; margin-bottom: 20px; }
.form-box button[type=submit] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-sm);
    padding: 11px 22px; min-height: 46px; font-size: 15px; font-weight: 700; margin-top: 16px; box-shadow: 0 4px 12px rgba(194,65,12,.25); transition: background .15s, transform .08s;
}
.form-grid + button[type=submit] { margin-top: 0; }
.form-box button[type=submit]:hover { background: var(--primary-dark); }
.form-box button[type=submit]:active { transform: scale(.98); }
.form-box button.btn-small[type=submit] { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); padding: 7px 12px; min-height: 36px; font-size: 13px; font-weight: 600; margin: 0 4px 0 0; box-shadow: none; }
.form-box button.btn-small[type=submit]:hover { background: var(--surface-2); }
.inline-form { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; }
.inline-form label { margin: 0; }
.inline-form input, .inline-form select { width: auto; min-height: 42px; }
.inline-form button[type=submit] { margin-top: 0; min-height: 42px; }
.range-label { margin-left: auto; font-weight: 700; font-size: 14px; }
.audit-note { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 900px; line-height: 1.6; }
.audit-note a { color: var(--primary-text); }
.form-collapse { margin-bottom: 24px; }
.form-collapse > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 20px; min-height: 46px; border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(194,65,12,.25); user-select: none; transition: background .15s; }
.form-collapse > summary::-webkit-details-marker { display: none; }
.form-collapse > summary:hover { background: var(--primary-dark); }
.form-collapse[open] > summary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; margin-bottom: 14px; }
.form-collapse[open] > summary svg { transform: rotate(45deg); }
.form-collapse > summary svg { transition: transform .2s var(--ease); }

.period-tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 4px; margin: 10px 0 16px; }
.period-tab { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 18px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 10px; color: var(--muted); transition: background .15s, color .15s; }
.period-tab:hover { color: var(--text); }
.period-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ===== Hours / progress ===== */
.hours-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.hours-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.hours-card-light { box-shadow: var(--shadow-sm); }
.hours-card-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hours-card-value { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.progress-bar { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-bar-table { width: 110px; display: inline-block; vertical-align: middle; margin-right: 8px; height: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #F2813F, var(--primary)); border-radius: 999px; transition: width .6s var(--ease); }
.progress-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.progress-label-muted { color: var(--muted); font-size: 13px; }
.progress-pct { font-size: 13px; font-weight: 700; }
.log-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== Monatsliste ===== */
.monatsliste-table th, .monatsliste-table td { font-size: 12.5px; text-align: right; padding: 8px 10px; }
.monatsliste-table th:nth-child(1), .monatsliste-table td:nth-child(1), .monatsliste-table th:nth-child(2), .monatsliste-table td:nth-child(2) { text-align: left; }
.monatsliste-weekend td { color: var(--muted); background: var(--surface-2); }
.monatsliste-week-total td { font-weight: 700; background: var(--primary-soft); border-bottom: 2px solid var(--border); }
.day-mark-form { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.day-mark-input { width: 46px; padding: 3px 5px; min-height: 30px; font-size: 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); text-transform: uppercase; }
.monatsliste-vacation { margin-top: 6px; }
.monatsliste-header, .monatsliste-legend { display: none; }
.print-only { display: none; }
.print-note { margin-top: 10px; }

/* ===== Toasts / PWA bits ===== */
.offline-banner {
    position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 100; background: #7A2E1B; color: #fff; font-size: 14px; font-weight: 600;
    padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: calc(100% - 24px); text-align: center;
}
.offline-banner.ok { background: #1F6B43; }
.ios-hint {
    position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 100; background: #fff; color: #0F172A;
    padding: 14px 44px 14px 16px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.4); font-size: 14px; font-weight: 600;
}
.ios-hint button { position: absolute; top: 6px; right: 8px; border: none; background: none; font-size: 22px; color: #5B6678; width: 36px; height: 36px; }

/* ===== Super-admin extras ===== */
.sa-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--primary); color: #fff; margin-left: 8px; vertical-align: middle; }
.sa-note { color: var(--muted); font-size: 15px; margin: 2px 0 20px; max-width: 760px; }
.sa-creds { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0 0; white-space: pre-wrap; user-select: all; color: var(--text); }
.sa-row { display: flex; gap: 8px; align-items: end; }
.sa-row > :first-child { flex: 1; }
.sa-section { margin-top: 32px; }
.sa-section h2 { font-size: 18px; margin-bottom: 12px; letter-spacing: -.01em; }
.nav-role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); display: block; line-height: 1.1; }
:root:not([data-theme="light"]) .nav-role { color: #FF9A66; }

/* ===== Mobile / tablet ===== */
@media (max-width: 899px) {
    .admin-nav { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.06); background: var(--nav); /* no backdrop-filter here: it would turn this bar into the containing block of the fixed bottom nav */ }
    .nav-brand span { display: none; }
    .nav-tools { margin-left: auto; }
    .nav-logout span { display: none; }
    .nav-section { display: none; }
    .nav-links {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; margin: 0; gap: 0; justify-content: space-around;
        background: color-mix(in srgb, var(--nav) 97%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255,255,255,.08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    }
    .nav-links a { flex: 1; flex-direction: column; gap: 3px; font-size: 12px; padding: 7px 4px; border-radius: 12px; text-align: center; }
    .nav-links a.active { box-shadow: none; }
    .admin-body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .admin-content { padding: 22px 16px 40px; }
    .admin-content h1 { font-size: 24px; }
    .nav-tools .install-btn { display: none !important; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .kiosk-body { padding-left: 14px; padding-right: 14px; }
    .kiosk-clock { text-align: left; }
    .kiosk-count { margin-left: 0; width: 100%; }
    .employee-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
    .range-label { margin-left: 0; width: 100%; }
    .login-body { grid-template-columns: 1fr; }
    .login-hero { display: none; }
    .login-box .login-logo { display: block; }
    .login-main { align-items: start; padding-top: calc(72px + env(safe-area-inset-top)); }
}
@media (max-width: 719px) {
    .stack-mobile { display: block; overflow: visible; white-space: normal; border-radius: var(--radius); }
    .stack-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .stack-mobile tbody, .stack-mobile tr { display: block; }
    .stack-mobile tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .stack-mobile tr:last-child { border-bottom: none; }
    .stack-mobile td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0; border: 0; text-align: right; min-height: 34px; }
    .stack-mobile tbody tr:hover td { background: transparent; }
    .stack-mobile td::before { content: attr(data-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; flex: none; }
    .stack-mobile td.cell-primary { padding-bottom: 10px; justify-content: flex-start; text-align: left; }
    .stack-mobile td.cell-primary::before, .stack-mobile td[colspan]::before, .stack-mobile td.cell-actions::before { content: none; }
    .stack-mobile td[colspan] { display: block; text-align: center; }
    .stack-mobile td.cell-actions { justify-content: flex-end; padding-top: 10px; }
}
@media (max-width: 420px) {
    .employee-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .stat-value { font-size: 24px; }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Print (Monatsliste etc.) — always black on white ===== */
@media print {
    :root { --bg:#fff; --surface:#fff; --surface-2:#fff; --text:#000; --muted:#333; --border:#999; --primary-soft:#fff; --shadow:none; --shadow-sm:none; }
    @page { margin: 12mm; }
    body, body.admin-body { background: #fff !important; color: #000 !important; padding: 0 !important; }
    .no-print, .admin-nav, .skip-link, .offline-banner, .ios-hint { display: none !important; }
    .print-only { display: block; }
    .print-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
    .admin-content { padding: 0; margin: 0; max-width: 100%; }
    .data-table { display: table; width: 100%; border-collapse: collapse; border: none; border-radius: 0; box-shadow: none; overflow: visible; white-space: normal; }
    .data-table th, .data-table td { border: 1px solid #999; padding: 6px 8px; color: #000 !important; background: #fff !important; text-transform: none; letter-spacing: 0; }
    .log-totals-row td { background: #eee !important; }
    .monatsliste-week-total td { background: #eee !important; }
    .badge-active, .badge-pending, .badge-settled, .badge-overtime { background: none !important; color: #000 !important; padding: 0; }
    .badge-active::before { display: none; }
    a[href]:after { content: ""; }
    .monatsliste-table { font-size: 11px; }
    .monatsliste-table th, .monatsliste-table td { padding: 3px 5px; }
    .monatsliste-header { display: block; font-size: 12px; margin-bottom: 10px; line-height: 1.6; }
    .ml-header-row { display: flex; justify-content: space-between; }
    .ml-header-title { font-weight: 700; font-size: 14px; margin: 2px 0; }
    .monatsliste-legend { display: block; font-size: 10px; color: #333; margin-top: 10px; line-height: 1.6; }
}
