﻿/* â”€â”€ Design Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --color-navy:          #0F1613;
    --color-primary:       #1FAE73;
    --color-primary-dark:  #0F8F5B;
    --color-primary-light: #6EE7B7;
    --color-secondary:     #2E90E0;
    --color-success:       #22C55E;
    --color-success-light: #86EFAC;
    --color-warning:       #B7791F;
    --color-warning-light: #FBD38D;
    --color-danger:        #B91C1C;
    --color-danger-light:  #FCA5A5;
  --color-gray-50:  #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

    --radius-none: 0px;
  --radius-sm: 4px;
    --radius-md: 8px;
  --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --radius-button: 8px;
    --radius-card: 12px;
    --radius-dialog: 16px;
    --radius-chip: 9999px;

    /* Backward-compatible alias for older local styles. */
    --radius: var(--radius-md);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 4px 16px rgba(0,0,0,.10);

    /* Centralized semantic backgrounds */
    --bg-surface: #ffffff;
    --bg-surface-muted: #f8f9fa;
    --bg-surface-soft: #fafafa;
    --bg-surface-soft-alt: #f8fafc;
    --bg-surface-hover: #f0f0f0;
    --bg-overlay-dark: rgba(0,0,0,.55);
    --bg-overlay-light: rgba(255,255,255,0.06);
    --bg-glass-light: rgba(255, 255, 255, 0.92);
    --bg-glass-dark: rgba(26, 37, 64, 0.9);

    --bg-info-soft: #e8eefb;
    --bg-info-soft-2: #e6f3ff;
    --bg-info-soft-3: #f0f7ff;
    --bg-info-soft-4: #f3f8ff;
    --bg-info-accent: #1e3a8a;
    --bg-info-crosshair: rgba(46, 144, 224, 0.18);
    --bg-info-flash-start: #e6f7ff;
    --bg-info-flash-mid: #bae7ff;

    --bg-success-soft: #d9fff4;
    --bg-success-soft-2: #eaffee;
    --bg-success-soft-3: #d1e7dd;
    --bg-success-accent: #20c997;
    --bg-success-strong: #28a745;

    --bg-warning-soft: #fff3cd;
    --bg-warning-soft-2: #fff8e6;
    --bg-warning-soft-3: #fff0d1;
    --bg-warning-accent: #fd7e14;

    --bg-danger-accent: #dc3545;
    --bg-neutral-accent: #6c757d;
    --bg-overlay-on-accent: rgba(255, 255, 255, 0.2);

    /* Planning dark surfaces */
    --bg-planning-dark-hover: #1e2d4d;
    --bg-planning-dark-warn: #2a1f0a;
    --bg-planning-dark-warn-hover: #352510;
    --bg-planning-dark-neutral: #1e2129;
    --bg-planning-dark-task: #1f2a1a;
    --bg-planning-dark-section: #0d1f35;
    --bg-planning-dark-slot-empty: #0e2218;
    --bg-planning-dark-slot-assigned: #122b1e;
    --bg-planning-dark-task-assigned: #0c1e2d;

    /* Canonical web dark tokens aligned with LogManWebTheme */
    --web-dark-bg: #0F1613;
    --web-dark-bg-gray: #0C120F;
    --web-dark-surface: #182620;
    --web-dark-primary: #1FAE73;
    --web-dark-primary-lighten: #6EE7B7;
    --web-dark-text-primary: rgba(255,255,255,0.92);
    --web-dark-text-secondary: rgba(255,255,255,0.55);
    --web-dark-text-disabled: rgba(255,255,255,0.30);
    --web-dark-border-default: rgba(255,255,255,0.07);
    --web-dark-table-hover: rgba(255,255,255,0.05);

    /* Centralized semantic text colors */
    --text-link: var(--color-secondary);
    --text-on-accent: #ffffff;
    --text-primary-strong: #212529;
    --text-secondary-strong: #495057;
    --text-muted: #6c757d;
    --text-info-strong: #1e40af;
    --text-warning-strong: #856404;
    --text-warning-dark: #663d00;
    --text-success-strong: #0f5132;
    --text-success-light: #4ade80;
    --text-info-light: #7dd3fc;
    --text-info-soft: #dbeafe;
    --text-warning-soft: #fff3bf;
    --text-error: #e50000;

    /* Centralized semantic border colors */
    --border-soft: #dee2e6;
    --border-subtle: #e6e6e6;
    --border-muted: #929292;
    --border-neutral: #6c757d;
    --border-warning: #fd7e14;
    --border-primary: #0d6efd;
    --border-info: #0ea5e9;
    --border-warning-strong: #fbbf24;
    --border-success-light: #4ade80;
}

/* Central radius mapping for MudBlazor components. */
.mud-button-root,
.mud-icon-button,
.mud-pagination-item,
.mud-pagination-navigation {
    border-radius: var(--radius-button);
}

.mud-chip {
    border-radius: var(--radius-chip);
}

.mud-paper,
.mud-table-container,
.mud-data-grid {
    border-radius: var(--radius-card);
}

/* Keep table header/body clipped to the same card radius to prevent visual overlap. */
.mud-data-grid,
.mud-data-grid .mud-table-container {
    overflow: hidden;
}

.mud-data-grid {
    border: 1px solid var(--border-soft);
}

.mud-dialog .mud-paper {
    border-radius: var(--radius-dialog);
}

.mud-input-slot,
.mud-select,
.mud-picker {
    border-radius: var(--radius-md);
}

.mud-tab,
.mud-alert,
.mud-snackbar,
.mud-list-item,
.mud-expansion-panel {
    border-radius: var(--radius-md);
}

.mud-navmenu .mud-nav-link,
.mud-navmenu .mud-nav-group-title {
    border-radius: var(--radius-button);
}

.mud-input,
.mud-select,
.mud-picker {
    min-height: 40px;
}

.mud-dialog .mud-dialog-title {
    padding: var(--space-md, 16px) var(--space-lg, 24px);
    border-bottom: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
}

.mud-dialog .mud-dialog-content {
    padding: var(--space-lg, 24px);
}

.mud-dialog .mud-dialog-actions {
    padding: var(--space-md, 16px) var(--space-lg, 24px);
    border-top: 1px solid var(--mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    border-bottom-left-radius: var(--radius-dialog, 16px);
    border-bottom-right-radius: var(--radius-dialog, 16px);
}

.mud-data-grid .mud-table-head .mud-table-cell {
    padding-top: var(--space-sm, 8px);
    padding-bottom: var(--space-sm, 8px);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Employees: keep reset action aligned without colliding with filter/header rows. */
.employees-filter-bar {
    margin-bottom: 12px;
}

.employees-filter-bar .mud-grid {
    align-items: flex-end;
}

.employees-filter-reset-item {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 72px;
}

.employees-filter-reset-button {
    align-self: flex-end;
    white-space: nowrap;
}

.employees-filter-bar + .mud-table.mud-data-grid {
    margin-top: 0;
}

.employees-grid .mud-table-head .mud-table-row > .mud-table-cell {
    white-space: nowrap;
}

.employees-grid .mud-table-head .mud-table-row > .mud-table-cell:last-child,
.employees-grid .mud-table-body .mud-table-row > .mud-table-cell:last-child {
    min-width: 112px;
}

.employees-grid .mud-table-body .mud-table-row > .mud-table-cell:last-child {
    white-space: nowrap;
}

.mud-data-grid .mud-table-head .mud-table-row > .mud-table-cell:first-child {
    border-top-left-radius: var(--radius-card);
}

.mud-data-grid .mud-table-head .mud-table-row > .mud-table-cell:last-child {
    border-top-right-radius: var(--radius-card);
}

.mud-data-grid .mud-table-body .mud-table-row > .mud-table-cell {
    padding-top: var(--space-sm, 8px);
    padding-bottom: var(--space-sm, 8px);
}

/* â”€â”€ Typografie â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Use MudBlazor's CSS variable when available, fall back to light token */
  color: var(--mud-palette-text-primary, var(--color-gray-800));
  background: var(--mud-palette-background, var(--color-gray-50));
}

a, .btn-link {
        color: var(--text-link);
}

.btn-primary {
    color: var(--text-on-accent);
  background-color: var(--color-primary);
  border-color: var(--color-primary-dark);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(31, 174, 115, 0.35);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--text-error);
}

.validation-message {
    color: var(--text-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--border-muted);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Badge â€“ Pill-Form */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
    border-radius: var(--radius-chip);
  white-space: nowrap;
}
.bg-success { background-color: var(--color-success-light) !important; color: var(--color-success) !important; }
.bg-danger  { background-color: var(--color-danger-light)  !important; color: var(--color-danger)  !important; }
.bg-secondary { background-color: var(--color-gray-100) !important; color: var(--color-gray-500) !important; }
.bg-info    { background-color: var(--color-primary-light) !important; color: var(--color-primary-dark) !important; }

/* Action button outlines */
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-gray-200);
  background: white;
  box-shadow: var(--shadow-sm);
}
.btn-outline-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-light);
}

.btn-outline-danger {
  color: var(--color-danger);
  border-color: var(--color-gray-200);
  background: white;
  box-shadow: var(--shadow-sm);
}
.btn-outline-danger:hover {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
  border-color: var(--color-danger-light);
}

/* Small text buttons */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* Icon-only buttons (32x32) */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.btn-sm i {
    font-size: 14px;
}

/* Use this for small buttons that contain text, not only an icon */
.btn-sm.btn-text {
    width: auto;
    height: auto;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}


/* Table headers */
table thead th {
  background-color: var(--color-gray-50) !important;
  color: var(--color-gray-500) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  border-color: var(--color-gray-200) !important;
  border-bottom-width: 2px !important;
}

/* Override any dark table variants */
.table-secondary {
    background-color: var(--bg-surface-muted) !important;
    color: var(--text-secondary-strong) !important;
}


/* Vacation Planner grid */

.vacation-grid {
    width: auto;
    border-collapse: collapse;
    font-size: 11px;
    user-select: none;
}

.vacation-grid th,
.vacation-grid td {
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.vacation-grid thead th {
    background: var(--bg-surface-muted);
    font-weight: 600;
    height: 26px;
    width: 30px;
}

.vacation-grid tbody th.month-label {
    background: var(--bg-surface-muted);
    font-weight: 600;
    text-align: left;
    padding: 0 0.5rem;
    min-width: 90px;
    width: 90px;
}

.vacation-grid td.vac-cell {
    position: relative;
    width: 30px;
    height: 38px;
    cursor: pointer;
    transition: box-shadow 0.13s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Crosshair row highlight – set by JS row-hovered class */
.vacation-grid.hover-crosshair-enabled tr.row-hovered td.vac-cell {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.05);
}
.vacation-grid.hover-crosshair-enabled tr.row-hovered th.month-label {
    background: var(--bg-info-soft);
}

/* Crosshair column highlight – added via JS (vacationGridCrosshair) */
.vacation-grid.hover-crosshair-enabled .col-hovered {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.05);
}
.vacation-grid.hover-crosshair-enabled thead th.col-hovered {
    background: var(--bg-info-soft);
    color: var(--text-info-strong);
    box-shadow: none;
}

/* Hovered cell wins over row/column tint (comes after, same specificity wins by order) */
.vacation-grid td.vac-cell:hover {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.09),
                inset 0 0 0 1.5px rgba(37, 99, 235, 0.38);
}

.vacation-grid td.vac-cell:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.vacation-grid td.vac-cell:active {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.18);
    transition-duration: 0.05s;
}

.vacation-grid td.vac-cell-empty {
    background: var(--bg-surface-hover);
    border-color: var(--border-subtle);
}

.vacation-grid .vac-cell-day {
    color: var(--text-secondary-strong);
}

.vacation-grid .vac-cell-approved {
    position: absolute;
    top: 1px;
    left: 3px;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
}

.vacation-grid .vac-cell-pending {
    position: absolute;
    bottom: 1px;
    left: 3px;
    font-size: 10px;
    line-height: 1;
    color: var(--text-muted);
}

.vacation-grid .vac-cell-zero { background: var(--bg-surface); }
.vacation-grid .vac-cell-low {
    background: var(--bg-warning-soft);
    color: var(--text-warning-strong);
}
.vacation-grid .vac-cell-medium {
    background: var(--bg-warning-accent);
    color: var(--text-on-accent);
}
.vacation-grid .vac-cell-high {
    background: var(--bg-danger-accent);
    color: var(--text-on-accent);
}

.vacation-grid .vac-cell-weekend {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.04);
}

/* Public holiday: diagonal stripe overlay */
.vacation-grid .vac-cell-holiday {
    position: relative;
    overflow: hidden;
}
.vacation-grid .vac-cell-holiday::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(255, 193, 7, 0.35) 3px,
        rgba(255, 193, 7, 0.35) 5px
    );
    pointer-events: none;
}

.vacation-grid .vac-cell-today {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.vacation-grid .vac-cell-selected {
    outline: 2px solid #6c757d;
    outline-offset: -2px;
}

.vacation-grid .vac-cell-range-selected {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.16);
}

.vacation-grid .vac-cell-range-start,
.vacation-grid .vac-cell-range-end {
    outline: 2px solid rgba(29, 78, 216, 0.75);
    outline-offset: -2px;
}

.vacation-tooltip {
    position: fixed;
    z-index: 1100;
    min-width: 220px;
    max-width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    padding: 0.5rem 0.75rem;
    font-size: 12px;
    color: var(--text-primary-strong);
    pointer-events: none;
}

.vacation-tooltip .vac-tip-section {
    margin-top: 0.25rem;
    font-weight: 600;
    color: var(--text-secondary-strong);
}

.vacation-tooltip .vac-tip-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 2px 0;
}

.vacation-tooltip .vac-tip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--color-gray-200);
    color: var(--text-primary-strong);
    font-size: 10px;
    font-weight: 700;
}

.vacation-tooltip .vac-tip-badge.vac-badge-u { background: var(--bg-warning-accent); color: var(--text-on-accent); }
.vacation-tooltip .vac-tip-badge.vac-badge-za { background: var(--bg-success-accent); color: var(--text-on-accent); }
.vacation-tooltip .vac-tip-badge.vac-badge-pending { background: var(--bg-neutral-accent); color: var(--text-on-accent); }

.vacation-filter-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    padding: 0.5rem 0.75rem;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1080;
}

/* Vacation Planner employee timeline */
.vacation-planner-timeline {
    width: 100%;
}

.vacation-planner-timeline-toolbar {
    margin-bottom: 0.75rem;
}

.vacation-planner-timeline-scroll {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
}

.vacation-planner-timeline-grid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    user-select: none;
}

.vacation-planner-timeline-grid th,
.vacation-planner-timeline-grid td {
    border: 1px solid var(--border-soft);
    padding: 0;
    text-align: center;
}

.vacation-planner-timeline-header-cell {
    width: 34px;
    min-width: 34px;
    height: 44px;
    font-size: 10px;
    line-height: 1.1;
    background: var(--bg-surface-muted);
    font-weight: 600;
    color: var(--text-secondary-strong);
}

.vacation-planner-timeline-header-weekday {
    font-size: 10px;
    color: var(--text-muted);
}

.vacation-planner-timeline-employee-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    text-align: left !important;
    padding: 0.4rem 0.6rem !important;
    background: var(--bg-surface);
}

.vacation-planner-timeline-grid thead .vacation-planner-timeline-employee-cell {
    z-index: 3;
    background: var(--bg-surface-muted);
}

.vacation-planner-timeline-employee-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vacation-planner-timeline-employee-department {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vacation-planner-timeline-day-cell {
    width: 34px;
    min-width: 34px;
    height: 28px;
    cursor: pointer;
    background: var(--bg-surface);
}

.vacation-planner-timeline-day-cell:hover {
    background: var(--bg-info-soft-4);
}

/* Timeline crosshair row/column highlight (enabled only) */
.vacation-planner-timeline-grid.timeline-crosshair-enabled tr.row-hovered td.vacation-planner-timeline-day-cell,
.vacation-planner-timeline-grid.timeline-crosshair-enabled tr.row-hovered th.vacation-planner-timeline-employee-cell {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.05);
}

.vacation-planner-timeline-grid.timeline-crosshair-enabled .col-hovered {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.05);
}

.vacation-planner-timeline-grid.timeline-crosshair-enabled thead th.col-hovered {
    background: var(--bg-info-soft);
    color: var(--text-info-strong);
    box-shadow: none;
}

.vacation-planner-timeline-grid.timeline-crosshair-enabled td.vacation-planner-timeline-day-cell:hover {
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.09),
                inset 0 0 0 1.5px rgba(37, 99, 235, 0.38);
}

.vacation-planner-timeline-entry {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.vacation-planner-timeline-entry-approved {
    color: var(--text-on-accent);
}

.vacation-planner-timeline-entry-pending {
    color: var(--text-secondary-strong);
    border: 1px dashed var(--border-neutral);
}

.vacation-planner-timeline-entry-vacation.vacation-planner-timeline-entry-approved {
    background: var(--bg-warning-accent);
}

.vacation-planner-timeline-entry-time-off.vacation-planner-timeline-entry-approved {
    background: var(--bg-success-accent);
}

.vacation-planner-timeline-entry-vacation.vacation-planner-timeline-entry-pending {
    background: var(--bg-warning-soft-3);
}

.vacation-planner-timeline-entry-time-off.vacation-planner-timeline-entry-pending {
    background: var(--bg-success-soft);
}

.vacation-planner-timeline-weekend {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.035);
}

.vacation-planner-timeline-holiday {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(255, 193, 7, 0.22) 4px,
        rgba(255, 193, 7, 0.22) 7px
    );
}

.vacation-planner-timeline-today {
    outline: 2px solid var(--border-primary);
    outline-offset: -2px;
}

.vacation-planner-timeline-tooltip {
    position: fixed;
    z-index: 1110;
    min-width: 220px;
    max-width: 360px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    padding: 0.5rem 0.75rem;
    font-size: 12px;
    color: var(--text-primary-strong);
    pointer-events: none;
}

.vacation-planner-timeline-tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* â”€â”€ Table rows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: transparent;
  --bs-table-accent-bg: transparent;
}
.table tbody tr:hover {
  background-color: var(--color-gray-50);
}
.table tbody td {
  border-color: var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: 14px;
  padding: 11px 14px;
  vertical-align: middle;
}

/* â”€â”€ Mitarbeiter-Avatar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.employee-avatar-initials {
  width: 30px;
  height: 30px;
    border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.employee-avatar-initials.inactive {
  background: var(--color-gray-100);
  color: var(--color-gray-400);
}

/* â”€â”€ Form Label â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop {
    background-color: var(--bg-overlay-dark) !important;
}
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.modal-header {
  border-bottom: 1px solid var(--color-gray-100);
  padding: 20px 24px 16px;
}
.modal-body {
  padding: 20px 24px;
}
.modal-footer {
  border-top: 1px solid var(--color-gray-100);
  padding: 14px 24px;
}

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--color-gray-400);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 14px;
  color: var(--color-gray-400);
  margin-bottom: 20px;
  max-width: 320px;
}

/* â”€â”€ Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-100);
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}
.page-header .page-subtitle {
  font-size: 13px;
  color: var(--color-gray-400);
  margin-top: 2px;
}

/* â”€â”€ KPI Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kpi-card {
    background: var(--bg-surface);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.kpi-card .kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--color-gray-400);
  font-weight: 500;
}
.kpi-card .kpi-sub.positive { color: var(--color-success); }
.kpi-card .kpi-sub.warning  { color: var(--color-warning); }
.kpi-card .kpi-sub.danger   { color: var(--color-danger);  }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DARK MODE OVERRIDES
   Applied when <html class="dark"> is set by logmanSetDarkMode()
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Design tokens (dark) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark {
    --dm-bg:           var(--web-dark-bg);
    --dm-surface:      var(--web-dark-surface);
    --dm-bg-gray:      var(--web-dark-bg-gray);
    --dm-border:       var(--web-dark-border-default);
    --dm-text:         var(--web-dark-text-primary);
    --dm-text-muted:   var(--web-dark-text-secondary);
    --dm-text-faint:   var(--web-dark-text-disabled);
    --dm-primary:      var(--web-dark-primary);
    --dm-primary-light:var(--web-dark-primary-lighten);
    --dm-hover:        var(--web-dark-table-hover);
    --dm-table-header-bg: color-mix(in srgb, var(--dm-surface) 88%, var(--dm-bg) 12%);
    --dm-table-header-text: var(--dm-text-muted);
    --dm-table-header-border: var(--dm-border);

    /* bg-soft-palette → dark: blend accent colour into the dark background  */
    --bg-info-soft:      color-mix(in srgb, var(--bg-info-accent) 18%, var(--web-dark-bg));
    --bg-info-soft-2:    color-mix(in srgb, var(--bg-info-accent) 14%, var(--web-dark-bg));
    --bg-info-soft-3:    color-mix(in srgb, var(--bg-info-accent) 20%, var(--web-dark-bg));
    --bg-info-soft-4:    color-mix(in srgb, var(--bg-info-accent) 10%, var(--web-dark-bg));
    --bg-info-crosshair: color-mix(in srgb, var(--bg-info-accent) 30%, var(--web-dark-bg));

    --bg-warning-soft:   color-mix(in srgb, var(--bg-warning-accent) 15%, var(--web-dark-bg));
    --bg-warning-soft-2: color-mix(in srgb, var(--bg-warning-accent) 18%, var(--web-dark-bg));
    --bg-warning-soft-3: color-mix(in srgb, var(--bg-warning-accent) 22%, var(--web-dark-bg));

    /* Text colours → readable on dark background */
    --text-muted:        var(--web-dark-text-secondary);
    --text-primary-strong: var(--web-dark-text-primary);
}

/* â”€â”€ Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark body {
    background: var(--dm-bg);
    color: var(--dm-text);
}

/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark table thead th {
    background-color: var(--dm-table-header-bg) !important;
    color: var(--dm-table-header-text) !important;
    border-color: var(--dm-table-header-border) !important;
}

html.dark .mud-table-head .mud-table-cell,
html.dark .mud-data-grid .mud-table-head .mud-table-cell {
    background-color: var(--dm-table-header-bg);
    color: var(--dm-table-header-text);
    border-color: var(--dm-table-header-border);
}

html.dark .mud-data-grid {
    border-color: var(--dm-border);
}

html.dark .table tbody tr:hover {
    background-color: var(--dm-hover);
}

html.dark .table tbody td {
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: color-mix(in srgb, var(--bg-surface) 2%, transparent);
    --bs-table-accent-bg: transparent;
}


/* â”€â”€ Vacation grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark .vacation-grid th,
html.dark .vacation-grid td {
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .vacation-grid thead th {
    background: var(--dm-table-header-bg);
    color: var(--dm-table-header-text);
}

html.dark .vacation-grid tbody th.month-label {
    background: var(--dm-table-header-bg);
    color: var(--dm-table-header-text);
}

html.dark .vacation-grid td.vac-cell-empty {
    background: var(--web-dark-bg-gray);
    border-color: var(--dm-border);
}

html.dark .vacation-grid .vac-cell-day {
    color: var(--dm-text-muted);
}

html.dark .vacation-grid .vac-cell-zero {
    background: var(--dm-surface);
}

/* Occupancy levels – desaturated, lower contrast for dark theme */
html.dark .vacation-grid .vac-cell-low {
    background: color-mix(in srgb, var(--bg-warning-accent) 40%, var(--web-dark-bg));
    color: var(--text-warning-soft);
}

html.dark .vacation-grid .vac-cell-medium {
    background: color-mix(in srgb, var(--bg-warning-accent) 62%, var(--web-dark-bg));
    color: var(--text-on-accent);
}

html.dark .vacation-grid .vac-cell-high {
    background: color-mix(in srgb, var(--bg-danger-accent) 58%, var(--web-dark-bg));
    color: var(--text-on-accent);
}

/* Weekend – more visible dim in dark mode */
html.dark .vacation-grid .vac-cell-weekend {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.20);
}

/* Selected cell – lighter outline for dark bg */
html.dark .vacation-grid .vac-cell-selected {
    outline-color: rgba(255, 255, 255, 0.45);
}

html.dark .vacation-grid .vac-cell-range-selected {
    box-shadow: inset 0 0 0 999px rgba(147, 197, 253, 0.22);
}

html.dark .vacation-grid .vac-cell-range-start,
html.dark .vacation-grid .vac-cell-range-end {
    outline-color: rgba(147, 197, 253, 0.75);
}

/* Dark mode crosshair row */
html.dark .vacation-grid.hover-crosshair-enabled tr.row-hovered td.vac-cell {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}
html.dark .vacation-grid.hover-crosshair-enabled tr.row-hovered th.month-label {
    background: var(--bg-info-crosshair);
}

/* Dark mode crosshair column */
html.dark .vacation-grid.hover-crosshair-enabled .col-hovered {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}
html.dark .vacation-grid.hover-crosshair-enabled thead th.col-hovered {
    background: var(--bg-info-accent);
    color: var(--text-info-soft);
    box-shadow: none;
}

/* Hover/active for dark mode cells */
html.dark .vacation-grid td.vac-cell:hover {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08),
                inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}

html.dark .vacation-grid td.vac-cell:active {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.22);
    transition-duration: 0.05s;
}

html.dark .vacation-planner-timeline-scroll,
html.dark .vacation-planner-timeline-grid th,
html.dark .vacation-planner-timeline-grid td {
    border-color: var(--dm-border);
}

html.dark .vacation-planner-timeline-header-cell,
html.dark .vacation-planner-timeline-grid thead .vacation-planner-timeline-employee-cell {
    background: var(--dm-table-header-bg);
    color: var(--dm-table-header-text);
}

html.dark .vacation-planner-timeline-employee-cell,
html.dark .vacation-planner-timeline-day-cell {
    background: var(--dm-surface);
    color: var(--dm-text);
}

html.dark .vacation-planner-timeline-employee-department,
html.dark .vacation-planner-timeline-header-weekday {
    color: var(--dm-text-muted);
}

html.dark .vacation-planner-timeline-day-cell:hover {
    background: var(--bg-overlay-light);
}

html.dark .vacation-planner-timeline-grid.timeline-crosshair-enabled tr.row-hovered td.vacation-planner-timeline-day-cell,
html.dark .vacation-planner-timeline-grid.timeline-crosshair-enabled tr.row-hovered th.vacation-planner-timeline-employee-cell {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

html.dark .vacation-planner-timeline-grid.timeline-crosshair-enabled .col-hovered {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

html.dark .vacation-planner-timeline-grid.timeline-crosshair-enabled thead th.col-hovered {
    background: var(--bg-info-accent);
    color: var(--text-info-soft);
    box-shadow: none;
}

html.dark .vacation-planner-timeline-grid.timeline-crosshair-enabled td.vacation-planner-timeline-day-cell:hover {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08),
                inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}

html.dark .vacation-planner-timeline-entry-vacation.vacation-planner-timeline-entry-pending {
    background: color-mix(in srgb, var(--bg-warning-accent) 25%, transparent);
    color: var(--dm-text);
}

html.dark .vacation-planner-timeline-entry-time-off.vacation-planner-timeline-entry-pending {
    background: color-mix(in srgb, var(--bg-success-accent) 25%, transparent);
    color: var(--dm-text);
}

html.dark .vacation-planner-timeline-weekend {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

html.dark .vacation-planner-timeline-holiday {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(255, 193, 7, 0.2) 4px,
        rgba(255, 193, 7, 0.2) 7px
    );
}

html.dark .vacation-planner-timeline-tooltip {
    background: var(--dm-bg-gray);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .vacation-tooltip,
html.dark .vacation-filter-panel {
    background: var(--dm-bg-gray);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .vacation-tooltip .vac-tip-section {
    color: var(--dm-text-muted);
}

html.dark .vacation-tooltip .vac-tip-badge {
    background: color-mix(in srgb, var(--bg-info-accent) 35%, var(--web-dark-bg));
    color: var(--dm-text);
}

/* â”€â”€ KPI card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark .kpi-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

html.dark .kpi-card .kpi-value {
    color: var(--dm-text);
}

html.dark .kpi-card .kpi-label,
html.dark .kpi-card .kpi-sub {
    color: var(--dm-text-muted);
}

/* â”€â”€ Page header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark .page-header {
    border-bottom-color: var(--dm-border);
}

html.dark .page-header h1 {
    color: var(--dm-text);
}

/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark .bg-secondary {
    background-color: color-mix(in srgb, var(--bg-surface) 10%, transparent) !important;
    color: var(--dm-text-muted) !important;
}

/* â”€â”€ Form controls â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark .form-control,
html.dark .form-select {
    background-color: var(--dm-bg-gray);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .form-control:focus,
html.dark .form-select:focus {
    background-color: var(--dm-surface);
    border-color: var(--dm-primary);
    color: var(--dm-text);
}

html.dark .form-label {
    color: var(--dm-text-muted);
}

/* â”€â”€ Override Bootstrap "dark" overrides that force light colors â”€â”€ */
html.dark .bg-dark {
    background-color: var(--dm-surface) !important;
}

html.dark .table-dark,
html.dark .table-dark th,
html.dark .table-dark td {
    background-color: var(--dm-surface) !important;
    border-color: var(--dm-border) !important;
    color: var(--dm-text) !important;
}

html.dark .table-secondary {
    background-color: color-mix(in srgb, var(--bg-surface) 4%, transparent) !important;
    color: var(--dm-text) !important;
}

/*
   Global selectors are required here because Blazor scoped CSS with
   ::deep and parent-class combinations does not resolve reliably.
*/

/* Brand-Text ausblenden */
.nav-collapsed .brand-text {
    display: none;
}

/* Brand-Bereich zentrieren */
.nav-collapsed .top-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
}
.nav-collapsed .navbar-brand {
    justify-content: center;
    gap: 0;
}

/* Section-Labels ausblenden */
.nav-collapsed .nav-section-label {
    display: none;
}

/* Nav-Container */
.nav-collapsed .nav.flex-column {
    padding: 0;
    width: 100%;
}

/* Nav-Item: kein seitliches Padding */
.nav-collapsed .nav-item,
.nav-collapsed .nav-px {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Nav-Link: Icon zentriert, Text weg */
.nav-collapsed .nav-link {
    justify-content: center !important;
    padding: 10px 0 !important;
    width: 100% !important;
    border-radius: var(--radius-button) !important;
}

/* Text-Knoten im Nav-Link ausblenden (alle spans ohne Icon-Klasse) */
.nav-collapsed .nav-link span:not([class*="-nav-menu"]) {
    display: none !important;
}

/* Icon: kein rechter Abstand */
.nav-collapsed .nav-link .bi {
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* Startup loading page while auth state is initialized */
.startup-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(1000px 520px at 95% 110%, rgba(15, 34, 71, 0.14), transparent 65%),
        var(--mud-palette-background, var(--color-gray-50));
}

.startup-loading__panel {
    width: min(460px, 100%);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-dialog);
    background: var(--bg-glass-light);
    box-shadow: 0 18px 40px rgba(15, 34, 71, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 24px 30px;
}

.startup-loading__icon {
    font-size: 40px;
}

.startup-loading__title {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.startup-loading__subtitle {
    opacity: 0.75;
}

.startup-loading__spinner {
    margin-top: 6px;
}

html.dark .startup-loading {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.24), transparent 60%),
        radial-gradient(1000px 520px at 95% 110%, rgba(45, 115, 255, 0.16), transparent 65%),
        var(--dm-bg, #0f1623);
}

html.dark .startup-loading__panel {
    border-color: var(--dm-border, rgba(255, 255, 255, 0.09));
    background: var(--bg-glass-dark);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

html.dark .startup-loading__title,
html.dark .startup-loading__subtitle {
    color: var(--dm-text, rgba(255, 255, 255, 0.92));
}

/* Workaround for MudBlazor/MudBlazor#13276 (MudBlazor 9.6.0+, landed via PR #13288):
   MudTabs switched from inline `display:contents` styling to gating the active tab
   panel via a `mud-tab-panel-active` CSS class, but this app's plain <MudTabs>/
   <MudTabPanel> usage (no KeepPanelsAlive, no ActivePanelIndex binding) never
   receives that class, leaving the active panel's content permanently hidden
   (`display:none`). Restore the pre-9.6.0 behavior globally until upstream fixes
   the regression. Safe app-wide: nothing in this codebase uses the separate
   `mud-tab-panel-hidden` class (verified via grep), so this cannot un-hide a panel
   that relies on that mechanism for a different purpose. */
.mud-tabs-panels > .mud-tab-panel {
    display: contents !important;
}
