/* LSC Web-App v3.0.0 – Design-System
   Wird als letzte Datei geladen und legt Farben, Schrift, Abstände und alle
   Grundbausteine fest. Hell: :root[data-theme] …, Dunkel: :root[data-theme="DARK"] …
   Keine Logik, keine IDs aus app.js werden verändert. */

/* ---------- 1. Design-Tokens ---------- */
:root{
  --v3-canvas:#F4F3F1;--v3-surface:#FFFFFF;--v3-surface-2:#FAF9F8;--v3-surface-3:#F1EFEC;
  --v3-line:#E4E2DF;--v3-line-strong:#CFCBC6;
  --v3-ink:#1B1A19;--v3-ink-2:#3A3836;--v3-muted:#5C5956;
  --v3-brand:#410101;--v3-brand-hover:#5A0B0B;--v3-accent:#8B1A1A;--v3-accent-soft:#F6E9E9;--v3-accent-line:#E8C9C9;
  --v3-green:#1D6B44;--v3-green-fill:#1D6B44;--v3-green-hover:#185A39;--v3-green-soft:#E5F2EA;
  --v3-amber:#7A5000;--v3-amber-soft:#FBF0D9;--v3-amber-fill:#E9B10A;
  --v3-blue:#1F4E8C;--v3-blue-soft:#E6EEF8;
  --v3-side:#323232;--v3-side-2:#3B3B3B;--v3-side-ink:#E4E1DD;--v3-side-muted:#A29D97;
  --v3-focus:0 0 0 3px #8B1A1A33;
  --v3-shadow-sm:0 1px 2px #1b1a190f;--v3-shadow:0 1px 2px #1b1a190d,0 8px 24px #1b1a190f;--v3-shadow-lg:0 24px 64px #1b1a1933;
  --v3-r-sm:8px;--v3-r:10px;--v3-r-lg:14px;
  --v3-font:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
  /* Alte Variablen auf die neuen Werte legen, damit ältere Regeln mitziehen */
  --ink:var(--v3-ink);--muted:var(--v3-muted);--line:var(--v3-line);--paper:var(--v3-canvas);--white:var(--v3-surface);
  --green:var(--v3-green);--amber:var(--v3-amber);--red:var(--v3-accent);--red-dark:var(--v3-brand);--charcoal:var(--v3-side);
  --lsc-red:var(--v3-brand);--lsc-gray:var(--v3-side);--accent:var(--v3-accent);
  --surface-soft:var(--v3-surface-2);--surface-raised:var(--v3-surface);--surface-card:var(--v3-surface);--surface-accent:var(--v3-accent-soft);
  --text-strong:var(--v3-ink);--text-soft:var(--v3-muted);--text-muted:var(--v3-muted);--border-soft:var(--v3-line);
  --ui-text:var(--v3-ink);--ui-muted:var(--v3-muted);--ui-surface:var(--v3-surface);--ui-surface-soft:var(--v3-surface-2);--ui-canvas:var(--v3-canvas);
  --ui-border:var(--v3-line);--ui-accent:var(--v3-accent);--ui-accent-soft:var(--v3-accent-soft);--ui-accent-fill:var(--v3-brand);
  --ui-success:var(--v3-green);--ui-success-soft:var(--v3-green-soft);--ui-success-fill:var(--v3-green-fill);
  --ui-shadow:var(--v3-shadow);--ui-popover-shadow:var(--v3-shadow-lg);--ui-focus:var(--v3-focus);--shadow:var(--v3-shadow);
  --order-rule:var(--v3-line);--order-focus:var(--v3-accent);--dialog-edge:var(--v3-line);
}
:root[data-theme="DARK"]{
  --v3-canvas:#141414;--v3-surface:#1E1E1E;--v3-surface-2:#242424;--v3-surface-3:#2B2B2B;
  --v3-line:#323232;--v3-line-strong:#454545;
  --v3-ink:#EDEBE8;--v3-ink-2:#D6D3CF;--v3-muted:#A9A49E;
  --v3-brand:#6E1414;--v3-brand-hover:#841C1C;--v3-accent:#EC9A99;--v3-accent-soft:#3A1F1F;--v3-accent-line:#5E2C2C;
  --v3-green:#7AD7A6;--v3-green-fill:#1F7A4D;--v3-green-hover:#248A58;--v3-green-soft:#16301F;
  --v3-amber:#F2C66E;--v3-amber-soft:#3A2E14;--v3-amber-fill:#E9B10A;
  --v3-blue:#9CC0F0;--v3-blue-soft:#1A2A40;
  --v3-side:#101010;--v3-side-2:#1C1C1C;--v3-side-ink:#E4E1DD;--v3-side-muted:#8E8983;
  --v3-focus:0 0 0 3px #EC9A9940;
  --v3-shadow-sm:0 1px 2px #0006;--v3-shadow:0 1px 2px #0005,0 8px 24px #0004;--v3-shadow-lg:0 24px 64px #000a;
  color-scheme:dark;
}

/* ---------- 2. Grundlage ---------- */
:root[data-theme],:root[data-theme] body{background:var(--v3-canvas);color:var(--v3-ink)}
:root[data-theme] body{font-family:var(--v3-font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01"}
:root[data-theme] body :is(input,select,textarea,button){font-family:inherit}
:root[data-theme] ::selection{background:#8B1A1A33}
:root[data-theme] :focus-visible{outline:2px solid var(--v3-accent);outline-offset:2px}
:root[data-theme] a{color:var(--v3-accent)}
:root[data-theme] :is(.app-shell,.login-panel,dialog) :is(h1,h2,h3){color:var(--v3-ink);letter-spacing:-.015em}
:root[data-theme] .eyebrow{color:var(--v3-accent);font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
:root[data-theme] .hint,:root[data-theme] .muted,:root[data-theme] .field-hint,:root[data-theme] .empty-hint,:root[data-theme] .dialog-subtitle{color:var(--v3-muted)}
:root[data-theme] .form-error{color:var(--v3-accent);font-weight:600}

/* ---------- 3. App-Rahmen: Seitenmenü ---------- */
:root[data-theme] .app-shell{background:var(--v3-canvas);min-height:100vh}
:root[data-theme] .sidebar{background:var(--v3-side);color:var(--v3-side-ink);border-right:0;box-shadow:none}
:root[data-theme] .sidebar-head{border-bottom:1px solid #ffffff14;padding-bottom:1rem}
:root[data-theme] .sidebar-brand,:root[data-theme] .sidebar-brand span{color:#fff;font-weight:700;letter-spacing:-.01em}
:root[data-theme] .sidebar-collapse{color:var(--v3-side-ink);background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px}
:root[data-theme] .sidebar-collapse:hover{background:#ffffff1f;color:#fff}
:root[data-theme] .nav-label{color:var(--v3-side-muted);font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
:root[data-theme] .navigation button{color:var(--v3-side-ink);background:transparent;border:0;border-radius:8px;font-weight:500;box-shadow:none;transition:background .12s,color .12s}
:root[data-theme] .navigation button:hover{background:#ffffff12;color:#fff}
:root[data-theme] .navigation button.active{background:#410101;color:#fff;box-shadow:inset 3px 0 0 #C24A4A}
:root[data-theme="DARK"] .navigation button.active{background:#5A1010}
:root[data-theme] .nav-icon{display:inline-grid;place-items:center;width:20px;height:20px;flex:none;color:currentColor;opacity:.92;font-size:0;filter:none}
:root[data-theme] .nav-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme] .navigation button.active .nav-icon{opacity:1}
:root[data-theme] .nav-unread{background:#C24A4A;color:#fff}
:root[data-theme] .theme-toggle{color:var(--v3-side-ink);background:#ffffff0d;border:1px solid #ffffff1a;border-radius:10px}
:root[data-theme] .theme-toggle:hover{background:#ffffff1a;color:#fff}

/* ---------- 4. Kopfzeile ---------- */
:root[data-theme] .workspace{background:var(--v3-canvas)}
:root[data-theme] .topbar{background:color-mix(in srgb,var(--v3-surface) 92%,transparent);border-bottom:1px solid var(--v3-line);box-shadow:none;backdrop-filter:saturate(1.4) blur(8px)}
:root[data-theme] .topbar #pageTitle{color:var(--v3-ink);font-weight:700;letter-spacing:-.01em}
:root[data-theme] .quick-customer-button{background:var(--v3-green-fill);color:#fff;border:1px solid transparent;border-radius:8px;font-weight:600;box-shadow:none}
:root[data-theme] .quick-customer-button:hover{background:var(--v3-green-hover);color:#fff}
:root[data-theme] .tow-create-action{background:var(--v3-amber-fill);color:#2A1E00;border-color:transparent}
:root[data-theme] .tow-create-action:hover{background:#D9A300;color:#2A1E00}
:root[data-theme] .account-trigger{color:var(--v3-ink);border-radius:10px}
:root[data-theme] .account-trigger:hover{background:var(--v3-surface-3)}
:root[data-theme] .account-popover{background:var(--v3-surface);color:var(--v3-ink);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);box-shadow:var(--v3-shadow-lg)}
:root[data-theme] .account-popover button{color:var(--v3-ink);background:transparent;border-radius:8px}
:root[data-theme] .account-popover button:hover,:root[data-theme] .account-popover button:focus-visible{background:var(--v3-accent-soft);color:var(--v3-accent)}
:root[data-theme] .mobile-menu{color:var(--v3-ink);background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:8px}

/* ---------- 5. Seitenkopf & Karten ---------- */
:root[data-theme] .view>.section-head h1,:root[data-theme] .section-head h1{color:var(--v3-ink);font-weight:700;letter-spacing:-.025em}
:root[data-theme] .section-head p:not(.eyebrow){color:var(--v3-muted)}
:root[data-theme] :is(.table-card,.module-card,.dashboard-panel,.panel-form,.order-customer-grid,.order-vehicle-card,.review-vehicle,.statistics-chart-card,.statistics-kpi,.changelog-card,.dashboard-orders>article,.accounting-summary article){background:var(--v3-surface);color:var(--v3-ink);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);box-shadow:var(--v3-shadow-sm)}
:root[data-theme] :is(.dashboard-panel,.statistics-chart-card) h2,:root[data-theme] .dashboard-heading-link{color:var(--v3-ink)}
:root[data-theme] .dashboard-heading-link:hover{color:var(--v3-accent)}
:root[data-theme] .employee-status-grid article{border-color:var(--v3-line)}
:root[data-theme] .employee-status-grid strong,:root[data-theme] .dashboard-orders strong{color:var(--v3-ink)}
:root[data-theme] .employee-status-grid span,:root[data-theme] .dashboard-orders span{color:var(--v3-muted)}
:root[data-theme] .dashboard-orders>article{background:var(--v3-surface-2)}
:root[data-theme] .dashboard-bulletin article{background:var(--v3-accent-soft);border:1px solid var(--v3-accent-line);border-radius:var(--v3-r-lg)}
:root[data-theme] .dashboard-bulletin strong{color:var(--v3-accent)}
:root[data-theme] .copy-phone,:root[data-theme] .location-link{color:var(--v3-accent)}
:root[data-theme] .statistics-kpi-icon{background:var(--v3-accent-soft);color:var(--v3-accent);border-radius:10px}
:root[data-theme] .changelog-card{border-left:1px solid var(--v3-line)}

/* ---------- 6. Knöpfe ---------- */
:root[data-theme] :is(.primary-button,.secondary-button,.danger-button,.icon-action){font-weight:600;border-radius:var(--v3-r-sm);transition:background .12s,border-color .12s,color .12s,box-shadow .12s;box-shadow:none}
:root[data-theme] .primary-button{background:var(--v3-brand);border:1px solid var(--v3-brand);color:#fff}
:root[data-theme] .primary-button:hover:not(:disabled){background:var(--v3-brand-hover);border-color:var(--v3-brand-hover);color:#fff}
:root[data-theme] .primary-button:disabled{opacity:.5}
:root[data-theme] :is(.secondary-button,.icon-action,.row-actions button){background:var(--v3-surface);border:1px solid var(--v3-line-strong);color:var(--v3-ink)}
:root[data-theme] :is(.secondary-button,.icon-action,.row-actions button):hover:not(:disabled){background:var(--v3-surface-3);border-color:var(--v3-muted);color:var(--v3-ink)}
:root[data-theme] .danger-button{background:#9B1C1C;border:1px solid #9B1C1C;color:#fff}
:root[data-theme] .danger-button:hover{background:#B42323;border-color:#B42323}
:root[data-theme] :is(.primary-button,.secondary-button,.danger-button,.icon-action):focus-visible{outline:none;box-shadow:var(--v3-focus)}
/* „＋“-Aktionen bleiben grün (UI-Richtlinien) */
:root[data-theme] :is(.add-button,.add-vehicle-button,.tow-create-action-inline,[data-action="add"]){color:var(--v3-green)}
:root[data-theme] .segmented-option{border-color:var(--v3-line-strong);background:var(--v3-surface);color:var(--v3-ink-2)}
:root[data-theme] .segmented-option:has(input:checked),:root[data-theme] .segmented-option.active{background:var(--v3-accent-soft);color:var(--v3-accent);border-color:var(--v3-accent-line)}

/* ---------- 7. Formulare ---------- */
:root[data-theme] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,.inline-select){background:var(--v3-surface);color:var(--v3-ink);border:1px solid var(--v3-line-strong);border-radius:var(--v3-r-sm);transition:border-color .12s,box-shadow .12s}
:root[data-theme] :is(input,select,textarea)::placeholder{color:#8E8984}
:root[data-theme] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):hover{border-color:var(--v3-muted)}
:root[data-theme] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{border-color:var(--v3-accent);box-shadow:var(--v3-focus);outline:none}
:root[data-theme] :is(input,select,textarea):disabled{background:var(--v3-surface-3);color:var(--v3-muted)}
:root[data-theme] :is(input[type="checkbox"],input[type="radio"]){accent-color:#410101}
:root[data-theme="DARK"] :is(input[type="checkbox"],input[type="radio"]){accent-color:#C24A4A}
:root[data-theme] :is(.dialog,.panel-form,.order-customer-grid,.order-vehicle-card,.login-form) :is(label,legend){color:var(--v3-ink-2)}
:root[data-theme] :is(.prefix-field,.suffix-field){background:var(--v3-surface);border-color:var(--v3-line-strong);border-radius:var(--v3-r-sm)}
:root[data-theme] :is(.prefix-field,.suffix-field):focus-within{border-color:var(--v3-accent);box-shadow:var(--v3-focus)}
:root[data-theme] :is(.prefix-field,.suffix-field)>span{background:var(--v3-surface-3);color:var(--v3-muted);border-color:var(--v3-line)}
:root[data-theme] :is(.prefix-field,.suffix-field) input{border:0;box-shadow:none}
:root[data-theme] :is(.search-bar,.search-with-filter) input{background:var(--v3-surface)}
:root[data-theme] .check-label{color:var(--v3-ink)}
:root[data-theme] :is(.selected-customer-fields,.order-customer-info,.order-summary,.review-summary>div,.review-totals,.payout-summary>div){background:var(--v3-surface-2);color:var(--v3-ink-2);border-color:var(--v3-line)}
:root[data-theme] :is(.order-summary,.payout-summary) strong,:root[data-theme] .copy-value{color:var(--v3-ink)}
:root[data-theme] .order-voucher-box{background:var(--v3-amber-soft);color:var(--v3-amber);border-color:color-mix(in srgb,var(--v3-amber) 35%,transparent)}
:root[data-theme] .order-result,:root[data-theme] .order-toolbox-line{background:var(--v3-green-soft);color:var(--v3-green);border-color:transparent}
:root[data-theme] .service-choice label{background:var(--v3-surface);border-color:var(--v3-line-strong);color:var(--v3-ink-2)}
:root[data-theme] .service-choice label:has(input:checked){background:var(--v3-accent-soft);border-color:var(--v3-accent-line);color:var(--v3-accent)}

/* ---------- 8. Tabellen ---------- */
:root[data-theme] table{border-color:var(--v3-line)}
:root[data-theme] th{background:var(--v3-surface-2);color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;border-color:var(--v3-line)}
:root[data-theme] td{border-color:var(--v3-line);color:var(--v3-ink)}
:root[data-theme] tbody tr:hover td,:root[data-theme] .clickable-row:hover td{background:color-mix(in srgb,var(--v3-accent) 5%,var(--v3-surface))}
:root[data-theme] :is(.table-scroll,.table-wrap){border-color:var(--v3-line)}
:root[data-theme] :is(.table-pagination,.pagination-bar){color:var(--v3-muted)}
:root[data-theme] .permission-table td:first-child{background:var(--v3-surface)}
:root[data-theme] .permission-table thead th:first-child{background:var(--v3-surface-2)}

/* ---------- 9. Chips & Status ---------- */
:root[data-theme] .status-chip{border-radius:999px;font-weight:600;letter-spacing:0}
:root[data-theme] .status-chip.progress{background:var(--v3-surface-3);color:var(--v3-ink-2)}
:root[data-theme] .unread-mark{background:#C24A4A;color:#fff}

/* ---------- 10. Dialoge ---------- */
:root[data-theme] dialog.dialog,:root[data-theme] .dialog{background:var(--v3-surface);color:var(--v3-ink);border:1px solid var(--v3-line);border-radius:16px;box-shadow:var(--v3-shadow-lg)}
:root[data-theme] dialog::backdrop{background:#0c0b0b8c;backdrop-filter:blur(3px)}
:root[data-theme] .dialog-head h2,:root[data-theme] .dialog-head h3{color:var(--v3-ink)}
:root[data-theme] .dialog-close{color:var(--v3-muted);background:transparent;border:1px solid var(--v3-line);border-radius:8px}
:root[data-theme] :is(.order-vehicle-remove,.order-work-remove,.application-reject,.settings-history-close){display:inline-grid!important;place-items:center;font-size:0!important;line-height:0!important;padding:0!important}
:root[data-theme] :is(.order-vehicle-remove,.order-work-remove,.application-reject,.settings-history-close)::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat}
:root[data-theme] .dialog-close:hover{color:var(--v3-ink);background:var(--v3-surface-3);border-color:var(--v3-line-strong)}
:root[data-theme] .dialog-actions{border-color:var(--v3-line)}
:root[data-theme] :is(#workshopReviewDialog,.order-detail-dialog,#towDetailDialog,.payroll-settings-dialog)>.dialog-actions,:root[data-theme] #towDetailDialog .dialog-actions{background:var(--v3-surface);border-color:var(--v3-line)}
:root[data-theme] #towDetailDialog .detail-grid>div{background:var(--v3-surface-2);border-color:var(--v3-line);color:var(--v3-ink)}
:root[data-theme] #towDetailDialog .detail-grid strong{color:var(--v3-ink)}
:root[data-theme] .payroll-model-head{background:var(--v3-surface-2);color:var(--v3-muted)}

/* ---------- 11. Anmeldung ---------- */
:root[data-theme] .login-panel{background:var(--v3-canvas)}
:root[data-theme] .login-card{border:1px solid var(--v3-line);border-radius:18px;box-shadow:var(--v3-shadow)}
:root[data-theme]:not([data-theme="DARK"]) .login-card img{filter:invert(1) brightness(.25)}

/* ---------- 12. Neuer Auftrag ---------- */
:root[data-theme] #workshopOrderForm :is(.order-customer-grid,.order-vehicle-card){border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);background:var(--v3-surface);box-shadow:var(--v3-shadow-sm);padding:1.25rem 1.35rem}
:root[data-theme] #workshopOrderForm .order-vehicle-card>legend{color:var(--v3-ink);font-weight:700;padding:0 .4rem;background:var(--v3-surface);border-radius:6px}
:root[data-theme] #workshopOrderForm :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){border:1px solid var(--v3-line-strong)!important;border-radius:var(--v3-r-sm)!important;background:var(--v3-surface)!important;padding-inline:.75rem!important;min-height:2.6rem;box-shadow:none!important}
:root[data-theme] #workshopOrderForm :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{border-color:var(--v3-accent)!important;box-shadow:var(--v3-focus)!important}
:root[data-theme] #workshopOrderForm .order-block-head h2{color:var(--v3-ink);border:0;padding-left:0}
:root[data-theme] #workshopOrderForm .order-block-head h2::before{display:none}
:root[data-theme] #workshopOrderForm .order-add-vehicle-bottom .secondary-button{color:var(--v3-green);border:1px dashed color-mix(in srgb,var(--v3-green) 55%,transparent);background:var(--v3-green-soft)}
:root[data-theme] #workshopOrderForm .order-add-vehicle-bottom .secondary-button:hover{background:color-mix(in srgb,var(--v3-green) 14%,var(--v3-surface))}
:root[data-theme] #workshopOrderForm .order-payment-toggle{align-self:flex-end;justify-self:end;margin-left:auto!important;margin-right:0!important;width:min(100%,420px);box-sizing:border-box;border:1px solid var(--v3-line);border-radius:var(--v3-r);background:var(--v3-surface);color:var(--v3-ink)}
:root[data-theme] #workshopOrderForm .order-summary{width:min(100%,420px);box-sizing:border-box;margin-left:auto;margin-right:0;padding:1rem 1.25rem;border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);background:var(--v3-surface);box-shadow:var(--v3-shadow-sm);color:var(--v3-ink-2)}
:root[data-theme] #workshopOrderForm .order-summary>*{padding-inline:0}
:root[data-theme] #workshopOrderForm .order-summary .order-total{border-top:1px solid var(--v3-line);color:var(--v3-ink)}
:root[data-theme] #workshopOrderForm .order-summary .order-total strong{color:var(--v3-ink);font-size:1.6rem;letter-spacing:-.02em}
:root[data-theme] #workshopOrderForm>.dialog-actions{justify-content:flex-end}
:root[data-theme] #workshopOrderForm>.dialog-actions .primary-button{min-width:min(100%,420px);min-height:3rem;font-size:1rem}

/* ---------- 14. Etappe 1: Kopfzeile ---------- */
:root[data-theme] .quick-customer-actions{display:inline-flex;gap:0;padding:3px;border-radius:11px;background:var(--v3-green-soft)}
:root[data-theme] .quick-customer-actions .quick-customer-button{background:transparent;color:var(--v3-green);border:0;border-radius:8px;padding-inline:.7rem;min-height:2.3rem}
:root[data-theme] .quick-customer-actions .quick-customer-button:hover{background:var(--v3-green-fill);color:#fff}
:root[data-theme] .topbar-actions{gap:.6rem}
:root[data-theme] #topbarUserName{font-weight:700}
:root[data-theme] #topbarUserStatus{color:var(--v3-green);font-weight:600}

/* ---------- 15. Etappe 1: Startseite ---------- */
:root[data-theme] .dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 1.25rem}
:root[data-theme] .dashboard-hero h1{margin:.15rem 0 .2rem;font-size:clamp(1.7rem,2.6vw,2.3rem);font-weight:700;letter-spacing:-.03em}
:root[data-theme] .dashboard-date{margin:0;color:var(--v3-muted)}
:root[data-theme] .dashboard-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:0 0 1.25rem}
:root[data-theme] .dashboard-kpi{display:flex;align-items:center;gap:.9rem;padding:1rem 1.15rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);box-shadow:var(--v3-shadow-sm)}
:root[data-theme] .dashboard-kpi[hidden]{display:none}
:root[data-theme] .dashboard-kpi-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:var(--v3-surface-3);color:var(--v3-ink-2)}
:root[data-theme] .dashboard-kpi-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme] .dashboard-kpi strong{display:block;font-size:1.7rem;line-height:1.1;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--v3-ink)}
:root[data-theme] .dashboard-kpi div>span{color:var(--v3-muted);font-size:.86rem;font-weight:500}
:root[data-theme] .dashboard-kpi[data-kpi="active"] .dashboard-kpi-icon{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .dashboard-kpi.is-alert{border-color:var(--v3-accent-line);background:var(--v3-accent-soft)}
:root[data-theme] .dashboard-kpi.is-alert .dashboard-kpi-icon{background:var(--v3-brand);color:#fff}
:root[data-theme] .dashboard-columns{gap:1.25rem}
:root[data-theme] .dashboard-panel{padding:1.15rem 1.25rem}
:root[data-theme] .dashboard-panel>h2{font-size:1rem;font-weight:650;margin:0 0 .75rem}
:root[data-theme] .employee-status-grid{gap:0}
:root[data-theme] .employee-status-grid>article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-template-areas:"avatar name phone" "avatar status phone";column-gap:.8rem;row-gap:.1rem;align-items:center;padding:.7rem .25rem;border:0;border-top:1px solid var(--v3-line);border-radius:0;background:transparent}
:root[data-theme] .employee-status-grid>article:first-child{border-top:0}
:root[data-theme] .employee-status-grid>article>.v3-avatar{grid-area:avatar;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--v3-surface-3);color:var(--v3-ink-2);font-size:.8rem;font-weight:700;letter-spacing:.02em}
:root[data-theme] .employee-status-grid>article>strong{grid-area:name;font-weight:650}
:root[data-theme] .employee-status-grid>article>span:not(.v3-avatar){grid-area:status;justify-self:start;display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;font-weight:600;padding:.12rem .55rem;border-radius:999px;background:var(--v3-surface-3);color:var(--v3-muted)}
:root[data-theme] .employee-status-grid>article>span:not(.v3-avatar)::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
:root[data-theme] .employee-status-grid>article>:is(button,a,.copy-phone){grid-area:phone;justify-self:end}
:root[data-theme] .employee-status-grid>article[data-tone="ok"]>.v3-avatar{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .employee-status-grid>article[data-tone="ok"]>span.v3-status{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .employee-status-grid>article[data-tone="brand"]>.v3-avatar,:root[data-theme] .employee-status-grid>article[data-tone="brand"]>span.v3-status{background:var(--v3-accent-soft);color:var(--v3-accent)}
:root[data-theme] .employee-status-grid>article[data-tone="warn"]>.v3-avatar,:root[data-theme] .employee-status-grid>article[data-tone="warn"]>span.v3-status{background:var(--v3-amber-soft);color:var(--v3-amber)}
:root[data-theme] .copy-phone{border:1px solid var(--v3-line);border-radius:8px;padding:.3rem .6rem;background:var(--v3-surface);font-variant-numeric:tabular-nums}
:root[data-theme] .copy-phone:hover:not(:disabled){border-color:var(--v3-accent-line);background:var(--v3-accent-soft)}
:root[data-theme] .dashboard-orders>article{border-radius:var(--v3-r);border:1px solid var(--v3-line);background:var(--v3-surface-2)}

/* ---------- 16. Etappe 1: Neuer Auftrag – zwei Spalten ---------- */
:root[data-theme] #workshopOrderForm{container-type:inline-size;container-name:order}
:root[data-theme] .order-layout{display:flex;flex-direction:column;gap:1.25rem}
:root[data-theme] .order-main{display:flex;flex-direction:column;gap:1rem;min-width:0}
:root[data-theme] .order-side{display:flex;flex-direction:column;gap:.85rem;min-width:0}
:root[data-theme] #workshopOrderForm .order-main{counter-reset:orderstep}
:root[data-theme] #workshopOrderForm :is(.order-step-title,.order-block-head h2){counter-increment:orderstep;display:flex;align-items:center;gap:.6rem;margin:0;font-size:1.05rem;font-weight:650;color:var(--v3-ink)}
:root[data-theme] #workshopOrderForm :is(.order-step-title,.order-block-head h2)::before{content:counter(orderstep);display:inline-grid!important;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--v3-accent-soft);color:var(--v3-accent);font-size:.8rem;font-weight:700;position:static;border:0}
:root[data-theme] #workshopOrderForm .order-block-head{margin-top:.5rem}
:root[data-theme] .order-side-title{margin:0;font-size:1rem;font-weight:650;color:var(--v3-ink)}
:root[data-theme] #workshopOrderForm .order-side>:is(.order-payment-toggle,.order-summary){width:auto!important;margin:0!important}
:root[data-theme] #workshopOrderForm .order-side>.dialog-actions{margin:0;padding:0;border:0;background:transparent;position:static}
:root[data-theme] #workshopOrderForm .order-side>.dialog-actions .primary-button{width:100%;min-width:0}
:root[data-theme] #workshopOrderForm .order-side>.form-error:empty{display:none}
@container order (min-width:980px){
  .order-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 340px;align-items:start}
  .order-side{position:sticky;top:5.5rem;padding:1.15rem;border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);background:var(--v3-surface);box-shadow:var(--v3-shadow-sm)}
  #workshopOrderForm .order-side>.order-summary{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
  #workshopOrderForm .order-side>.order-payment-toggle{order:3;border:1px dashed var(--v3-line-strong)!important}
  #workshopOrderForm .order-side>.dialog-actions{order:5}
  #workshopOrderForm .order-side>.form-error{order:4}
  #workshopOrderForm .order-side>.order-result{order:6}
}

/* ---------- 17. Etappe 2: Listen als eine Karte ---------- */
/* Muster: .search-bar → Seitensteuerung → .table-card → Seitensteuerung. Optisch zu einer Karte verbunden. */
:root[data-theme] .view>.search-bar:has(+ :is(.table-pagination,.pagination-bar,.table-card)){display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:0;padding:.85rem 1rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-bottom:0;border-radius:var(--v3-r-lg) var(--v3-r-lg) 0 0;box-shadow:none;max-width:none}
:root[data-theme] .view>.search-bar:has(+ :is(.table-pagination,.pagination-bar,.table-card)) input[type="search"]{flex:1 1 320px;max-width:none;width:auto;min-height:2.5rem;padding-left:2.35rem;background:var(--v3-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8984' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center/16px}
:root[data-theme] .view>.search-bar:has(+ :is(.table-pagination,.pagination-bar,.table-card)) :is(select,label){flex:0 1 auto;margin:0}
:root[data-theme] .view>:is(.table-pagination,.pagination-bar):has(+ .table-card){margin:0;padding:.55rem 1rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-bottom:0;border-radius:var(--v3-r-lg) var(--v3-r-lg) 0 0;box-shadow:none;font-size:.85rem}
:root[data-theme] .view>.search-bar+:is(.table-pagination,.pagination-bar):has(+ .table-card){border-radius:0;border-top:1px solid var(--v3-line)}
:root[data-theme] .view>:is(.search-bar,.table-pagination,.pagination-bar)+.table-card{margin-top:0;border-top-left-radius:0;border-top-right-radius:0;box-shadow:none}
:root[data-theme] .view>.table-card:has(+ :is(.table-pagination,.pagination-bar)){margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
:root[data-theme] .view>.table-card+:is(.table-pagination,.pagination-bar){margin:0 0 1.25rem;padding:.55rem 1rem;background:var(--v3-surface-2);border:1px solid var(--v3-line);border-top:0;border-radius:0 0 var(--v3-r-lg) var(--v3-r-lg);box-shadow:none;font-size:.85rem}
:root[data-theme] .view>.table-card{overflow:hidden}
:root[data-theme] :is(.table-pagination,.pagination-bar){color:var(--v3-muted)}
:root[data-theme] :is(.table-pagination,.pagination-bar) button{min-width:2.1rem;min-height:2.1rem;border-radius:8px}
:root[data-theme] :is(.table-pagination,.pagination-bar) select{min-height:2.1rem}


/* Freistehende Suchleisten (ohne direkt folgende Tabelle) als eigene Karte */
:root[data-theme] .view>.search-bar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;padding:.85rem 1rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);max-width:none}
:root[data-theme] .view>.search-bar input[type="search"]{flex:1 1 320px;max-width:none;width:auto;min-height:2.5rem;padding-left:2.35rem;background:var(--v3-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8984' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center/16px}
:root[data-theme] :is(#view-billing,#view-tab-accounting) .polished-filter{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;min-height:0}
:root[data-theme] :is(#view-billing,#view-tab-accounting) .polished-filter{font-size:0}
:root[data-theme] .view>.search-bar input[type="search"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8984' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:.75rem center!important;background-size:16px!important;padding-left:2.35rem!important}
:root[data-theme] :is(#view-billing,#view-tab-accounting) .polished-filter select{font-size:.9rem;min-height:2.5rem}

/* Tabellen kompakter, Kopf bleibt beim Scrollen in langen Karten stehen */
:root[data-theme] .table-card table{border:0;border-collapse:separate;border-spacing:0}
:root[data-theme] .table-card th{position:sticky;top:0;z-index:1;padding:.6rem .9rem;border-bottom:1px solid var(--v3-line)}
:root[data-theme] .table-card td{padding:.62rem .9rem;border-bottom:1px solid var(--v3-line);vertical-align:middle}
:root[data-theme] .table-card tbody tr:last-child td{border-bottom:0}
:root[data-theme] .table-card td:first-child,:root[data-theme] .table-card th:first-child{padding-left:1.1rem}
:root[data-theme] .table-card td:last-child,:root[data-theme] .table-card th:last-child{padding-right:1.1rem}
:root[data-theme] .table-card tbody tr{transition:background .1s}
:root[data-theme] .table-card :is(.row-actions,.table-actions){gap:.35rem}
:root[data-theme] .table-card :is(.row-actions button,.icon-action){min-width:2.1rem;min-height:2.1rem;border-radius:8px}

/* Status-Chips einheitlich */
:root[data-theme] .status-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.18rem .6rem;font-size:.78rem;line-height:1.3;border:0}
:root[data-theme] .status-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}

/* Seitenkopf: Filter rechts als ruhige Leiste */
:root[data-theme] .section-head{align-items:flex-end;gap:1rem 1.5rem;margin-bottom:1.25rem}
:root[data-theme] .section-head h1{font-size:clamp(1.6rem,2.4vw,2.1rem);margin:.15rem 0 .25rem}
:root[data-theme] .period-filters{display:flex;flex-wrap:wrap;gap:.5rem;padding:.5rem;border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);background:var(--v3-surface)}
:root[data-theme] .period-filters label{font-size:.72rem;font-weight:600;color:var(--v3-muted);text-transform:uppercase;letter-spacing:.05em}
:root[data-theme] .period-filters :is(input,select){min-height:2.3rem;font-size:.88rem;text-transform:none;letter-spacing:0}

/* Kennzahlen-Karten in Abrechnung & Co. */
:root[data-theme] .accounting-summary{gap:1rem}
:root[data-theme] .accounting-summary article{padding:1rem 1.15rem}
:root[data-theme] .accounting-summary article>span{color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
:root[data-theme] .accounting-summary .accounting-total{background:var(--v3-accent-soft);border-color:var(--v3-accent-line)}
:root[data-theme] .money-value.positive{color:var(--v3-green)}
:root[data-theme] .money-value.negative{color:var(--v3-accent)}

/* ---------- 18. Etappe 3: Dialoge ---------- */
:root[data-theme] dialog.dialog{padding:1.35rem 1.5rem}
:root[data-theme] dialog.dialog>.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:-.1rem 0 1.1rem;padding-bottom:.9rem;border-bottom:1px solid var(--v3-line)}
:root[data-theme] dialog.dialog>.dialog-head h2{margin:.1rem 0 0;font-size:1.3rem;font-weight:700;letter-spacing:-.02em}
:root[data-theme] dialog.dialog .dialog-close{width:2.25rem;height:2.25rem;display:grid;place-items:center;flex:none}
:root[data-theme] dialog.dialog .dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:1.1rem;padding-top:.95rem;border-top:1px solid var(--v3-line)}
:root[data-theme] dialog.dialog .dialog-actions:empty{display:none}
:root[data-theme] dialog.dialog :is(.dialog-actions,.detail-actions) :is(.primary-button,.secondary-button,.danger-button){min-height:2.5rem}
:root[data-theme] dialog.dialog label{font-size:.85rem;font-weight:600}
:root[data-theme] dialog.dialog :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:2.55rem}
:root[data-theme] .detail-grid{gap:.6rem}
:root[data-theme] .detail-grid>div{padding:.65rem .8rem;border:1px solid var(--v3-line);border-radius:var(--v3-r);background:var(--v3-surface-2)}
:root[data-theme] .detail-grid>div>:is(span,small,dt):first-child{display:block;margin-bottom:.15rem;color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
:root[data-theme] .detail-grid>div>:is(strong,dd){color:var(--v3-ink);font-weight:600}
:root[data-theme] :is(.review-vehicle,.order-detail-vehicle){border-radius:var(--v3-r-lg)}
:root[data-theme] .service-choice label{border-radius:var(--v3-r);min-height:2.6rem}

/* Schließen-Knopf (✕) in allen Dialogen: gezeichnetes Symbol statt Schriftzeichen, exakt mittig */
:root[data-theme] .dialog-close{position:relative;display:inline-grid!important;place-items:center;width:2.25rem!important;height:2.25rem!important;min-width:0;min-height:0;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--v3-muted)!important;font-size:0!important;line-height:0!important;box-shadow:none!important;cursor:pointer;flex:none}
:root[data-theme] .dialog-close::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px 16px no-repeat}
:root[data-theme] .dialog-close:hover{background:var(--v3-surface-3)!important;color:var(--v3-ink)!important}
:root[data-theme] .dialog-close:focus-visible{outline:none;box-shadow:var(--v3-focus)!important}

/* ---------- 19. Etappe 3: Kalender ---------- */
:root[data-theme] .calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
:root[data-theme] .calendar-navigation h2{min-width:12rem;text-align:center;font-size:1.2rem;font-weight:700;letter-spacing:-.02em}
:root[data-theme] .calendar-weekdays{margin:0;padding:.55rem 0;background:var(--v3-surface-2);border:1px solid var(--v3-line);border-bottom:0;border-radius:var(--v3-r-lg) var(--v3-r-lg) 0 0;color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
:root[data-theme] .calendar-grid{margin-top:0;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:0 0 var(--v3-r-lg) var(--v3-r-lg);overflow:hidden}
:root[data-theme] .calendar-day{background:var(--v3-surface);color:var(--v3-ink-2);border-color:var(--v3-line)!important;font-weight:600;font-size:.85rem}
:root[data-theme] .calendar-day.outside{background:var(--v3-surface-2);color:color-mix(in srgb,var(--v3-muted) 60%,transparent)}
:root[data-theme] .calendar-day.today{background:var(--v3-accent-soft)!important;color:var(--v3-accent)!important;box-shadow:inset 0 0 0 2px var(--v3-accent-line)}
:root[data-theme] .calendar-day:hover{background:color-mix(in srgb,var(--v3-accent) 4%,var(--v3-surface))}

/* ---------- 20. Etappe 3: Statistik ---------- */
:root[data-theme] .statistics-kpi{padding:1rem 1.15rem}
:root[data-theme] .statistics-kpi strong{font-size:1.45rem;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
:root[data-theme] .statistics-bar-track{background:var(--v3-surface-3);border-radius:999px;height:8px}
:root[data-theme] .statistics-bar-fill{background:var(--v3-brand);border-radius:999px}
:root[data-theme="DARK"] .statistics-bar-fill{background:#C24A4A}
:root[data-theme] .statistics-bars.orders .statistics-bar-fill{background:var(--v3-ink-2)}
:root[data-theme] .statistics-bar-value{font-variant-numeric:tabular-nums;font-weight:600}

/* ---------- 21. Etappe 3: Einstellungen ---------- */
:root[data-theme] #view-settings .settings-panel{border:1px solid var(--v3-line)!important;border-radius:var(--v3-r-lg)!important;background:var(--v3-surface);box-shadow:var(--v3-shadow-sm);padding:1.15rem 1.25rem}
:root[data-theme] #view-settings .settings-panel h2{font-size:1.05rem;font-weight:650}
:root[data-theme] #view-settings .settings-panel :is(button.secondary-button,.settings-action){border-radius:999px;background:var(--v3-surface-2);border-color:var(--v3-line);font-weight:600}
:root[data-theme] #view-settings .settings-panel :is(button.secondary-button,.settings-action):hover{background:var(--v3-accent-soft);border-color:var(--v3-accent-line);color:var(--v3-accent)}
:root[data-theme] #view-settings .settings-history-button{border:1px solid var(--v3-line)!important;border-radius:var(--v3-r-lg)!important;background:var(--v3-surface)!important;box-shadow:var(--v3-shadow-sm);color:var(--v3-ink)}
:root[data-theme] #view-settings .settings-history-button:hover{border-color:var(--v3-accent-line)!important;background:var(--v3-accent-soft)!important}

/* ---------- 21b. Einstellungen v3.5: Bereiche, Verwaltung, Protokolle ---------- */
:root[data-theme] #view-settings.active,:root[data-theme] .content:has(>#view-roles.active,>#view-locations.active)>#view-settings{display:flex;flex-direction:column;gap:1.25rem}
/* Ränge & Rechte / Standorte als Pop-up über den Einstellungen */
:root[data-theme] :is(#view-roles,#view-locations).active{position:fixed;inset:0;z-index:950;display:flex!important;align-items:flex-start;justify-content:center;margin:0;padding:clamp(.75rem,4vh,2.5rem) 1rem;background:#0c0b0b8c;backdrop-filter:blur(3px);overflow:auto;animation:none}
:root[data-theme] .module-popup{position:relative;width:min(1180px,100%);box-sizing:border-box;padding:1.35rem 1.5rem 1.5rem;background:var(--v3-canvas);border:1px solid var(--v3-line);border-radius:18px;box-shadow:var(--v3-shadow-lg)}
:root[data-theme] .module-popup>.section-head{padding-right:3rem}
:root[data-theme] .module-popup>.module-popup-close{position:absolute;top:1rem;right:1rem;text-decoration:none}
:root[data-theme] .module-popup .save-bar{position:sticky;bottom:-1.5rem;margin:1rem -1.5rem -1.5rem;padding:.85rem 1.5rem;border-top:1px solid var(--v3-line);border-radius:0 0 18px 18px;background:var(--v3-surface)}
:root[data-theme] .module-popup .eyebrow:has(.settings-back){display:none}
:root[data-theme] #view-settings>.section-head{margin-bottom:0}
:root[data-theme] #view-settings .settings-panel{margin:0}
:root[data-theme] .settings-panel-head{margin:0 0 1rem;padding-bottom:.85rem;border-bottom:1px solid var(--v3-line)}
:root[data-theme] .settings-panel-head h2{margin:0;font-size:1.1rem;font-weight:700;letter-spacing:-.01em;color:var(--v3-ink)}
:root[data-theme] .settings-panel-head p{margin:.2rem 0 0;color:var(--v3-muted);font-size:.88rem}
/* Verwaltung: große Kacheln */
:root[data-theme] .settings-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem}
:root[data-theme] .settings-tile{display:flex;align-items:center;gap:.9rem;width:100%;padding:.9rem 1rem;text-align:left;font:inherit;color:var(--v3-ink);background:var(--v3-surface-2);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);cursor:pointer;transition:border-color .12s,background .12s}
:root[data-theme] .settings-tile:hover{border-color:var(--v3-accent-line);background:var(--v3-accent-soft)}
:root[data-theme] .settings-tile-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:var(--v3-surface);border:1px solid var(--v3-line);color:var(--v3-accent)}
:root[data-theme] .settings-tile-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme] .settings-tile-text{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}
:root[data-theme] .settings-tile-text strong{font-weight:650}
:root[data-theme] .settings-tile-text small{color:var(--v3-muted);font-size:.82rem}
:root[data-theme] .settings-tile-chevron{color:var(--v3-muted);font-size:1.3rem;line-height:1}
/* Betriebliche Vorgaben: gleichmäßiges Raster statt Pillen-Reihe */
:root[data-theme] #settingsConfigPanel .settings-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.6rem}
:root[data-theme] #settingsConfigPanel .settings-actions>button{justify-content:flex-start;text-align:left;width:100%;min-height:2.9rem;padding:.6rem .9rem;border-radius:var(--v3-r)!important;background:var(--v3-surface-2)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink)!important;font-weight:600}
:root[data-theme] #settingsConfigPanel .settings-actions>button:hover{background:var(--v3-accent-soft)!important;border-color:var(--v3-accent-line)!important;color:var(--v3-accent)!important}
/* Protokolle: Gruppen in Spalten, kompakte Listen */
:root[data-theme] #settingsLists{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem 1.25rem;align-items:start}
:root[data-theme] .settings-log-group h3{margin:0 0 .45rem;color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase}
:root[data-theme] .settings-log-list{display:flex;flex-direction:column;border:1px solid var(--v3-line);border-radius:var(--v3-r);overflow:hidden;background:var(--v3-surface)}
:root[data-theme] .settings-log-list>dialog{display:none}
:root[data-theme] .settings-log-list>dialog[open]{display:block}
:root[data-theme] #view-settings .settings-log-list .settings-history-button{display:flex!important;align-items:center;justify-content:space-between;gap:.75rem;width:100%;min-height:0;margin:0;padding:.62rem .85rem!important;border:0!important;border-top:1px solid var(--v3-line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;text-align:left;font:inherit}
:root[data-theme] #view-settings .settings-log-list .settings-history-button.hidden{display:none!important}
:root[data-theme] #view-settings .settings-log-list>.settings-history-button:first-child{border-top:0!important}
:root[data-theme] #view-settings .settings-log-list .settings-history-button strong{font-weight:550;font-size:.9rem;color:var(--v3-ink)}
:root[data-theme] #view-settings .settings-log-list .settings-history-button small{display:none}
:root[data-theme] #view-settings .settings-log-list .settings-history-button>span{color:var(--v3-muted);font-size:1.1rem;line-height:1}
:root[data-theme] #view-settings .settings-log-list .settings-history-button:hover{background:var(--v3-accent-soft)!important}
:root[data-theme] #view-settings .settings-log-list .settings-history-button:hover strong{color:var(--v3-accent)}
/* Log-Fenster */
:root[data-theme] dialog.settings-history-dialog{width:min(860px,calc(100% - 2rem));padding:0!important;border:1px solid var(--v3-line)!important;border-radius:16px!important;background:var(--v3-surface)!important;box-shadow:var(--v3-shadow-lg)!important;overflow:auto}
:root[data-theme] dialog.settings-history-dialog>.settings-panel{margin:0!important;padding:1.35rem 1.5rem!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
:root[data-theme] dialog.settings-history-dialog>.settings-history-close{position:absolute!important;top:1rem!important;right:1rem!important;left:auto!important;margin:0!important;width:2.25rem!important;height:2.25rem!important;border:0!important;background:transparent!important;color:var(--v3-muted)!important;z-index:2}
:root[data-theme] dialog.settings-history-dialog>.settings-history-close:hover{background:var(--v3-surface-3)!important;color:var(--v3-ink)!important}
:root[data-theme] dialog.settings-history-dialog .section-head{padding:0 3rem .85rem 0;margin-bottom:1rem;border-bottom:1px solid var(--v3-line);align-items:center}
:root[data-theme] dialog.settings-history-dialog .section-head h2{font-size:1.25rem;margin:0}
:root[data-theme] dialog.settings-history-dialog .settings-list-controls{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:.75rem}
:root[data-theme] dialog.settings-history-dialog .settings-list-controls input[type="search"]{flex:1 1 260px;min-height:2.5rem}
:root[data-theme] dialog.settings-history-dialog .settings-list-controls label{display:flex;align-items:center;gap:.5rem;color:var(--v3-muted);font-size:.85rem;font-weight:500}
:root[data-theme] dialog.settings-history-dialog .settings-list-error:empty{display:none}
:root[data-theme] .settings-audit-list{border:1px solid var(--v3-line);border-radius:var(--v3-r);overflow:hidden}
:root[data-theme] .settings-audit-row{display:flex;align-items:center;border-top:1px solid var(--v3-line)}
:root[data-theme] .settings-audit-row:first-child{border-top:0}
:root[data-theme] .settings-audit-open{display:grid;grid-template-columns:9.5rem minmax(0,1fr) auto;align-items:center;gap:.9rem;flex:1;min-width:0;padding:.6rem .85rem;border:0;background:transparent;text-align:left;font:inherit;color:var(--v3-ink);cursor:pointer}
:root[data-theme] .settings-audit-open:hover{background:var(--v3-accent-soft)}
:root[data-theme] .settings-audit-open time{color:var(--v3-muted);font-size:.82rem;font-variant-numeric:tabular-nums}
:root[data-theme] .settings-audit-text{display:flex;flex-direction:column;min-width:0}
:root[data-theme] .settings-audit-text small{color:var(--v3-muted);font-size:.8rem}
:root[data-theme] .settings-list-pager{display:flex;align-items:center;justify-content:flex-end;gap:.4rem;color:var(--v3-muted);font-size:.82rem;margin:.6rem 0}
:root[data-theme] .settings-list-pager>span{margin-right:auto}
/* Zurück-Link in Ränge & Rechte / Standorte */
:root[data-theme] .settings-back{color:var(--v3-accent);text-decoration:none;font-weight:700}
:root[data-theme] .settings-back:hover{text-decoration:underline}

/* ---------- 23. Listen v3.6: Zusammenfassung, zweizeilige Zellen, Hof-Status ---------- */
:root[data-theme] .list-summary{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 .9rem}
:root[data-theme] .list-summary:empty{display:none}
:root[data-theme] .list-summary-item{display:flex;align-items:baseline;gap:.5rem;padding:.6rem .95rem;font:inherit;text-align:left;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);color:var(--v3-ink)}
:root[data-theme] button.list-summary-item{cursor:pointer}
:root[data-theme] button.list-summary-item:hover{border-color:var(--v3-line-strong)}
:root[data-theme] .list-summary-item strong{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
:root[data-theme] .list-summary-item span{color:var(--v3-muted);font-size:.85rem;font-weight:500}
:root[data-theme] .list-summary-item.active{box-shadow:inset 0 0 0 2px currentColor}
:root[data-theme] .list-summary-item.yard-status-ready,:root[data-theme] .list-summary-item.order-final{color:var(--v3-green)}
:root[data-theme] .list-summary-item.yard-status-working{color:var(--v3-blue)}
:root[data-theme] .list-summary-item.yard-status-unpaid,:root[data-theme] .list-summary-item.order-draft{color:var(--v3-amber)}
:root[data-theme] .list-summary-item:is(.yard-status-ready,.yard-status-working,.yard-status-unpaid,.order-final,.order-draft) strong{color:currentColor}
:root[data-theme] .table-card td.cell-stack>*{display:block}
:root[data-theme] .table-card td.cell-stack>small{margin-top:.1rem;color:var(--v3-muted);font-size:.78rem;font-weight:500}
:root[data-theme] .table-card td.cell-stack>small.plate{display:inline-block;padding:.05rem .4rem;border:1px solid var(--v3-line);border-radius:5px;background:var(--v3-surface-2);color:var(--v3-ink-2);font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:.74rem;letter-spacing:.04em}
:root[data-theme] .table-card td.num,:root[data-theme] .table-card th.num{text-align:right}
:root[data-theme] .status-chip.yard-status-ready,:root[data-theme] .status-chip.order-final{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .status-chip.yard-status-working{background:var(--v3-blue-soft);color:var(--v3-blue)}
:root[data-theme] .status-chip.yard-status-unpaid,:root[data-theme] .status-chip.order-draft{background:var(--v3-amber-soft);color:var(--v3-amber)}
/* Zeilen im Hofbestand nur noch dezent getönt, der Status steht im Chip */
:root[data-theme] #yardTable tr:is(.yard-ready,.yard-not-ready,.yard-unpaid),:root[data-theme] #yardTable tr:is(.yard-ready,.yard-not-ready,.yard-unpaid)>td{background:transparent!important;background-color:transparent!important;border-left:0!important;color:var(--v3-ink)!important;font-weight:400!important}
:root[data-theme] #yardTable td.cell-stack>strong{font-weight:650!important}
:root[data-theme] #yardTable tr>td:first-child{box-shadow:inset 3px 0 0 transparent}
:root[data-theme] #yardTable tr.yard-ready>td:first-child{box-shadow:inset 3px 0 0 var(--v3-green)}
:root[data-theme] #yardTable tr.yard-not-ready>td:first-child{box-shadow:inset 3px 0 0 var(--v3-blue)}
:root[data-theme] #yardTable tr.yard-unpaid>td:first-child{box-shadow:inset 3px 0 0 var(--v3-amber-fill)}
:root[data-theme] #view-yard .search-bar select{flex:0 1 220px}
/* „+ Dispatch“ überall gleich (Kopfzeile = Auftragslog) */
:root[data-theme] :is(#newTowOrderButton,.tow-create-action){font-family:var(--v3-font)!important;font-size:.8rem!important;font-weight:600!important;letter-spacing:.02em!important;text-transform:none!important;border-radius:8px!important;min-height:2.55rem;padding-inline:.8rem!important}

/* ---------- 24. Rechnungspositionen, Bewerbungen, Trainees ---------- */
:root[data-theme] .visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:root[data-theme] #view-prices table{table-layout:auto!important}
:root[data-theme] #view-prices :is(th,td){width:auto!important;min-width:0!important;max-width:none!important}
:root[data-theme] #view-prices th{white-space:nowrap}
:root[data-theme] #view-prices :is(th,td).num{text-align:right!important}
:root[data-theme] #view-prices td:first-child{min-width:180px!important}
:root[data-theme] #view-prices td:nth-child(8){white-space:nowrap}
:root[data-theme] #view-prices td:last-child{width:1%!important;white-space:nowrap}
:root[data-theme] #view-prices td:last-child .row-actions{display:flex!important;flex-wrap:nowrap!important;gap:.35rem}
:root[data-theme] #pricesTable td.muted-num{color:var(--v3-muted)}
:root[data-theme] #pricesTable td.strong-num{font-weight:700}
:root[data-theme] #pricesTable td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-theme] #pricesTable .positive{color:var(--v3-green);font-weight:600}
:root[data-theme] #pricesTable .negative{color:var(--v3-accent);font-weight:600}
:root[data-theme] .price-category{display:inline-block!important;width:max-content;margin-top:.2rem!important;padding:.05rem .5rem;border-radius:999px;font-size:.72rem!important;font-weight:600!important;background:var(--v3-surface-3);color:var(--v3-ink-2)!important}
:root[data-theme] .price-category-workshop{background:var(--v3-blue-soft);color:var(--v3-blue)!important}
:root[data-theme] .price-category-tuning{background:var(--v3-accent-soft);color:var(--v3-accent)!important}
:root[data-theme] .price-category-towing{background:var(--v3-amber-soft);color:var(--v3-amber)!important}
:root[data-theme] .price-category-service{background:var(--v3-green-soft);color:var(--v3-green)!important}
:root[data-theme] .option-chips{display:flex;flex-wrap:wrap;gap:.3rem}
:root[data-theme] td.option-chips{display:table-cell}
:root[data-theme] td.option-chips>*{margin:0 .25rem .2rem 0}
:root[data-theme] .option-chip{display:inline-block;padding:.08rem .5rem;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface-2);color:var(--v3-ink-2);font-size:.74rem;font-weight:600;white-space:nowrap}
:root[data-theme] .option-chip-ok{border-color:transparent;background:var(--v3-green-soft);color:var(--v3-green)}
/* Kennzahlen von Bewerbungen und Trainees wie auf der Startseite */
:root[data-theme] :is(.application-summary,.trainees-summary){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin:0 0 1.1rem}
:root[data-theme] :is(.application-summary,.trainees-summary)>*{padding:.9rem 1.1rem!important;background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:var(--v3-r-lg)!important;box-shadow:var(--v3-shadow-sm)!important}
:root[data-theme] :is(.application-summary,.trainees-summary)>* strong{font-size:1.6rem!important;font-weight:700;letter-spacing:-.03em;color:var(--v3-ink)}
:root[data-theme] :is(.application-summary,.trainees-summary)>* :is(span,small){color:var(--v3-muted)}
/* Trainees */
:root[data-theme] .trainees-section{padding:1.15rem 1.25rem!important;background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:var(--v3-r-lg)!important;box-shadow:var(--v3-shadow-sm)!important}
:root[data-theme] .trainees-section>.section-head{align-items:center;margin-bottom:.75rem}
:root[data-theme] .trainees-section>.section-head h2{font-size:1.1rem;margin:0}
:root[data-theme] .trainees-search input{min-width:220px}
:root[data-theme] .counting-help{margin:0 0 .75rem}
:root[data-theme] .counting-help>summary{display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;color:var(--v3-accent);font-size:.85rem;font-weight:600;list-style:none}
:root[data-theme] .counting-help>summary::-webkit-details-marker{display:none}
:root[data-theme] .counting-help>summary::before{content:"?";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--v3-accent-soft);font-size:.72rem}
:root[data-theme] .counting-help>p{margin:.5rem 0 0;padding:.75rem .9rem;border-radius:var(--v3-r);background:var(--v3-surface-2);font-size:.85rem}
:root[data-theme] .th-sub{display:block;font-size:.62rem;font-weight:500;opacity:.75}
:root[data-theme] .trainees-table th{vertical-align:bottom}
/* Bewerbungen */
:root[data-theme] .application-tabs{display:inline-flex;gap:.25rem;padding:3px;margin:0 0 1rem;border:1px solid var(--v3-line);border-radius:11px;background:var(--v3-surface-2)}
:root[data-theme] .application-tabs button{border:0!important;border-radius:8px!important;background:transparent!important;color:var(--v3-muted)!important;font-weight:600;padding:.45rem .9rem;box-shadow:none!important}
:root[data-theme] .application-tabs button.active{background:var(--v3-surface)!important;color:var(--v3-ink)!important;box-shadow:var(--v3-shadow-sm)!important}

/* ---------- 25. Statistik v3.7: Auswertungen ---------- */
:root[data-theme]{--cat-workshop:#1F4E8C;--cat-tuning:#8B1A1A;--cat-service:#1D6B44;--cat-towing:#C98A00;--cat-toolboxes:#7A7570}
:root[data-theme="DARK"]{--cat-workshop:#7FA9E6;--cat-tuning:#E8908F;--cat-service:#6FD3A0;--cat-towing:#F0C26B;--cat-toolboxes:#A9A49E}
:root[data-theme] .statistics-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin:1.25rem 0}
@media (max-width:900px){:root[data-theme] .statistics-insights{grid-template-columns:minmax(0,1fr)}}
:root[data-theme] .statistics-insights>.form-error{grid-column:1/-1;margin:0}
:root[data-theme] .statistics-insights>.form-error:empty{display:none}
:root[data-theme] .statistics-insights.is-loading .insight-body{opacity:.55;transition:opacity .2s}
:root[data-theme] .insight-card{display:flex;flex-direction:column;min-width:0;padding:1.15rem 1.25rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:var(--v3-r-lg);box-shadow:var(--v3-shadow-sm)}
:root[data-theme] .insight-card.wide{grid-column:1/-1}
:root[data-theme] .insight-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
:root[data-theme] .insight-card-head h2{margin:0;font-size:1rem;font-weight:650;color:var(--v3-ink)}
:root[data-theme] .insight-card-head span{color:var(--v3-muted);font-size:.8rem}
:root[data-theme] .insight-note{margin:.75rem 0 0;color:var(--v3-muted);font-size:.8rem}
/* Verlauf */
:root[data-theme] .insight-trend-head{display:flex;flex-wrap:wrap;gap:1.75rem;margin-bottom:.75rem}
:root[data-theme] .insight-kpi{display:flex;flex-direction:column;gap:.1rem}
:root[data-theme] .insight-kpi>span:first-child{color:var(--v3-muted);font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
:root[data-theme] .insight-kpi strong{font-size:1.55rem;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--v3-ink)}
:root[data-theme] .insight-delta{display:inline-block;width:max-content;padding:.08rem .5rem;border-radius:999px;font-size:.74rem;font-weight:600}
:root[data-theme] .insight-delta.up{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .insight-delta.down{background:var(--v3-accent-soft);color:var(--v3-accent)}
:root[data-theme] .insight-delta.flat{background:var(--v3-surface-3);color:var(--v3-muted)}
:root[data-theme] .insight-trend-wrap{position:relative}
:root[data-theme] .insight-trend-chart{display:block;width:100%;height:auto;overflow:visible;touch-action:none}
:root[data-theme] .insight-trend-chart .grid{stroke:var(--v3-line);stroke-width:1}
:root[data-theme] .insight-trend-chart .axis{fill:var(--v3-muted);font-size:11px;font-family:var(--v3-font)}
:root[data-theme] .insight-trend-chart .fill-start{stop-color:var(--cat-tuning);stop-opacity:.28}
:root[data-theme] .insight-trend-chart .fill-end{stop-color:var(--cat-tuning);stop-opacity:0}
:root[data-theme] .insight-trend-chart .area{fill:url(#insightRevenueFill)}
:root[data-theme] .insight-trend-chart .line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
:root[data-theme] .insight-trend-chart .line.revenue{stroke:var(--cat-tuning)}
:root[data-theme] .insight-trend-chart .line.margin{stroke:var(--cat-service);stroke-dasharray:5 4}
:root[data-theme] .insight-trend-chart .cursor{stroke:var(--v3-line-strong);stroke-dasharray:3 3}
:root[data-theme] .insight-trend-chart .dot{stroke:var(--v3-surface);stroke-width:2}
:root[data-theme] .insight-trend-chart .dot.revenue{fill:var(--cat-tuning)}
:root[data-theme] .insight-trend-chart .dot.margin{fill:var(--cat-service)}
:root[data-theme] .insight-trend-chart .hidden{display:none}
:root[data-theme] .insight-tooltip{position:absolute;top:0;left:var(--x,50%);transform:translateX(-50%);display:flex;flex-direction:column;gap:.1rem;padding:.5rem .7rem;background:var(--v3-ink);color:var(--v3-surface);border-radius:8px;font-size:.78rem;white-space:nowrap;pointer-events:none;box-shadow:var(--v3-shadow)}
:root[data-theme] .insight-tooltip.hidden{display:none}
:root[data-theme] .insight-tooltip strong{font-weight:700}
:root[data-theme] .insight-legend{display:flex;gap:1.25rem;margin-top:.5rem;color:var(--v3-muted);font-size:.8rem}
:root[data-theme] .insight-legend span::before{content:"";display:inline-block;width:14px;height:3px;margin-right:.4rem;vertical-align:middle;border-radius:2px}
:root[data-theme] .insight-legend .legend-revenue::before{background:var(--cat-tuning)}
:root[data-theme] .insight-legend .legend-margin::before{background:repeating-linear-gradient(90deg,var(--cat-service) 0 5px,transparent 5px 8px)}
/* Bereiche */
:root[data-theme] #insightCategories{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem 1.25rem}
:root[data-theme] .donut-figure{position:relative;width:170px;height:170px}
:root[data-theme] .insight-donut{width:100%;height:100%}
:root[data-theme] .insight-donut circle{fill:none;stroke-width:22}
:root[data-theme] .donut-track{stroke:var(--v3-surface-3)}
:root[data-theme] .donut-seg{stroke-linecap:butt;transition:stroke-width .15s}
:root[data-theme] .donut-seg:hover{stroke-width:26}
:root[data-theme] :is(.donut-seg,.insight-legend-list li).cat-workshop{stroke:var(--cat-workshop);--c:var(--cat-workshop)}
:root[data-theme] :is(.donut-seg,.insight-legend-list li).cat-tuning{stroke:var(--cat-tuning);--c:var(--cat-tuning)}
:root[data-theme] :is(.donut-seg,.insight-legend-list li).cat-service{stroke:var(--cat-service);--c:var(--cat-service)}
:root[data-theme] :is(.donut-seg,.insight-legend-list li).cat-towing{stroke:var(--cat-towing);--c:var(--cat-towing)}
:root[data-theme] :is(.donut-seg,.insight-legend-list li).cat-toolboxes{stroke:var(--cat-toolboxes);--c:var(--cat-toolboxes)}
:root[data-theme] .donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
:root[data-theme] .donut-center strong{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;color:var(--v3-ink)}
:root[data-theme] .donut-center span{color:var(--v3-muted);font-size:.74rem}
:root[data-theme] .insight-legend-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}
:root[data-theme] .insight-legend-list li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;column-gap:.55rem;align-items:center}
:root[data-theme] .insight-legend-list .swatch{width:12px;height:12px;border-radius:4px;background:var(--c)}
:root[data-theme] .insight-legend-list .name{font-weight:600;color:var(--v3-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme] .insight-legend-list strong{font-variant-numeric:tabular-nums;color:var(--v3-ink)}
:root[data-theme] .insight-legend-list small{grid-column:2/-1;color:var(--v3-muted);font-size:.76rem}
:root[data-theme] #insightCategories>.insight-note{grid-column:1/-1}
/* Stoßzeiten */
:root[data-theme] .insight-heatmap{display:grid;grid-template-columns:2rem repeat(24,minmax(0,1fr));gap:3px;align-items:center}
:root[data-theme] .insight-heatmap .hour{color:var(--v3-muted);font-size:.68rem;text-align:left}
:root[data-theme] .insight-heatmap .weekday{color:var(--v3-muted);font-size:.75rem;font-weight:600}
:root[data-theme] .insight-heatmap .cell{aspect-ratio:1/1;min-height:14px;border-radius:4px;background:var(--v3-surface-3)}
:root[data-theme] .insight-heatmap .cell.has{background:color-mix(in srgb,var(--cat-tuning) calc(15% + var(--v) * 85%),var(--v3-surface-3))}
:root[data-theme] .insight-heatmap .cell:hover{outline:2px solid var(--v3-ink);outline-offset:1px}
:root[data-theme] .insight-heat-scale{display:flex;align-items:center;gap:.5rem;margin-top:.6rem;color:var(--v3-muted);font-size:.75rem}
:root[data-theme] .insight-heat-scale .bar{width:120px;height:8px;border-radius:999px;background:linear-gradient(90deg,var(--v3-surface-3),var(--cat-tuning))}
/* Ranglisten */
:root[data-theme] .insight-ranking{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}
:root[data-theme] .insight-ranking li{display:flex;flex-direction:column;gap:.25rem}
:root[data-theme] .insight-ranking .text{display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:baseline;gap:.5rem}
:root[data-theme] .insight-ranking .rank{display:inline-grid;place-items:center;width:1.35rem;height:1.35rem;border-radius:6px;background:var(--v3-surface-3);color:var(--v3-muted);font-size:.72rem;font-weight:700}
:root[data-theme] .insight-ranking li:first-child .rank{background:var(--v3-brand);color:#fff}
:root[data-theme] .insight-ranking .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--v3-ink)}
:root[data-theme] .insight-ranking .value{font-variant-numeric:tabular-nums;color:var(--v3-ink)}
:root[data-theme] .insight-ranking .bar{display:block;height:6px;margin-left:2rem;border-radius:999px;background:linear-gradient(90deg,var(--cat-tuning),color-mix(in srgb,var(--cat-tuning) 55%,var(--v3-surface)));width:calc(var(--w,0%) - 2rem*var(--w-scale,0))}
:root[data-theme] .insight-ranking .bar{max-width:calc(100% - 2rem)}
:root[data-theme] .insight-ranking .detail{margin-left:2rem;color:var(--v3-muted);font-size:.76rem}
:root[data-theme] #insightTopCustomers .insight-ranking .bar{background:linear-gradient(90deg,var(--cat-workshop),color-mix(in srgb,var(--cat-workshop) 55%,var(--v3-surface)))}
/* Dispatch */
:root[data-theme] .insight-dispatch-top{display:flex;align-items:center;gap:1.25rem;margin-bottom:1rem}
:root[data-theme] .insight-gauge{width:130px;height:auto;flex:none}
:root[data-theme] .insight-gauge path{fill:none;stroke-width:11;stroke-linecap:round}
:root[data-theme] .gauge-track{stroke:var(--v3-surface-3)}
:root[data-theme] .gauge-value{stroke:var(--cat-service)}
:root[data-theme] .gauge-label{fill:var(--v3-ink);font-size:17px;font-weight:700;font-family:var(--v3-font)}
:root[data-theme] .insight-dispatch-numbers{display:flex;flex-direction:column}
:root[data-theme] .insight-dispatch-numbers strong{font-size:1.9rem;font-weight:700;letter-spacing:-.03em;color:var(--v3-ink)}
:root[data-theme] .insight-dispatch-numbers span{font-weight:600;color:var(--v3-ink-2)}
:root[data-theme] .insight-dispatch-numbers small{color:var(--v3-muted)}
:root[data-theme] .insight-service-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
:root[data-theme] .insight-service-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .75rem;align-items:center}
:root[data-theme] .insight-service-list .name{color:var(--v3-ink-2);font-weight:500}
:root[data-theme] .insight-service-list strong{font-variant-numeric:tabular-nums;color:var(--v3-ink)}
:root[data-theme] .insight-service-list .bar{grid-column:1/-1;height:6px;border-radius:999px;background:var(--cat-towing);width:var(--w,0%);min-width:2px}
@media (max-width:640px){:root[data-theme] #insightCategories{grid-template-columns:1fr;justify-items:center}:root[data-theme] .insight-heatmap .hour{font-size:.55rem}}

/* ---------- 22. Bewegung reduzieren ---------- */
@media (prefers-reduced-motion:reduce){:root[data-theme] *{transition:none!important}}

/* ===== 26. Bewerberliste: kompakte Zeilen + ausklappbare Details (v3.10.0) ===== */
:root[data-theme] :is(#applicationsTable,#applicationArchiveTable) .application-row{cursor:pointer}
:root[data-theme] :is(#applicationsTable,#applicationArchiveTable) .application-row:hover>td{background:var(--v3-surface-2)}
:root[data-theme] :is(#applicationsTable,#applicationArchiveTable) .application-row.is-open>td{background:var(--v3-surface-2);border-bottom-color:transparent}
:root[data-theme] :is(#applicationsTable,#applicationArchiveTable) .application-row>td{vertical-align:middle}
:root[data-theme] .application-date{white-space:nowrap;color:var(--v3-muted);font-variant-numeric:tabular-nums}
:root[data-theme] .application-name strong{font-weight:650;color:var(--v3-ink)}
:root[data-theme] .application-contact{display:table-cell}
:root[data-theme] .application-contact span{display:block;line-height:1.35}
:root[data-theme] .application-contact span+span{color:var(--v3-muted);font-size:.82rem}
:root[data-theme] .application-license{font-weight:600;color:var(--v3-muted)}
:root[data-theme] .application-license[data-yes="1"]{color:var(--v3-green)}
:root[data-theme] .application-status{display:inline-block;padding:.18rem .6rem;border-radius:999px;font-size:.78rem;font-weight:650;white-space:nowrap;background:var(--v3-surface-3);color:var(--v3-ink)}
:root[data-theme] .application-status[data-status="NEW"]{background:var(--v3-blue-soft);color:var(--v3-blue)}
:root[data-theme] .application-status[data-status="CONTACTED"],:root[data-theme] .application-status[data-status="APPOINTMENT"]{background:var(--v3-amber-soft);color:var(--v3-amber)}
:root[data-theme] .application-status[data-status="ACCEPTED"]{background:var(--v3-green-soft);color:var(--v3-green)}
:root[data-theme] .application-status[data-status="REJECTED"]{background:color-mix(in srgb,#B42323 14%,transparent);color:#B42323}
:root[data-theme] .application-toggle-cell{width:1%;text-align:right;white-space:nowrap}
:root[data-theme] .application-toggle{padding:.35rem .8rem!important;font-size:.82rem}
:root[data-theme] .application-toggle::after{content:"";display:inline-block;width:.45em;height:.45em;margin-left:.45em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-.15em) rotate(45deg);transition:transform .15s}
:root[data-theme] .application-toggle[aria-expanded="true"]::after{transform:translateY(.05em) rotate(-135deg)}
:root[data-theme] .application-detail>td{background:var(--v3-surface-2);padding:.4rem 1.1rem 1.1rem!important}
:root[data-theme] .application-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem 1.5rem;margin:0 0 1rem}
:root[data-theme] .application-facts>div{min-width:0}
:root[data-theme] .application-facts dt{font-size:.72rem;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--v3-muted);margin:0 0 .2rem}
:root[data-theme] .application-facts dd{margin:0;color:var(--v3-ink);white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-theme] .application-facts .application-facts-wide{grid-column:1/-1}
:root[data-theme] .application-detail-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem;padding-top:.9rem;border-top:1px solid var(--v3-line)}
:root[data-theme] :is(.application-detail-tools,.application-detail-decide){display:flex;flex-wrap:wrap;gap:.5rem}
:root[data-theme] .application-detail-actions button{padding:.45rem .9rem!important;font-size:.85rem}
:root[data-theme] .application-detail-decide .primary-button{background:var(--v3-green-fill)!important;border-color:var(--v3-green-fill)!important;color:#fff!important}
:root[data-theme] .application-detail-decide .primary-button:hover{background:var(--v3-green-hover)!important}

/* ===== 27. Deckel: Rechnungsliste mit aufklappbaren Aufträgen (v3.11.0) ===== */
:root[data-theme] .tab-orders-card{margin:0;overflow:hidden}
:root[data-theme] .tab-orders-table{width:100%;border-collapse:collapse}
:root[data-theme] .tab-orders-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-theme] .tab-order-row{cursor:pointer}
:root[data-theme] .tab-order-row>td{vertical-align:middle}
:root[data-theme] .tab-order-row:hover>td,:root[data-theme] .tab-order-row.is-open>td{background:var(--v3-surface-2)}
:root[data-theme] .tab-order-row.is-open>td{border-bottom-color:transparent}
:root[data-theme] .tab-order-number strong{font-weight:650;color:var(--v3-ink);white-space:nowrap}
:root[data-theme] :is(.tab-order-date,.tab-order-employee,.tab-order-vehicles){color:var(--v3-muted)}
:root[data-theme] .tab-order-date{white-space:nowrap;font-variant-numeric:tabular-nums}
:root[data-theme] .tab-order-total{font-weight:650;color:var(--v3-ink)}
:root[data-theme] .tab-order-toggle-cell{width:1%;text-align:right;white-space:nowrap}
:root[data-theme] .tab-order-toggle{padding:.35rem .8rem!important;font-size:.82rem}
:root[data-theme] .tab-order-toggle::after{content:"";display:inline-block;width:.45em;height:.45em;margin-left:.45em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-.15em) rotate(45deg);transition:transform .15s}
:root[data-theme] .tab-order-toggle[aria-expanded="true"]::after{transform:translateY(.05em) rotate(-135deg)}
:root[data-theme] .tab-order-detail>td{background:var(--v3-surface-2);padding:.25rem 1.1rem 1rem!important}
:root[data-theme] .tab-order-vehicle{padding:.75rem .9rem;margin:0 0 .6rem;background:var(--v3-surface);border:1px solid var(--v3-line);border-radius:var(--v3-r-sm)}
:root[data-theme] .tab-order-vehicle h4{margin:0 0 .4rem;font-size:.9rem;font-weight:650;color:var(--v3-ink)}
:root[data-theme] .tab-order-items{width:100%;border-collapse:collapse}
:root[data-theme] .tab-order-items td{padding:.3rem 0!important;border:0!important;border-top:1px solid var(--v3-line)!important;background:transparent!important;font-size:.88rem}
:root[data-theme] .tab-order-items tr:first-child td{border-top:0!important}
:root[data-theme] .tab-order-items .tab-item-qty{width:3.5rem;color:var(--v3-muted);font-variant-numeric:tabular-nums}
:root[data-theme] .tab-order-sum{display:flex;justify-content:flex-end;gap:1rem;margin:.2rem 0 0;color:var(--v3-muted)}
:root[data-theme] .tab-order-sum strong{color:var(--v3-ink)}
:root[data-theme] .tab-orders-table tfoot td{font-weight:650;color:var(--v3-ink);background:var(--v3-surface-2);border-top:1px solid var(--v3-line-strong)}
:root[data-theme] .tab-orders-table th.numeric{text-align:right!important}
:root[data-theme] .tab-order-employee{white-space:nowrap}

/* ===== 28. Kennzeichen als Schildchen in der Auftragsübersicht (v3.13.0) ===== */
:root[data-theme] .order-list-vehicle{display:flex!important;flex-wrap:wrap;align-items:center;gap:.25rem .5rem}
:root[data-theme] .order-list-vehicle-name{color:var(--v3-ink)}
:root[data-theme] .license-plate-chip{display:inline-block;padding:.05rem .45rem;border:1.5px solid var(--v3-ink);border-radius:4px;background:var(--v3-surface);color:var(--v3-ink);font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.35;white-space:nowrap}
:root[data-theme] .order-list-vehicle-name{white-space:nowrap}

/* ===== 29. Auftragsübersicht-Spalten + Statistik-Sortierung (v3.14.0) ===== */
/* Tabelle hat table-layout:fixed – Breiten über die Kopfzeile */
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(1){width:10%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(2){width:11%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(3){width:19%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(4){width:25%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(5){width:15%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(6){width:11%}
:root[data-theme] table:has(>#workshopOrdersTable) thead th:nth-child(7){width:9%}
:root[data-theme] #workshopOrdersTable td:nth-child(4){padding-right:1.25rem}
:root[data-theme] #workshopOrdersTable .order-list-vehicle-name{white-space:normal}
:root[data-theme] .insight-sort{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--v3-line);border-radius:8px;background:var(--v3-surface-2)}
:root[data-theme] .insight-sort button{border:0;background:transparent;color:var(--v3-muted);font:inherit;font-size:.78rem;font-weight:600;padding:.25rem .6rem;border-radius:6px;cursor:pointer}
:root[data-theme] .insight-sort button.active{background:var(--v3-surface);color:var(--v3-ink);box-shadow:var(--v3-shadow-sm)}
:root[data-theme] .insight-sort button:focus-visible{outline:none;box-shadow:var(--v3-focus)}

/* ===== 30. Sammelobjekt-Angebot als Banner mit Annehmen/Ablehnen (v3.18.0) ===== */
:root[data-theme] #collectibleOfferBanner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.9rem 1.1rem;margin:.25rem 0 1rem;padding:1rem 1.15rem;border:1px solid color-mix(in srgb,#D4A017 55%,transparent);border-left:5px solid #D4A017;border-radius:var(--v3-r-md,12px);background:linear-gradient(100deg,color-mix(in srgb,#D4A017 20%,var(--v3-surface)) 0%,color-mix(in srgb,#D4A017 7%,var(--v3-surface)) 70%);box-shadow:0 6px 20px -10px color-mix(in srgb,#D4A017 70%,transparent)}
:root[data-theme] #collectibleOfferBanner.hidden{display:none}
:root[data-theme] .collectible-offer-icon{width:42px;height:42px;border-radius:50%;background:#D4A017;-webkit-mask:none;position:relative;flex:none}
:root[data-theme] .collectible-offer-icon::after{content:"";position:absolute;inset:9px;background:#1b1400;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") center/contain no-repeat}
:root[data-theme] .collectible-offer-text{min-width:0}
:root[data-theme] .collectible-offer-kicker{display:block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9A7200}
:root[data-theme="dark"] .collectible-offer-kicker{color:#E8B931}
:root[data-theme] #collectibleOfferName{display:block;font-size:1.05rem;color:var(--v3-ink);margin:.1rem 0}
:root[data-theme] #collectibleOfferNote{margin:0;color:var(--v3-ink);font-size:.9rem}
:root[data-theme] #collectibleOfferBanner small{display:block;margin-top:.25rem;color:var(--v3-muted);font-size:.78rem}
:root[data-theme] .collectible-offer-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
:root[data-theme] .collectible-offer-actions button{white-space:nowrap}
:root[data-theme] #collectibleOfferAccept{background:var(--v3-green-fill,#1E7F4F)!important;border-color:var(--v3-green-fill,#1E7F4F)!important;color:#fff!important}
:root[data-theme] #collectibleOfferBanner[data-decision="open"] .collectible-offer-icon{animation:lsc-offer-pulse 1.8s ease-out infinite}
@keyframes lsc-offer-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,#D4A017 60%,transparent)}100%{box-shadow:0 0 0 12px transparent}}
:root[data-theme] #collectibleOfferBanner[data-decision="accepted"]{border-color:color-mix(in srgb,var(--v3-green,#1E7F4F) 50%,transparent);border-left-color:var(--v3-green,#1E7F4F);background:color-mix(in srgb,var(--v3-green,#1E7F4F) 10%,var(--v3-surface));box-shadow:none}
:root[data-theme] #collectibleOfferBanner[data-decision="accepted"] .collectible-offer-icon{background:var(--v3-green,#1E7F4F)}
:root[data-theme] #collectibleOfferBanner[data-decision="accepted"] .collectible-offer-kicker{color:var(--v3-green,#1E7F4F)}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"]{border-color:var(--v3-line);border-left-color:var(--v3-muted);background:var(--v3-surface-2);box-shadow:none;padding:.6rem 1rem}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"] .collectible-offer-icon{width:28px;height:28px;background:var(--v3-muted)}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"] .collectible-offer-icon::after{inset:6px}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"] :is(#collectibleOfferNote,small){display:none}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"] .collectible-offer-kicker{color:var(--v3-muted)}
:root[data-theme] #collectibleOfferBanner[data-decision="declined"] #collectibleOfferName{font-size:.92rem;color:var(--v3-muted);text-decoration:line-through}
:root[data-theme] #collectibleOfferBanner.is-nudged{animation:lsc-offer-shake .45s ease}
@keyframes lsc-offer-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@media (max-width:640px){:root[data-theme] #collectibleOfferBanner{grid-template-columns:auto 1fr}:root[data-theme] .collectible-offer-actions{grid-column:1/-1;justify-content:stretch}:root[data-theme] .collectible-offer-actions button{flex:1}}
@media (prefers-reduced-motion:reduce){:root[data-theme] #collectibleOfferBanner *{animation:none!important}:root[data-theme] #collectibleOfferBanner{animation:none!important}}
/* v3.18.1: Angebot als Pop-up; im Prüfdialog nur kompakte Statuszeile nach der Entscheidung */
:root[data-theme] #collectibleOfferBanner[data-decision="open"]{display:none}
:root[data-theme] #collectibleOfferBanner{padding:.6rem 1rem;grid-template-columns:auto 1fr auto}
:root[data-theme] #collectibleOfferBanner .collectible-offer-icon{width:30px;height:30px;animation:none}
:root[data-theme] #collectibleOfferBanner .collectible-offer-icon::after{inset:7px}
:root[data-theme] #collectibleOfferBanner :is(#collectibleOfferNote,small){display:none}
:root[data-theme] #collectibleOfferBanner #collectibleOfferName{font-size:.95rem}
:root[data-theme] .collectible-offer-dialog{width:min(460px,calc(100vw - 2rem));padding:0;border:0;border-radius:18px;overflow:hidden;background:var(--v3-surface);box-shadow:0 30px 80px -20px rgba(0,0,0,.6)}
:root[data-theme] .collectible-offer-dialog::backdrop{background:rgba(0,0,0,.6)}
:root[data-theme] .collectible-offer-pop{display:grid;justify-items:center;text-align:center;gap:.35rem;padding:2rem 1.75rem 1.5rem;border-top:5px solid #D4A017;background:radial-gradient(120% 70% at 50% 0%,color-mix(in srgb,#D4A017 24%,var(--v3-surface)) 0%,var(--v3-surface) 70%)}
:root[data-theme] .collectible-offer-pop .collectible-offer-icon{width:64px;height:64px;margin-bottom:.4rem;animation:lsc-offer-pulse 1.8s ease-out infinite}
:root[data-theme] .collectible-offer-pop .collectible-offer-icon::after{inset:14px}
:root[data-theme] .collectible-offer-pop .collectible-offer-kicker{margin:0}
:root[data-theme] .collectible-offer-pop h2{margin:0;font-size:1.45rem;color:var(--v3-ink)}
:root[data-theme] .collectible-offer-price{margin:0;font-size:1.6rem;font-weight:800;color:#B8860B;font-variant-numeric:tabular-nums}
:root[data-theme="dark"] .collectible-offer-price{color:#E8B931}
:root[data-theme] #collectibleOfferDialogNote{margin:.2rem 0 0;color:var(--v3-ink)}
:root[data-theme] .collectible-offer-pop small{color:var(--v3-muted);font-size:.8rem;max-width:34ch}
:root[data-theme] .collectible-offer-pop-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;width:100%;margin-top:1rem}
:root[data-theme] .collectible-offer-pop-actions button{padding:.75rem 1rem!important;font-size:1rem}
:root[data-theme] dialog.collectible-offer-dialog{padding:0!important;max-height:none}

/* ===== 31. Organisationshinweis deutlich hervorheben (v3.19.0) ===== */
:root[data-theme] .org-note,:root[data-theme] #workshopOrderForm .org-note{grid-column:1/-1;margin:.25rem 0 .5rem;padding:.9rem 1.1rem 1rem;border:1px solid color-mix(in srgb,#E0A100 60%,transparent);border-left:6px solid #E0A100;border-radius:12px;background:color-mix(in srgb,#E0A100 16%,var(--v3-surface));color:var(--v3-ink);box-shadow:0 8px 22px -14px color-mix(in srgb,#E0A100 80%,transparent)}
:root[data-theme] .org-note-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.45rem}
:root[data-theme] .org-note-icon{flex:none;width:26px;height:26px;border-radius:50%;background:#E0A100;position:relative}
:root[data-theme] .org-note-icon::after{content:"!";position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:1rem;color:#1b1400}
:root[data-theme] .org-note-head strong{font-size:.8rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#8A6400}
:root[data-theme="dark"] .org-note-head strong,:root[data-theme="DARK"] .org-note-head strong{color:#F2C14E}
:root[data-theme] .org-note p{margin:0;font-size:1rem;font-weight:600;line-height:1.5;white-space:pre-wrap;color:var(--v3-ink)}
:root[data-theme] .review-org-note{margin:0 0 1rem}

/* ===== 32. Sammelobjekt-Zähler in der Karte (v3.21.0) ===== */
:root[data-theme] .collectible-campaign{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:1rem 1.4rem;align-items:start;padding-right:3.5rem}
:root[data-theme] .collectible-campaign>.collectible-actions{position:absolute;right:.7rem;top:.7rem;display:flex;flex-direction:column;gap:.35rem}
:root[data-theme] .collectible-info{min-width:0}
:root[data-theme] .collectible-counter{padding:.8rem .9rem;border-radius:10px;background:var(--v3-surface-2);border:1px solid var(--v3-line)}
:root[data-theme] .collectible-counter-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
:root[data-theme] .collectible-counter-label{font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v3-muted)}
:root[data-theme] .collectible-counter-value{font-size:1.15rem;color:var(--v3-ink);font-variant-numeric:tabular-nums}
:root[data-theme] .collectible-progress{height:8px;margin:.5rem 0 .35rem;border-radius:99px;background:var(--v3-surface-3,rgba(127,127,127,.2));overflow:hidden}
:root[data-theme] .collectible-progress span{display:block;height:100%;width:var(--progress,0%);border-radius:inherit;background:linear-gradient(90deg,#B8860B,#E0A100)}
:root[data-theme] .collectible-counter-next{margin:.2rem 0 .6rem;font-size:.82rem;color:var(--v3-muted)}
:root[data-theme] .collectible-counter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}
:root[data-theme] .collectible-counter-cell{padding:.4rem .3rem;border-radius:8px;background:var(--v3-surface);text-align:center;border:1px solid var(--v3-line)}
:root[data-theme] .collectible-counter-cell strong{display:block;font-size:1.05rem;color:var(--v3-ink);font-variant-numeric:tabular-nums}
:root[data-theme] .collectible-counter-cell span{display:block;font-size:.66rem;line-height:1.2;color:var(--v3-muted)}
:root[data-theme] .collectible-counter-cell[data-tone="good"] strong{color:var(--v3-green,#1E7F4F)}
:root[data-theme] .collectible-counter-cell[data-tone="bad"] strong{color:#C0392B}
:root[data-theme] .collectible-counter-cell[data-tone="open"] strong{color:#B8860B}
:root[data-theme] .collectible-counter-foot{margin:.55rem 0 0;font-size:.75rem;color:var(--v3-muted)}
@media (max-width:900px){:root[data-theme] .collectible-campaign{grid-template-columns:1fr}}

/* ===== 33. Trainee-Übersicht kompakter (v3.21.0) ===== */
:root[data-theme] .trainee-identity-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem 1.25rem;flex-wrap:wrap;margin-bottom:.45rem}
:root[data-theme] .trainee-who{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;min-width:0}
:root[data-theme] .trainee-who strong{font-size:1rem}
:root[data-theme] .trainee-who .trainee-role{margin:0!important;display:inline-block;padding:.1rem .55rem;border-radius:99px;font-size:.72rem;font-weight:700;background:var(--v3-surface-2);border:1px solid var(--v3-line);color:var(--v3-muted)}
:root[data-theme] .trainee-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.15rem .9rem;margin-left:auto;text-align:right}
:root[data-theme] .trainee-meta small{display:inline!important;margin:0!important;font-size:.78rem;color:var(--v3-muted);white-space:nowrap}
:root[data-theme] .trainee-meta small+small::before{content:"·";margin-right:.9rem;margin-left:-.45rem;opacity:.6}
:root[data-theme] table:has(>#traineesTable) th:first-child{width:52%}
:root[data-theme] table:has(>#traineesTable) th:not(:first-child),:root[data-theme] #traineesTable td:not(:first-child){width:auto;white-space:nowrap;text-align:center}
:root[data-theme] .trainee-meta{flex-wrap:nowrap}
:root[data-theme] .trainee-meta small+small::before{content:"";margin:0}
:root[data-theme] .trainee-meta small+small{padding-left:.75rem;border-left:1px solid var(--v3-line)}
@media (max-width:1100px){:root[data-theme] .trainee-meta{flex-wrap:wrap;justify-content:flex-start;margin-left:0;text-align:left}}
:root[data-theme] table:has(>#traineesTable) th:first-child{width:62%}
:root[data-theme] table:has(>#traineesTable) th:not(:first-child){white-space:normal;line-height:1.2}
:root[data-theme] .trainee-identity-head{flex-wrap:nowrap}
:root[data-theme] .trainee-meta small{font-size:.74rem}
:root[data-theme] #traineesTable .training-checklist{grid-template-columns:repeat(4,minmax(0,auto));justify-content:start;gap:.35rem 1.1rem;margin-top:.35rem;padding:.45rem .7rem}
@media (max-width:1200px){:root[data-theme] #traineesTable .training-checklist{grid-template-columns:repeat(2,minmax(0,auto))}}
:root[data-theme] .trainee-who{flex-wrap:nowrap;white-space:nowrap}
:root[data-theme] table:has(>#traineesTable) th:first-child{width:56%}
:root[data-theme] table:has(>#traineesTable) th:not(:first-child){word-break:normal;overflow-wrap:normal;hyphens:manual;font-size:.68rem}
:root[data-theme] table:has(>#traineesTable) th:first-child{width:60%}
:root[data-theme] .trainee-identity-head{flex-wrap:wrap}
:root[data-theme] .trainee-who{flex:none}
:root[data-theme] .trainee-meta{flex:1 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-end}
:root[data-theme] #traineesTable .training-checklist label{white-space:nowrap}
:root[data-theme] table:has(>#traineesTable) th:not(:first-child){padding-left:.6rem!important;padding-right:.6rem!important}
:root[data-theme] table:has(>#payrollOverviewTable) th{word-break:normal;overflow-wrap:normal;hyphens:manual;font-size:.68rem}:root[data-theme] table:has(>#payrollOverviewTable) td:first-child{white-space:nowrap}
