/* ---- Self-hosted fonts (SIL Open Font License 1.1) ----
   Variable-weight woff2 files from Google Fonts (DM Sans v17, JetBrains Mono v24), served from our
   own origin so the first paint no longer waits on fonts.googleapis.com. Latin + Latin Extended
   subsets only (German umlauts and the euro sign are in Latin). App.razor preloads the two Latin faces. */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/dm-sans-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/dm-sans-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Zeiterfassung — Dark Theme CSS
   Ported from React theme.js
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Tell the browser the app is dark: native widgets (date/time picker popup,
       calendar/clock icons, select dropdown panels, scrollbars) render in their
       dark variant instead of black-on-dark. */
    color-scheme: dark;

    --bg-primary: #0B0E14;
    --bg-surface: #141820;
    --bg-card: #181D28;
    --bg-elevated: #1A1F2B;
    --bg-hover: #222836;
    --border: #252B3B;
    --border-soft: rgba(42,48,64,0.5);
    --text-primary: #E8ECF4;
    --text-secondary: #8892A6;
    --text-muted: #7B8398;
    --accent: #00D4AA;
    --accent-hover: #00EABC;
    --accent-bg: rgba(0,212,170,0.08);
    --accent-glow: rgba(0,212,170,0.18);
    --danger: #FF5C6A;
    --warning: #FFB545;
    --info: #5BA4F5;
    --success: #00D4AA;
    --purple: #A78BFA;
    --pink: #F472B6;
    --font-body: 'DM Sans', 'SF Pro Display', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --radius-pill: 20px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent) !important;
    outline: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
}

/* ---------- App Layout ---------- */
.app-layout {
    display: flex;
    flex-direction: column;
    /* Fixed to the viewport: only .main-content scrolls — header and sidebar stay in place. */
    height: 100vh;
    height: 100dvh;
}

.app-header {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #0D1117 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #00A88A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #0B0E14;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: 232px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex-shrink: 0;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    border-right: 3px solid transparent;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s ease;
    text-decoration: none;
}

.nav-item-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    text-decoration: none;
}

.nav-item-link.active {
    color: var(--accent);
    background: var(--accent-bg);
    border-right: 3px solid var(--accent);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-divider {
    margin: 8px 20px 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.nav-divider-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* ---------- Typography ---------- */
.page-title, h1.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

h2, .section-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
}

.card-center {
    text-align: center;
    padding: 48px 24px;
}

/* ---------- Stat Cards ---------- */
.stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    flex: 1 1 200px;
    min-width: 180px;
}

.stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 30px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.stat-card .sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.stat-card-lg .value {
    font-size: 40px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s ease;
    font-family: var(--font-body);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00A88A);
    color: #0B0E14;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,212,170,0.20);
}
.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
}

.btn-accent {
    background: var(--accent-bg);
    color: var(--accent);
}
.btn-accent:hover:not(:disabled) {
    background: rgba(0,212,170,0.16);
}

.btn-danger {
    background: rgba(255,92,106,0.12);
    color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(255,92,106,0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-xl {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: 14px;
}

.btn-icon {
    padding: 4px 8px;
}

/* ---------- Forms ---------- */
/* Native calendar/clock icons are tiny and low-contrast even in dark scheme —
   replace them with explicit light icons matching the app's iconography. */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8ECF4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8ECF4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
    filter: brightness(1.5);
}

.form-input, input[type="text"], input[type="number"], input[type="date"],
input[type="time"], input[type="email"], input[type="password"], textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    width: 100%;
}

.form-select, select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}

.form-label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.form-label-sm {
    font-size: 12px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-xs);
    margin-top: 12px;
    line-height: 1.5;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-soft);
}

/* Super-admin tables keep the wider, calmer table rhythm */
.super-admin-main th {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.super-admin-main td {
    padding: 13px 16px;
    font-size: 14px;
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255,255,255,0.01);
}

.td-mono {
    font-family: var(--font-mono);
    font-weight: 600;
}

.td-muted {
    color: var(--text-muted);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tfoot td {
    font-weight: 700;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.badge-accent {
    background: rgba(0,212,170,0.10);
    color: var(--accent);
}

.badge-info {
    background: rgba(91,164,245,0.10);
    color: var(--info);
}

.badge-warning {
    background: rgba(255,181,69,0.10);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255,92,106,0.10);
    color: var(--danger);
}

.badge-success {
    background: rgba(0,212,170,0.10);
    color: var(--success);
}

.badge-muted {
    background: rgba(123,131,152,0.10);
    color: var(--text-muted);
}

.badge-custom {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ---------- Timer Display ---------- */
.timer-display {
    font-size: 96px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.045em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), #5BA4F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-display--idle {
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
    opacity: 0.5;
}

.timer-display--paused {
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
    opacity: 0.7;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.timer-paused-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 170, 0, 0.10);
    border: 1px solid rgba(255, 170, 0, 0.30);
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffaa00;
    animation: timer-pulse 2s ease-in-out infinite;
}

.timer-paused-icon {
    font-size: 18px;
}

.timer-paused-duration {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.8;
}

.timer-resume-btn {
    animation: timer-pulse 2s ease-in-out infinite;
}

.timer-display-sm {
    font-size: 40px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
}

/* ---------- Toggle Buttons ---------- */
.toggle-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.15s ease;
}

.toggle-btn.inactive {
    background: var(--bg-surface);
    color: var(--text-muted);
    outline: 1px solid var(--border);
}

.toggle-btn.active-info {
    background: rgba(91,164,245,0.12);
    color: var(--info);
    outline: 2px solid var(--info);
}

.toggle-btn.active-accent {
    background: rgba(0,212,170,0.12);
    color: var(--accent);
    outline: 2px solid var(--accent);
}

/* ---------- Tab Group ---------- */
.tab-group {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.tab-btn.active {
    background: var(--accent);
    color: #0B0E14;
}

/* ---------- Progress Bars ---------- */
.progress-bar-track {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-bar-fill.success { background: var(--success); }
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger  { background: var(--danger); }

/* ---------- Grid Helpers ---------- */
.flex-row { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-header-left {
    flex: 1;
}

.page-header-right {
    display: flex;
    gap: 10px;
}

/* ---------- Filter Row ---------- */
.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ---------- Card Grid ---------- */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card-grid-item {
    flex: 1 1 280px;
    max-width: 400px;
}

.card-grid-item-lg {
    flex: 1 1 320px;
    max-width: 480px;
}

/* ---------- Employee Avatar ---------- */
.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,212,170,0.25), rgba(91,164,245,0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---------- Status Indicator ---------- */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.connected { background: var(--success); }
.status-dot.disconnected { background: var(--danger); }

/* ---------- Timer Active Alert ---------- */
.timer-alert {
    background: linear-gradient(135deg, var(--accent-bg), rgba(91,164,245,0.05));
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.rec-badge {
    padding: 4px 12px;
    font-size: 13px;
    font-family: var(--font-mono);
    animation: pulse 2s infinite;
}

/* ---------- Day Toggle ---------- */
.day-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-body);
    transition: all 0.15s ease;
}

.day-toggle.active {
    background: var(--accent);
    color: #0B0E14;
}

.day-toggle.inactive {
    background: var(--bg-surface);
    color: var(--text-muted);
}

/* ---------- Error Card ---------- */
.error-card {
    background: rgba(255,92,106,0.06);
    border: 1px solid rgba(255,92,106,0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.error-detail {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    border-left: 4px solid var(--danger);
    margin-bottom: 10px;
}

.error-message {
    font-size: 13px;
    color: var(--danger);
    font-family: var(--font-mono);
    line-height: 1.5;
    word-break: break-word;
    background: rgba(255,92,106,0.06);
    border-radius: 6px;
    padding: 8px 12px;
}

/* ---------- Calendar ---------- */
.cal-header {
    text-align: center;
    padding: 8px 4px;
    min-width: 36px;
    font-size: 11px;
}

.cal-cell {
    padding: 10px 4px;
    text-align: center;
    cursor: default;
    min-width: 36px;
    transition: opacity 0.15s;
}

.cal-cell:hover {
    opacity: 0.8;
}

.cal-cell-weekend { background: var(--bg-surface); }
.cal-cell-holiday { background: rgba(167,139,250,0.09); }
.cal-cell-urlaub  { background: rgba(91,164,245,0.19); }
.cal-cell-krank   { background: rgba(255,92,106,0.19); }
.cal-cell-sonderurlaub { background: rgba(255,181,69,0.19); }
.cal-cell-fortbildung  { background: rgba(0,212,170,0.19); }

.cal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ---------- Legend ---------- */
.legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

/* ---------- Info Card ---------- */
.info-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    flex: 1 1 200px;
}

.info-card .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-card .value {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ---------- Gradient Card ---------- */
.gradient-card {
    background: linear-gradient(135deg, rgba(91,164,245,0.05), rgba(0,212,170,0.05));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
}

/* ---------- Checkbox ---------- */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.custom-checkbox.checked {
    border-color: var(--accent);
    background: var(--accent);
}

/* ---------- Mapping Table ---------- */
.mapping-table code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

/* ---------- Animations ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ---------- Blazor Error UI ---------- */
#blazor-error-ui {
    background: var(--danger);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

/* ---------- Blazor Error Boundary ---------- */
.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem;
    color: white;
    border-radius: var(--radius-sm);
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}

/* ---------- Result Banner ---------- */
.result-banner {
    border-radius: var(--radius);
    border: 1px solid;
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 14px;
}

.result-banner.success {
    background: rgba(0,212,170,0.08);
    border-color: rgba(0,212,170,0.2);
    color: var(--accent);
}

.result-banner.error {
    background: rgba(255,92,106,0.08);
    border-color: rgba(255,92,106,0.2);
    color: var(--danger);
}

.result-banner.info {
    background: rgba(91,164,245,0.08);
    border-color: rgba(91,164,245,0.2);
    color: var(--info);
}

/* ---------- Quick Start ---------- */
.quick-start-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.quick-start-btn:hover {
    background: var(--bg-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        padding: 16px;
    }
    .stat-card {
        flex: 1 1 140px;
        min-width: 140px;
    }
    .page-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- Language Switcher ---------- */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    margin-right: 1rem;
}
.lang-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}
.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.lang-btn.active {
    color: var(--primary);
    background: rgba(0, 212, 170, 0.1);
}

/* ---------- Super Admin Layout ---------- */
.super-admin-shell { min-height: 100vh; background: var(--bg-primary); }
.super-admin-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.super-admin-brand { font-weight: 700; font-size: 18px; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.super-admin-badge {
    font-size: 11px; font-weight: 600; color: var(--warning);
    border: 1px solid var(--warning); border-radius: var(--radius-pill);
    padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.super-admin-nav { display: flex; gap: 24px; }
.super-admin-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.super-admin-nav a:hover { color: var(--text-primary); }
.super-admin-nav a.active { color: var(--accent); }
.super-admin-main { padding: 32px; max-width: 1200px; margin: 0 auto; }

/* ---------- Loading Spinner ---------- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 32px 0;
    font-size: 14px;
}
.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid var(--border, rgba(255,255,255,0.15));
    border-top-color: var(--accent, #00D4AA);
    border-radius: 50%;
    -webkit-animation: timy-spin 0.7s linear infinite;
    animation: timy-spin 0.7s linear infinite;
}
@-webkit-keyframes timy-spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes timy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- NavMenu Entitlement Gating ---------- */
.nav-item-link.locked {
    opacity: 0.55;
}
.nav-item-link.locked:hover {
    opacity: 0.75;
    background-color: transparent;
}
.nav-lock-icon {
    margin-left: 0.35rem;
    font-size: 0.85em;
}

/* ============================================================
   Timy Design System â€” components ported from the design canvas
   (timy-shared.jsx). Values are 1:1 with the design source.
   ============================================================ */

/* ---------- Timy Logo Mark ---------- */
.timy-logo {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #00A88A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
    flex-shrink: 0;
}

/* ---------- Avatar (initials, mint outline) ---------- */
.avatar {
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    user-select: none;
}
.avatar-info    { border-color: var(--info);    color: var(--info); }
.avatar-warning { border-color: var(--warning); color: var(--warning); }
.avatar-danger  { border-color: var(--danger);  color: var(--danger); }
.avatar-muted   { border-color: var(--text-muted); color: var(--text-muted); }
.avatar-filled  {
    border-color: transparent;
    color: var(--bg-primary);
    background: linear-gradient(135deg, rgba(0,212,170,0.4), rgba(91,164,245,0.3));
}

/* ---------- Location Chips (timer) ---------- */
.loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-surface);
    color: var(--text-muted);
    outline: 1px solid var(--border);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.15s ease;
}
.loc-chip:hover { color: var(--text-primary); }
.loc-chip.active {
    background: var(--accent-bg);
    color: var(--accent);
    outline: 2px solid var(--accent);
}

/* ---------- Period Preset Chips ---------- */
.period-chip {
    padding: 7px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.period-chip:hover { color: var(--text-primary); }
.period-chip.active {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}
.period-chip.sm { padding: 6px 12px; font-size: 12px; }

/* ---------- Filter Chips (dismissible) ---------- */
.filter-chip-add {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}

/* ---------- Start Pill ("gestartet 08:14") ---------- */
.start-pill {
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-hover);
    border: none;
    border-radius: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.start-pill:hover { color: var(--text-secondary); }

/* ---------- Segmented Toggle (bg-surface pill group) ---------- */
.seg-group {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.seg-btn {
    padding: 6px 12px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-muted);
}
.seg-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ---------- Underline Tabs ---------- */
.tab-underline-group {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.tab-underline {
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    margin-bottom: -1px;
    font-family: var(--font-body);
}
.tab-underline.active {
    font-weight: 700;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Settings Toggle Switch ---------- */
.switch {
    width: 40px;
    height: 22px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--bg-elevated);
    position: relative;
    transition: background .15s;
    cursor: pointer;
    border: none;
    display: inline-block;
}
.switch.on { background: var(--accent); }
.switch .knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: left .15s, background .15s;
}
.switch.on .knob {
    left: 20px;
    background: var(--bg-primary);
}
.switch.sm { width: 32px; height: 18px; border-radius: 9px; }
.switch.sm .knob { width: 14px; height: 14px; }
.switch.sm.on .knob { left: 16px; }

.settings-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
}

/* ---------- Settings side navigation ---------- */
.settings-nav-btn {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    font-family: var(--font-body);
    width: 100%;
}
.settings-nav-btn:hover { color: var(--text-primary); }
.settings-nav-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Search Box ---------- */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    color: var(--text-muted);
}
.search-box input {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    color: var(--text-primary);
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
    width: 100%;
}
.search-box input:focus { border: none !important; }
.search-box.sm input { padding: 8px 0; font-size: 13px; }

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    gap: 6px;
}
.pager-btn {
    min-width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0 8px;
}
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
}

/* ---------- Dashboard Timer Banner ---------- */
.timer-banner {
    background: linear-gradient(135deg, var(--accent-bg), rgba(91,164,245,0.05));
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.timer-banner .banner-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.timer-banner .banner-time {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ---------- Glow Dot ---------- */
.glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    display: inline-block;
    flex-shrink: 0;
}
.glow-dot.sm { width: 6px; height: 6px; box-shadow: 0 0 8px var(--accent); }
.glow-dot.pulse { animation: pulse 2s infinite; }
.glow-dot.info { background: var(--info); box-shadow: 0 0 10px var(--info); }
.glow-dot.warning { background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.glow-dot.danger { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.glow-dot.off { background: var(--text-muted); box-shadow: none; }

/* ---------- Approval / warning notice ---------- */
.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}
.notice.warning {
    background: rgba(255,181,69,0.08);
    border: 1px solid rgba(255,181,69,0.22);
    color: var(--warning);
}
.notice.danger {
    background: rgba(255,92,106,0.08);
    border: 1px solid rgba(255,92,106,0.22);
    color: var(--danger);
}
.notice.info {
    background: rgba(91,164,245,0.08);
    border: 1px solid rgba(91,164,245,0.2);
    color: var(--info);
}

/* ---------- Progress mini-bar (reports) ---------- */
.mini-bar-track {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
}
.mini-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent);
    transition: width 0.4s ease;
}

/* ---------- Quick-start project tile (timer) ---------- */
.qs-tile {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color .15s ease;
    width: 100%;
}
.qs-tile:hover { border-color: rgba(0,212,170,0.35); }
.qs-tile .qs-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Icon tile (export cards etc.) ---------- */
.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.icon-tile.accent  { background: var(--accent-bg); color: var(--accent); }
.icon-tile.info    { background: rgba(91,164,245,0.12); color: var(--info); }
.icon-tile.warning { background: rgba(255,181,69,0.12); color: var(--warning); }
.icon-tile.danger  { background: rgba(255,92,106,0.12); color: var(--danger); }

/* ---------- Icon button (header) ---------- */
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ---------- Terminal cards ---------- */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 1000px) { .terminal-grid { grid-template-columns: 1fr; } }
.terminal-card {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.terminal-card.online {
    border-color: rgba(0,212,170,0.25);
    box-shadow: 0 10px 34px rgba(0,212,170,0.07);
}
.terminal-thumb {
    width: 58px;
    height: 74px;
    border-radius: 10px;
    flex-shrink: 0;
    padding: 4px;
    background: #0c0f16;
    border: 2px solid var(--border);
    position: relative;
}
.terminal-card.online .terminal-thumb {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(0,212,170,0.22);
}

/* ---------- Avatar stack ---------- */
.avatar-stack { display: flex; align-items: center; }
.avatar-stack > * {
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    position: relative;
}
.avatar-stack > *:first-child { margin-left: 0; }

/* ---------- Auth (split) layout ---------- */
.auth-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}
.auth-form-side {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px;
}
.auth-form { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-visual-side {
    flex: 1 1 560px;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0D1219 0%, #161C28 60%, #0F1822 100%);
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
}
.auth-shell.visual-left .auth-visual-side { order: -1; border-left: none; border-right: 1px solid var(--border); }
.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}
.auth-clock {
    font-size: 104px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent), var(--info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
}
.auth-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.auth-footer {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.auth-footer a { color: inherit; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
@media (max-width: 900px) {
    .auth-visual-side { display: none; }
}

/* ---------- Super-Admin sidebar shell (v2) ---------- */
.sa-shell {
    display: flex;
    /* Fixed to the viewport: only .sa-main scrolls — the admin sidebar stays in place. */
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
}
.sa-sidebar {
    width: 236px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.18s ease;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sa-shell.collapsed .sa-sidebar { width: 68px; }
.sa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    flex-shrink: 0;
    padding: 0 16px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.sa-shell.collapsed .sa-brand { padding: 0; justify-content: center; }
.sa-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sa-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 10px 20px;
    color: var(--text-muted);
    background: transparent;
    border-right: 3px solid transparent;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
}
.sa-shell.collapsed .sa-nav-link {
    padding: 11px 0;
    justify-content: center;
    border-right-width: 0;
}
.sa-nav-link:hover { color: var(--text-primary); background: var(--bg-hover); text-decoration: none; }
.sa-nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
    border-right-color: var(--accent);
    font-weight: 600;
}
.sa-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}
.sa-shell.collapsed .sa-logout { padding: 12px 0; justify-content: center; }
.sa-logout:hover { color: var(--text-primary); text-decoration: none; }
.sa-main {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}
.sa-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}
.sa-collapse-btn {
    color: var(--text-muted);
    display: inline-flex;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.sa-collapse-btn:hover { color: var(--text-primary); }

/* ---------- Card variants ---------- */
.card-p0 { padding: 0; overflow: hidden; }
.card-p0 > table { margin: 0; }
.card-header-row {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.danger-zone { border-color: rgba(255,92,106,0.3); }

/* ---------- Day timeline (Tagesverlauf) ---------- */
.day-timeline {
    position: relative;
    height: 48px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

/* ---------- Planner (Urlaubsplaner) ---------- */
.planner-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.planner-nav-btn:hover { color: var(--text-primary); }

/* ---------- Radio-card picker ---------- */
.radio-card {
    flex: 1;
    text-align: left;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    font-family: var(--font-body);
}
.radio-card.active {
    background: var(--accent-bg);
    border-color: var(--accent);
}

/* ---------- Module status pills (super admin pricing) ---------- */
.status-pill-group {
    display: inline-flex;
    gap: 3px;
    background: var(--bg-surface);
    border-radius: var(--radius-xs);
    padding: 3px;
}
.status-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
}
.status-pill.on-accent  { background: rgba(0,212,170,0.13); color: var(--accent); }
.status-pill.on-warning { background: rgba(255,181,69,0.13); color: var(--warning); }
.status-pill.on-muted   { background: rgba(123,131,152,0.13); color: var(--text-secondary); }

/* ---------- Price input (super admin pricing) ---------- */
.price-input {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 5px 10px;
    width: 104px;
}
.price-input input {
    width: 100%;
    background: transparent;
    border: none !important;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}
.price-input.overridden { border-color: var(--accent); }
.price-input.overridden input { color: var(--accent); }
.price-input.disabled { background: transparent; border-color: transparent; opacity: 0.4; }

/* ---------- Empty state ---------- */
.empty-state {
    padding: 32px;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 13px;
}


/* ---------- Module upsell overlay (unlicensed pages render behind it) ---------- */
.main-content.module-locked { position: relative; overflow: hidden; }
.module-locked-body {
    filter: blur(7px) saturate(0.75);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    min-height: 75vh;
}
.module-upsell-overlay {
    position: absolute; inset: 0; z-index: 60;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 8vh 24px 24px;
    background: radial-gradient(ellipse at 50% 30%, rgba(11,14,20,0.15), rgba(11,14,20,0.72));
}
.module-upsell-card {
    width: 100%; max-width: 560px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    text-align: center;
}
.module-upsell-lock {
    width: 56px; height: 56px; border-radius: 16px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), #00A88A);
    color: var(--bg-primary);
    box-shadow: 0 12px 32px rgba(0,212,170,0.35);
}
.module-upsell-kicker {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted);
}
.module-upsell-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.module-upsell-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0 auto; max-width: 420px; }
.module-upsell-features {
    margin: 22px auto 0; max-width: 400px; padding: 0;
    text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.module-upsell-features li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.module-upsell-features svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.module-upsell-price { margin-top: 22px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent); }
.module-upsell-cta { margin-top: 16px; }
.module-upsell-hint { font-size: 12.5px; color: var(--text-muted); }


/* ---- Page boot indicator ----
   Pages render without prerendering (see Components/RenderModes.cs): the layout arrives as static HTML
   at once, while #page-root (MainLayout / SuperAdminLayout) stays empty until the Blazor circuit delivers
   the first render. display:contents keeps the wrapper out of the layout once content is there. Pure CSS. */
#page-root {
    display: contents;
}
#page-root:empty {
    display: grid;
    min-height: 40vh;
    place-items: center;
}
#page-root:empty::after {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: page-boot-spin 0.8s linear infinite;
}
@keyframes page-boot-spin {
    to { transform: rotate(360deg); }
}
