.dashboard-header {
  display: none;
}
.mechanic-admin-page {
  padding: 22px 0 70px;
  background: #f3f5f7;
  color: #1f2933;
}
.mechanic-admin-page .container {
  max-width: 1320px;
}
.mechanic-admin-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}
.mechanic-admin-topbar h1 {
  margin: 0;
  color: #111820;
  font-size: 30px;
  line-height: 1.12;
}
.mechanic-admin-topbar p:last-child {
  margin: 8px 0 0;
  max-width: 700px;
  color: #667085;
}
.mechanic-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mechanic-admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.mechanic-admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}
.mechanic-admin-main,
.mechanic-admin-form {
  display: grid;
  gap: 18px;
}
.mechanic-admin-main #mechanicAdminStatus {
  order: 0;
}
.mechanic-admin-main #mechanicForm {
  order: 1;
}
.mechanic-admin-main #supplierWork {
  order: 2;
}
.mechanic-admin-main #supplierBilling {
  order: 3;
}
.mechanic-admin-form .portal-panel {
  margin: 0;
}
.mechanic-admin-page .portal-panel {
  padding: 18px;
  background: #fff;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .045);
}
.mechanic-admin-page .portal-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ebef;
}
.mechanic-admin-page .portal-panel-header > div {
  min-width: 0;
}
.mechanic-admin-page .portal-panel-header h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #111820;
  font-size: 22px;
  line-height: 1.2;
}
.mechanic-admin-page .portal-panel-header p:last-child {
  margin: 5px 0 0;
  color: #667085;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.field-label-row label {
  margin: 0;
}
.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  padding: 0;
  color: #344054;
  background: #eef2f6;
  border: 1px solid #c8d2dc;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.field-help:hover,
.field-help:focus {
  color: #fff;
  background: #111820;
  border-color: #111820;
  outline: 0;
}
.field-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  width: min(280px, 78vw);
  padding: 10px 11px;
  color: #fff;
  background: #111820;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.field-help::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 31;
  width: 10px;
  height: 10px;
  background: #111820;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.field-help:hover::after,
.field-help:focus::after,
.field-help:hover::before,
.field-help:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.field-help:hover::before,
.field-help:focus::before {
  transform: translateX(-50%) rotate(45deg);
}
.supplier-workspace-panel {
  border-color: #cbd7e3;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .055);
}
.supplier-work-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.supplier-work-summary div {
  min-width: 0;
  padding: 13px 14px;
  background: #f8fafc;
  border: 1px solid #d7dee5;
  border-radius: 8px;
}
.supplier-work-summary span,
.supplier-work-summary strong {
  display: block;
}
.supplier-work-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.supplier-work-summary strong {
  margin-top: 4px;
  color: #111820;
  font-size: 26px;
  line-height: 1;
}
.supplier-work-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) repeat(2, minmax(240px, .925fr));
  gap: 16px;
}
.supplier-work-form-card {
  margin-bottom: 16px;
}
.supplier-work-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 16px;
  align-items: start;
}
.supplier-work-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
.supplier-work-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid #d7dee5;
  border-radius: 8px;
}
.supplier-work-card-primary {
  border-color: #bfd7ec;
}
.supplier-work-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.supplier-work-card-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #111820;
  font-size: 18px;
}
.supplier-work-card-header span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.supplier-mini-form {
  display: grid;
  gap: 10px;
}
.supplier-appointment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.supplier-appointment-form textarea,
.supplier-appointment-form button {
  grid-column: 1 / -1;
}
.supplier-appointment-form button {
  max-width: 260px;
}
.supplier-record-list {
  display: grid;
  gap: 10px;
}
.supplier-record-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.supplier-record-card.is-muted {
  opacity: .68;
}
.supplier-record-card header,
.supplier-record-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.supplier-record-card strong,
.supplier-record-card small {
  display: block;
  overflow-wrap: anywhere;
}
.supplier-record-card p {
  margin: 0;
  color: #344054;
}
.supplier-record-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #111820;
  background: #eef6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}
.supplier-record-date {
  color: #667085;
  font-weight: 800;
}
.mechanic-inline-status {
  padding: 11px 13px;
  color: #344054;
  background: #fff;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  font-weight: 800;
}
.mechanic-completion {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.mechanic-completion div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-weight: 900;
}
.mechanic-completion progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
}
.mechanic-completion progress::-webkit-progress-bar {
  background: #e5e7eb;
}
.mechanic-completion progress::-webkit-progress-value {
  background: #1479D4;
}
.mechanic-completion progress::-moz-progress-bar {
  background: #1479D4;
}
.mechanic-step-nav {
  display: grid;
  gap: 8px;
}
.mechanic-step-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #344054;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 900;
  text-align: left;
}
.mechanic-step-nav button i {
  width: 18px;
  color: #1479D4;
}
.mechanic-step-nav button > span { display: grid; gap: 2px; }
.mechanic-step-nav button small { color: #667085; font-size: 11px; font-weight: 700; line-height: 1.25; }
.mechanic-step-nav button:is(.is-active,:hover,:focus) small { color: #d5e0ea; }
.mechanic-step-nav button.is-active,
.mechanic-step-nav button:hover,
.mechanic-step-nav button:focus {
  color: #fff;
  background: #1f2933;
  border-color: #1f2933;
}
.mechanic-step-nav button.is-active i,
.mechanic-step-nav button:hover i,
.mechanic-step-nav button:focus i {
  color: #f0ad18;
}
.mechanic-listing-preview {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid #dde5ea;
  border-radius: 8px;
  background: #fff;
}
.mechanic-listing-preview span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.mechanic-listing-preview strong {
  color: #111820;
  overflow-wrap: anywhere;
}
.mechanic-listing-preview small {
  color: #667085;
  overflow-wrap: anywhere;
}
.mechanic-step-panel {
  scroll-margin-top: 100px;
}
.mechanic-step-panel[hidden] {
  display: none;
}
.mechanic-essential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.mechanic-extra-fields {
  margin-top: 18px;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  background: #f8fafc;
}
.mechanic-extra-fields summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #111820;
  font-weight: 900;
}
.mechanic-extra-fields summary .field-help {
  margin-left: 6px;
}
.mechanic-extra-fields .account-form-grid {
  padding: 0 14px 14px;
}
.mechanic-chip-section {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.mechanic-chip-section > label,
.mechanic-admin-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #111820;
  font-weight: 900;
}
.mechanic-admin-form .form-control,
.supplier-mini-form .form-control {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  border-color: #cfd8e3;
  box-shadow: none;
}
.mechanic-admin-form .form-control:focus,
.supplier-mini-form .form-control:focus {
  border-color: #1479D4;
  box-shadow: 0 0 0 3px rgba(20, 121, 212, .12);
}
.mechanic-admin-form textarea.form-control {
  min-height: 112px;
}
.supplier-mini-form {
  display: grid;
  gap: 10px;
}
.mechanic-chip-grid,
.mechanic-hour-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mechanic-chip-grid button,
.mechanic-hour-presets button {
  min-height: 36px;
  padding: 7px 10px;
  color: #344054;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-weight: 800;
}
.mechanic-chip-grid button.is-selected,
.mechanic-chip-grid button:hover,
.mechanic-chip-grid button:focus,
.mechanic-hour-presets button:hover,
.mechanic-hour-presets button:focus {
  color: #fff;
  background: #1479D4;
  border-color: #1479D4;
}
.mechanic-secondary-grid {
  margin-top: 4px;
}
.mechanic-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
}
.supplier-image-preview {
  display: grid;
  gap: 7px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}
.supplier-image-preview img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #dde5ea;
  border-radius: 8px;
}
.supplier-hero-preview img {
  max-height: 180px;
  object-fit: cover;
}
.mechanic-hour-presets {
  margin-bottom: 8px;
}
.mechanic-publish-card {
  padding: 14px;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  background: #f8fafc;
}
.mechanic-publish-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
}
.mechanic-publish-toggle input {
  margin-top: 5px;
}
.mechanic-publish-toggle strong,
.mechanic-publish-toggle small {
  display: block;
}
.mechanic-publish-toggle small {
  margin-top: 3px;
  color: #667085;
  font-weight: 700;
}
.mechanic-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.mechanic-admin-form .portal-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -22px -22px;
  padding: 14px 22px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 24px rgba(16, 24, 40, .06);
}
.mechanic-admin-actions .btn,
.mechanic-step-actions .btn,
.mechanic-admin-form .portal-actions .btn,
.supplier-work-form-card .btn,
.supplier-dashboard-panel .portal-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 900;
}
.supplier-dashboard-panel .portal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.supplier-dashboard-panel .portal-actions .btn {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}
.supplier-dashboard-panel .portal-actions .btn-danger {
  background: #b42318;
  border-color: #b42318;
}
.supplier-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.supplier-status-grid > div {
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #d7dee5;
  border-radius: 8px;
}
.supplier-status-grid span,
.supplier-status-grid strong {
  display: block;
}
.supplier-status-grid span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.supplier-status-grid strong {
  margin-top: 4px;
  color: #111820;
  overflow-wrap: anywhere;
}
@media (max-width: 991px) {
  .mechanic-admin-topbar,
  .mechanic-admin-layout,
  .supplier-work-grid,
  .supplier-work-columns,
  .supplier-appointment-form,
  .supplier-status-grid {
    grid-template-columns: 1fr;
  }
  .supplier-appointment-form button {
    max-width: none;
  }
  .mechanic-admin-sidebar {
    position: static;
  }
  .mechanic-admin-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .mechanic-essential-grid,
  .mechanic-extra-fields .account-form-grid,
  .mechanic-brand-grid,
  .supplier-work-summary {
    grid-template-columns: 1fr;
  }
  .mechanic-admin-form .portal-actions {
    position: static;
    margin: 18px 0 0;
    padding: 0;
    border-top: 0;
  }
  .mechanic-admin-form .portal-actions .btn,
  .mechanic-step-actions .btn {
    width: 100%;
  }
}

/* Supplier workspace: keep every panel in the active automotive theme. */
html[data-theme] .mechanic-admin-page .mechanic-admin-topbar,
html[data-theme] .mechanic-admin-page #mechanicAdminStatus,
html[data-theme] .mechanic-admin-page .mechanic-admin-sidebar,
html[data-theme] .mechanic-admin-page .portal-panel,
html[data-theme] .mechanic-admin-page details,
html[data-theme] .mechanic-admin-page .supplier-work-card,
html[data-theme] .mechanic-admin-page .supplier-record-card,
html[data-theme] .mechanic-admin-page .supplier-status-grid > div {
  color: var(--color-text-primary) !important;
  background: var(--color-surface-1) !important;
  border-color: var(--color-border-default) !important;
  box-shadow: var(--shadow-panel) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-admin-topbar h1,
html[data-theme] .mechanic-admin-page .mechanic-admin-topbar strong,
html[data-theme] .mechanic-admin-page details summary,
html[data-theme] .mechanic-admin-page .supplier-status-grid strong {
  color: var(--color-text-primary) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-admin-topbar p,
html[data-theme] .mechanic-admin-page #mechanicAdminStatus,
html[data-theme] .mechanic-admin-page .supplier-status-grid span {
  color: var(--color-text-secondary) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-step-nav button {
  color: var(--color-text-primary) !important;
  background: var(--color-surface-2) !important;
  border-color: var(--color-border-default) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-step-nav button:hover,
html[data-theme] .mechanic-admin-page .mechanic-step-nav button:focus,
html[data-theme] .mechanic-admin-page .mechanic-step-nav button.is-active {
  background: var(--color-surface-hover) !important;
  border-color: var(--color-border-accent) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-step-nav button small { color: var(--color-text-secondary) !important; }
html[data-theme] .mechanic-admin-page .mechanic-step-nav button:is(.is-active,:hover,:focus) small { color: var(--color-text-primary) !important; }
html[data-theme] .mechanic-admin-page .mechanic-publish-card,
html[data-theme] .mechanic-admin-page .mechanic-admin-form .portal-actions,
html[data-theme] .mechanic-admin-page .supplier-work-summary > div,
html[data-theme] .mechanic-admin-page .supplier-image-preview img {
  color: var(--color-text-primary) !important;
  background: var(--color-surface-2) !important;
  border-color: var(--color-border-default) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-admin-form .portal-actions {
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .2) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle strong,
html[data-theme] .mechanic-admin-page .supplier-work-summary strong {
  color: var(--color-text-primary) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle small,
html[data-theme] .mechanic-admin-page .supplier-work-summary span {
  color: var(--color-text-secondary) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-chip-grid button,
html[data-theme] .mechanic-admin-page .mechanic-hour-presets button {
  color: var(--color-text-primary) !important;
  background: var(--color-surface-2) !important;
  border-color: var(--color-border-default) !important;
}
html[data-theme] .mechanic-admin-page .mechanic-chip-grid button:is(.is-selected,:hover,:focus),
html[data-theme] .mechanic-admin-page .mechanic-hour-presets button:is(:hover,:focus) {
  color: #fff !important;
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
html[data-theme] .mechanic-admin-page input[type="checkbox"] {
  accent-color: var(--color-primary);
}
html[data-theme] .mechanic-admin-page .mechanic-publish-card {
  padding: 0;
  overflow: hidden;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle {
  min-height: 92px;
  padding: 20px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 9px;
  transition: background .16s ease, border-color .16s ease;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle:hover,
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle:has(input:focus-visible) {
  background: var(--color-surface-hover) !important;
  border-color: var(--color-border-accent);
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle:has(input:checked) {
  background: var(--color-primary-soft) !important;
  border-color: var(--color-primary);
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle input {
  appearance: none;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 0;
  place-content: center;
  border: 2px solid var(--color-border-strong);
  border-radius: 7px;
  background: var(--color-surface-1);
  cursor: pointer;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle input::before {
  content: "";
  width: 13px;
  height: 7px;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle input:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle input:checked::before {
  transform: rotate(-45deg) scale(1);
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle strong {
  font-size: 1rem;
  line-height: 1.3;
}
html[data-theme] .mechanic-admin-page .mechanic-publish-toggle small {
  margin-top: 5px;
  line-height: 1.5;
}
