    :root {
      --bg-top: #0f172a;
      --bg-bottom: #e8edf3;
      --surface: rgba(255,255,255,0.88);
      --surface-strong: #ffffff;
      --surface-soft: #f8fafc;
      --line: #d9e2ec;
      --line-strong: #c3d0dd;
      --text: #0f172a;
      --muted: #64748b;
      --accent: #2563eb;
      --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.16);
      --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
      --header-depth: 340px;
    }

    body.theme-dark {
      --bg-top: #13233a;
      --bg-bottom: #1a2c45;
      --surface: rgba(19, 31, 50, 0.92);
      --surface-strong: #18283f;
      --surface-soft: #213552;
      --line: #314866;
      --line-strong: #456284;
      --text: #edf4ff;
      --muted: #afbdd1;
      --accent: #79aefc;
      --shadow-lg: 0 24px 60px rgba(4, 10, 20, 0.34);
      --shadow-md: 0 12px 30px rgba(4, 10, 20, 0.22);
    }

    body {
      font-size: 0.875rem;
      font-family: "Instrument Sans", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(14,165,233,0.10), transparent 30%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
      min-height: 100vh;
    }

    .auth-gate {
      position: fixed;
      inset: 0;
      z-index: 3000;
      display: grid;
      place-items: center;
      padding: 1.5rem;
      background:
        radial-gradient(circle at 20% 10%, rgba(56,189,248,0.18), transparent 28%),
        linear-gradient(135deg, #10243b 0%, #eef5fb 55%, #f8fbff 100%);
    }
    .auth-gate.d-none { display: none !important; }
    .auth-card {
      width: min(440px, 100%);
      padding: 2rem;
      border-radius: 28px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(203,213,225,0.9);
      box-shadow: 0 30px 90px rgba(15,23,42,0.22);
    }
    .auth-brand {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      margin-bottom: 1.5rem;
    }
    .auth-brand img {
      width: 54px;
      height: 54px;
      object-fit: contain;
    }
    .auth-brand strong {
      display: block;
      color: #0f172a;
      font-size: 1.35rem;
      line-height: 1;
    }
    .auth-brand span,
    .auth-copy {
      color: #64748b;
    }
    .auth-title {
      font-size: 1.65rem;
      font-weight: 800;
      color: #0f172a;
      margin: 0.35rem 0 0.5rem;
    }
    .auth-link {
      color: #2563eb;
      text-decoration: none;
    }
    .travel-cost-section {
      padding: 0.9rem;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(248,250,252,0.72);
    }
    .travel-cost-section-head {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.75rem;
      color: var(--text);
      font-weight: 800;
    }
    .travel-cost-section-head small {
      color: var(--muted);
      font-weight: 600;
      text-align: right;
    }

    body.theme-dark .app-topbar,
    body.theme-dark .navbar-brand,
    body.theme-dark #navInfo { color: #edf4ff !important; }
    body.theme-dark .brand-mark { background: transparent; color: #08111f; }
    body.theme-dark .brand-sub { color: #b7c6d9; }
    body.theme-dark #navInfo {
      background: rgba(33,53,82,0.92);
      border-color: rgba(121,174,252,0.18);
      color: #f8fbff !important;
    }
    body.theme-dark .workspace-panel,
    body.theme-dark .position-picker-shell,
    body.theme-dark .table-responsive,
    body.theme-dark .config-card,
    body.theme-dark .status-note,
    body.theme-dark .selected-pos-box,
    body.theme-dark .modal-content {
      background: rgba(19,31,50,0.94);
      border-color: #314866;
      color: var(--text);
    }
    body.theme-dark .nav-tabs {
      background: linear-gradient(180deg, rgba(19,31,50,0.98), rgba(22,36,57,0.96));
      border-bottom-color: #314866;
    }
    body.theme-dark .nav-tabs .nav-link { color: #c4d0df; }
    body.theme-dark .nav-tabs .nav-link:hover { color: #f5f9ff; background: rgba(121,174,252,0.14); }
    body.theme-dark .nav-tabs .nav-link.active {
      background: #eef4fb;
      color: #142338;
      box-shadow: 0 10px 24px rgba(8, 15, 28, 0.24);
    }
    body.theme-dark .nav-divider {
      background: #314866;
    }
    body.theme-dark .form-control,
    body.theme-dark .form-select,
    body.theme-dark .h-btn,
    body.theme-dark .filter-chip,
    body.theme-dark .btn-outline-secondary,
    body.theme-dark .picker-item,
    body.theme-dark .calendar-day {
      background: #1d304b;
      color: #edf4ff;
      border-color: #3c587b;
    }
    body.theme-dark .form-control::placeholder { color: #9fb0c6; }
    body.theme-dark .form-control:focus,
    body.theme-dark .form-select:focus,
    body.theme-dark .focus-active {
      background: #223854 !important;
      color: #edf4ff !important;
      border-color: #79aefc !important;
      box-shadow: 0 0 0 4px rgba(121,174,252,0.18) !important;
    }
    body.theme-dark input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(1) brightness(1.35);
      opacity: 1;
    }
    body.theme-dark .pos-btn .pos-name,
    body.theme-dark .picker-name,
    body.theme-dark .section-title,
    body.theme-dark .status-note strong,
    body.theme-dark .selected-pos-box .value,
    body.theme-dark .position-picker-value,
    body.theme-dark .calendar-day-num,
    body.theme-dark .config-card .fw-semibold,
    body.theme-dark .config-card strong,
    body.theme-dark label.form-label { color: #edf4ff; }
    body.theme-dark .pos-btn .pos-code,
    body.theme-dark .picker-code,
    body.theme-dark .section-copy,
    body.theme-dark .section-kicker,
    body.theme-dark .position-picker-title,
    body.theme-dark .position-picker-meta,
    body.theme-dark .selected-pos-box .label,
    body.theme-dark .calendar-head,
    body.theme-dark .calendar-hours.empty,
    body.theme-dark .entry-table th,
    body.theme-dark .sd-table th,
    body.theme-dark .sd-table td,
    body.theme-dark .status-note,
    body.theme-dark .config-check,
    body.theme-dark .text-muted { color: #afbdd1 !important; }
    body.theme-dark .table-light,
    body.theme-dark .table-light > th,
    body.theme-dark .table-light > td,
    body.theme-dark .modal-header,
    body.theme-dark .modal-footer { background: #20324d !important; border-color: #314866; }
    body.theme-dark .table > :not(caption) > * > * { border-bottom-color: #314866; }
    body.theme-dark .calendar-day.current { background: rgba(121,174,252,0.14); border-color: #79aefc; }
    body.theme-dark .calendar-day.selected { background: rgba(182,201,225,0.16); border-color: #d5deea; }
    body.theme-dark .absence-table-wrap {
      background: rgba(19,31,50,0.94);
      border-color: #314866;
    }
    body.theme-dark .absence-table thead th,
    body.theme-dark .absence-day-index {
      background: rgba(24,40,63,0.98);
      color: #edf4ff;
      border-right-color: #314866;
      border-bottom-color: #314866;
    }
    body.theme-dark .absence-cell {
      background: rgba(24,40,63,0.9);
      border-right-color: #314866;
      border-bottom-color: #314866;
    }
    body.theme-dark .absence-cell:hover { background: #20324d; }
    body.theme-dark .absence-cell.weekend { background: rgba(120,92,32,0.24); }
    body.theme-dark .absence-cell.holiday { background: rgba(22,119,155,0.24); }
    body.theme-dark .absence-cell.urlaub { background: rgba(22,101,52,0.24); }
    body.theme-dark .absence-cell.krank { background: rgba(127,29,29,0.24); }
    body.theme-dark .absence-cell.gleitzeit { background: rgba(91,33,182,0.24); }
    body.theme-dark .absence-cell.halbtag_urlaub { background: rgba(217,119,6,0.24); }
    body.theme-dark .absence-cell.ersatzruhetag { background: rgba(194,65,12,0.24); }
    body.theme-dark .absence-cell.weiterbildung { background: rgba(14,165,233,0.24); }
    body.theme-dark .absence-cell.dienstreise { background: rgba(13,148,136,0.24); }
    body.theme-dark .absence-weekday { color: #afbdd1; }
    body.theme-dark .absence-hours { color: #edf4ff; }
    body.theme-dark .absence-label { color: #d9eef7; }
    body.theme-dark .absence-head-sum { color: #afbdd1; }
    body.theme-dark .absence-chip {
      color: #d2deed;
      background: rgba(24,40,63,0.82);
      border-color: #314866;
    }
    body.theme-dark .section-title { font-size: 1.28rem; }
    body.theme-dark .section-copy { max-width: 52ch; color: #b4c2d4; }
    body.theme-dark .position-picker-shell {
      background: rgba(22,35,56,0.72);
      border-color: #314866;
    }
    body.theme-dark .position-picker-body { border-top-color: #314866; }
    body.theme-dark .entry-table tbody td,
    body.theme-dark .entry-table tbody th,
    body.theme-dark .entry-table tfoot td {
      background: #17273e;
      color: #edf4ff !important;
    }
    body.theme-dark .entry-table tbody tr:hover td { background: #213552; }
    body.theme-dark .entry-table td .text-muted { color: #b1bfd2 !important; }
    body.theme-dark .entry-table .fw-semibold,
    body.theme-dark .entry-table .fw-bold,
    body.theme-dark .entry-table code,
    body.theme-dark .entry-table input,
    body.theme-dark .sd-table code,
    body.theme-dark .sd-table td,
    body.theme-dark .sd-table th {
      color: #edf4ff !important;
    }
    body.theme-dark .entry-table thead th {
      color: #3b5678 !important;
      background: #f4f7fb !important;
    }
    body.theme-dark .sd-table thead th {
      color: #3b5678 !important;
      background: #f4f7fb !important;
    }
    body.theme-dark .sd-table tbody td,
    body.theme-dark .sd-table tbody th {
      background: #17273e;
      color: #edf4ff !important;
    }
    body.theme-dark .sd-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-dark .picker-list {
      border-color: #314866;
      background: #17273e;
    }
    body.theme-dark .picker-item {
      background: #17273e;
      border-bottom-color: #314866;
      color: #edf4ff;
    }
    body.theme-dark .picker-item:hover,
    body.theme-dark .picker-item.active {
      background: #213552;
    }
    body.theme-dark .h-btn.active {
      background: #eef4fb;
      color: #142338;
      border-color: #eef4fb;
    }
    body.theme-dark .selected-pos-box {
      background: linear-gradient(180deg, #1b2d46, #18283f);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    body.theme-dark .selected-pos-box .value.is-empty,
    body.theme-dark .position-picker-value.is-empty {
      color: #d2deed !important;
    }
    body.theme-dark .toolbar-line {
      border-bottom-color: #3a5375;
    }
    body.theme-dark .table-filter-chip {
      background: #1d304b;
      border-color: #456284;
      color: #d4deea;
    }
    body.theme-dark .table-filter-chip.active {
      background: #eef4fb;
      border-color: #eef4fb;
      color: #142338;
    }
    body.theme-dark .month-summary {
      background: rgba(24,40,63,0.88);
      border-color: #314866;
    }
    body.theme-dark .month-summary-toggle {
      color: #edf4ff;
    }
    body.theme-dark .month-summary-body {
      border-top-color: #314866;
    }
    body.theme-dark .month-summary-table th,
    body.theme-dark .month-summary-table td {
      border-bottom-color: #314866;
      color: #edf4ff;
    }
    body.theme-dark .month-summary-table th {
      color: #afbdd1;
      background: rgba(29,48,75,0.92);
    }
    body.theme-dark .month-summary-table td {
      background: #17273e;
    }
    body.theme-dark .month-summary-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-dark .month-summary-table td.is-today {
      background: #31476a;
      color: #f8fbff;
      font-weight: 700;
    }
    body.theme-dark .worktime-table thead th {
      background: #20324d !important;
      color: #d9e5f3 !important;
      border-bottom-color: #314866 !important;
    }
    body.theme-dark .worktime-table tbody td,
    body.theme-dark .worktime-table tbody th {
      background: #17273e;
      color: #edf4ff !important;
      border-bottom-color: #314866 !important;
    }
    body.theme-dark .worktime-table tbody tr:hover td {
      background: #20324d;
    }
    body.theme-dark .worktime-date,
    body.theme-dark .worktime-weekday,
    body.theme-dark .worktime-hours {
      color: #edf4ff !important;
    }
    body.theme-dark .worktime-hours.is-negative {
      color: #f87171 !important;
    }
    body.theme-dark .worktime-hours.is-positive {
      color: #34d399 !important;
    }
    body.theme-dark .worktime-row.is-weekend td {
      background: rgba(120, 92, 32, 0.26) !important;
    }
    body.theme-dark .worktime-row.is-holiday td {
      background: rgba(22, 119, 155, 0.26) !important;
    }
    body.theme-dark .worktime-row.is-weekend:hover td {
      background: rgba(120, 92, 32, 0.34) !important;
    }
    body.theme-dark .worktime-row.is-holiday:hover td {
      background: rgba(22, 119, 155, 0.34) !important;
    }
    body.theme-dark .worktime-overview {
      background: rgba(24,40,63,0.92);
      border-color: #314866;
      box-shadow: none;
    }
    body.theme-dark .worktime-overview-table thead th {
      border-right-color: rgba(255,255,255,0.10);
    }
    body.theme-dark .worktime-overview-table tbody th,
    body.theme-dark .worktime-overview-table tbody td {
      border-top-color: #314866;
      border-right-color: #314866;
      background: #17273e;
    }
    body.theme-dark .worktime-overview-table tbody th {
      background: linear-gradient(180deg, #223754, #1d304b);
      color: #edf4ff;
    }
    body.theme-dark .worktime-overview-table tbody tr:nth-child(2) th {
      background: linear-gradient(180deg, #234c75, #1d4369);
    }
    body.theme-dark .worktime-overview-main {
      color: #edf4ff;
    }
    body.theme-dark .worktime-overview-main.is-negative {
      color: #f87171;
    }
    body.theme-dark .worktime-overview-main.is-positive {
      color: #34d399;
    }
    body.theme-dark .worktime-overview-sub {
      color: #afbdd1;
    }
    body.theme-dark .report-toolbar,
    body.theme-dark .report-card,
    body.theme-dark .report-kpi {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
    }
    body.theme-dark .report-kpi-value,
    body.theme-dark .report-card-title { color: #edf4ff; }
    body.theme-dark .report-kpi-label,
    body.theme-dark .report-kpi-meta,
    body.theme-dark .report-card-meta,
    body.theme-dark .report-table th { color: #afbdd1; }
    body.theme-dark .report-list-label,
    body.theme-dark .report-list-hours { color: #edf4ff; }
    body.theme-dark .report-list-meta,
    body.theme-dark .report-section-title,
    body.theme-dark .report-empty { color: #afbdd1; }
    body.theme-dark .report-target-card {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
    }
    body.theme-dark .report-target-value { color: #edf4ff; }
    body.theme-dark .report-target-month,
    body.theme-dark .report-target-meta { color: #afbdd1; }
    body.theme-dark .report-table td {
      color: #edf4ff;
      border-bottom-color: #314866;
    }
    body.theme-dark .report-bar { background: #223854; }
    body.theme-dark .config-card {
      background: rgba(24,40,63,0.88);
    }
    body.theme-dark .config-check {
      border-top-color: #314866;
    }
    body.theme-dark .sort-link:hover,
    body.theme-dark .sort-link.active {
      color: #edf4ff;
    }
    body.theme-dark .btn-outline-primary {
      color: #8fc0ff;
      border-color: #5d87b5;
    }
    body.theme-dark .btn-outline-primary:hover {
      background: #274364;
      border-color: #79aefc;
      color: #f8fbff;
    }
    body.theme-dark .btn-outline-danger {
      color: #ffb0b7;
      border-color: #9c5964;
    }
    body.theme-dark .btn-outline-danger:hover {
      background: #5f2830;
      border-color: #d77e8a;
      color: #fff4f5;
    }
    body.theme-dark .icon-action.btn-outline-secondary {
      background: #1f314c;
      border-color: #456284;
    }

    code, .pos-btn .pos-code, .picker-code { font-family: "JetBrains Mono", monospace; }

    .navbar {
      display: none;
    }

    .app-shell {
      width: 100%;
      padding: 16px 18px 24px;
    }

    .app-layout {
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }

    .app-sidebar {
      position: sticky;
      top: 16px;
      min-height: calc(100vh - 32px);
      border-radius: 30px;
      border: 1px solid rgba(18, 37, 61, 0.10);
      background: linear-gradient(180deg, #10243e 0%, #152b47 55%, #182f4e 100%);
      box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .sidebar-brand {
      padding: 26px 22px 18px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .sidebar-brand .brand-mark {
      width: 64px;
      height: 64px;
      flex: 0 0 64px;
    }

    .sidebar-brand .brand-copy {
      gap: 4px;
    }

    .sidebar-brand .navbar-brand {
      font-size: 2.1rem;
      color: #f8fbff;
    }

    .sidebar-brand .brand-sub {
      font-size: 0.96rem;
      color: #b5c7dd;
    }

    .sidebar-scroll {
      padding: 18px 14px;
      overflow: auto;
      flex: 1 1 auto;
    }

    .sidebar-section-label {
      padding: 0 12px 8px;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #8ea5c2;
      font-weight: 700;
    }

    .sidebar-footer {
      padding: 14px 20px 18px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: #8ea5c2;
      font-size: 0.78rem;
    }

    .app-main {
      min-width: 0;
    }

    .content-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 16px;
      padding: 16px 20px;
      border: 1px solid rgba(18, 37, 61, 0.08);
      border-radius: 22px;
      background: rgba(255,255,255,0.78);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    }

    .content-topbar-main {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .content-topbar-side {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .sidebar-toggle {
      display: none;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      border: 1px solid #dce7f2;
      background: #ffffff;
      color: #183b61;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .sidebar-backdrop {
      display: none;
    }

    .content-topbar-kicker {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .content-topbar-title {
      display: block;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.04em;
      color: #10243e;
      line-height: 1.05;
    }

    .content-topbar-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #eef4fb;
      border: 1px solid #dce7f2;
      color: #35516f;
      font-weight: 700;
      white-space: nowrap;
    }

    .storage-mode-chip {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid #dce7f2;
      background: #f7fbff;
      color: #36536f;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .storage-mode-chip.is-desktop {
      border-color: #bfdccd;
      background: #eefaf3;
      color: #1c6a49;
    }

    .storage-mode-chip.is-browser {
      border-color: #f3d7a2;
      background: #fff7e8;
      color: #9a5a05;
    }

    .storage-mode-chip.is-server {
      border-color: #bae6fd;
      background: #ecfeff;
      color: #0e7490;
    }

    .topbar-logout {
      min-height: 38px;
      border-radius: 999px;
      font-weight: 800;
    }

    .version-card {
      display: grid;
      gap: 0.85rem;
    }

    .version-hero {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(37,99,235,0.09), rgba(14,165,233,0.05));
    }

    .version-label,
    .version-grid span,
    .version-row span {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .version-hero strong {
      color: var(--text);
      font-size: 1.55rem;
      line-height: 1;
    }

    .version-hero > span:last-child {
      margin-left: auto;
      padding: 0.35rem 0.65rem;
      border-radius: 999px;
      background: rgba(22,163,74,0.12);
      color: #15803d;
      font-weight: 800;
      font-size: 0.78rem;
    }

    .version-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .version-grid > div,
    .version-row {
      padding: 0.85rem;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-soft);
    }

    .version-grid strong,
    .version-row strong {
      display: block;
      margin-top: 0.25rem;
      color: var(--text);
      overflow-wrap: anywhere;
    }

    .storage-mode-note {
      margin-top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 14px;
      border: 1px solid #f3d7a2;
      background: #fff7e8;
      color: #9a5a05;
      font-size: 0.84rem;
      font-weight: 600;
    }

    .content-frame {
      border-radius: 32px;
      border: 1px solid rgba(18, 37, 61, 0.08);
      background: rgba(248,251,255,0.94);
      box-shadow: var(--shadow-lg);
      overflow: hidden;
    }

    .app-sidebar .nav-tabs {
      background: transparent !important;
    }

    .app-sidebar .nav-tabs .nav-link {
      color: #b6c8dd;
    }

    .app-sidebar .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: #f8fafc;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .brand-mark {
      width: 94px;
      height: 94px;
      border-radius: 0;
      display: grid;
      place-items: center;
      background: transparent;
      color: #0f172a;
      box-shadow: none;
      flex: 0 0 auto;
      overflow: hidden;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .brand-copy {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-left: 0;
      text-align: left;
    }

    .navbar-brand {
      display: block;
      font-weight: 800;
      letter-spacing: -0.04em;
      font-size: 3.4rem;
      color: #14365b;
      line-height: 1;
      margin: 0;
    }

    .brand-sub {
      display: block;
      color: #14365b;
      font-size: 1.22rem;
      line-height: 1.1;
      font-weight: 500;
    }

    #navInfo {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 10px 18px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: #0f172a !important;
      font-weight: 700;
      backdrop-filter: blur(12px);
      margin-left: auto;
    }

    .workspace-panel {
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      overflow: visible;
      backdrop-filter: none;
      animation: panelIn .35s ease-out;
      min-height: 120px;
      margin-top: 0;
      position: relative;
    }

    @keyframes panelIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Position buttons */
    .pos-btn {
      display: inline-flex; flex-direction: column; align-items: flex-start;
      padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
      background: rgba(255,255,255,0.92); cursor: pointer; transition: all .16s ease;
      text-align: left; min-width: 196px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    }
    .pos-btn:hover  { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
    .pos-btn .pos-name  { font-weight: 600; font-size: .82rem; color: #1e293b; line-height: 1.3; }
    .pos-btn .pos-code  { font-size: .7rem; color: #64748b; margin-top: 4px; }
    .pos-grid { display: flex; flex-wrap: wrap; gap: 10px; }
    .pos-btn.group-ewe { border-color: #fdba74; background: linear-gradient(180deg, #fffaf1, #fff3de); }
    .pos-btn.group-airsys { border-color: #67e8f9; background: linear-gradient(180deg, #f1feff, #e3fbff); }
    .pos-btn.group-internal { border-color: #c4b5fd; background: linear-gradient(180deg, #faf7ff, #f2ecff); }
    .pos-btn.group-infra { border-color: #86efac; background: linear-gradient(180deg, #f2fff7, #e5fbea); }
    .pos-btn.group-swb { border-color: #fca5a5; background: linear-gradient(180deg, #fff5f5, #ffebeb); }
    .pos-btn.group-default { border-color: #dbe3ec; background: linear-gradient(180deg, #ffffff, #f8fafc); }
    .position-picker-shell {
      margin-bottom: 20px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: rgba(255,255,255,0.62);
      overflow: hidden;
    }
    .position-picker-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
    }
    .position-picker-summary {
      min-width: 0;
      flex: 1;
    }
    .position-picker-title {
      font-size: .72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: #64748b;
      margin-bottom: 2px;
    }
    .position-picker-value {
      font-size: .92rem;
      font-weight: 600;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .position-picker-meta {
      font-size: .76rem;
      color: #64748b;
      margin-top: 2px;
    }
    .position-picker-body {
      padding: 0 16px 16px;
      border-top: 1px solid #edf2f7;
    }
    .position-picker-body.d-none { display: none !important; }
    .group-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .filter-chip {
      border: 1px solid var(--line); background: rgba(255,255,255,0.76); color: #475569; border-radius: 999px;
      padding: 6px 11px; font-size: .75rem; line-height: 1.2; cursor: pointer; transition: all .12s;
    }
    .filter-chip:hover { border-color: #94a3b8; background: #f8fafc; transform: translateY(-1px); }
    .filter-chip.active { color: #0f172a; font-weight: 600; }
    .filter-chip.group-ewe.active { border-color: #f59e0b; background: #ffedd5; }
    .filter-chip.group-airsys.active { border-color: #06b6d4; background: #cffafe; }
    .filter-chip.group-swb.active { border-color: #ef4444; background: #fee2e2; }
    .filter-chip.group-internal.active { border-color: #8b5cf6; background: #ede9fe; }
    .filter-chip.group-infra.active { border-color: #10b981; background: #d1fae5; }
    .filter-chip.group-default.active { border-color: #94a3b8; background: #e2e8f0; }

    /* Entry table */
    .entry-table th { font-size: .73rem; font-weight: 700; color: #1e3a5f; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
    .entry-table td { font-size: .82rem; vertical-align: middle; }
    .entry-table thead th {
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .entry-table th:first-child,
    .entry-table td:first-child {
      padding-left: 18px;
      width: 52px;
    }
    .entry-table th:nth-child(2),
    .entry-table td:nth-child(2) {
      position: sticky;
      left: 0;
      z-index: 1;
    }
    .entry-table thead th:nth-child(2) { z-index: 3; }
    .entry-table tr:hover .row-actions { opacity: 1; }
    .row-actions { opacity: 1; transition: opacity .1s; }
    .table-light, .table-light > th, .table-light > td { background: #f7fafc !important; }
    .table > :not(caption) > * > * { border-bottom-color: #e7edf4; padding-top: .72rem; padding-bottom: .72rem; }
    .table-responsive { max-height: 78vh; overflow: auto; }
    .table-filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-left: 8px;
    }
    .table-filter-chip {
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.8);
      color: #475569;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: .74rem;
      line-height: 1.1;
      cursor: pointer;
      transition: all .12s ease;
    }
    .table-filter-chip:hover {
      border-color: var(--line-strong);
      transform: translateY(-1px);
    }
    .table-filter-chip.active {
      background: #0f172a;
      border-color: #0f172a;
      color: #fff;
    }
    .month-summary {
      margin-bottom: 14px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: rgba(255,255,255,0.82);
      overflow: hidden;
      max-width: 760px;
    }
    .month-summary-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      border: 0;
      background: transparent;
      font-weight: 700;
      color: #0f172a;
      text-align: left;
    }
    .month-summary-toggle i {
      transition: transform .16s ease;
    }
    .month-summary-toggle[aria-expanded="true"] i {
      transform: rotate(90deg);
    }
    .month-summary-body {
      padding: 0 0 8px;
      border-top: 1px solid #edf2f7;
    }
    .month-summary-table {
      width: 100%;
      margin: 0;
    }
    .month-summary-table th,
    .month-summary-table td {
      padding: 8px 14px;
      border-bottom: 1px solid #edf2f7;
      font-size: .8rem;
    }
    .month-summary-table th {
      font-size: .74rem;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: #64748b;
      background: rgba(248,250,252,0.86);
    }
    .month-summary-table tr:last-child td {
      border-bottom: 0;
    }
    .month-summary-table td.is-today {
      background: rgba(14, 165, 233, 0.12);
    }
    .report-shell { display: grid; gap: 18px; }
    .report-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      padding: 14px 16px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,252,0.92));
    }
    .report-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .worktime-toolbar-secondary {
      align-items: center;
    }
    .worktime-compare-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .report-kpi {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,247,251,0.92));
    }
    .report-kpi-label {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #64748b;
      margin-bottom: 10px;
    }
    .report-kpi-value {
      font-size: 1.9rem;
      line-height: 1;
      font-weight: 700;
      letter-spacing: -.05em;
      color: #0f172a;
    }
    .report-kpi-value.is-compact {
      font-size: 1rem;
      line-height: 1.2;
      letter-spacing: -.02em;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: break-word;
    }
    .report-kpi-meta { margin-top: 8px; font-size: .8rem; color: #64748b; }
    .report-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
    .report-card {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 22px;
      background: rgba(255,255,255,0.9);
    }
    .report-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .report-card-title { font-size: 1.02rem; font-weight: 700; color: #0f172a; margin: 0; }
    .report-card-meta { font-size: .78rem; color: #64748b; }
    .report-chart-wrap { height: 300px; }
    .report-chart-wrap.is-short { height: 260px; }
    .report-table { width: 100%; border-collapse: collapse; }
    .report-table th, .report-table td {
      padding: 10px 0;
      border-bottom: 1px solid #edf2f7;
      font-size: .84rem;
    }
    .report-table th {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #64748b;
    }
    .report-table tr:last-child td { border-bottom: 0; }
    .report-bar { height: 8px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
    .report-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d4ed8, #0ea5e9); }
    .report-wide { display: grid; }
    .report-section-title {
      margin: 6px 0 -2px;
      font-size: .74rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #64748b;
      font-weight: 700;
    }
    .report-list {
      display: grid;
      gap: 12px;
      max-height: 300px;
      overflow: auto;
      padding-right: 6px;
    }
    .report-list-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }
    .report-list-main {
      min-width: 0;
    }
    .report-list-label {
      font-size: .9rem;
      font-weight: 600;
      color: #0f172a;
      line-height: 1.25;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .report-list-meta {
      margin-top: 5px;
      font-size: .76rem;
      color: #64748b;
    }
    .report-list-hours {
      font-size: .92rem;
      font-weight: 700;
      color: #0f172a;
      white-space: nowrap;
    }
    .report-split {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 18px;
    }
    .report-stack {
      display: grid;
      gap: 18px;
    }
    .report-table-tight th,
    .report-table-tight td {
      padding: 9px 10px;
    }
    .report-table-tight th.text-end,
    .report-table-tight td.text-end {
      text-align: right;
    }
    .report-kpi-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .report-year-chip-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .report-year-chip {
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid #b9c9dc;
      background: transparent;
      color: #35516f;
      font-weight: 700;
    }
    .report-year-chip.active {
      background: #163a63;
      border-color: #163a63;
      color: #f8fbff;
    }
    .report-kpi-value.is-mid {
      font-size: 1.32rem;
      letter-spacing: -.03em;
    }
    .report-mini-stack {
      display: grid;
      gap: 4px;
    }
    .report-mini-stack .report-kpi-meta {
      margin-top: 0;
    }
    .report-note-box {
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid #e7edf4;
      background: linear-gradient(180deg, rgba(240,247,255,0.8), rgba(248,250,252,0.94));
      color: #51657d;
      font-size: .84rem;
      line-height: 1.45;
    }
    .report-note-box strong {
      color: #0f172a;
    }
    .report-diff-table th,
    .report-diff-table td {
      padding-left: 10px;
      padding-right: 10px;
    }
    .report-diff-delta.is-open {
      color: #0f766e;
      font-weight: 700;
    }
    .report-diff-delta.is-over {
      color: #dc2626;
      font-weight: 700;
    }
    .report-diff-delta.is-even {
      color: #64748b;
      font-weight: 600;
    }
    .report-empty {
      font-size: .84rem;
      color: #64748b;
      padding: 8px 0;
    }
    .report-mini-note {
      font-size: .78rem;
      color: #64748b;
    }
    .report-target-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 12px;
    }
    .report-target-card {
      padding: 14px 14px 12px;
      border: 1px solid #e7edf4;
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,247,251,0.92));
    }
    .report-target-month {
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #64748b;
      margin-bottom: 8px;
      font-weight: 700;
    }
    .report-target-value {
      font-size: 1.28rem;
      font-weight: 700;
      letter-spacing: -.04em;
      color: #0f172a;
      line-height: 1.05;
    }
    .report-target-meta {
      margin-top: 8px;
      font-size: .75rem;
      color: #64748b;
    }
    .report-plan-table td,
    .report-plan-table th {
      white-space: nowrap;
    }
    .report-plan-table td:first-child,
    .report-plan-table th:first-child {
      white-space: normal;
    }
    .report-positive {
      color: #15803d;
      font-weight: 700;
    }
    .report-negative {
      color: #b91c1c;
      font-weight: 700;
    }
    .report-neutral {
      color: #64748b;
      font-weight: 700;
    }
    body.theme-dark .report-year-chip {
      background: #1d304b;
      border-color: #456284;
      color: #d4deea;
    }
    body.theme-dark .report-year-chip.active {
      background: #eef4fb;
      border-color: #eef4fb;
      color: #142338;
    }
    body.theme-dark .report-note-box {
      background: rgba(24,40,63,0.9);
      border-color: #314866;
      color: #afbdd1;
    }
    body.theme-dark .report-note-box strong {
      color: #edf4ff;
    }
    body.theme-dark .report-neutral {
      color: #d4deea;
    }

    @media (max-width: 1200px) {
      .report-kpis,
      .report-kpi-grid-3,
      .report-split,
      .report-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 980px) {
      .report-kpis,
      .report-kpi-grid-3,
      .report-split,
      .report-grid { grid-template-columns: 1fr; }
      .report-chart-wrap,
      .report-chart-wrap.is-short { height: 260px; }
    }

    /* Stunden quick buttons */
    .h-btn { padding: 7px 12px; font-size: .8rem; border-radius: 12px; border-color: var(--line-strong); background: rgba(255,255,255,0.9); }
    .h-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
    .hours-quick-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      min-width: 280px;
    }
    .selected-pos-box {
      min-width: 220px; max-width: 360px; padding: 7px 10px;
      border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f8fafc);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    }
    .selected-pos-box .label { display: block; font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
    .selected-pos-box .value { display: block; font-size: .82rem; font-weight: 600; color: #0f172a; line-height: 1.25; }
    .selected-pos-box .value.is-empty,
    .position-picker-value.is-empty { color: #64748b; }
    .config-panel {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      margin-bottom: 18px;
    }
    .config-grid {
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      gap: 18px;
      align-items: stretch;
    }
    .config-card {
      padding: 18px;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: rgba(255,255,255,0.72);
    }
    .config-rule-list {
      display: grid;
      gap: 14px;
    }
    .config-check {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: .82rem;
      color: #475569;
      padding: 10px 0;
      border-top: 1px solid #edf2f7;
    }
    .config-check:first-child { border-top: 0; padding-top: 0; }
    .config-check input { margin-top: 3px; }
    .settings-card-head {
      margin: -18px -18px 16px;
      padding: 10px 18px 12px;
      border-bottom: 1px solid var(--line);
      font-weight: 700;
      color: #14365b;
    }
    .settings-grid-2,
    .settings-grid-3,
    .settings-grid-4 {
      display: grid;
      gap: 12px;
    }
    .settings-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .settings-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .settings-note {
      margin-top: 8px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .settings-stack {
      display: grid;
      gap: 18px;
    }
    .config-accordion {
      display: grid;
      gap: 0.9rem;
    }
    .config-accordion-item {
      border: 1px solid var(--line);
      border-radius: 24px !important;
      overflow: hidden;
      background: var(--surface-strong);
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    }
    .config-accordion-button {
      gap: 0.85rem;
      padding: 1rem 1.15rem;
      background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(238,244,251,0.78));
      color: var(--text);
      border: 0;
      box-shadow: none;
    }
    .config-accordion-button:not(.collapsed) {
      color: var(--text);
      background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(14,165,233,0.06));
      box-shadow: inset 0 -1px 0 var(--line);
    }
    .config-accordion-button:focus {
      border-color: transparent;
      box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }
    .config-accordion-button i {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      background: #e8f1ff;
      color: #1d4ed8;
      font-size: 1.05rem;
    }
    .config-accordion-button span {
      display: grid;
      gap: 0.18rem;
      min-width: 0;
      text-align: left;
    }
    .config-accordion-button strong {
      font-size: 1rem;
      letter-spacing: -0.02em;
    }
    .config-accordion-button small {
      color: var(--muted);
      font-weight: 650;
      line-height: 1.3;
    }
    .config-accordion-body {
      padding: 1rem;
      background: rgba(248,250,252,0.42);
    }
    .holiday-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 22px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(224,242,254,0.82));
    }
    .holiday-hero-main {
      flex: 1 1 auto;
      min-width: 0;
    }
    .holiday-hero-controls {
      display: grid;
      grid-template-columns: minmax(320px, 1fr) 260px;
      gap: 14px;
      align-items: end;
      margin-top: 16px;
      max-width: 980px;
    }
    .holiday-hero-kicker {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #4b6380;
    }
    .holiday-hero-date {
      margin-top: 4px;
      font-size: 1.9rem;
      font-weight: 700;
      letter-spacing: -0.04em;
      color: #14365b;
      line-height: 1;
    }
    .holiday-hero-meta {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .holiday-count-chip {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--line);
      font-size: 0.72rem;
      font-weight: 700;
      color: #14365b;
      white-space: nowrap;
    }
    .holiday-layout {
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    }
    .holiday-table td,
    .holiday-table th {
      font-size: 0.78rem;
      vertical-align: middle;
    }
    .holiday-active-btn {
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid #7dd3fc;
      background: #ccfbf1;
      color: #0f766e;
      font-weight: 700;
      font-size: 0.78rem;
      line-height: 1;
    }
    .holiday-active-btn.is-off {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #b91c1c;
    }
    .bridge-grid {
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .bridge-card {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,0.8);
    }
    .bridge-card.is-highlight {
      background: linear-gradient(135deg, rgba(220,252,231,0.9), rgba(224,242,254,0.9));
    }
    .bridge-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
    }
    .bridge-value {
      margin-top: 4px;
      font-size: 1.65rem;
      font-weight: 700;
      color: #14365b;
      letter-spacing: -0.04em;
    }
    .bridge-sub {
      margin-top: 2px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .theme-dark .holiday-hero,
    .theme-dark .bridge-card {
      background: rgba(24,40,63,0.92);
      border-color: #314866;
    }
    .theme-dark .bridge-card.is-highlight {
      background: linear-gradient(135deg, rgba(15,118,110,0.24), rgba(30,64,175,0.22));
    }
    .theme-dark .holiday-hero-kicker,
    .theme-dark .bridge-label {
      color: #afbdd1;
    }
    .theme-dark .holiday-hero-date,
    .theme-dark .bridge-value,
    .theme-dark .holiday-count-chip {
      color: #edf4ff;
    }
    .theme-dark .holiday-count-chip {
      background: rgba(29,48,75,0.94);
      border-color: #314866;
    }
    .theme-dark .holiday-active-btn {
      background: rgba(13,148,136,0.22);
      border-color: rgba(45,212,191,0.36);
      color: #99f6e4;
    }
    .theme-dark .holiday-active-btn.is-off {
      background: rgba(127,29,29,0.22);
      border-color: rgba(248,113,113,0.36);
      color: #fecaca;
    }
    .theme-dark .holiday-table thead th {
      background: #20324d !important;
      color: #d9e5f3 !important;
    }
    .theme-dark .holiday-table tbody td {
      background: #17273e;
      color: #edf4ff;
      border-bottom-color: #314866;
    }
    .theme-dark .holiday-table tbody tr:hover td {
      background: #20324d;
    }
    .theme-dark .holiday-table .text-muted,
    .theme-dark .bridge-sub,
    .theme-dark .holiday-hero-meta {
      color: #afbdd1 !important;
    }
    @media (max-width: 1200px) {
      .holiday-layout,
      .bridge-grid,
      .settings-grid-4,
      .settings-grid-3,
      .settings-grid-2 {
        grid-template-columns: 1fr;
      }
    }
    .theme-dark .settings-card-head {
      color: #edf4ff;
      border-bottom-color: #314866;
    }
    .overflow-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px;
      border-radius: 999px;
      background: #ede9fe;
      color: #5b21b6;
      font-size: .69rem;
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
      margin-left: 8px;
    }
    .overflow-badge .overflow-origin {
      font-size: .72rem;
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
      color: inherit;
      white-space: nowrap;
    }
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }
    .calendar-head {
      text-align: center;
      font-size: .72rem;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: .06em;
      padding-bottom: 4px;
    }
    .calendar-day {
      min-height: 88px;
      border: 1px solid #e7edf4;
      border-radius: 16px;
      background: rgba(255,255,255,0.86);
      padding: 10px;
      text-align: left;
      transition: all .12s ease;
    }
    .calendar-day:hover { border-color: #bfd3ea; box-shadow: var(--shadow-md); transform: translateY(-1px); }
    .calendar-day.muted { opacity: .45; }
    .calendar-day.current { border-color: #93c5fd; background: #eff6ff; }
    .calendar-day.selected { border-color: #0f172a; background: #e2e8f0; }
    .absence-calendar {
      margin-top: 10px;
    }
    .absence-table-wrap {
      overflow: auto;
      border: 1px solid #e7edf4;
      border-radius: 18px;
      background: rgba(255,255,255,0.76);
    }
    .absence-table {
      width: 100%;
      min-width: 1280px;
      border-collapse: collapse;
      table-layout: fixed;
    }
    .absence-table th,
    .absence-table td {
      border-bottom: 1px dashed #dbe5f0;
      border-right: 1px dashed #dbe5f0;
      vertical-align: top;
    }
    .absence-table th:last-child,
    .absence-table td:last-child {
      border-right: 0;
    }
    .absence-table thead th {
      padding: 10px 8px;
      font-size: .78rem;
      font-weight: 700;
      color: #0f172a;
      background: rgba(255,255,255,0.94);
      text-align: center;
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .absence-head-sum {
      display: block;
      margin-top: 4px;
      font-size: .68rem;
      font-weight: 600;
      color: #64748b;
    }
    .absence-head-sum + .absence-head-sum {
      margin-top: 2px;
    }
    .absence-day-index {
      width: 54px;
      text-align: center;
      font-weight: 700;
      color: #0f172a;
      background: rgba(255,255,255,0.94);
      position: sticky;
      left: 0;
      z-index: 1;
    }
    .absence-cell {
      height: 48px;
      padding: 4px 8px 6px;
      background: rgba(255,255,255,0.86);
      cursor: pointer;
      transition: background .12s ease;
    }
    .absence-cell:hover { background: #f8fbff; }
    .absence-cell.weekend { background: #fff4d8; }
    .absence-cell.holiday { background: #dff2fb; }
    .absence-cell.urlaub { background: #dff4df; }
    .absence-cell.krank { background: #ffe1e6; }
    .absence-cell.gleitzeit { background: #ece3ff; }
    .absence-cell.halbtag_urlaub { background: #ffedd5; }
    .absence-cell.ersatzruhetag { background: #ffedd5; }
    .absence-cell.weiterbildung { background: #dff2fb; }
    .absence-cell.dienstreise { background: #d7f4f1; }
    .absence-weekday {
      display: block;
      font-size: .7rem;
      color: #5b7ca0;
      line-height: 1.1;
    }
    .absence-hours {
      display: block;
      margin-top: 2px;
      font-size: .68rem;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.1;
    }
    .absence-label {
      display: block;
      margin-top: 2px;
      font-size: .68rem;
      font-weight: 700;
      color: #0f5d78;
      line-height: 1.15;
      white-space: normal;
    }
    .absence-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .absence-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: .72rem;
      color: #475569;
      background: rgba(255,255,255,0.78);
      border: 1px solid #e2e8f0;
    }
    .absence-chip-swatch {
      width: 10px;
      height: 10px;
      border-radius: 999px;
    }
    .calendar-day-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 14px;
    }
    .calendar-day-num {
      font-size: .88rem;
      font-weight: 700;
      color: #0f172a;
    }
    .calendar-hours {
      font-size: .82rem;
      font-weight: 700;
      color: #2563eb;
    }
    .calendar-hours.empty { color: #94a3b8; font-weight: 500; }
    .calendar-note {
      display: block;
      margin-top: 6px;
      font-size: .67rem;
      font-weight: 700;
      color: #dc2626;
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .entry-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: end;
      margin-bottom: 14px;
    }
    .entry-filter-actions {
      display: flex;
      align-items: end;
      gap: 10px;
      margin-left: auto;
      flex-wrap: wrap;
    }
    .sort-link {
      cursor: pointer;
      user-select: none;
    }
    .sort-link:hover { color: #0f172a; }
    .sort-link.active { color: #0f172a; }

    /* Flash */
    #flashMsg {
      display: none;
      margin-top: 8px;
      margin-bottom: 0;
      border-radius: 14px;
      font-size: .78rem;
      line-height: 1.35;
      border-color: #f5c2c7;
      background: #f8d7da;
      color: #842029;
    }

    /* Stammdaten table */
    .section-subtitle {
      font-size: 1.22rem;
      font-weight: 700;
      letter-spacing: -.03em;
      line-height: 1.1;
    }
    .count-badge {
      font-size: .82rem;
      padding: 6px 9px;
      border-radius: 10px;
    }
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .03em;
    }
    .status-badge.inactive {
      background: #e2e8f0;
      color: #475569;
    }
    .sd-table th, .sd-table td { font-size: .78rem; white-space: nowrap; }
    .sd-table td.wrap { white-space: normal; max-width: 220px; }
    .stammdaten-head {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .stammdaten-meta {
      font-size: .84rem;
      color: #64748b;
      margin-left: 2px;
    }

    /* Month nav */
    .month-nav { display: flex; align-items: center; gap: 8px; }
    .month-nav h6 { margin: 0; min-width: 130px; text-align: center; }

    .tab-content { background: transparent; padding: 0 !important; }
    .picker-list { max-height: 50vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 16px; }
    .picker-item {
      width: 100%; border: 0; background: #fff; text-align: left; padding: 12px 14px;
      border-bottom: 1px solid #e2e8f0; transition: background .12s;
    }
    .picker-item:last-child { border-bottom: 0; }
    .picker-item:hover, .picker-item.active { background: #eff6ff; }
    .picker-name { display: block; font-weight: 600; color: #1e293b; }
    .picker-code { display: block; font-size: .75rem; color: #64748b; font-family: monospace; }

    .nav-tabs {
      gap: 6px;
      padding: 0;
      border-bottom: 0;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      position: relative;
      z-index: 2;
    }

    .nav-divider {
      width: auto;
      height: 1px;
      align-self: stretch;
      background: rgba(255,255,255,0.08);
      opacity: 1;
      margin: 10px 8px;
      list-style: none;
    }

    .nav-item {
      list-style: none;
    }

    .nav-tabs .nav-link {
      border: 0;
      border-radius: 16px;
      padding: 12px 14px;
      color: #b6c8dd;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .nav-tabs .nav-link:hover { background: rgba(255,255,255,0.08); color: #f8fbff; }
    .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: #f8fafc;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .tab-pane-inner {
      padding: 24px 28px 30px;
    }

    .brand-stage {
      position: relative;
      z-index: 1;
      margin: 0;
      padding: 22px 28px 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,248,253,0.92));
      border-bottom: 1px solid rgba(217,226,236,0.88);
    }

    .brand-stage-inner {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
      min-height: 104px;
    }

    .brand-stage .brand-mark {
      width: 82px;
      height: 82px;
      flex: 0 0 82px;
    }

    .brand-stage .navbar-brand {
      font-size: 3rem;
    }

    .brand-stage .brand-sub {
      font-size: 1.08rem;
    }

    .form-control, .form-select {
      border-radius: 16px;
      border-color: #d6e2ee;
      background: #fbfdff;
      min-height: 44px;
    }

    .form-control:focus, .form-select:focus {
      border-color: #93c5fd;
      box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
    }
    .focus-active {
      border-color: #2563eb !important;
      box-shadow: 0 0 0 4px rgba(37,99,235,0.16) !important;
      background: #ffffff !important;
    }

    .btn {
      border-radius: 14px;
      font-weight: 600;
    }

    .btn-sm {
      border-radius: 12px;
    }

    .section-lead {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 14px;
    }

    .section-kicker {
      display: inline-block;
      font-size: .72rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #64748b;
      margin-bottom: 8px;
    }

    .section-title {
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: -.04em;
      margin: 0;
    }

    .section-copy {
      margin: 6px 0 0;
      color: #64748b;
      max-width: 60ch;
    }

    .toolbar-line {
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid #edf2f7;
    }
    .booking-row {
      display: grid;
      grid-template-columns: 210px minmax(240px, 360px) minmax(360px, 420px) minmax(260px, 1fr) 160px;
      gap: 18px;
      align-items: start;
    }
    .hours-block {
      display: grid;
      grid-template-columns: 110px minmax(280px, 1fr);
      gap: 12px;
      align-items: start;
    }
    .comment-field {
      display: grid;
      grid-template-columns: 46px minmax(220px, 1fr);
      gap: 10px;
      align-items: center;
    }
    .icon-action {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-width: 1px;
    }

    .table-responsive {
      border: 1px solid #dfe7f1;
      border-radius: 22px;
      background: rgba(255,255,255,0.96);
      overflow: auto;
      width: 100%;
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
      -webkit-overflow-scrolling: touch;
    }
    .entry-table { width: 100%; }

    body.theme-dark {
      background:
        radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(20,184,166,0.10), transparent 30%),
        linear-gradient(180deg, #101b2c 0%, #14253d 100%);
    }

    body.theme-dark .app-sidebar {
      background: linear-gradient(180deg, #0f1b2d 0%, #132238 55%, #162741 100%);
      border-color: rgba(121,174,252,0.12);
      box-shadow: 0 30px 60px rgba(4, 10, 20, 0.34);
    }

    body.theme-dark .sidebar-brand,
    body.theme-dark .sidebar-footer {
      border-color: rgba(255,255,255,0.07);
    }

    body.theme-dark .sidebar-brand .navbar-brand {
      color: #f8fbff !important;
    }

    body.theme-dark .sidebar-brand .brand-sub,
    body.theme-dark .sidebar-section-label,
    body.theme-dark .sidebar-footer {
      color: #9fb5cf;
    }

    body.theme-dark .content-topbar,
    body.theme-dark .content-frame {
      background: rgba(19,31,50,0.94);
      border-color: #314866;
    }

    body.theme-dark .workspace-panel {
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    body.theme-dark .content-topbar-kicker {
      color: #9fb5cf;
    }

    body.theme-dark .content-topbar-title {
      color: #edf4ff;
    }

    body.theme-dark .content-topbar-meta {
      background: #1d304b;
      border-color: #314866;
      color: #d4deea;
    }

    body.theme-dark .storage-mode-chip {
      background: #1d304b;
      border-color: #314866;
      color: #d4deea;
    }

    body.theme-dark .storage-mode-chip.is-desktop {
      background: rgba(14, 116, 73, 0.18);
      border-color: rgba(74, 222, 128, 0.36);
      color: #b9f2cf;
    }

    body.theme-dark .storage-mode-chip.is-browser {
      background: rgba(146, 64, 14, 0.2);
      border-color: rgba(251, 191, 36, 0.34);
      color: #f7d38b;
    }

    body.theme-dark .storage-mode-chip.is-server {
      background: rgba(14, 116, 144, 0.22);
      border-color: rgba(103, 232, 249, 0.36);
      color: #a5f3fc;
    }

    body.theme-dark .version-hero,
    body.theme-dark .version-grid > div,
    body.theme-dark .version-row {
      background: rgba(24,40,63,0.82);
      border-color: #314866;
    }

    body.theme-dark .version-hero strong,
    body.theme-dark .version-grid strong,
    body.theme-dark .version-row strong {
      color: #edf4ff;
    }

    body.theme-dark .version-hero > span:last-child {
      background: rgba(34,197,94,0.16);
      color: #bbf7d0;
    }

    body.theme-dark .storage-mode-note {
      background: rgba(146, 64, 14, 0.18);
      border-color: rgba(251, 191, 36, 0.3);
      color: #f7d38b;
    }

    body.theme-dark .config-accordion-item {
      background: rgba(19,31,50,0.94);
      border-color: #314866;
      box-shadow: 0 18px 38px rgba(4, 10, 20, 0.24);
    }

    body.theme-dark .config-accordion-button {
      background: linear-gradient(135deg, rgba(24,40,63,0.98), rgba(29,48,75,0.88));
      color: #edf4ff;
    }

    body.theme-dark .config-accordion-button:not(.collapsed) {
      background: linear-gradient(135deg, rgba(121,174,252,0.16), rgba(34,211,238,0.08));
      box-shadow: inset 0 -1px 0 #314866;
    }

    body.theme-dark .config-accordion-button i {
      background: rgba(121,174,252,0.16);
      color: #bfdbfe;
    }

    body.theme-dark .config-accordion-button small {
      color: #afbdd1;
    }

    body.theme-dark .config-accordion-body {
      background: rgba(15,27,45,0.55);
    }

    body.theme-dark .sidebar-toggle {
      background: #1d304b;
      border-color: #314866;
      color: #edf4ff;
      box-shadow: none;
    }

    body.theme-dark .brand-stage {
      background: linear-gradient(180deg, rgba(21,35,56,0.98), rgba(24,40,63,0.94));
      border-bottom-color: #314866;
    }

    body.theme-dark .app-sidebar .nav-tabs {
      background: transparent !important;
      border-bottom: 0;
    }

    body.theme-dark .app-sidebar .nav-tabs .nav-link {
      color: #b6c8dd;
    }

    body.theme-dark .app-sidebar .nav-tabs .nav-link:hover {
      background: rgba(255,255,255,0.08);
      color: #f8fbff;
    }

    body.theme-dark .app-sidebar .nav-tabs .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10));
      color: #f8fafc;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .modal-content {
      border: 1px solid rgba(255,255,255,0.6);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
      overflow: hidden;
    }

    .modal-header, .modal-footer {
      background: #fbfdff;
      border-color: #e8eef5;
    }

    @media (max-width: 991px) {
      .app-shell { padding: 12px; }
      .app-layout { grid-template-columns: 1fr; gap: 14px; }
      .app-sidebar {
        position: fixed;
        inset: 12px auto 12px 12px;
        width: min(84vw, 320px);
        min-height: 0;
        max-height: calc(100vh - 24px);
        z-index: 60;
        transform: translateX(calc(-100% - 18px));
        transition: transform .22s ease;
      }
      .app-layout.sidebar-open .app-sidebar {
        transform: translateX(0);
      }
      .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 50;
      }
      .app-layout.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
      }
      .sidebar-scroll {
        padding-top: 12px;
      }
      .content-topbar {
        padding: 14px 16px;
        border-radius: 18px;
        align-items: flex-start;
      }
      .content-topbar-main {
        width: 100%;
      }
      .content-topbar-side {
        width: 100%;
        justify-content: flex-end;
      }
      .sidebar-toggle {
        display: inline-flex;
      }
      .content-topbar-meta {
        margin-left: auto;
      }
      .nav-brand-slot {
        width: 100%;
        min-width: 0;
        padding-top: 8px;
        text-align: left;
      }
      .brand-copy {
        margin-left: 0;
        text-align: left;
      }
      .tab-pane-inner { padding: 18px 16px 22px; }
      .booking-row { grid-template-columns: 1fr; gap: 14px; }
      .hours-block { grid-template-columns: 1fr; }
      .hours-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
      .selected-pos-box { max-width: none; min-width: 0; width: 100%; }
      .comment-field { grid-template-columns: 44px 1fr; }
      .position-picker-header { flex-wrap: wrap; }
      .config-grid { grid-template-columns: 1fr; }
      .config-accordion-button {
        align-items: flex-start;
        padding: 0.9rem;
      }
      .config-accordion-button i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
      }
      .config-accordion-body {
        padding: 0.85rem;
      }
    }

    @media (max-width: 768px) {
      .app-shell {
        padding: 10px;
      }
      .content-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
      }
      .content-topbar-main {
        align-items: flex-start;
      }
      .content-topbar-side {
        width: 100%;
        justify-content: stretch;
      }
      .content-topbar-title {
        font-size: 1.05rem;
      }
      .content-topbar-meta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
      }
      .storage-mode-chip {
        width: 100%;
        justify-content: center;
      }
      .config-accordion-button strong {
        font-size: 0.95rem;
      }
      .config-accordion-button small {
        font-size: 0.78rem;
      }
      .content-frame {
        border-radius: 22px;
      }
      .tab-pane-inner {
        padding: 16px 14px 22px;
      }
      .section-title {
        font-size: 1.28rem;
      }
      .section-copy {
        font-size: 0.84rem;
      }
      .form-control,
      .form-select,
      input[type="text"],
      input[type="number"],
      input[type="date"],
      input[type="time"],
      textarea,
      select {
        font-size: 16px !important;
      }
      .hours-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
      }
      .comment-field {
        grid-template-columns: 40px 1fr;
      }
      .month-nav {
        width: 100%;
        justify-content: space-between;
      }
      .month-nav h6 {
        min-width: 0;
        flex: 1;
      }
      .entry-filters,
      .entry-filter-actions,
      .report-toolbar,
      .section-lead,
      .stammdaten-head {
        gap: 8px;
      }
      .entry-filter-actions {
        width: 100%;
        margin-left: 0;
      }
      .table-filter-chips {
        margin-left: 0;
      }
      .holiday-hero {
        padding: 14px;
        border-radius: 18px;
      }
      .holiday-hero-date {
        font-size: 1.45rem;
      }
      .holiday-hero-controls {
        grid-template-columns: 1fr;
      }
      .bridge-grid,
      .settings-grid-2,
      .settings-grid-3,
      .settings-grid-4,
      .report-target-grid,
      .worktime-compare-grid,
      .report-kpis,
      .report-kpi-grid-3,
      .report-grid,
      .report-split {
        grid-template-columns: 1fr;
      }
      .report-kpi,
      .report-card,
      .config-card,
      .bridge-card {
        padding: 14px;
        border-radius: 18px;
      }
      .report-chart-wrap,
      .report-chart-wrap.is-short {
        height: 220px;
      }
      .month-summary {
        max-width: none;
      }
      .worktime-overview {
        border-radius: 18px;
      }
      .worktime-overview-table thead th,
      .worktime-overview-table tbody th,
      .worktime-overview-table tbody td {
        padding: 9px 10px;
      }
      .worktime-overview-main {
        font-size: 0.76rem;
      }
      .worktime-overview-sub {
        font-size: 0.68rem;
      }
      .worktime-date {
        min-width: 92px;
      }
      .worktime-time,
      .worktime-pause,
      .worktime-mode,
      .worktime-code,
      .worktime-note {
        min-width: 96px;
      }
      .worktime-pause {
        min-width: 126px;
      }
      .absence-table {
        min-width: 980px;
      }
    }

    @media (max-width: 520px) {
      .app-shell {
        padding: 8px;
      }
      .content-frame {
        border-radius: 18px;
      }
      .tab-pane-inner {
        padding: 14px 12px 20px;
      }
      .booking-row {
        gap: 12px;
      }
      .position-picker-header,
      .position-picker-body {
        padding-left: 12px;
        padding-right: 12px;
      }
      .pos-grid {
        gap: 8px;
      }
      .pos-btn {
        min-width: min(100%, 180px);
        padding: 10px 12px;
      }
      .content-topbar-title {
        font-size: 0.98rem;
      }
      .content-topbar-kicker {
        font-size: 0.64rem;
      }
      .report-card-head,
      .section-lead {
        flex-direction: column;
        align-items: flex-start;
      }
      .report-kpi-value {
        font-size: 1.45rem;
      }
      .report-kpi-value.is-mid {
        font-size: 1.1rem;
      }
      .report-kpi-value.is-compact {
        font-size: 0.9rem;
      }
      .table > :not(caption) > * > * {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
      }
      .entry-table th:first-child,
      .entry-table td:first-child {
        padding-left: 12px;
        width: 44px;
      }
      .sidebar-brand {
        padding: 20px 18px 14px;
      }
      .sidebar-brand .brand-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
      }
      .sidebar-brand .navbar-brand {
        font-size: 1.7rem;
      }
      .sidebar-brand .brand-sub {
        font-size: 0.88rem;
      }
    }

    .worktime-table thead th {
      white-space: nowrap;
    }

    .worktime-overview {
      border: 1px solid var(--line);
      border-radius: 22px;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,253,0.94));
      box-shadow: var(--shadow-md);
    }

    .worktime-overview-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
    }

    .worktime-overview-table thead th {
      padding: 11px 12px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #edf4ff;
      background: #183b61;
      border-right: 1px solid rgba(255,255,255,0.12);
      white-space: nowrap;
    }

    .worktime-overview-table thead th.is-accent {
      background: #0f766e;
    }

    .worktime-overview-table thead th.is-danger {
      background: #be123c;
    }

    .worktime-overview-table thead th.is-warn {
      background: #c2410c;
    }

    .worktime-overview-table thead th:last-child,
    .worktime-overview-table tbody td:last-child,
    .worktime-overview-table tbody th:last-child {
      border-right: 0;
    }

    .worktime-overview-table tbody th,
    .worktime-overview-table tbody td {
      padding: 12px 12px;
      border-top: 1px solid var(--line);
      border-right: 1px solid var(--line);
      vertical-align: middle;
      background: rgba(255,255,255,0.92);
    }

    .worktime-overview-table tbody tr:nth-child(2) th {
      background: linear-gradient(180deg, #eaf1f9, #dbe8f5);
      color: #1b5d97;
    }

    .worktime-overview-table tbody th {
      min-width: 104px;
      background: linear-gradient(180deg, #e7eef7, #d8e4f2);
      color: #173a60;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .worktime-overview-table tbody td {
      text-align: center;
    }

    .worktime-overview-main {
      font-size: 0.84rem;
      font-weight: 700;
      color: #0f172a;
    }

    .worktime-overview-main.is-negative {
      color: #dc2626;
    }

    .worktime-overview-main.is-positive {
      color: #059669;
    }

    .worktime-overview-sub {
      margin-top: 4px;
      font-size: 0.72rem;
      color: var(--muted);
    }

    .worktime-table thead th.worktime-pair-head {
      background: rgba(59, 130, 246, 0.14);
      border-bottom-color: rgba(59, 130, 246, 0.30);
    }

    .worktime-table td {
      vertical-align: middle;
    }

    .worktime-date {
      min-width: 106px;
      font-weight: 600;
    }

    .worktime-weekday {
      min-width: 42px;
      color: var(--muted);
      font-weight: 600;
    }

    .worktime-time,
    .worktime-pause,
    .worktime-mode,
    .worktime-code,
    .worktime-note {
      min-width: 108px;
    }

    .worktime-pause {
      min-width: 148px;
    }

    .worktime-time input,
    .worktime-pause select,
    .worktime-mode select,
    .worktime-code select,
    .worktime-note input {
      min-width: 100%;
    }

    .worktime-pause-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }

    .worktime-pause-control.is-custom {
      grid-template-columns: minmax(0, 1fr);
    }

    .worktime-pause-custom {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
    }

    .worktime-pause-custom .form-control {
      min-width: 0;
      text-align: right;
    }

    .worktime-pause-unit {
      white-space: nowrap;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--muted);
    }

    .worktime-hours {
      white-space: nowrap;
      min-width: 72px;
      font-weight: 700;
    }

    .worktime-hours.is-negative {
      color: #dc2626;
    }

    .worktime-hours.is-positive {
      color: #059669;
    }

    .worktime-time.worktime-pair-start,
    .worktime-time.worktime-pair-end {
      background: rgba(59, 130, 246, 0.09);
    }

    .worktime-time.worktime-pair-start {
      border-left: 2px solid rgba(59, 130, 246, 0.40);
    }

    .worktime-time.worktime-pair-end {
      border-right: 2px solid rgba(59, 130, 246, 0.40);
    }

    .worktime-row.is-weekend td {
      background: rgba(245, 158, 11, 0.16);
    }

    .worktime-row.is-holiday td {
      background: rgba(16, 185, 129, 0.16);
    }

    .worktime-row.is-today td {
      box-shadow: inset 0 0 0 999px rgba(59, 130, 246, 0.06);
    }

    .theme-dark .worktime-table thead th.worktime-pair-head {
      background: rgba(96, 165, 250, 0.18);
      border-bottom-color: rgba(96, 165, 250, 0.32);
    }

    .theme-dark .worktime-time.worktime-pair-start,
    .theme-dark .worktime-time.worktime-pair-end {
      background: rgba(96, 165, 250, 0.12);
    }

    .theme-dark .worktime-time.worktime-pair-start {
      border-left-color: rgba(96, 165, 250, 0.44);
    }

    .theme-dark .worktime-time.worktime-pair-end {
      border-right-color: rgba(96, 165, 250, 0.44);
    }

    .theme-dark .worktime-row.is-weekend td {
      background: rgba(245, 158, 11, 0.18);
    }

    .theme-dark .worktime-row.is-holiday td {
      background: rgba(16, 185, 129, 0.20);
    }

    .theme-dark .worktime-row.is-today td {
      box-shadow: inset 0 0 0 999px rgba(59, 130, 246, 0.10);
    }

    @media print {
      body {
        background: #fff !important;
      }

      .app-layout {
        display: block !important;
        min-height: auto !important;
      }

      .app-sidebar,
      .sidebar-backdrop,
      .sidebar-toggle,
      .content-topbar,
      .section-copy,
      .storage-mode-note,
      .report-toolbar-actions,
      .month-nav .btn,
      .btn,
      .modal,
      .flash-wrap {
        display: none !important;
      }

      .app-content,
      .content-shell,
      .content-frame,
      .tab-pane-inner {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      .report-shell,
      .report-card,
      .report-kpi,
      .worktime-overview,
      .report-toolbar,
      .config-card {
        border: 1px solid #d8e4f2 !important;
        background: #fff !important;
        box-shadow: none !important;
      }

      canvas {
        max-width: 100% !important;
      }
    }
