/* Shared by the staff web templates, including the sign-in page. */
body.workshop-theme {
  --masthead-height: 49px;
  --sidebar-width: 0px;
  --control-height: 32px;
  --control-radius: 4px;
  --background: #fff;
  --surface: #fff;
  --field: #fff;
  --text: #283034;
  --text-secondary: #536168;
  --muted: #536168;
  --line: #dbe1e2;
  --separator: #dbe1e2;
  --neutral-fill: #f0f3f3;
  --stripe: #f5f7f7;
  --section-tint: #ecf1f5;
  --section-edge: #839daa;
  background: var(--background);
  color: var(--text);
  font: 500 13px/1.35 Manrope, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
body[data-section="planner"] { --section-tint: #f3ecea; --section-edge: #b7776d; }
body[data-section="workshop"] { --section-tint: #ebf2ee; --section-edge: #86a58f; }
body[data-section="vehicles"] { --section-tint: #f2efec; --section-edge: #b09c88; }
body[data-section="suppliers"] { --section-tint: #f6efeb; --section-edge: #c89177; }
body[data-section="settings"] { --section-tint: #efedf4; --section-edge: #a197b1; }

.workshop-shell .workspace { max-width: none; margin: 0; width: 100%; padding: 12px 19px 18px; }
.app-header { padding: 0 19px; gap: 12px; }
.app-header .brand { width: 101px; margin: 0; }
.app-header .brand img { width: 100%; height: 41px; }
.app-header .workshop-search-box { width: clamp(155px, 20vw, 310px); position: relative; }
.app-header .workshop-search-field { background: #26292b; color: #ebece9; border-color: #575d60; min-height: 30px; }
.app-header .workshop-search-field input[type="search"] { color: #fff; min-height: 28px; font-size: 12px; padding-block: 0; }
.app-header .workshop-search-field input::placeholder { color: #dee1df; }
.app-header .dashboard-search-results:not([hidden]) {
  --chrome-text: var(--text);
  --chrome-border: var(--control-border);
  --chrome-hover: var(--neutral-fill);
  --chrome-accent: var(--text-secondary);
  position: absolute; right: 0; top: 100%; z-index: 2; width: min(640px, 90vw);
  max-height: 72vh; overflow: auto; padding: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
}
@media (min-width: 901px) {
  .app-header .app-nav {
    position: static; flex-flow: row nowrap; align-items: stretch; align-self: stretch;
    height: auto; width: auto; padding: 0; margin: 0 auto 0 12px; gap: clamp(2px, 1vw, 14px);
    border: 0; box-shadow: none; overflow: visible;
  }
  .app-nav a { font-size: 13px; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; }
  .app-nav a[aria-current] { border-bottom-color: #eb3827; background: transparent; color: #fff; }
  .app-nav .workshop-icon { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .app-header { gap: 8px; padding-inline: 12px; }
  .app-header .app-nav { gap: 2px; margin-left: 0; }
  .app-header .workshop-search-box { width: 155px; }
}
@media (max-width: 900px) {
  .workshop-shell .workspace { padding: 10px 12px 80px; }
  .app-header { padding: 0 9px; gap: 6px; }
  .app-header .app-nav { position: absolute; top: calc(100% + 3px); }
  .app-header .brand { width: 75px; margin-right: auto; }
  .app-header .workshop-search-box { flex: 1; min-width: 50px; max-width: 315px; }
  .app-header .dashboard-search-results:not([hidden]) { position: fixed; top: var(--masthead-height); left: 2vw; width: 96vw; }
}
@media (max-width: 550px) {
  body.workshop-shell { --masthead-height: 83px; }
  .workshop-shell .app-header {
    display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: 40px 33px;
    gap: 0 6px; align-content: center;
  }
  .app-header .workshop-search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
  .app-header .nav-toggle, .app-header .quiet { min-height: 30px; }
}

/* Staff records, forms and lists use the same hierarchy as the day board. */
.workspace h1, .workshop-theme .workspace :is(.requests-heading, .planner-toolbar, .job-title, .vehicle-history-identity, .request-hero-identity) h1 {
  margin: 0; font: 750 20px/1.25 Manrope, Arial, sans-serif; letter-spacing: -.025em;
}
.workspace :is(.page-heading, .directory-heading, .vehicle-history-header, .scanner-page-heading, .planner-toolbar, .job-identity) {
  min-width: 0; padding: 6px 9px; margin: 0 0 10px;
  border: 0; border-left: 2px solid var(--section-edge);
  border-radius: 0; background: var(--section-tint);
}
.workspace :is(.card, .work-panel, .vehicle-history-card, .vehicle-history-profile-body) {
  border-color: var(--line); border-radius: 3px; box-shadow: none; background: #fff;
}
.workspace :is(.card, .work-panel) { padding: 10px 12px; margin-bottom: 12px; }
.workspace .job-card-grid > .work-panel { margin-bottom: 0; }
.workspace :is(.section-heading, .directory-list-heading, .vehicle-history-list-heading, .job-section-heading),
.workspace :is(.card, .work-panel) > h2,
.workspace .workshop-fold > summary,
.workspace details.work-panel > summary {
  padding: 5px 8px; min-height: 29px; margin: 0 0 7px;
  background: var(--section-tint); border: 0; border-left: 2px solid var(--section-edge);
  border-radius: 0; color: #232b30;
}
.workspace :is(.section-heading, .directory-list-heading, .vehicle-history-list-heading, .job-section-heading, .workshop-fold > summary) :is(h2,h3),
.workspace :is(.card, .work-panel) > h2,
.workspace details.work-panel > summary { font: 750 15px/1.3 Manrope, Arial, sans-serif; letter-spacing: -.015em; }
.workspace details.work-panel:not([open]) > summary { margin-bottom: 0; }
.workspace .two-column, .workspace .supplier-layout, .workspace .request-detail-columns { gap: 14px; }
.workspace .work-job-row, .workspace .supplier-record > summary, .workspace .directory-record { min-height: 36px; padding-block: 4px; }
.workspace .directory-rows li:nth-child(even) > a,
.workspace .work-job-row:nth-child(even of .work-job-row),
.workspace .supplier-record:nth-child(even of .supplier-record) > summary,
.workspace .vehicle-history-entry:nth-child(even of .vehicle-history-entry) > summary,
.workspace .requests-row:nth-child(even of .requests-row),
.workspace .search-result:nth-child(even of .search-result) { background: var(--stripe); }
.workspace :is(.directory-record, .work-job-row, .requests-row):hover { background: #ebf1f2; }
.workspace .directory-columns, .workspace .requests-list-labels { color: var(--muted); background: var(--neutral-fill); }
.workspace .request-detail { gap: 12px; font-size: 13px; }
.workspace .request-detail .card { padding: 10px 12px; }
.workspace .request-title-row { background: var(--section-tint); border-left: 2px solid var(--section-edge); padding: 8px; }
.workspace .vehicle-history-profile-body h2, .workspace #job-evidence-title { font-size: 15px; }
.workspace .requests-kpis { gap: 6px; margin: 0 0 10px; }
.workspace .requests-kpis .requests-kpi {
  display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
}
.workspace .requests-kpis .requests-kpi[aria-current] { border-color: var(--section-edge); background: var(--section-tint); }
.workspace .requests-kpi > .requests-icon { display: none; }
.workspace .requests-kpis .requests-kpi strong { font-size: 14px; line-height: 1.2; }
.workspace .requests-kpis .requests-kpi-label { font-size: 12px; line-height: 1.3; }
.workspace .requests-screen .requests-count { background: transparent; color: var(--muted); padding: 0; }
.workspace .requests-screen .requests-row { min-height: 36px; padding: 4px 8px; }
.workspace .requests-screen .requests-status-pill { padding: 2px 5px; border-radius: 3px; }
.workspace .planner-date, .workspace .planner-corner { background: var(--section-tint); }
.workshop-login .workspace { max-width: 440px; margin: 6vh auto; padding: 0 16px; }
.workshop-login .card h1 { padding: 6px 8px; background: var(--section-tint); border-left: 2px solid var(--section-edge); }
@media (max-width: 700px) {
  .workspace .requests-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace .requests-screen .requests-row { padding-block: 6px; }
}
.workspace .request-detail .request-hero-plate .reg-plate,
.workspace .job-title .reg-plate { font-size: 17px; }
.workspace .request-detail .quote-total > strong { font-size: 19px; }
.workspace .work-job-row .reg-plate, .workspace .directory-record .reg-plate { font-size: 14px; }

/* Compact record states used throughout the staff web interface. */
.workshop-shell .status-badge {
  --badge-ink: #42505b;
  --badge-fill: #edf0f2;
  --badge-border: #cbd2d7;
  display: inline-block; vertical-align: middle; width: fit-content; max-width: 100%;
  margin: 0; padding: 1px 6px; border: 1px solid var(--badge-border); border-radius: 4px;
  background: var(--badge-fill); color: var(--badge-ink);
  font: 700 11px/1.3 Manrope, Arial, sans-serif; letter-spacing: normal; white-space: nowrap;
}
.workshop-shell .status-badge[hidden] { display: none; }
.workshop-shell .status-badge:is([data-status="New" i], [data-status="Booked" i], [data-status="Confirmed" i], [data-status="Arrived" i], [data-status="Received" i]) {
  --badge-ink: #2b5276; --badge-fill: #e8f0f8; --badge-border: #bdcfe1;
}
.workshop-shell .status-badge:is([data-status="In progress" i], [data-status="Running" i], [data-status="Active" i]) {
  --badge-ink: #155b48; --badge-fill: #e3f2eb; --badge-border: #b2d6c4;
}
.workshop-shell .status-badge:is([data-status^="Awaiting" i], [data-status="Paused" i], [data-status="Pending" i], [data-status="Queued" i], [data-status="Under Review" i], [data-status="Uncertain" i], [data-status="Check send status" i], [data-status="Possible duplicate" i], [data-status="Customer follow-up required" i]) {
  --badge-ink: #744c15; --badge-fill: #fbf0d9; --badge-border: #e3cda5;
}
.workshop-shell .status-badge:is([data-status="Done" i], [data-status="Closed" i], [data-status="Completed" i], [data-status="Ready" i], [data-status="Sent" i], [data-status="Delivered" i], [data-status="Verified" i], [data-status="Valid" i], [data-status="Accepted" i]) {
  --badge-ink: #365b3a; --badge-fill: #eaf2e9; --badge-border: #c2d6c0;
}
.workshop-shell .status-badge:is([data-status="Cancelled" i], [data-status="Failed" i], [data-status="Failed to send" i], [data-status="Undelivered" i], [data-status="Expired" i], [data-status="Declined" i]) {
  --badge-ink: #873b35; --badge-fill: #f8e9e6; --badge-border: #e4c1bb;
}
.workshop-shell .planner-legend .status-badge::before { content: none; }
.workshop-shell .planner-entry-heading { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap; }
.workshop-shell .planner-entry-heading strong { flex: none; }
.workshop-shell .planner-booking .status-badge { min-width: 0; font-size: 10px; padding: 0 4px; }
