/* Workshop lists, job details and review queues. Existing markup controls every
   role, view and action. Keep these rules after the original interface styles. */
body.rd-interface {
  --order-ink: #102d3c;
  --order-muted: #526774;
  --order-line: #dbe4e1;
  --order-soft: #f4f8f5;
  --order-primary: #075b4e;
  --order-hover: #e7f2eb;
  --order-good-bg: #e5f1e7;
  --order-good: #25583b;
  --order-wait-bg: #fff1d7;
  --order-wait: #754810;
  --order-danger-bg: #fbeae6;
  --order-danger: #953a30;
  --order-quiet-bg: #edf1ef;
  --order-quiet: #3e5657;
}

body.rd-interface #workOrdersSection,
body.rd-interface #orderListControls,
body.rd-interface #orders,
body.rd-interface :is(#advisorReviewRows, #billingReviewRows, #billingQueueRows, #extraQueue, #exceptionQueue),
body.rd-interface :is(#orderArchivePanel, #archiveDetailsContent, #vehicleHistoryPanel, #mechanicHistoryPanel) {
  min-width: 0;
}

body.rd-interface #workOrdersSection :is(button, summary, input, select, textarea):focus-visible,
body.rd-interface :is(#orderArchivePanel, #vehicleHistoryPanel, #extraQueuePanel, #advisorReviewPanel, #billingReviewPanel)
  :is(button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #28796b;
  outline-offset: 2px;
}

body.rd-interface #quickOrderTabs {
  border-color: var(--order-line);
  gap: .35rem;
}
body.rd-interface #workOrdersSection #quickOrderTabs button {
  min-height: 44px;
  border-radius: 8px;
  color: var(--order-muted);
  font-weight: 630;
  font-size: .875rem;
  white-space: normal;
}
body.rd-interface #quickOrderTabs button:hover { background: var(--order-soft); }
body.rd-interface :is(#quickOrderTabs, #historySwitchPanel, #mechanicHistoryPanel) button[aria-pressed=true] {
  background: var(--order-hover) !important;
  color: var(--order-primary) !important;
  border-color: #cbdfd1 !important;
}
body.rd-interface #orderListFilters>#advancedFilters { align-self: start; }
body.rd-interface :is(#orderListFilters, #advancedFilters, #mechanicHistoryPanel, #archiveSearchForm, #vehicleHistoryPanel)
  :is(label, #filterCount, #archiveInfo, #vehicleHistoryInfo, #mechanicHistoryInfo) {
  color: var(--order-muted);
  font-size: .875rem;
  line-height: 1.45;
}
body.rd-interface #orderListFilters>#advancedFilters>summary {
  min-height: 44px;
  padding-block: .55rem;
  color: var(--order-primary);
  font-size: .875rem;
}
body.rd-interface #orderListFilters #orderSearch,
body.rd-interface :is(#mechanicHistoryForm, #archiveSearchForm, #vehicleHistoryPanel, #advancedFilters)
  :is(input:not([type="checkbox"]), select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-color: #c4d4cf;
  color: var(--order-ink);
  background: #fff;
}
body.rd-interface #orderListFilters #orderSearch::placeholder { color: var(--order-muted); font-size: .875rem; }

/* The disclosure heading sits above the selects on desktop. Align the fields below it. */
@media (width > 1000px) {
  body.rd-interface #orderListFilters:has(> #advancedFilters[open]) > .search-row {
    align-self: end;
  }
  body.rd-interface #orderListFilters > #advancedFilters > .search-row {
    align-items: end;
  }
  body.rd-interface #orderListFilters > #advancedFilters > .search-row > label {
    gap: 7px;
  }
}


body.rd-interface #billingQueueSearchForm { align-items: end; }
body.rd-interface #billingQueueSearchForm :is(input[type="search"], button) { min-height: 44px; }

body.rd-interface #bulkCloseToolbar,
body.rd-interface #billingBulkToolbar {
  background: var(--order-soft);
  border-color: var(--order-line);
  border-radius: 12px;
  padding: .875rem 1rem;
}
body.rd-interface :is(#bulkCloseToolbar, #billingBulkToolbar, #billingCompleteQueue) :is(button, summary) {
  min-height: 44px;
  font-size: .875rem;
  white-space: normal;
  line-height: 1.35;
}
body.rd-interface #bulkCloseToolbar>.small,
body.rd-interface :is(#bulkCloseCount,#billingSelectedCount,#billingBatchFeedback) {
  font-size: .8125rem;
  color: var(--order-muted);
}
body.rd-interface :is(#bulkCloseSubmit, #billingConfirmSelected) {
  background: var(--order-primary);
  color: white;
}
body.rd-interface :is(#bulkCloseToolbar,#billingBulkToolbar) button:disabled {
  color: #526774;
  background: #e9eeeb;
  border-color: #d5dfd9;
  opacity: 1;
}

body.rd-interface #workOrdersSection {
  --order-columns: minmax(0,1.7fr) minmax(0,.9fr) minmax(85px,.55fr) minmax(95px,.6fr);
  --order-row-gap: clamp(10px,1.5vw,18px);
  --order-row-pad: 1rem;
}
body.rd-interface #rdOrderColumns {
  grid-template-columns: var(--order-columns);
  gap: var(--order-row-gap);
  padding: .7rem var(--order-row-pad);
  border-color: var(--order-line);
  color: var(--order-muted);
  background: #edf3ef;
  font-size: .75rem;
}
body.rd-interface #orders { border-color: var(--order-line); }
body.rd-interface #workOrdersSection .order-list-card .order-list-open {
  grid-template-columns: var(--order-columns) !important;
  gap: var(--order-row-gap) !important;
  min-height: 84px !important;
  padding: .9rem var(--order-row-pad) !important;
}
body.rd-interface #workOrdersSection .order-list-card .order-list-open:not(:disabled):hover {
  background: var(--order-soft) !important;
}
body.rd-interface #workOrdersSection .order-list-card .order-list-open:focus-visible {
  outline-offset: -3px;
}
body.rd-interface #workOrdersSection .order-list-main {
  grid-template-columns: 36px minmax(0,1fr) !important;
  padding: 0 !important;
}
body.rd-interface #workOrdersSection .order-list-vehicle-icon {
  width: 36px;
  height: 36px;
  background: var(--order-soft) !important;
  color: var(--order-primary) !important;
  border: 1px solid var(--order-line);
}
body.rd-interface #workOrdersSection .order-list-vehicle-icon .app-icon { width: 21px; height: 21px; }
body.rd-interface #workOrdersSection .order-list-title {
  color: var(--order-ink) !important;
  font-size: .9375rem !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection .order-list-meta,
body.rd-interface #workOrdersSection .order-list-services,
body.rd-interface #workOrdersSection .order-list-hint {
  color: var(--order-muted) !important;
  font-size: .8125rem !important;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection .order-list-meta :is(.rd-plate-text,.order-list-plate) {
  font-size: inherit;
  color: var(--order-ink);
}
body.rd-interface #workOrdersSection .order-list-hint--attention { color: var(--order-wait) !important; }
body.rd-interface #workOrdersSection .order-list-hint--urgent { color: var(--order-danger) !important; }
body.rd-interface #workOrdersSection .order-list-hint--calendar { color: var(--order-primary) !important; }
body.rd-interface #workOrdersSection .order-list-mechanic-slot {
  font-size: .875rem !important;
  color: var(--order-muted);
  flex-wrap: wrap;
}
body.rd-interface #workOrdersSection .order-list-mechanic-slot .rd-team-names {
  font-size: .8125rem;
  color: var(--order-ink);
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection .order-list-progress,
body.rd-interface #workOrdersSection .order-list-progress-percent {
  color: var(--order-muted) !important;
  font-size: .75rem !important;
}
body.rd-interface #workOrdersSection .order-list-progress-track {
  height: 5px;
  background: #dce7df;
}
body.rd-interface #workOrdersSection .order-list-progress-track>span {
  background: #548365;
}
body.rd-interface #workOrdersSection .order-list-status,
body.rd-interface #workOrdersSection .simple-order-status {
  background: var(--order-quiet-bg);
  color: var(--order-quiet);
  font-size: .75rem !important;
  border-radius: 999px;
  padding: .34rem .55rem;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
}
body.rd-interface #workOrdersSection :is(.order-list-tone--running,.order-list-tone--finished) .order-list-status {
  background: var(--order-good-bg);
  color: var(--order-good);
}
body.rd-interface #workOrdersSection .order-list-tone--claimed .order-list-status {
  background: #e7eff3;
  color: #355c6d;
}
body.rd-interface #workOrdersSection :is(.order-list-tone--paused,.order-list-tone--attention) .order-list-status {
  background: var(--order-wait-bg);
  color: var(--order-wait);
}
body.rd-interface #workOrdersSection .order-list-tone--urgent .order-list-status {
  background: var(--order-danger-bg);
  color: var(--order-danger);
}
body.rd-interface #workOrdersSection .order-list-open-action {
  color: var(--order-primary) !important;
  font-size: .8125rem !important;
}
body.rd-interface #workOrdersSection #orders .bulk-close-card {
  border-color: var(--order-line);
}
body.rd-interface #orders .bulk-close-card>label {
  min-height: 44px;
  color: var(--order-muted);
}
body.rd-interface #orders .bulk-close-card input[type=checkbox],
body.rd-interface #billingBulkToolbar input[type=checkbox],
body.rd-interface #billingReviewRows input[type=checkbox] {
  accent-color: var(--order-primary);
}
body.rd-interface :is(#ordersPager,#archivePager,#mechanicHistoryPager,#billingPager) {
  font-size: .875rem;
  justify-content: space-between;
}
body.rd-interface :is(#ordersPager,#archivePager,#mechanicHistoryPager,#billingPager) button {
  min-height: 44px;
  font-size: .8125rem;
}

body.rd-interface #orderDetailToolbar {
  gap: .65rem 1rem;
  flex-wrap: wrap;
}
body.rd-interface #orderBackToList {
  min-height: 44px;
  color: var(--order-primary);
  font-size: .875rem;
  border-color: var(--order-line);
}
body.rd-interface #orderDetailTitle { color: var(--order-muted); font-size: .8125rem; overflow-wrap: anywhere; }
body.rd-interface #workOrdersSection .simple-order-hero {
  border-radius: 14px;
  border-color: var(--order-line);
  padding: clamp(1rem,2.3vw,1.5rem);
}
body.rd-interface #workOrdersSection :is(.simple-order-title, .simple-task-heading) { min-width: 0; }
body.rd-interface #workOrdersSection .simple-order-eyebrow {
  font-size: .75rem !important;
  color: var(--order-muted);
}
body.rd-interface #workOrdersSection .simple-order-title h3 {
  font-size: 1.15rem;
  color: var(--order-muted);
}
body.rd-interface #workOrdersSection .simple-order-vehicle {
  color: var(--order-ink);
  font-size: clamp(1.5rem,2.5vw,2.15rem);
  font-weight: 720;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection :is(.simple-order-meta,.simple-progress-heading) {
  color: var(--order-muted);
  font-size: .875rem;
}
body.rd-interface #workOrdersSection .simple-progress-heading :is(strong, span) {
  color: var(--order-muted) !important;
  font-size: inherit;
}
body.rd-interface #workOrdersSection .simple-progress-track {
  height: 6px;
  background: #dce7df;
}
body.rd-interface #workOrdersSection .simple-progress-track>span { background: #548365; }
body.rd-interface #workOrdersSection .simple-workspace-grid {
  grid-template-columns: minmax(0,1.85fr) minmax(205px,.85fr);
  gap: clamp(.75rem,2vw,1.5rem);
}
body.rd-interface #workOrdersSection :is(.simple-section-heading h4,.simple-side-card h4) {
  color: var(--order-ink);
  font-size: 1.125rem;
}
body.rd-interface #workOrdersSection .simple-section-heading>span {
  background: var(--order-hover);
  color: var(--order-primary);
  font-size: .8125rem;
}
body.rd-interface #workOrdersSection :is(.simple-task-card,.simple-side-card) {
  border-color: var(--order-line);
  border-radius: 13px;
}
body.rd-interface #workOrdersSection .simple-task-card.is-done {
  background: #f4faf5;
  border-color: #cfe2d5;
}
body.rd-interface #workOrdersSection .simple-task-number {
  background: var(--order-soft);
  color: var(--order-primary);
  font-size: .8125rem;
}
body.rd-interface #workOrdersSection .simple-task-card.is-done .simple-task-number {
  background: var(--order-good-bg);
  color: var(--order-good);
}
body.rd-interface #workOrdersSection .simple-task-main {
  align-items: flex-start;
  flex-wrap: wrap !important;
}
body.rd-interface #workOrdersSection .simple-task-heading { flex: 1 1 220px; }
body.rd-interface #workOrdersSection .simple-task-identity h5 {
  color: var(--order-ink);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection :is(.simple-task-assigned,.simple-task-allocation,.simple-task-note,.simple-task-finished,.simple-side-card p,.simple-order-footer) {
  color: var(--order-muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection .simple-task-allocation {
  background: var(--order-soft);
  border-color: var(--order-line);
  color: var(--order-primary);
}
body.rd-interface #workOrdersSection .simple-task-status {
  background: var(--order-wait-bg);
  color: var(--order-wait);
  font-size: .8125rem;
}
body.rd-interface #workOrdersSection .simple-task-finished {
  background: var(--order-good-bg);
  color: var(--order-good);
  white-space: normal;
}
body.rd-interface #workOrdersSection .simple-task-actions {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
body.rd-interface #workOrdersSection .simple-task-actions>button[data-action="simpleFinishService"] {
  background: var(--order-primary) !important;
  border-color: var(--order-primary) !important;
  color: white !important;
  font-size: .9375rem !important;
  font-weight: 650;
  min-height: 46px !important;
  white-space: normal;
}
body.rd-interface #workOrdersSection .simple-task-actions>button[data-action="simpleFinishService"]:hover {
  background: #06483f !important;
}
body.rd-interface #workOrdersSection .simple-task-options {
  min-width: 0;
  max-width: 100%;
}
body.rd-interface #workOrdersSection :is(.simple-task-options>summary,.simple-side-card details>summary,.simple-task-options-content details>summary) {
  min-height: 44px;
  background: var(--order-soft);
  color: var(--order-primary);
  border-color: var(--order-line);
  font-size: .875rem;
}
body.rd-interface #workOrdersSection .simple-task-main:has(.simple-task-options[open]) .simple-task-actions {
  flex: 1 1 100%;
}
body.rd-interface #workOrdersSection .simple-task-actions .simple-task-options[open] {
  width: 100%;
  position: static;
}
body.rd-interface #workOrdersSection .simple-task-options-content {
  width: auto;
  min-width: 0;
  max-width: 100%;
  background: var(--order-soft);
  border-color: var(--order-line);
}
body.rd-interface #workOrdersSection :is(.simple-order-metrics dt,.simple-order-metrics dd) {
  color: var(--order-muted);
  font-size: .875rem;
}
body.rd-interface #workOrdersSection .simple-order-metrics dd {
  color: var(--order-ink);
  text-align: right;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection .simple-side-card details {
  background: var(--order-soft);
  border-color: var(--order-line);
}
body.rd-interface #workOrdersSection .simple-task-card .task-handoff-pending {
  background: var(--order-wait-bg);
  color: var(--order-wait);
  border-color: #d8c18f;
}

body.rd-interface #workOrdersSection .detail-workspace-card .detail-hero {
  border-color: var(--order-line) !important;
  background: #f6faf7;
}
body.rd-interface #workOrdersSection :is(.detail-hero-icon,.compact-tasks-head) {
  background: var(--order-hover);
  color: var(--order-primary);
}
body.rd-interface #workOrdersSection :is(.detail-hero-progress>span,.compact-job-progress>span,.order-progress-track>span) {
  background: #548365;
}
body.rd-interface #workOrdersSection :is(.compact-operation,.compact-job-section,.job-work-focus,.action-editor,.norm-edit) {
  background: white;
  border-color: var(--order-line);
}
body.rd-interface #workOrdersSection :is(.compact-operation.finished,.job-task-row.is-done) {
  background: #f3f9f4;
  border-color: #cfe2d5;
}
body.rd-interface #workOrdersSection :is(.compact-op-main strong,.detail-hero-identity h3,.compact-job-section>summary) {
  color: var(--order-ink);
}
body.rd-interface #workOrdersSection :is(.compact-op-team,.compact-op-time,.detail-eyebrow,.timeline-time,.detail-timeline-item>div>span) {
  color: var(--order-muted);
}
body.rd-interface #workOrdersSection :is(.timeline-icon,.job-task-row .task-state) {
  color: var(--order-primary);
  background: var(--order-soft);
}
body.rd-interface #workOrdersSection :is(.timeline-warning .timeline-icon,.status-hold) {
  color: var(--order-wait);
  background: var(--order-wait-bg);
}
body.rd-interface #workOrdersSection .timeline-danger .timeline-icon {
  color: var(--order-danger);
  background: var(--order-danger-bg);
}
body.rd-interface #workOrdersSection .status-done {
  color: var(--order-good);
  background: var(--order-good-bg);
}

/* Advisor and billing share the same status hierarchy and contrast. */
body.rd-interface :is(#advisorReviewPanel,#billingReviewPanel,#extraQueuePanel,#orderArchivePanel,#vehicleHistoryPanel,#mechanicHistoryPanel) {
  background: white;
  border-color: var(--order-line);
  border-radius: 14px;
}
body.rd-interface :is(#advisorReviewPanel,#billingReviewPanel,#extraQueuePanel)>summary {
  color: var(--order-ink);
  font-size: 1.125rem;
  min-height: 40px;
}
body.rd-interface :is(#advisorReviewPanel,#billingReviewPanel,#extraQueuePanel,#billingCompleteQueue) .statcard {
  background: var(--order-soft);
  color: var(--order-ink);
  border-color: var(--order-line);
  border-radius: 11px;
}
body.rd-interface :is(#advisorReviewPanel,#billingReviewPanel,#extraQueuePanel) :is(.statcard .small,p.small,[role=status]) {
  color: var(--order-muted);
  font-size: .875rem;
  line-height: 1.5;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue)>.extra {
  background: #fff;
  border: 1px solid var(--order-line);
  border-radius: 12px;
  padding: clamp(.85rem,2vw,1.2rem);
  margin: .7rem 0;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue)>.extra :is(strong,.row strong) {
  color: var(--order-ink);
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue)>.extra :is(.row,.actions) {
  min-width: 0;
  flex-wrap: wrap;
  gap: .55rem;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue)>.extra :is(.small,.row .small) {
  color: var(--order-muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue)>.extra .pill {
  color: var(--order-wait);
  background: var(--order-wait-bg);
  font-size: .8125rem;
  max-width: 100%;
  white-space: normal;
}
body.rd-interface :is(#advisorReviewRows,#billingReviewRows,#billingQueueRows,#extraQueue,#exceptionQueue,#orderArchivePanel,#vehicleHistoryPanel,#mechanicHistoryPanel)
  button:not(.dp-day,.dp-nav,.plate-suggestion) {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
body.rd-interface #billingReviewRows .billing-pick {
  color: var(--order-muted);
  font-size: .875rem;
  min-height: 44px;
}
body.rd-interface #billingReviewRows .order-list-alert {
  color: var(--order-wait);
  background: var(--order-wait-bg);
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .8125rem;
}
body.rd-interface #billingCompleteQueue {
  background: var(--order-soft);
  border-color: var(--order-line);
}
body.rd-interface #workOrdersSection .pending-invites-panel {
  background: var(--order-soft);
  border-color: var(--order-line);
}
body.rd-interface #workOrdersSection :is(.pending-invite-card,.pending-invites-grid>*) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.rd-interface #workOrdersSection :is(.pending-invites-count,.pending-invites-title) {
  color: var(--order-primary);
}

body.rd-interface :is(#orderArchivePanel,#vehicleHistoryPanel) h2,
body.rd-interface #archiveDetailsContent :is(h3,h4),
body.rd-interface #mechanicHistoryPanel :is(.mechanic-history-top strong,.mechanic-history-task strong) {
  color: var(--order-ink);
}
body.rd-interface #archiveRows .history-order-row,
body.rd-interface #vehicleHistoryRows .vehicle-history-entry {
  border-color: var(--order-line);
}
body.rd-interface button.history-order-open {
  background: white;
  border-color: var(--order-line);
  color: var(--order-ink);
  gap: .8rem;
}
body.rd-interface button.history-order-open:hover { background: var(--order-soft); }
body.rd-interface .history-order-open .history-order-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.rd-interface .history-order-text strong { font-size: .9375rem; }
body.rd-interface .history-order-text small,
body.rd-interface :is(.history-detail-pair>span,.history-detail-header>.small,.history-work-table :is(th,td),.history-activity-summary) {
  color: var(--order-muted);
  font-size: .875rem;
}
body.rd-interface :is(.history-order-status,.history-confirmed-mark) {
  color: var(--order-good);
  font-size: .8125rem;
}
body.rd-interface :is(.history-detail-header,.history-detail-section) {
  border-color: var(--order-line);
  background: white;
}
body.rd-interface .history-detail-section>summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  color: var(--order-primary);
  font-size: .9375rem;
}
body.rd-interface .history-detail-pair>strong {
  color: var(--order-ink);
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
body.rd-interface .history-work-table {
  width: 100%;
  table-layout: fixed;
}
body.rd-interface .history-work-table:not(.history-without-clock) :is(td,th):first-child { width: 72%; }
body.rd-interface .history-work-table :is(th,td) {
  word-break: normal;
  overflow-wrap: anywhere;
}
body.rd-interface .history-work-table button {
  max-width: 100%;
  margin: .3rem .3rem .3rem 0;
}
body.rd-interface .history-detail-header button[data-archive-storno] {
  background: var(--order-danger-bg) !important;
  color: var(--order-danger) !important;
  border-color: #e7c9c2 !important;
}
body.rd-interface :is(#archiveDetailsContent,#eventHistoryPanel) .history-event {
  border-color: #c9ded0;
  padding-bottom: 1rem;
}
body.rd-interface :is(#archiveDetailsContent,#eventHistoryPanel) .history-event:before {
  background: #548365;
  border-color: var(--order-soft);
}
body.rd-interface :is(#archiveDetailsContent,#eventHistoryPanel) .history-event>strong {
  color: var(--order-ink);
  font-size: .9375rem;
}
body.rd-interface :is(#archiveDetailsContent,#eventHistoryPanel) .history-event>small {
  color: var(--order-muted);
  font-size: .8125rem;
}
body.rd-interface #mechanicHistoryPanel .mechanic-history-card {
  border-color: var(--order-line);
  border-left-color: #548365;
  min-width: 0;
}
body.rd-interface #mechanicHistoryPanel :is(.mechanic-history-top strong,.mechanic-history-task strong) {
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
body.rd-interface #mechanicHistoryPanel .mechanic-history-status {
  color: var(--order-wait);
  background: var(--order-wait-bg);
  font-size: .8125rem;
  white-space: normal;
}
body.rd-interface #mechanicHistoryPanel .mechanic-history-status.is-confirmed {
  color: var(--order-good);
  background: var(--order-good-bg);
}
body.rd-interface #mechanicHistoryPanel .mechanic-history-norm {
  color: var(--order-ink);
  font-size: .875rem;
}

@media (min-width: 801px) and (max-width: 1060px) {
  body.rd-interface #workOrdersSection {
    --order-columns: minmax(0,1.65fr) minmax(90px,.7fr) minmax(80px,.55fr);
    --order-row-gap: .75rem;
  }
  body.rd-interface #rdOrderColumns>span:nth-child(3),
  body.rd-interface #workOrdersSection .order-list-progress-cell {
    display: none;
  }
}
@media (max-width: 800px) {
  body.rd-interface #rdOrderColumns { display: none; }
  body.rd-interface #orders {
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    gap: .75rem;
  }
  body.rd-interface #workOrdersSection #orders .order-list-card,
  body.rd-interface #workOrdersSection #orders .bulk-close-card {
    border: 1px solid var(--order-line) !important;
    border-radius: 12px !important;
    margin: 0 0 .65rem !important;
    background: white;
  }
  body.rd-interface #workOrdersSection #orders .bulk-close-card .order-list-card {
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  body.rd-interface #workOrdersSection .order-list-card .order-list-open,
  body.rd-interface #workOrdersSection.mechanic-list .order-list-card .order-list-open {
    grid-template-columns: minmax(0,1fr) minmax(0,auto) !important;
    gap: .65rem !important;
    padding: .9rem !important;
    min-height: 0 !important;
  }
  body.rd-interface #workOrdersSection :is(.order-list-main,.order-list-progress-cell) {
    grid-area: auto / 1 / auto / -1;
    min-width: 0;
  }
  body.rd-interface #workOrdersSection .order-list-main {
    grid-row: 1;
    grid-template-columns: 33px minmax(0,1fr) !important;
  }
  body.rd-interface #workOrdersSection .order-list-mechanic-slot {
    grid-area: 2 / 1 / 3 / 2;
  }
  body.rd-interface #workOrdersSection .order-list-right {
    position: static;
    grid-area: 2 / 2 / 3 / 3;
    align-self: start;
    justify-self: end;
    max-width: 7rem;
  }
  body.rd-interface #workOrdersSection .order-list-progress-cell {
    display: grid;
    grid-row: 3;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .45rem;
  }
  body.rd-interface #workOrdersSection .order-list-progress { grid-area: 1 / 1; }
  body.rd-interface #workOrdersSection .order-list-progress-track { grid-area: 1 / 2; min-width: 0; }
  body.rd-interface #workOrdersSection .order-list-progress-percent { grid-area: 1 / 3; }
  body.rd-interface #workOrdersSection .order-list-status { max-width: 7rem; }
  body.rd-interface #workOrdersSection .order-list-right .order-list-open-action { display: none; }
  body.rd-interface #workOrdersSection .simple-workspace-grid { grid-template-columns: minmax(0,1fr); }
  body.rd-interface #workOrdersSection .simple-task-card { padding: 1rem; }
  body.rd-interface #workOrdersSection .simple-task-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    flex-basis: 100%;
    padding-inline: 0;
  }
  body.rd-interface #workOrdersSection :is(.simple-task-actions>button,.simple-task-options>summary,.simple-task-options-content form button) {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  body.rd-interface #workOrdersSection .simple-order-hero-row { flex-wrap: wrap; }
  body.rd-interface #workOrdersSection .simple-order-meta { overflow-wrap: anywhere; }
  body.rd-interface :is(#orderArchivePanel,#vehicleHistoryPanel,#advisorReviewPanel,#billingReviewPanel,#extraQueuePanel,#mechanicHistoryPanel) { padding: .9rem; }
  body.rd-interface :is(#archiveSearchForm,#billingQueueSearchForm,#vehicleHistoryPanel,#mechanicHistoryForm,#orderListFilters) :is(input:not([type="checkbox"]),select) {
    font-size: 16px !important;
    max-width: 100%;
  }
  body.rd-interface #workOrdersSection .simple-task-options-content :is(input,select,textarea) {
    max-width: 100%;
    font-size: 16px;
  }
}
@media (max-width: 430px) {
  body.rd-interface :is(#archiveSearchForm .history-search-grid,#billingQueueSearchForm,#vehicleHistoryPanel .plate-lookup) {
    grid-template-columns: minmax(0,1fr);
  }
  body.rd-interface :is(#archiveSearchForm,#billingQueueSearchForm,#vehicleHistoryPanel .plate-lookup) label {
    grid-column: auto;
  }
  body.rd-interface #advancedFilters :is(.search-row,.filter-controls),
  body.rd-interface .history-detail-grid { grid-template-columns: minmax(0,1fr); }
  body.rd-interface #workOrdersSection #quickOrderTabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.rd-interface #bulkCloseToolbar>div { align-items: stretch !important; }
  body.rd-interface #bulkCloseToolbar>div>button { flex: 1 1 100%; }
  body.rd-interface #workOrdersSection .simple-side-card { padding: .95rem; }
  body.rd-interface button.history-order-open { flex-wrap: wrap; }
  body.rd-interface .history-order-open :is(.history-order-text,.history-order-status) { max-width: 100%; }
}

/* Keep the administrator correction dialog visually continuous with its order. */
body.rd-interface #performerDialog {
  box-sizing: border-box;
  width: min(37rem,calc(100% - 1.5rem));
  max-height: 88dvh;
  color: var(--order-ink);
  border-color: var(--order-line);
  border-radius: 14px;
}
body.rd-interface #performerDialog::backdrop { background: #102d3c88; }
body.rd-interface #performerDialog :is(h2,legend) { color: var(--order-ink); }
body.rd-interface #performerDialog :is(label,.small,[data-performer-info]) {
  min-width: 0;
  color: var(--order-muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
body.rd-interface #performerDialog :is(select,textarea,input) {
  max-width: 100%;
  border-color: #c4d4cf;
}
body.rd-interface #performerDialog :is(.performer-current,.performer-preview) {
  background: var(--order-soft);
  color: var(--order-primary);
  border: 1px solid var(--order-line);
  padding: .65rem .8rem;
  border-radius: 8px;
}
body.rd-interface #performerDialog [data-performer-error] {
  color: var(--order-danger);
}
body.rd-interface #workOrdersSection .performer-edit-button,
body.rd-interface #performerDialog button {
  min-height: 44px;
  font-size: .875rem;
}
body.rd-interface #vehicleHistoryRows .vehicle-history-entry {
  padding-block: .85rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.rd-interface #vehicleHistoryRows .vehicle-history-entry button {
  margin-top: .5rem;
  color: var(--order-primary);
}
body.rd-interface #archiveDetailStatus { color: var(--order-muted); }
@media (max-width: 430px) {
  body.rd-interface #mechanicHistoryForm>label { flex-basis: 100%; }
  body.rd-interface #workOrdersSection #orders .bulk-close-card { grid-template-columns: 23px minmax(0,1fr); }
  body.rd-interface #workOrdersSection #orders .bulk-close-card .order-list-open { padding-left: .45rem !important; }
  body.rd-interface #performerDialog :is(select,textarea,input) { font-size: 16px; }
}
