:root {
  --font-main: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  --font-display: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  --sidebar-bg: #0b1736;
  --sidebar-soft: #142653;
  --sidebar-line: rgba(214, 226, 255, 0.12);
  --page-bg: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --line: #d7e2f1;
  --text: #4b587c;
  --strong: #012970;
  --muted: #8a98b8;
  --blue: #4154f1;
  --blue-soft: #eef2ff;
  --blue-strong: #2337c6;
  --cyan: #2bb8d7;
  --green: #2eca6a;
  --orange: #f4a62a;
  --red: #e55353;
  --yellow: #f6c23e;
  --pink: #d65087;
  --shadow: 0 14px 36px rgba(1, 41, 112, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--strong);
  color: #fff;
  transition: top 160ms ease;
}

.skip-link:focus-visible {
  top: 18px;
}

.shell-grid {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: #d8dde6;
}

.sidebar-backdrop,
.menu-toggle {
  display: none;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 210px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  background: #fff;
  position: relative;
}

.brand-mark img {
  display: block;
  width: 80%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 16px 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ccd7f6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: rgba(65, 84, 241, 0.18);
  color: #fff;
}

.sidebar-link.is-active {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.sidebar-group {
  display: grid;
  gap: 4px;
}

.sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.sidebar-group-toggle:hover {
  background: rgba(65, 84, 241, 0.18);
}

.sidebar-group-toggle > span:nth-child(2) {
  flex: 1 1 auto;
}

.sidebar-sublink {
  margin-left: 22px;
}

.sidebar-submenu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 180ms ease;
}

.sidebar-submenu > * {
  min-height: 0;
}

.sidebar-group.is-open .sidebar-submenu {
  grid-template-rows: 1fr;
}

.sidebar-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.sidebar-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-group.is-open .sidebar-chevron {
  transform: rotate(90deg);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  color: #9de7f4;
  flex: 0 0 24px;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-stage {
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(1, 41, 112, 0.04);
}

.app-topbar strong,
.topbar-kicker {
  display: block;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-topbar strong {
  margin-top: 4px;
  color: var(--strong);
  font-size: 1.15rem;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--strong);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: min(360px, 38vw);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--strong);
  font: inherit;
  font-size: 0.92rem;
}

.icon-button,
.panel-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--strong);
  font-weight: 700;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.search-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.logout-chip {
  border: 1px solid var(--line);
}

.logout-chip button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.user-chip span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}

.user-chip strong {
  margin: 0;
  font-size: 0.9rem;
}

.shell-main {
  padding: 26px;
}

.workshop-hero,
.shortcut-bar,
.metric-card,
.module-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workshop-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.shortcut-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.shortcut-bar h1 {
  margin: 4px 0 0;
  color: var(--strong);
  font-size: 1.35rem;
  font-weight: 700;
}

.shortcut-bar p {
  margin: 6px 0 0;
  color: #14804a;
  font-size: 0.9rem;
  font-weight: 700;
}

.shortcut-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shortcut-actions form {
  margin: 0;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--strong);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #596677;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-action,
.secondary-action,
.panel-action {
  min-height: 42px;
  padding: 0 16px;
}

.primary-action {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #fff;
}

.secondary-action {
  border-color: #c9d4f2;
  background: #f9fbff;
  color: var(--strong);
}

.action-drawer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.draft-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-form.single-column {
  grid-template-columns: 1fr;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--strong) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.quick-form label,
.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-form input,
.filter-bar select,
.filter-bar input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--strong);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.quick-form input {
  padding: 0 12px;
}

.filter-bar input {
  padding: 0 10px;
}

.quick-form .primary-action {
  align-self: end;
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.entity-summary {
  min-height: 44px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #f9fbff;
  color: #687383;
  font-size: 0.9rem;
  line-height: 1.35;
}

.entity-summary strong {
  display: block;
  color: var(--strong);
}

.selected-entity {
  min-height: 72px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #cfdcf2;
  border-radius: 8px;
  background: #f9fbff;
  color: #596677;
  line-height: 1.35;
}

.selected-entity span,
.selected-entity strong,
.selected-entity em {
  display: block;
}

.selected-entity span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-entity strong {
  margin-top: 5px;
  color: var(--strong);
  font-size: 1rem;
}

.selected-entity em {
  margin-top: 3px;
  color: #687383;
  font-style: normal;
  font-size: 0.9rem;
}

.selected-entity.is-empty {
  border-style: dashed;
  background: #f6f9ff;
}

.order-selector,
.order-owner-selector {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #f9fbff;
}

.owner-selector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.owner-new-title {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-step {
  grid-column: 1 / -1;
}

.owner-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.vehicle-admin-list {
  display: grid;
  gap: 12px;
}

.vehicle-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: var(--surface-soft);
}

.vehicle-admin-row strong,
.vehicle-admin-row span,
.vehicle-admin-row em {
  display: block;
}

.vehicle-admin-row strong {
  color: var(--strong);
}

.vehicle-admin-row span,
.vehicle-admin-row em {
  margin-top: 4px;
  color: #687383;
}

.vehicle-owner-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.vehicle-owner-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vehicle-owner-form input,
.vehicle-owner-form select {
  min-height: 40px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--strong);
  font: inherit;
  font-size: 0.9rem;
}

.metric-grid,
.module-grid,
.dashboard-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.metric-card {
  padding: 18px;
  overflow: hidden;
}

.metric-card span,
.metric-card p {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  color: var(--strong);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.metric-workshop {
  box-shadow: inset 0 4px 0 var(--blue), var(--shadow);
}

.metric-fleet {
  box-shadow: inset 0 4px 0 var(--cyan), var(--shadow);
}

.metric-billing {
  box-shadow: inset 0 4px 0 var(--green), var(--shadow);
}

.metric-warning {
  box-shadow: inset 0 4px 0 var(--red), var(--shadow);
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.shortcut-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.module-card {
  display: block;
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button.module-card,
form.module-card {
  margin: 0;
  appearance: none;
  font: inherit;
}

.module-card > button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(31, 38, 52, 0.12);
}

.module-card:focus-visible {
  outline: 3px solid rgba(34, 118, 242, 0.32);
  outline-offset: 2px;
}

.module-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(65, 84, 241, 0.36);
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 700;
}

.module-glyph svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-card h2 {
  margin: 16px 0 0;
  color: var(--strong);
  font-size: 1rem;
  font-weight: 700;
}

.module-card p {
  margin: 6px 0 0;
  color: #6c7684;
  font-size: 0.88rem;
  line-height: 1.35;
}

.shortcut-message {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #bfe8d1;
  border-radius: 8px;
  background: #e8f8ef;
  color: #14804a;
  font-weight: 700;
}

.dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.panel-card {
  grid-column: span 4;
  padding: 18px;
  min-width: 0;
}

.panel-wide {
  grid-column: span 8;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 5px 0 0;
  color: var(--strong);
  font-size: 1.15rem;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.filter-bar select {
  padding: 0 10px;
}

.report-panel {
  margin-top: 12px;
}

.report-search {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
  align-items: end;
}

.report-search label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-search input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--strong);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.88rem;
}

.report-detail-grid {
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-grid div,
.notes-grid div {
  padding: 12px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 5px 0 0;
  color: var(--strong);
  font-weight: 700;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.notes-grid p {
  margin: 6px 0 0;
  color: #596677;
  white-space: pre-wrap;
}

.report-total {
  align-items: stretch;
}

.filter-bar strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

.workshop-table {
  width: 100%;
  border-collapse: collapse;
}

.workshop-table th,
.workshop-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e8ecf1;
  text-align: left;
  white-space: nowrap;
}

.workshop-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workshop-table td {
  color: #3f4855;
  font-size: 0.95rem;
}

.workshop-table td span {
  color: var(--muted);
}

.workshop-table tbody tr {
  transition: background 140ms ease;
}

.workshop-table tbody tr:hover,
.workshop-table tbody tr.is-selected {
  background: #f1f5ff;
}

.row-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c9d4f2;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 4px 0;
}

.reset-form input {
  width: 120px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--strong);
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--page-bg);
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel img {
  display: block;
  width: 210px;
  max-width: 100%;
  margin-bottom: 22px;
}

.login-panel h1 {
  margin: 0 0 18px;
  color: var(--strong);
  font-size: 1.6rem;
  font-weight: 700;
}

.login-panel form,
.login-panel label {
  display: grid;
  gap: 10px;
}

.login-panel label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px dashed #c9d2df;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.workshop-modal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(19, 27, 40, 0.24);
}

.workshop-modal .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.workshop-modal .modal-dialog {
  height: calc(100vh - 48px);
  margin-top: 24px;
  margin-bottom: 24px;
}

.workshop-modal .modal-header,
.workshop-modal .modal-footer {
  border-color: var(--line);
  padding: 18px 22px;
}

.workshop-modal .modal-title {
  margin-top: 4px;
  color: var(--strong);
  font-size: 1.45rem;
  font-weight: 700;
}

.workshop-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 22px;
  background: #f6f9ff;
}

.workshop-modal .modal-header {
  flex-shrink: 0;
  background: var(--surface);
}

.workshop-modal .modal-footer {
  flex-shrink: 0;
  background: var(--surface);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.modal-step {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.modal-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--strong);
  color: #fff;
  font-weight: 700;
}

.modal-step h3 {
  margin: 10px 0 12px;
  color: var(--strong);
  font-size: 1rem;
  font-weight: 700;
}

.field-label,
.item-entry label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workshop-modal .form-control,
.workshop-modal .form-select {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--strong);
  font-weight: 650;
}

.workshop-modal .form-control:focus,
.workshop-modal .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(34, 118, 242, 0.14);
}

.suggestion-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.suggestion-item {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  color: var(--strong);
  text-align: left;
}

.suggestion-item strong,
.suggestion-item span {
  display: block;
}

.suggestion-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.suggestion-error {
  padding: 10px 12px;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42323;
  font-size: 0.86rem;
  font-weight: 700;
}

.price-list-note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.link-action {
  display: inline-flex;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.item-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 130px auto;
  gap: 10px;
  align-items: end;
}

.order-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
}

.order-item-row strong,
.order-item-row span {
  display: block;
}

.order-item-row strong {
  color: var(--strong);
}

.order-item-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.remove-item {
  width: 32px;
  height: 32px;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  background: #fff5f5;
  color: #ce3030;
  font-weight: 700;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-soft);
}

.order-total span {
  color: #4b587c;
  font-weight: 700;
}

.order-total strong {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff8e7;
  color: #8a5a00;
  font-size: 0.9rem;
  font-weight: 750;
}

.form-status {
  margin-right: auto;
  color: var(--muted);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #14804a;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-payment {
  background: var(--blue-soft);
  color: var(--blue);
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.order-card strong,
.order-card span {
  display: block;
}

.order-card strong {
  color: var(--strong);
}

.order-card span {
  color: #687383;
  font-size: 0.9rem;
}

.order-type {
  justify-self: start;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff8e7;
  color: #9c6500;
  font-weight: 700;
}

.line-list,
.vehicle-list,
.alert-list {
  display: grid;
  gap: 8px;
}

.line-list {
  margin-top: 12px;
}

.line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf1;
}

.line-row span {
  color: #3f4855;
  font-size: 0.88rem;
  font-weight: 700;
}

.line-row strong {
  color: var(--strong);
  font-size: 0.92rem;
}

.total-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #536077;
}

.total-box strong {
  color: var(--blue);
  font-size: 1.2rem;
}

.vehicle-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: var(--surface-soft);
}

.vehicle-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e7ebf0;
  color: #4d5868;
  font-weight: 700;
}

.vehicle-row strong,
.vehicle-row span {
  display: block;
}

.vehicle-row strong {
  color: var(--strong);
}

.vehicle-row span {
  margin-top: 3px;
  color: #6f7986;
  font-size: 0.86rem;
}

.vehicle-row em {
  padding: 6px 9px;
  border: 1px solid #ffb08b;
  border-radius: 999px;
  color: #e35c20;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-strip div {
  padding: 14px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: var(--surface-soft);
}

.flow-strip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--strong);
  color: #fff;
  font-weight: 700;
}

.flow-strip strong {
  display: block;
  margin-top: 12px;
  color: var(--strong);
}

.flow-strip p {
  margin: 6px 0 0;
  color: #687383;
  font-size: 0.9rem;
}

.alert-row {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  background: var(--surface-soft);
}

.alert-row strong {
  display: block;
  color: var(--strong);
}

.alert-row p {
  margin: 5px 0 0;
  color: #687383;
  font-size: 0.9rem;
}

.alert-info {
  border-left: 4px solid var(--blue);
}

.alert-success {
  border-left: 4px solid var(--green);
}

.alert-warning {
  border-left: 4px solid var(--orange);
}

@media (max-width: 1280px) {
  .module-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-card,
  .panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .shell-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: min(286px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 18px 0 48px rgba(1, 18, 49, 0.28);
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
    border: 0;
    background: rgba(5, 14, 34, 0.48);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .app-topbar,
  .workshop-hero,
  .shortcut-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .hero-actions,
  .shortcut-actions {
    justify-content: flex-start;
  }

  .topbar-search {
    width: 100%;
  }

  .shell-main {
    padding: 16px;
  }

  .metric-grid,
  .module-grid,
  .dashboard-grid,
  .flow-strip,
  .action-drawer,
  .quick-form,
  .report-search,
  .detail-grid,
  .notes-grid,
  .inline-search,
  .owner-fields,
  .vehicle-admin-row,
  .vehicle-owner-form,
  .filter-bar,
  .modal-grid,
  .item-entry,
  .order-item-row {
    grid-template-columns: 1fr;
  }
}
