/* Maintenance keeps its existing vehicle layout and task-state colors. */
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root {
  color: #f5f7fa !important;
  background: transparent !important;
  color-scheme: dark;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .vehicle-card {
  border-color: #3d4048 !important;
  background: #1b1d22 !important;
  color: #f5f7fa !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .vehicle-identity :is(h3, .plate) {
  color: #f5f7fa !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .bonus-progress {
  border-color: #36556b !important;
  background: #172635 !important;
  color: #f5f7fa !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .bonus-title :is(strong, b) {
  color: #f5f7fa !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.bonus-title small, .bonus-breakdown small, .bonus-breakdown p) {
  color: #bac8d5 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .bonus-breakdown strong {
  color: #f5f7fa !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.bonus-breakdown, .bonus-breakdown > div) {
  border-color: #36556b !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .progress-track {
  background: #344756 !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root .progress-explain {
  color: #8bcaff !important;
  background: transparent !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.tire-button, .plate-toggle) {
  border-color: #5fa9d1 !important;
  background: #182b3a !important;
  color: #a4d9ff !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.tire-button, .plate-toggle).saved {
  border-color: #5d9e88 !important;
  background: #153a30 !important;
  color: #92e4c6 !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.tire-button, .plate-toggle).returned {
  border-color: #ab8844 !important;
  background: #3d3019 !important;
  color: #ffdc8e !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.tire-button, .plate-toggle).upload-failed {
  border-color: #b96868 !important;
  background: #3d2327 !important;
  color: #ffb5b5 !important;
}
html[data-theme='dark'] body :is(.patrol-fleet-page, .manager-maintenance-surface) .patrol-root :is(.tire-button, .plate-toggle) :is(span, strong, svg) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-theme='dark'] body .manager-maintenance-surface .patrol-root .patrol-manager-actions .patrol-control {
  border-color: #5fa9d1 !important;
  background: #182b3a !important;
  color: #a4d9ff !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body .manager-maintenance-surface .patrol-root .patrol-manager-actions .patrol-control.active {
  border-color: #8bcaff !important;
  background: #244865 !important;
  color: #e6f4ff !important;
}
html[data-theme='dark'] body .manager-maintenance-surface .patrol-root :is(.manager-section, .manager-counts span, .history-view select, .manager-section input, .manager-section select, .manager-section textarea) {
  border-color: #3d4048 !important;
  background: #1b1d22 !important;
  color: #f5f7fa !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body .manager-maintenance-surface .patrol-root .manager-counts strong {
  color: #a4d9ff !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body .manager-maintenance-surface .patrol-root :is(.history-record span, .history-record small, .history-record > p, .manager-section summary span, .manager-section > p) {
  color: #bac8d5 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme='dark'] body .manager-maintenance-surface .patrol-root .history-record {
  border-color: #3d4048 !important;
}
