/* Generated by scripts/build-theme-palette.py. Component tokens: theme.css. */
@media screen {
:root[data-theme="dark"] .crm-daily-card { border: 1px solid #2f4b64; background: linear-gradient(145deg, #1b232f, #152a38); }
:root[data-theme="dark"] .crm-daily-card > .material-icons { color: #80bdef; background: #172b3c; }
:root[data-theme="dark"] .crm-daily-card strong { color: #bcd3e7; }
:root[data-theme="dark"] .crm-daily-card span { color: #c4d2de; }
:root[data-theme="dark"] .crm-daily-card small { color: #aeb8c1; }
:root[data-theme="dark"] .crm-daily-card.warning > .material-icons { color: #efc780; background: #423619; }
:root[data-theme="dark"] .crm-daily-card.danger > .material-icons { color: #e58a90; background: #3c171a; }
:root[data-theme="dark"] .crm-daily-card.outlook > .material-icons { color: #af96da; background: #24173c; }
:root[data-theme="dark"] .crm-customer-360-kpis article { border: 1px solid #334e61; background: #152a38; }
:root[data-theme="dark"] .crm-customer-360-kpis .material-icons { color: #80bdef; }
:root[data-theme="dark"] .crm-customer-360-kpis strong { color: #b8d5ea; }
:root[data-theme="dark"] .crm-customer-360-kpis small { color: #aeb8c1; }
:root[data-theme="dark"] .crm-customer-360-info-card { border: 1px solid #334e61; background: #1b232f; }
:root[data-theme="dark"] .crm-customer-360-info-heading { color: #b8d5ea; }
:root[data-theme="dark"] .crm-customer-360-info-heading .material-icons { color: #80bdef; }
:root[data-theme="dark"] .crm-customer-360-info-card dt { color: #aeb8c1; }
:root[data-theme="dark"] .crm-customer-360-info-card a { color: #80bdef; }
:root[data-theme="dark"] .crm-customer-360-note { color: #c4d3de; background: #3b3016; }
:root[data-theme="dark"] .crm-customer-360-note > .material-icons { color: #efc980; }
:root[data-theme="dark"] .crm-customer-360-activity-heading h3 { color: #b8d5ea; }
:root[data-theme="dark"] .crm-timeline::before { background: #1e303e; }
:root[data-theme="dark"] .crm-timeline-icon { border: 3px solid #36475e; color: #80bdef; background: #182d3e; box-shadow: 0 0 0 1px #1d3647; }
:root[data-theme="dark"] .crm-timeline-item.orange .crm-timeline-icon { color: #efc780; background: #423619; }
:root[data-theme="dark"] .crm-timeline-item.red .crm-timeline-icon { color: #e78890; background: #3c171a; }
:root[data-theme="dark"] .crm-timeline-item.green .crm-timeline-icon { color: #cbefb4; background: #2b4018; }
:root[data-theme="dark"] .crm-timeline-item.purple .crm-timeline-icon { color: #af97d8; background: #26173d; }
:root[data-theme="dark"] .crm-timeline-item > div { border: 1px solid #344d60; background: #1b232f; }
:root[data-theme="dark"] .crm-timeline-item time, :root[data-theme="dark"] .crm-timeline-item small { color: #afb8c0; }
:root[data-theme="dark"] .crm-timeline-item p { color: #c4d3de; }
:root[data-theme="dark"] .crm-view-switch { border: 1px solid #334e61; background: #1a2a35; }
:root[data-theme="dark"] .crm-kanban-column { border: 1px solid #324e62; background: #1a2a35; }
:root[data-theme="dark"] .crm-kanban-column.drag-over { border-color: #3d6a8f; background: #172d3c; }
:root[data-theme="dark"] .crm-kanban-column-header small { color: #b0b8c0; }
:root[data-theme="dark"] .crm-kanban-card { border: 1px solid #354e5f; background: #1b232f; }
:root[data-theme="dark"] .crm-kanban-card:hover { border-color: #2c5068; }
:root[data-theme="dark"] .crm-kanban-card-open small, :root[data-theme="dark"] .crm-kanban-card-open p { color: #aeb9c1; }
:root[data-theme="dark"] .crm-kanban-value { color: #b8d5ea; }
:root[data-theme="dark"] .crm-kanban-card-open time { color: #f4dbae; }
:root[data-theme="dark"] .crm-kanban-card-footer { border-top: 1px solid #384d5c; background: #1c2a32; }
:root[data-theme="dark"] .crm-kanban-drag-hint { color: #b0b8c0; }
:root[data-theme="dark"] .crm-kanban-empty { border: 1px dashed #384d5c; color: #b0b9c0; }
:root[data-theme="dark"] .report-follow-up { border: 1px solid #2d4f67; background: linear-gradient(135deg, #152938, #323a16); }
:root[data-theme="dark"] .report-follow-up-heading .material-icons { color: #80bdef; }
:root[data-theme="dark"] .report-follow-up-heading small { color: #aeb9c2; }
:root[data-theme="dark"] .crm-tour-schedule-summary-inner { border: 1px solid #2c5268; background: #162c39; color: #a2bbce; }
:root[data-theme="dark"] .crm-tour-schedule-summary-inner .success { color: #b0e18e; }
:root[data-theme="dark"] .crm-tour-schedule-summary-inner .warning { color: #efc580; }
:root[data-theme="dark"] .crm-tour-schedule-summary-inner.late { border-color: #68532c; background: #3b3017; }
:root[data-theme="dark"] .crm-tour-stop-schedule label { color: #aeb8c1; }
:root[data-theme="dark"] .crm-intro-body { background: radial-gradient(circle at 88% 18%, rgba(148, 193, 31, 0.2), transparent 30%),
    linear-gradient(120deg, #1b232f 0%, #162c3a 72%, #313c17 100%); }
:root[data-theme="dark"] .crm-error { border: 1px solid rgba(153, 65, 65, 0.24); background: #381515; }
:root[data-theme="dark"] .solar-fallback-state { border: 1px solid #68542c; background: #3c3117; color: #f5daad; }
:root[data-theme="dark"] .crm-open-tour-card { border-left: 4px solid #a78747; }
:root[data-theme="dark"] .crm-open-tour-icon { color: #f5ddad; background: #413319; }
:root[data-theme="dark"] .crm-metric.warning { border-left-color: #a78747; }
:root[data-theme="dark"] .crm-metric.warning > .material-icons { color: #f5ddad; background: #413319; }
:root[data-theme="dark"] .crm-metric.danger > .material-icons { color: #e58a8a; background: #3e1818; }
:root[data-theme="dark"] .crm-activity-card:hover { background: #2e3a16; }
:root[data-theme="dark"] .crm-tour-hero-body { background: radial-gradient(circle at 88% 18%, rgba(148, 193, 31, 0.2), transparent 30%),
    linear-gradient(120deg, #1b232f 0%, #162c3a 72%, #313c17 100%); }
:root[data-theme="dark"] .crm-acquisition-list-item:hover, :root[data-theme="dark"] .crm-acquisition-list-item.active { border-color: rgba(61, 106, 143, 0.42); }
:root[data-theme="dark"] .crm-acquisition-document-list button:hover { border-color: rgba(61, 106, 143, 0.4); }
:root[data-theme="dark"] .crm-outlook-calendar-badge { color: #ac9ad5; background: #21163a; }
:root[data-theme="dark"] .crm-outlook-calendar-error { border: 1px solid #68532c; color: #f5dcad; background: #3b3017; }
:root[data-theme="dark"] .crm-tour-calendar-legend-dot { background: #005ca9; }
:root[data-theme="dark"] .crm-tour-calendar-legend-dot.completed { background: #3f7412; }
:root[data-theme="dark"] .crm-tour-calendar-day-view.today { border-color: rgba(61, 106, 143, 0.4); }
:root[data-theme="dark"] button.crm-tour-calendar-day-view-entry:hover, :root[data-theme="dark"] button.crm-tour-calendar-day-view-entry:focus-visible { border-color: rgba(61, 106, 143, 0.48); }
:root[data-theme="dark"] .crm-tour-calendar-day-view-entry.single-visit .crm-tour-calendar-day-view-icon { color: #efc080; background: #403218; }
:root[data-theme="dark"] .crm-tour-calendar-day-view-entry.completed .crm-tour-calendar-day-view-icon { background: #2b4018; }
:root[data-theme="dark"] .crm-tour-calendar-day-view-entry.outlook { border-color: rgba(108, 78, 179, 0.25); background: #221538; }
:root[data-theme="dark"] .crm-tour-calendar-day-view-entry.outlook .crm-tour-calendar-day-view-icon { color: #ac9ad5; background: #26173d; }
:root[data-theme="dark"] .crm-tour-calendar-day-view-empty { border: 1px dashed #384d5c; }
:root[data-theme="dark"] .crm-tour-calendar-today-reports { border: 1px solid rgba(61, 106, 143, 0.32); background: linear-gradient(135deg, #162939 0%, #1b232f 100%); }
:root[data-theme="dark"] .crm-tour-calendar-quick-reports { background: #152a38; }
:root[data-theme="dark"] .crm-tour-calendar-quick-report { border: 1px solid #344d60; background: #1b232f; }
:root[data-theme="dark"] .crm-tour-calendar-quick-report > .material-icons { color: #efc980; }
:root[data-theme="dark"] .crm-tour-calendar-day:hover, :root[data-theme="dark"] .crm-tour-calendar-day:focus-visible { border-color: rgba(61, 106, 143, 0.55); }
:root[data-theme="dark"] .crm-tour-calendar-day.has-tours { border-color: rgba(61, 106, 143, 0.28); }
:root[data-theme="dark"] .crm-tour-calendar-day.has-outlook:not(.has-tours) { border-color: rgba(108, 78, 179, 0.3); background: #221538; }
:root[data-theme="dark"] .crm-tour-calendar-day.selected { background: #17293c; }
:root[data-theme="dark"] .crm-tour-calendar-count { background: #005ca9; }
:root[data-theme="dark"] .crm-tour-calendar-entry.single-visit:not(.completed) { color: #efc080; }
:root[data-theme="dark"] .crm-tour-calendar-entry.outlook { color: #ac9ad5; }
:root[data-theme="dark"] .crm-tour-planning-customer-selected { border: 1px solid rgba(150, 114, 64, 0.3); background: #3b3016; }
:root[data-theme="dark"] .crm-tour-planning-customer-selected > .material-icons { color: #efc180; }
:root[data-theme="dark"] .crm-tour-plan-new-button { background: #005ca9; }
:root[data-theme="dark"] .icon-btn.crm-tour-list-delete { color: #ea8b85; }
:root[data-theme="dark"] .icon-btn.crm-tour-list-delete:hover, :root[data-theme="dark"] .icon-btn.crm-tour-list-delete:focus-visible { color: #ec8383; background: #391816; }
:root[data-theme="dark"] .crm-tour-list-card:hover, :root[data-theme="dark"] .crm-tour-list-card.active { border-color: rgba(61, 106, 143, 0.42); }
:root[data-theme="dark"] .crm-tour-list-icon { background: #1b232f; }
:root[data-theme="dark"] .crm-tour-status { color: #f5ddad; background: #3b3016; }
:root[data-theme="dark"] .crm-tour-status.ready, :root[data-theme="dark"] .crm-tour-status.completed { color: #cef4ae; }
:root[data-theme="dark"] .crm-tour-stop-composer { background: linear-gradient(135deg, #152a38, #313c17); }
:root[data-theme="dark"] .crm-tour-stop-type-card { background: #1b232f; }
:root[data-theme="dark"] .crm-tour-stop-type-card:hover, :root[data-theme="dark"] .crm-tour-stop-type-card:focus-visible, :root[data-theme="dark"] .crm-tour-stop-type-card.active { border-color: rgba(61, 106, 143, 0.45); }
:root[data-theme="dark"] .crm-tour-stop-type-card > .material-icons:first-child { background: #005ca9; }
:root[data-theme="dark"] .crm-tour-stop-composer-content { background: #1b232f; }
:root[data-theme="dark"] .crm-tour-stop-number { background: #005ca9; }
:root[data-theme="dark"] .crm-tour-location-badge.ready { border-color: #55682c; background: #313c17; color: #d9f5ad; }
:root[data-theme="dark"] .crm-tour-location-badge.error { border-color: #682c2c; background: #391515; color: #e48b8b; }
:root[data-theme="dark"] .crm-tour-route-summary { background: #313c17; color: #d9f5ad; }
:root[data-theme="dark"] .crm-tour-route-summary.warning { background: #3b3016; color: #f5dcad; }
:root[data-theme="dark"] .driver-license-user-row { background: #1b232f; }
:root[data-theme="dark"] .driver-license-special-info { border: 1px solid #682c3c; background: #381520; }
:root[data-theme="dark"] .driver-license-image-field { background: #1b232f; }
:root[data-theme="dark"] .driver-license-corner-instructions span { background: #1b232f; }
:root[data-theme="dark"] .driver-license-corner-instructions .is-set { border-color: rgba(132, 157, 67, 0.48); }
:root[data-theme="dark"] .driver-license-corner-stage polygon, :root[data-theme="dark"] .driver-license-corner-stage polyline { fill: rgba(207, 235, 132, 0.14); stroke: #cfeb84; }
:root[data-theme="dark"] .driver-license-corner-stage .driver-license-corner-dot { fill: #e38cac; }
:root[data-theme="dark"] .driver-license-corner-magnifier { border: 4px solid #36475e; background: #1b232f; }
:root[data-theme="dark"] .driver-license-corner-label { stroke: rgba(193, 225, 216, 0.92); }
:root[data-theme="dark"] .driver-license-ocr-preview { background: #1b232f; }
:root[data-theme="dark"] .driver-license-ocr-bar { border: 1px solid rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .driver-license-ocr-progress > span { background: #005ca9; }
:root[data-theme="dark"] .driver-license-quality-summary { border: 1px solid rgba(100, 143, 61, 0.32); color: #cdf3af; }
:root[data-theme="dark"] .driver-license-quality-summary.has-warnings { border-color: rgba(143, 112, 61, 0.38); color: #f5daad; background: #3b3017; }
:root[data-theme="dark"] body { background: linear-gradient(180deg, #1b232f 0, var(--surface-2) 210px),
    var(--surface-2); }
:root[data-theme="dark"] .field-required-marker { background: #a92445; }
:root[data-theme="dark"] .btn:hover, :root[data-theme="dark"] .icon-btn:hover { background: #172e3d; }
:root[data-theme="dark"] .btn.primary { background: #005ca9; }
:root[data-theme="dark"] .btn.primary:hover { background: #004a89; }
:root[data-theme="dark"] .btn.success { background: #3f7412; }
:root[data-theme="dark"] .btn.danger { background: #a92445; }
:root[data-theme="dark"] .sidebar { background: rgba(27, 35, 47, 0.96); }
:root[data-theme="dark"] .nav-search .input { background: #1b232f; }
:root[data-theme="dark"] .nav-sublist { border-left: 2px solid rgba(61, 106, 143, 0.12); }
:root[data-theme="dark"] .nav-subitem { background: #1c2b38; }
:root[data-theme="dark"] .topbar { background: rgba(27, 35, 47, 0.97); }
:root[data-theme="dark"] .section-header { background: linear-gradient(90deg, #1b232f 0, #313c17 100%); }
:root[data-theme="dark"] .article-image-body { background: #1b232f; }
:root[data-theme="dark"] .article-image-placeholder { background: linear-gradient(180deg, #2d3815, #323d17); }
:root[data-theme="dark"] .article-change-journey-step { background: #1b232f; }
:root[data-theme="dark"] .article-change-journey-edit { background: rgba(27, 35, 47, 0.7); }
:root[data-theme="dark"] .article-change-journey-step.current { border-color: rgba(132, 157, 67, 0.42); background: #383b17; }
:root[data-theme="dark"] .article-change-journey-step.done { border-color: rgba(132, 157, 67, 0.4); }
:root[data-theme="dark"] .article-change-step-number { color: #cff5ad; border: 1px solid rgba(132, 157, 67, 0.42); }
:root[data-theme="dark"] .article-change-mode-card { background: #1b232f; }
:root[data-theme="dark"] .article-change-mode-card:hover { background: #152437; }
:root[data-theme="dark"] .article-change-mode-card.active { border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .article-change-flow-card { background: #1b232f; }
:root[data-theme="dark"] .article-change-selected-card { background: #1b232f; }
:root[data-theme="dark"] .article-change-list { background: #1b232f; }
:root[data-theme="dark"] .article-change-list-head { background: #16263b; }
:root[data-theme="dark"] .article-change-list-row { background: #1b232f; }
:root[data-theme="dark"] .article-change-list-row:hover { background: #323d17; }
:root[data-theme="dark"] .mode-chip { background: #1b232f; }
:root[data-theme="dark"] .mode-chip.active { color: #cff5ad; border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .article-change-compare-card { background: #1b232f; }
:root[data-theme="dark"] .article-change-compare-card.changed { border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .article-change-compare-meta { color: #afb7c0; }
:root[data-theme="dark"] .vehicle-hub-tab.active { color: #cbf5ad; border-color: rgba(132, 157, 67, 0.4); }
:root[data-theme="dark"] .car-charging-preview-note { border: 1px solid rgba(143, 115, 61, 0.18); background: #3e3417; color: #f5d9ad; }
:root[data-theme="dark"] .car-charging-choice-card { background: #1b232f; }
:root[data-theme="dark"] .car-charging-choice-card:hover, :root[data-theme="dark"] .car-charging-choice-card.active { border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .car-charging-warning { border: 1px solid rgba(168, 72, 100, 0.16); color: #e887a1; }
:root[data-theme="dark"] .car-charging-duplicate-note { border: 1px solid rgba(143, 61, 92, 0.16); color: #e887a1; }
:root[data-theme="dark"] .vehicle-check-vehicle-card:hover, :root[data-theme="dark"] .vehicle-check-vehicle-card.active, :root[data-theme="dark"] .vehicle-check-period-card:hover, :root[data-theme="dark"] .vehicle-check-period-card.active { border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .vehicle-check-period-card.missing { background: #382f15; }
:root[data-theme="dark"] .vehicle-check-period-chip:hover, :root[data-theme="dark"] .vehicle-check-period-chip.active { border-color: rgba(132, 157, 67, 0.45); }
:root[data-theme="dark"] .vehicle-check-callout { border: 1px solid rgba(132, 157, 67, 0.24); }
:root[data-theme="dark"] .vehicle-check-callout--soft { border-color: rgba(61, 106, 143, 0.14); }
:root[data-theme="dark"] .vehicle-check-readonly-note { border: 1px solid rgba(61, 106, 143, 0.12); }
:root[data-theme="dark"] .vehicle-check-field--overdue > span { color: #e28e9e; }
:root[data-theme="dark"] .vehicle-check-field--overdue .input, :root[data-theme="dark"] .vehicle-check-field--overdue.vehicle-check-field--readonly { border-color: rgba(177, 76, 96, 0.48); }
:root[data-theme="dark"] .vehicle-check-field--overdue strong, :root[data-theme="dark"] .vehicle-check-field--overdue .input { color: #ed829a; }
:root[data-theme="dark"] .vehicle-check-checkbox-card.checked { border-color: rgba(132, 157, 67, 0.4); }
:root[data-theme="dark"] .vehicle-fleet-thumbnail-placeholder { background: linear-gradient(135deg, rgba(27, 35, 47, 0.92), rgba(23, 48, 60, 0.88)); }
:root[data-theme="dark"] .vehicle-fleet-thumbnail-icon { fill: rgba(128, 188, 239, 0.72); }
:root[data-theme="dark"] .vehicle-fleet-summary:hover { background: rgba(27, 35, 47, 0.5); }
:root[data-theme="dark"] .vehicle-fleet-readonly-field--overdue { border-color: rgba(171, 74, 98, 0.45); }
:root[data-theme="dark"] .vehicle-leasing-metric.success { border-color: rgba(113, 143, 61, 0.38); }
:root[data-theme="dark"] .vehicle-leasing-metric.danger { border-color: rgba(171, 74, 98, 0.4); }
:root[data-theme="dark"] .vehicle-operation-metric.warning { border-color: rgba(164, 131, 70, 0.45); background: rgba(66, 55, 25, 0.55); }
:root[data-theme="dark"] .vehicle-operation-metric.danger { border-color: rgba(171, 74, 98, 0.45); }
:root[data-theme="dark"] .vehicle-operation-metric.success { border-color: rgba(125, 153, 66, 0.42); }
:root[data-theme="dark"] .vehicle-reservation-conflict { border: 1px solid rgba(178, 77, 101, 0.45); color: #eb849b; }
:root[data-theme="dark"] .vehicle-reservation-conflict div > span { color: #e4bec7; }
:root[data-theme="dark"] .vehicle-fleet-check-card.missing { background: #372e15; }
:root[data-theme="dark"] .vehicle-handover-driver-pill { border: 1px solid #54682c; background: #334118; }
:root[data-theme="dark"] .vehicle-handover-step.active { border-color: #2c5168; background: #162b3a; }
:root[data-theme="dark"] .vehicle-handover-step.done { border-color: #55682c; background: #313c17; }
:root[data-theme="dark"] .vehicle-handover-step .vehicle-handover-step-check { color: #acb9c3; }
:root[data-theme="dark"] .vehicle-handover-acknowledgement.invalid { background: #39161d; }
:root[data-theme="dark"] .vehicle-handover-footer [data-action="vehicle-handover-submit-return"]:disabled { background: #232e38; }
:root[data-theme="dark"] .vehicle-handover-footer [data-action="vehicle-handover-submit-return"]:disabled:hover { background: #232e38; }
:root[data-theme="dark"] .vehicle-editor-image { background: #1b232f; }
:root[data-theme="dark"] .vehicle-damage-location { background: #2a3815; }
:root[data-theme="dark"] .vehicle-damage-location-map { background: #1b232f; }
:root[data-theme="dark"] .vehicle-damage-location-map:focus-visible { outline: 3px solid rgba(132, 157, 67, 0.35); }
:root[data-theme="dark"] .vehicle-damage-location-wheel { fill: #bfcfe3; }
:root[data-theme="dark"] .vehicle-damage-location-window { stroke: rgba(128, 186, 239, 0.45); }
:root[data-theme="dark"] .vehicle-damage-location-centerline { stroke: rgba(128, 186, 239, 0.25); }
:root[data-theme="dark"] .vehicle-damage-location-marker { fill: #ed8399; }
:root[data-theme="dark"] .vehicle-damage-location-compact { background: #334118; border-color: #54682c; }
:root[data-theme="dark"] .vehicle-damage-photo { background: #1b232f; }
:root[data-theme="dark"] .vehicle-damage-readonly-description { background: #1b232f; }
:root[data-theme="dark"] .vehicle-damage-autosave-status.warning { color: #f5ddad; }
:root[data-theme="dark"] .vehicle-damage-third-party { background: #152437; }
:root[data-theme="dark"] .vehicle-damage-pending-photo { background: #1b232f; }
:root[data-theme="dark"] .vehicle-damage-pending-photo .icon-btn { background: rgba(27, 35, 47, 0.92); }
:root[data-theme="dark"] .vehicle-damage-unsaved-note { color: #f5ddad; }
:root[data-theme="dark"] .vehicle-damage-unsaved-warning { border: 1px solid #682c2c; background: #391618; color: #ef809f; }
:root[data-theme="dark"] .route-coordinate-warning { color: #f5d9ad; background: #3e3417; }
:root[data-theme="dark"] .route-coordinate-warning .material-icons { color: #efc980; }
:root[data-theme="dark"] .tour-archive-table .pause-row { color: #eb84bf; }
:root[data-theme="dark"] .tour-archive-table tr.clickable-row:hover td { background: #334118; }
:root[data-theme="dark"] .tour-archive-main-row.expanded td { background: #303c17; }
:root[data-theme="dark"] .tour-archive-detail-row td { background: #2e3815; }
:root[data-theme="dark"] .waypoint-number.depot { background: #005ca9; }
:root[data-theme="dark"] .toggle-track { background: #1e2d3c; box-shadow: inset 0 0 0 1px #253240; }
:root[data-theme="dark"] .toggle-track::after { background: #1b232f; }
:root[data-theme="dark"] .data-table th { background: #172d3c; }
:root[data-theme="dark"] .data-table tr:hover td { background: #2f3b16; }
:root[data-theme="dark"] .table-toolbar { background: #2d3815; }
:root[data-theme="dark"] .table-footer { background: #2d3815; }
:root[data-theme="dark"] .user-admin-toolbar { background: #2d3815; }
:root[data-theme="dark"] .temp-control-main-row.expanded td { background: #2f3b16; }
:root[data-theme="dark"] .temp-control-detail-row td { background: #2d3815; }
:root[data-theme="dark"] .bestellungen-main-row.expanded td, :root[data-theme="dark"] .bestellung-article-main-row.expanded td { background: #2f3b16; }
:root[data-theme="dark"] .bestellungen-detail-row td, :root[data-theme="dark"] .bestellung-article-detail-row td { background: #2d3815; }
:root[data-theme="dark"] .badge.success { color: #d1f5ad; }
:root[data-theme="dark"] .badge.warning { color: #f5daad; background: #413319; }
:root[data-theme="dark"] .badge.danger { color: #eeb4b4; background: #3e1818; }
:root[data-theme="dark"] .toast.error { background: #a92445; }
:root[data-theme="dark"] .report-tab { background: #312828; }
:root[data-theme="dark"] .report-tab.active { background: #005ca9; }
:root[data-theme="dark"] .report-mini-table th { background: #162739; }
:root[data-theme="dark"] .danger-icon { background: #3c1717; }
:root[data-theme="dark"] .kunde-group-panel { border: 1px solid var(--border, #36505e); background: var(--surface, #1b232f); }
:root[data-theme="dark"] .kunde-group-site[aria-pressed="true"] { border-color: #3d718f; background: #172e3c; color: #addaf5; }
:root[data-theme="dark"] .kunde-group-context { background: #172e3c; color: #addaf5; }
:root[data-theme="dark"] .kunde-workspace-tabs [role="tab"][aria-selected="true"] { background: #005ca9; }
:root[data-theme="dark"] .financial-workspace-tabs { border: 1px solid #2c4f68; background: #172a3b; }
:root[data-theme="dark"] .financial-workspace-tabs [role="tab"] { color: #a4b8cb; }
:root[data-theme="dark"] .financial-workspace-tabs [role="tab"]:hover { background: #182d41; color: #80c2ef; }
:root[data-theme="dark"] .financial-workspace-tabs [role="tab"][aria-selected="true"] { border-color: #3d6e8f; }
:root[data-theme="dark"] .financial-workspace-tabs [role="tab"]:focus-visible { outline: 3px solid #2c4968; }
:root[data-theme="dark"] .financial-chart-controls [aria-pressed="true"] { border-color: #3d8f88; }
:root[data-theme="dark"] .financial-supply-option[aria-pressed="true"] { background: #005ca9; }
:root[data-theme="dark"] .financial-article-link { color: var(--primary, #80baef); }
:root[data-theme="dark"] .financial-trend-bar { background: #005ca9; }
:root[data-theme="dark"] .financial-trend-bar.is-ongoing { background: repeating-linear-gradient(135deg, #005ca9 0 4px, var(--brand-soft) 4px 8px); }
:root[data-theme="dark"] .storage-create-details { background: #2d3815; }
:root[data-theme="dark"] .storage-choice-row { background: #1b232f; }
:root[data-theme="dark"] .storage-card-header { background: #2d3815; }
:root[data-theme="dark"] .storage-list-row { background: #1b232f; }
:root[data-theme="dark"] .storage-lookup-row { background: #1b232f; }
:root[data-theme="dark"] .storage-lookup-row:hover { border-color: rgba(132, 157, 67, 0.34); }
:root[data-theme="dark"] .storage-add-article-form { background: #1b232f; }
:root[data-theme="dark"] .storage-mobile-article-card { background: #1b232f; }
:root[data-theme="dark"] .storage-mobile-article-card.active { border-color: rgba(132, 157, 67, 0.42); background: #2d3815; }
:root[data-theme="dark"] .storage-mobile-sheet-selection { background: #2d3815; }
:root[data-theme="dark"] .storage-article-actions { background: #1b232f; }
:root[data-theme="dark"] .storage-article-history-field { background: #1b232f; }
:root[data-theme="dark"] .storage-article-history-field.required { border-color: rgba(171, 74, 74, 0.24); background: #371515; }
:root[data-theme="dark"] .storage-article-history-field.has-error { border-color: rgba(171, 74, 74, 0.42); }
:root[data-theme="dark"] .storage-article-history-field.has-error .textarea { border-color: rgba(171, 74, 74, 0.55); }
:root[data-theme="dark"] .storage-duplicate-alert { border: 2px solid #682c2c; background: #391616; }
:root[data-theme="dark"] .storage-duplicate-alert-text { color: #ee8981 !important; }
:root[data-theme="dark"] .history-to.positive { color: #b9ecb6; }
:root[data-theme="dark"] .history-to.negative { color: #ed8297; }
:root[data-theme="dark"] .history-delta.positive { color: #b9ecb6; background: #1f4219; }
:root[data-theme="dark"] .history-delta.negative { color: #ed8297; background: #411921; }
:root[data-theme="dark"] .storage-detail-item { background: #1b232f; }
:root[data-theme="dark"] .storage-modal-section { background: #1b232f; }
:root[data-theme="dark"] .storage-chart-grid { stroke: rgba(203, 215, 210, 0.14); }
:root[data-theme="dark"] .storage-chart-grid.subtle { stroke: rgba(203, 215, 210, 0.08); }
:root[data-theme="dark"] .storage-chart-line.order { stroke: #8bade4; }
:root[data-theme="dark"] .storage-chart-dot.order, :root[data-theme="dark"] .storage-chart-legend .order { stroke: #8bade4; fill: #8bade4; }
:root[data-theme="dark"] .storage-chart-line.parcel { stroke: #da9995; }
:root[data-theme="dark"] .storage-chart-dot.parcel, :root[data-theme="dark"] .storage-chart-legend .parcel { stroke: #da9995; fill: #da9995; }
:root[data-theme="dark"] .storage-modal-header { background: #2d3815; }
:root[data-theme="dark"] .page-note.warning { color: #f5d9ad; }
:root[data-theme="dark"] .solar-setup-state { border: 1px solid #68562c; background: #3b3017; color: #f5dcad; }
:root[data-theme="dark"] .solar-setup-state span:not(.material-icons) { color: #c8bba7; }
:root[data-theme="dark"] .solar-flow-board { background: linear-gradient(rgba(27, 35, 47, 0.78), rgba(27, 35, 47, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 31px, #202e37 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #202e37 32px),
    #1a2a35; }
:root[data-theme="dark"] .solar-flow-path { stroke: #aabac6; }
:root[data-theme="dark"] .solar-flow-node { border: 1px solid #364d5e; background: rgba(27, 35, 47, 0.96); }
:root[data-theme="dark"] .solar-node > .material-icons { color: #efcf80; }
:root[data-theme="dark"] .solar-building-node > .material-icons { color: #91dfcd; }
:root[data-theme="dark"] .solar-flow-wallbox > .material-icons { color: #91dfcd; }
:root[data-theme="dark"] .solar-battery-ring { background: conic-gradient(#08a9d2 calc(var(--battery-soc) * 1%), #20323b 0); }
:root[data-theme="dark"] .solar-battery-ring::before { background: #1b232f; }
:root[data-theme="dark"] .solar-battery-ring .material-icons { color: #80d4ef; }
:root[data-theme="dark"] .solar-flow-hub { border: 4px solid #36475e; }
:root[data-theme="dark"] .solar-metric.production > .material-icons { color: #dff5ad; background: #354219; }
:root[data-theme="dark"] .solar-metric.export > .material-icons { color: #99d6ba; background: #183f28; }
:root[data-theme="dark"] .solar-metric.battery > .material-icons { color: #80d4ef; background: #18373e; }
:root[data-theme="dark"] .solar-wallbox-card { border-left: 4px solid #3c4b58; }
:root[data-theme="dark"] .solar-wallbox-card.charging { background: #2e3915; }
:root[data-theme="dark"] .solar-wallbox-card.charging .solar-wallbox-icon { color: #d6f5ad; }
:root[data-theme="dark"] .forecast-band { fill: #c7de91; }
:root[data-theme="dark"] .forecast-line { stroke: #ddf5ad; }
:root[data-theme="dark"] .forecast-point { fill: #ddf5ad; }
:root[data-theme="dark"] .solar-forecast-tip { border-left: 3px solid #7c8f3d; background: #343d17; }
:root[data-theme="dark"] .solar-release-advice { background: #343d17; border: 1px solid #58682c; }
:root[data-theme="dark"] .solar-release-confirm { border: 1px solid var(--line, #36495d); }
:root[data-theme="dark"] .solar-charge-mode label { border: 1px solid var(--line, #36495d); background: var(--surface, #1b232f); }
:root[data-theme="dark"] .solar-charge-mode label:has(input:checked) { background: #343d17; }
:root[data-theme="dark"] .solar-month-fill { background: #005ca9; }
:root[data-theme="dark"] .solar-month-column.partial .solar-month-fill { background: repeating-linear-gradient(135deg, #005ca9 0 5px, #695628 5px 9px); }
:root[data-theme="dark"] .solar-schedule-field input { border: 1px solid var(--line, #36495d); background: var(--panel, #1b232f); }
:root[data-theme="dark"] .solar-scheduled-release { background: #343d17; border-color: #58682c; }
:root[data-theme="dark"] .solar-release-progress-card { background: var(--surface, #1b232f); color: var(--ink, #bdd0e5); }
:root[data-theme="dark"] .solar-release-spinner { border: 5px solid #53652f; border-top-color: var(--brand, #738f3d); }
:root[data-theme="dark"] .inventory-hero { border: 1px solid #2d5167; }
:root[data-theme="dark"] .inventory-hero .btn:not(.accent) { border-color: rgba(54, 71, 94, 0.32); background: rgba(27, 35, 47, 0.12); }
:root[data-theme="dark"] .inventory-eyebrow { color: #d5ee81; }
:root[data-theme="dark"] .inventory-metric.general > .material-icons { color: #d8f1b1; background: #364219; }
:root[data-theme="dark"] .inventory-metric.warning > .material-icons { color: #f5daad; background: #413319; }
:root[data-theme="dark"] .inventory-model-card:hover, :root[data-theme="dark"] .inventory-model-card.active { border-color: #76a7c4; background: #162d3a; }
:root[data-theme="dark"] .inventory-card { background: #1b232f; }
:root[data-theme="dark"] .inventory-card:hover { border-color: #2c5168; }
:root[data-theme="dark"] .inventory-card-icon { background: #172d3c; }
:root[data-theme="dark"] .inventory-card-heading strong { color: #b8d5ea; }
:root[data-theme="dark"] .inventory-card-meta { color: #abbac4; }
:root[data-theme="dark"] .inventory-card-footer { border-top: 1px solid #35505f; background: #1c2a32; }
:root[data-theme="dark"] .inventory-facts { background: #192633; }
:root[data-theme="dark"] .inventory-callout { border: 1px solid #2c5268; color: #a2bbce; background: #162c39; }
:root[data-theme="dark"] .inventory-callout.success { border-color: #57682c; background: #323d17; }
:root[data-theme="dark"] .inventory-callout.success > .material-icons { color: #c2e58a; }
:root[data-theme="dark"] .inventory-assignment-current { background: #182a36; }
:root[data-theme="dark"] .inventory-booking-list article { background: #1b232f; }
:root[data-theme="dark"] .inventory-booking-list article span:not(.badge) { color: #a8bac7; }
:root[data-theme="dark"] .inventory-model-hint { color: #a2bbce; background: #162d3a; }
:root[data-theme="dark"] .solar-optimization-feedback { background: #162b3b; border-left: 3px solid #3d6c8f; }
:root[data-theme="dark"] .solar-optimization-feedback small { color: #aab6c6; }
:root[data-theme="dark"] .solar-optimization-warning { color: #f5d4ad; }
:root[data-theme="dark"] .solar-charge-mode .solar-optimization-goal { background: #162a39; }
:root[data-theme="dark"] .solar-optimization-goal input { border: 1px solid #324a62; }
:root[data-theme="dark"] .solar-optimization-goal p { color: #aab6c6; }
:root[data-theme="dark"] .solar-cards-dialog { border: 1px solid #2c4a68; color: #bbd1e7; background: #1b232f; }
:root[data-theme="dark"] .solar-card-item { border-top: 1px solid #2c4a68; }
:root[data-theme="dark"] .commercial-summary { border: 1px solid #334e61; background: #152a38; }
:root[data-theme="dark"] .commercial-summary .financial-kpi { background: #1b232f; }
:root[data-theme="dark"] .commercial-summary small { color: #acb8c3; }
:root[data-theme="dark"] .assortment-cell.is-negative { color: #ef9c80; }
:root[data-theme="dark"] .crm-detail-section { border: 1px solid #304d64; background: #1b232f; }
:root[data-theme="dark"] .crm-detail-section h3 { color: #80c2ef; }
:root[data-theme="dark"] .crm-detail-link-hint { color: #adf5ef; }
:root[data-theme="dark"] .assortment-analysis .financial-article-link:hover { background: #172a3b; }
:root[data-theme="dark"] .assortment-analysis .financial-article-link .financial-booking-description { color: #c0d4e2; }
:root[data-theme="dark"] .crm-products-dialog { border: 1px solid #2c4f68; color: #c2d1e0; }
:root[data-theme="dark"] .crm-products-dialog > header { background: #172a3b; }
:root[data-theme="dark"] .crm-products-dialog h2 { color: #80c2ef; }
:root[data-theme="dark"] .crm-products-list li { border-bottom: 1px solid #304d64; }
:root[data-theme="dark"] .crm-product-link strong { color: #80c2ef; }
:root[data-theme="dark"] .crm-product-link small { color: #adf5ef; }
:root[data-theme="dark"] .crm-product-link:hover { background: #172a3b; }
:root[data-theme="dark"] .crm-product-link:focus-visible, :root[data-theme="dark"] .crm-group-link:focus-visible { outline: 3px solid #2c4968; }
:root[data-theme="dark"] .crm-group-sort:hover { background: #192e41; }
:root[data-theme="dark"] .crm-group-sort:focus-visible { outline: 3px solid #2c4968; }
:root[data-theme="dark"] .crm-group-sort [data-sort-arrow] { color: #a9bac6; }
:root[data-theme="dark"] [data-group-sort-table] th[aria-sort="ascending"], :root[data-theme="dark"] [data-group-sort-table] th[aria-sort="descending"] { background: #193041; color: #80c2ef; }
:root[data-theme="dark"] [data-group-sort-table] th[aria-sort="ascending"] [data-sort-arrow], :root[data-theme="dark"] [data-group-sort-table] th[aria-sort="descending"] [data-sort-arrow] { color: #80c2ef; }
:root[data-theme="dark"] .crm-group-history { border-bottom: 1px solid #304d64; }
:root[data-theme="dark"] .crm-group-history h3 { color: #80c2ef; }
:root[data-theme="dark"] .crm-group-year-cards article { border: 1px solid #304d64; background: #172736; }
:root[data-theme="dark"] .crm-group-year-cards small { color: #acb6c3; }
:root[data-theme="dark"] .crm-group-history svg text { fill: #acb6c3; }
:root[data-theme="dark"] .crm-analysis-controls { border: 1px solid #305064; background: #162a39; }
:root[data-theme="dark"] .crm-analysis-controls label { color: #c6cfdd; }
:root[data-theme="dark"] .crm-analysis-controls select { border: 1px solid #334e61; background-color: #1b232f; color: #bbc8e7; }
:root[data-theme="dark"] .crm-analysis-controls select:focus-visible { outline: 3px solid #2c5068; }
:root[data-theme="dark"] .financial-invoice-dialog { border-top: 4px solid var(--accent, #3d6e8f); background: #1b232f; }
:root[data-theme="dark"] .financial-invoice-meta { background: #1a2d38; }
:root[data-theme="dark"] .financial-invoice-dialog .financial-line-table th { background: #1a2e3c; }
:root[data-theme="dark"] .financial-invoice-dialog .financial-line-table tbody tr:nth-child(even) { background: #172736; }
:root[data-theme="dark"] .financial-invoice-cancelled { color: #e09f8f; }
:root[data-theme="dark"] .financial-invoice-total { background: #1a2e3c; }
:root[data-theme="dark"] .iv-page { --iv-line: #2e4865; --iv-muted: #acb7c3; }
:root[data-theme="dark"] .iv-global-banner { border: 1px solid #4f682c; border-left: 4px solid #74933f; background: #303d17; }
:root[data-theme="dark"] .iv-tabs { background: #1b232f; }
:root[data-theme="dark"] .iv-tab { color: #a6b6ca; }
:root[data-theme="dark"] .iv-tab.active { background: #172b3c; color: #80bdef; }
:root[data-theme="dark"] .iv-tab:hover { background: #172b3a; }
:root[data-theme="dark"] .iv-preview { background: #3b3217; border: 1px solid #68562c; }
:root[data-theme="dark"] .iv-notice, :root[data-theme="dark"] .iv-record { background: #1b232f; }
:root[data-theme="dark"] .iv-notice > .material-icons { color: #80bdef; }
:root[data-theme="dark"] .iv-notice.danger { border-color: #68352c; background: #381c15; }
:root[data-theme="dark"] .iv-notice.danger > .material-icons { color: #e2988d; }
:root[data-theme="dark"] .iv-calendar thead th { background: #16283a; }
:root[data-theme="dark"] .iv-calendar tbody th { background: #152637; }
:root[data-theme="dark"] .iv-calendar th .btn { color: #80bdef; }
:root[data-theme="dark"] .iv-calendar-booking { background: #16243b; color: #8eb6e1; }
:root[data-theme="dark"] .iv-calendar-booking.issued { background: #403218; }
:root[data-theme="dark"] .iv-dialog .iv-position { background: #152037; }
:root[data-theme="dark"] .iv-known-damage { background: #3e3217; color: #eed8b4; }
:root[data-theme="dark"] .iv-condition-photo img { background: #1b2736; }
:root[data-theme="dark"] .iv-acceptance { border-left: 3px solid #3d6a8f; background: #172a3b; }
:root[data-theme="dark"] .iv-confirmed { color: #bce6d0; background: #173c24; }
:root[data-theme="dark"] .iv-label-preview { border: 1px dashed #39485b; }
}
