:root {
  --brand: #005ca9;
  --brand-strong: #004a89;
  --accent: #94c11f;
  --accent-strong: #80a91a;
  --shop: #e50056;
  --sky: #68aee1;
  --ink: #172435;
  --muted: #6d7886;
  --line: #dde5ec;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef5fa;
  --accent-soft: #eef7d8;
  --brand-soft: #e7f1f8;
  --danger: #c8375a;
  --warning: #a86800;
  --success: #4f8d16;
  --shadow: 0 16px 36px rgba(0, 92, 169, 0.1);
  --radius: 8px;
}

.driver-license-section {
  overflow: hidden;
}

.driver-license-header {
  align-items: flex-start;
}

.driver-license-user-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.driver-license-user-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.driver-license-user-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.driver-license-user-main > .material-icons {
  color: var(--brand);
}

.driver-license-user-main div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.driver-license-user-main strong,
.driver-license-user-main span {
  overflow-wrap: anywhere;
}

.driver-license-user-main span {
  color: var(--muted);
  font-size: 13px;
}

.driver-license-history {
  margin: 0 16px 16px;
}

.driver-license-special-list {
  margin: 0 16px 16px;
}

.driver-license-special-list .driver-license-user-list {
  padding: 12px 0 0;
}

.driver-license-special-row .driver-license-user-main > .material-icons {
  color: var(--shop);
}

.driver-license-special-request-modal {
  inset: max(8vh, 48px) max(14px, calc((100vw - 720px) / 2)) auto;
  max-height: 84vh;
}

.driver-license-special-request-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 14px;
}

.driver-license-special-reason {
  grid-column: 1 / -1;
}

.driver-license-special-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f1c8d3;
  border-left: 4px solid var(--shop);
  border-radius: 8px;
  background: #fff5f8;
}

.driver-license-special-info > .material-icons {
  color: var(--shop);
}

.driver-license-special-info > div {
  display: grid;
  gap: 4px;
}

.driver-license-special-info span,
.driver-license-special-info small {
  color: var(--muted);
}

.driver-license-modal {
  inset: 3vh max(14px, calc((100vw - 1180px) / 2)) auto;
  max-height: 94vh;
}

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

.driver-license-image-field {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.driver-license-image-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--brand);
}

.driver-license-alignment-badge {
  margin-left: auto;
  white-space: nowrap;
}

.driver-license-alignment-badge .material-icons {
  font-size: 16px;
}

.driver-license-document-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.driver-license-document-status .badge {
  gap: 5px;
}

.driver-license-document-status .material-icons {
  font-size: 16px;
}

.driver-license-document-status > span:not(.badge) {
  color: var(--muted);
  font-size: 13px;
}

.required-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #c52f67;
}

.driver-license-image-field img,
.driver-license-image-placeholder {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.driver-license-image-field img {
  display: block;
  object-fit: contain;
}

.driver-license-image-field img[hidden],
.driver-license-image-placeholder[hidden] {
  display: none;
}

.driver-license-image-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
}

.driver-license-image-placeholder .material-icons {
  color: var(--brand);
  font-size: 34px;
}

.driver-license-image-placeholder.is-clickable {
  cursor: pointer;
  font: inherit;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.driver-license-image-placeholder.is-clickable:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.driver-license-image-placeholder.is-clickable:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 92, 169, 0.18);
}

.driver-license-file-button {
  width: max-content;
  cursor: pointer;
}

.driver-license-image-actions {
  flex-wrap: wrap;
}

.driver-license-corner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 27, 23, 0.68);
}

.driver-license-corner-modal {
  position: fixed;
  inset: 2vh max(12px, calc((100vw - 1280px) / 2));
  z-index: 110;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.driver-license-corner-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.driver-license-corner-instructions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.driver-license-corner-instructions span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.driver-license-corner-instructions b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--muted);
}

.driver-license-corner-instructions .is-set {
  color: var(--brand);
  border-color: rgba(148, 193, 31, 0.48);
  background: var(--accent-soft);
}

.driver-license-corner-instructions .is-set b,
.driver-license-corner-instructions .is-next b {
  background: var(--accent);
  color: #14220b;
}

.driver-license-corner-instructions .is-next {
  color: var(--brand);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(148, 193, 31, 0.16);
}

.driver-license-corner-stage-wrap {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 7px;
  background: #101a22;
}

.driver-license-corner-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.driver-license-corner-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  pointer-events: none;
}

.driver-license-corner-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.driver-license-corner-stage polygon,
.driver-license-corner-stage polyline {
  fill: rgba(148, 193, 31, 0.14);
  stroke: #94c11f;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.driver-license-corner-stage polyline {
  fill: none;
}

.driver-license-corner-stage g {
  cursor: grab;
}

.driver-license-corner-stage .driver-license-corner-hit-area {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.driver-license-corner-stage .driver-license-corner-dot {
  fill: #c52f67;
  stroke: #fff;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.driver-license-corner-magnifier {
  position: absolute;
  z-index: 6;
  width: 136px;
  height: 136px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.driver-license-corner-magnifier[hidden] {
  display: none;
}

.driver-license-corner-number {
  fill: #fff;
  font-size: 34px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.driver-license-corner-label {
  fill: #fff;
  stroke: rgba(13, 27, 23, 0.92);
  stroke-width: 8px;
  paint-order: stroke fill;
  font-size: 28px;
  font-weight: 800;
  dominant-baseline: central;
  pointer-events: none;
}

.driver-license-corner-help {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.driver-license-ocr-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.driver-license-ocr-preview summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.driver-license-ocr-preview summary .material-icons {
  font-size: 19px;
}

.driver-license-ocr-preview > p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.driver-license-ocr-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.driver-license-ocr-preview figure {
  margin: 0;
  min-width: 0;
}

.driver-license-ocr-preview figcaption {
  margin-bottom: 5px;
  color: var(--brand);
  font-weight: 800;
}

.driver-license-ocr-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.driver-license-ocr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 193, 31, 0.45);
  border-radius: 8px;
  background: var(--accent-soft);
}

.driver-license-ocr-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.driver-license-ocr-bar span {
  color: var(--muted);
  font-size: 13px;
}

.driver-license-ocr-progress-row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.driver-license-ocr-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 86, 164, 0.12);
}

.driver-license-ocr-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 160ms ease;
}

.driver-license-ocr-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-license-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.driver-license-quality-summary {
  display: grid;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(79, 141, 22, 0.32);
  border-radius: 8px;
  color: #315d0e;
  background: var(--accent-soft);
}

.driver-license-quality-summary.has-warnings {
  border-color: rgba(168, 104, 0, 0.38);
  color: #744800;
  background: #fff8e8;
}

.driver-license-quality-summary > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.driver-license-quality-summary > div > div {
  display: grid;
  gap: 2px;
}

.driver-license-quality-summary span:not(.material-icons) {
  color: var(--muted);
  font-size: 13px;
}

.driver-license-quality-summary ul {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: 13px;
}

.driver-license-ocr-text {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
}

.driver-license-ocr-text summary {
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.driver-license-ocr-text pre {
  max-height: 180px;
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow: auto;
}

.driver-license-modal-actions {
  justify-content: flex-end;
}

.user-admin-boolean-field {
  width: fit-content;
  min-height: 44px;
}

@media (max-width: 820px) {
  .driver-license-corner-modal {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .driver-license-corner-modal .storage-modal-header {
    align-items: flex-start;
  }

  .driver-license-corner-modal .storage-modal-header .actions-row {
    justify-content: flex-end;
  }

  .driver-license-corner-body {
    padding: 10px;
  }

  .driver-license-corner-stage-wrap {
    margin-inline: 4px;
    padding: 18px;
  }

  .driver-license-corner-instructions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .driver-license-corner-instructions span {
    flex: 0 0 auto;
  }

  .driver-license-corner-magnifier {
    width: 124px;
    height: 124px;
  }

  .driver-license-modal .storage-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .driver-license-modal .storage-modal-header .actions-row {
    flex-wrap: nowrap;
  }

  .driver-license-modal .storage-modal-header h2 {
    font-size: 20px;
  }

  .driver-license-user-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .driver-license-user-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .driver-license-special-request-fields {
    grid-template-columns: 1fr;
  }

  .driver-license-special-reason {
    grid-column: auto;
  }

  .driver-license-ocr-preview-grid,
  .driver-license-image-grid,
  .driver-license-fields {
    grid-template-columns: 1fr;
  }

  .driver-license-ocr-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .driver-license-ocr-progress-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface-2) 210px),
    var(--surface-2);
  font-family: Lato, Inter, Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.material-icons {
  font-family: "Material Icons Round";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: normal;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.boot-screen,
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(0, 92, 169, 0.1), rgba(148, 193, 31, 0.12)),
    var(--surface-2);
}

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

.boot-mark {
  color: var(--brand);
  font-size: 30px;
  font-weight: 800;
}

.boot-line {
  height: 4px;
  width: 72px;
  margin: 16px 0;
  background: var(--accent);
}

.login-logo {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.login-logo img {
  max-width: 150px;
  max-height: 96px;
  object-fit: contain;
}

.login-logo h1 {
  margin: 0;
  color: var(--brand);
  font-family: Raleway, Lato, Inter, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

[data-storage-extra-order-field][hidden] {
  display: none !important;
}

.field > span,
.field label,
.field-label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  padding: 9px 11px;
  outline: none;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.24);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  color: var(--muted);
  background: var(--surface-2);
  cursor: not-allowed;
  opacity: 0.85;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.field-hint.error {
  color: var(--danger);
}

.field-required-marker {
  display: inline-block;
  position: relative;
  top: -1px;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  padding: 0;
  border-radius: 50%;
  background: var(--danger);
  vertical-align: middle;
}

.field:has(.input:valid) > span .field-required-marker,
.field:has(.select:valid) > span .field-required-marker,
.vehicle-handover-acknowledgement:has(input:checked) .field-required-marker,
.vehicle-handover-acknowledgement:has(input:disabled) .field-required-marker {
  display: none;
}

.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(207, 47, 87, 0.14);
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 6px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--surface-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover,
.icon-btn:hover {
  background: #e7f1f8;
}

.btn:active,
.icon-btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  color: #fff;
  background: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.accent {
  color: #143000;
  background: var(--accent);
}

.btn.accent:hover {
  background: var(--accent-strong);
}

.btn.success {
  color: #fff;
  background: var(--success);
}

.btn.success:hover {
  background: #3f7412;
}

.btn.danger {
  color: #fff;
  background: var(--danger);
}

.btn.ghost {
  background: transparent;
}

.icon-btn {
  width: 38px;
  padding: 0;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
  box-shadow: 7px 0 22px rgba(0, 92, 169, 0.06);
}

.brand-bar {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 4px solid var(--accent);
}

.brand-name {
  color: var(--brand);
  font-family: Raleway, Lato, Inter, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.nav-search {
  padding: 12px;
}

.nav-search .input {
  min-height: 36px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.nav-group-label {
  padding: 16px 18px 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-list {
  overflow: auto;
  padding: 0 10px 18px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  margin: 2px 0;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.nav-tree-toggle .nav-tree-chevron {
  margin-left: auto;
  font-size: 19px;
  transition: transform 0.16s ease;
}

.nav-tree-toggle.expanded .nav-tree-chevron {
  transform: rotate(180deg);
}

.nav-tree {
  display: grid;
  gap: 4px;
}

.nav-sublist {
  display: grid;
  gap: 4px;
  margin: 0 0 6px 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 92, 169, 0.12);
}

.nav-subitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: #edf2f6;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav-subitem:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-subitem.active {
  color: var(--brand);
  background: rgba(148, 193, 31, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-subitem .material-icons {
  font-size: 18px;
}

.nav-subitem:not(.active) .material-icons {
  color: var(--brand);
}

.nav-item:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-item.active {
  color: var(--brand);
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.nav-item.active .material-icons {
  color: var(--accent-strong);
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 4px solid var(--accent);
  backdrop-filter: blur(12px);
}

.topbar-title {
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  color: var(--brand);
  font-family: Raleway, Lato, Inter, sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.topbar-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-actions .icon-btn.active {
  color: #173100;
  background: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0, 92, 169, 0.28);
}

.admin-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
}

.admin-view-switch .material-icons {
  font-size: 19px;
}

.admin-view-switch .select {
  width: auto;
  min-width: 118px;
  min-height: 30px;
  padding: 4px 28px 4px 8px;
  border: 0;
  background-color: transparent;
  font-weight: 800;
}

.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.grid {
  display: grid;
  gap: 14px;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.dashboard-logo-stage {
  min-height: min(calc(100vh - 180px), 720px);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px);
}

.dashboard-logo-image {
  width: min(100%, 1080px);
  height: auto;
  display: block;
  object-fit: contain;
}

.module-tile {
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 9px 26px rgba(0, 92, 169, 0.07);
  cursor: pointer;
  text-decoration: none;
}

.module-tile:hover {
  border-color: var(--line);
  border-top-color: var(--accent);
  transform: translateY(-1px);
}

.module-title {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
}

.module-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #173100;
  background: var(--accent);
  flex: 0 0 auto;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 9px 24px rgba(0, 92, 169, 0.06);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0, #f5f9ec 100%);
}

.section-header h2 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.section-body {
  padding: 16px;
}

.actions-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.customer-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) max-content;
  gap: 12px;
  align-items: end;
}

.customer-search-bar .field {
  margin-bottom: 0;
}

.article-search-bar {
  max-width: 520px;
}

.article-search-bar .field {
  margin-bottom: 0;
}

.article-table-toolbar {
  justify-content: flex-end;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.article-detail-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.article-detail-aside {
  min-width: 0;
}

.article-detail-facts {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.article-detail-facts dt {
  color: var(--brand);
  font-weight: 900;
}

.article-detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.article-image-body {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
}

.article-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.article-detail-image[hidden],
.article-image-placeholder[hidden] {
  display: none !important;
}

.article-image-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: linear-gradient(180deg, #fbfdf7, #f4f8ea);
  border: 1px dashed var(--line);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
}

.article-staffel-table {
  min-width: 420px;
}

.article-staffel-raw {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

.article-detail-modal {
  inset-inline: max(18px, calc((100vw - 1280px) / 2));
}

.article-change-intro {
  display: grid;
  gap: 14px;
}

.article-change-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.article-change-journey-step {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-change-journey-step strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-change-journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.article-change-journey-edit {
  width: 30px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.article-change-journey-edit .material-icons {
  font-size: 18px;
}

.article-change-journey-step span {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.article-change-journey-step.current {
  border-color: rgba(148, 193, 31, 0.42);
  background: #fbfdea;
}

.article-change-journey-step.done {
  border-color: rgba(148, 193, 31, 0.4);
  background: var(--accent-soft);
}

.article-change-step-body {
  display: grid;
  gap: 16px;
}

.article-change-step-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.article-change-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #173100;
  background: var(--accent-soft);
  border: 1px solid rgba(148, 193, 31, 0.42);
  font-size: 14px;
  font-weight: 900;
}

.article-change-step-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.article-change-step-copy h3 {
  margin: 0;
}

.article-change-step-copy .page-note {
  margin: 0;
}

.article-change-mode-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.article-change-mode-card {
  min-height: 138px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.article-change-mode-card .material-icons {
  color: var(--brand);
  font-size: 24px;
}

.article-change-mode-card strong {
  font-size: 16px;
}

.article-change-mode-card small {
  color: var(--muted);
  line-height: 1.45;
}

.article-change-mode-card:hover {
  background: #f8fbff;
}

.article-change-mode-card.active {
  border-color: rgba(148, 193, 31, 0.45);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.article-change-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.article-change-flow-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.article-change-flow-card strong {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-change-flow-card.empty {
  color: var(--muted);
  background: var(--surface-2);
}

.article-change-flow-arrow {
  color: var(--accent-strong);
}

.article-change-selection-grid,
.article-change-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.article-change-card,
.article-change-form-card,
.article-change-matches-card {
  min-width: 0;
}

.article-change-card-body {
  display: grid;
  gap: 12px;
}

.article-change-selected-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.article-change-selected-card.old {
  box-shadow: inset 4px 0 0 var(--brand);
}

.article-change-selected-card.new {
  box-shadow: inset 4px 0 0 var(--accent);
}

.article-change-selected-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.article-change-selected-main strong {
  color: var(--brand);
  font-size: 15px;
}

.article-change-selected-main small {
  color: var(--muted);
}

.article-change-card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-change-results-wrap,
.article-change-matches-wrap {
  max-height: 340px;
}

.article-change-list,
.article-change-list-body {
  display: grid;
  gap: 0;
}

.article-change-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.article-change-list-head,
.article-change-list-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr) minmax(100px, 0.22fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.article-change-list-head {
  color: var(--brand);
  background: #edf3fb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-change-list-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.article-change-list-row:hover {
  background: #f4f8ea;
}

.article-change-list-row.selected {
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.article-change-list-row span {
  min-width: 0;
}

.article-change-list-row span:nth-child(2) {
  white-space: normal;
}

.article-change-matches-table td:nth-child(2),
.article-change-matches-table td:nth-child(8) {
  white-space: normal;
  min-width: 180px;
}

.article-change-matches-table tr.selected td {
  background: var(--accent-soft);
}

.article-change-mode-bar {
  display: grid;
  gap: 12px;
}

.article-change-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.mode-chip.active {
  color: #173100;
  border-color: rgba(148, 193, 31, 0.45);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.article-change-workspace {
  overflow: visible;
}

.article-change-selected-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.article-change-selected-entry div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
}

.article-change-selected-entry dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-change-selected-entry dd {
  margin: 4px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-change-form-grid .field {
  margin-bottom: 0;
}

.article-change-form-grid {
  align-items: stretch;
}

.article-change-compare-note {
  margin: 0 0 14px;
}

.article-change-compare-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-change-compare-card.changed {
  border-color: rgba(148, 193, 31, 0.45);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.article-change-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.article-change-compare-title {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.article-change-compare-head strong {
  color: var(--brand);
  font-size: 14px;
}

.article-change-compare-meta {
  color: #8a95a3;
  font-size: 12px;
  font-weight: 600;
}

.article-change-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.article-change-compare-grid.multiline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-change-compare-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.article-change-compare-column-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.article-change-compare-value,
.article-change-compare-input {
  min-height: 56px;
}

.article-change-compare-value {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.article-change-compare-value.multiline,
.article-change-compare-new.multiline .article-change-compare-input {
  min-height: 110px;
}

.article-change-compare-value.multiline {
  align-items: flex-start;
}

.article-change-compare-new {
  margin-bottom: 0;
}

.article-change-compare-new .input,
.article-change-compare-new .textarea {
  margin-bottom: 0;
}

.article-change-compare-textarea {
  height: 100%;
  resize: vertical;
}

.article-change-submit-row {
  margin-top: 14px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .article-change-compare-grid,
  .article-change-compare-grid.multiline {
    grid-template-columns: 1fr;
  }
}

.article-change-preview-table td {
  white-space: nowrap;
}

.car-charging-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.vehicle-hub-header {
  align-items: start;
}

.vehicle-hub-body {
  display: grid;
  gap: 14px;
}

.vehicle-hub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-hub-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: var(--surface-2);
  font-weight: 800;
  cursor: pointer;
}

.vehicle-hub-tab.active {
  color: #143000;
  border-color: rgba(148, 193, 31, 0.4);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.vehicle-hub-note {
  margin: 0;
}

.car-charging-summary-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
}

.car-charging-summary-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.car-charging-summary-card dd {
  margin: 6px 0 0;
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.car-charging-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.car-charging-toolbar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.car-charging-toolbar-copy strong {
  color: var(--brand);
}

.car-charging-toolbar-copy .page-note {
  margin: 0;
}

.car-charging-modal {
  inset: 6vh max(18px, calc((100vw - 980px) / 2)) auto;
}

.article-change-success-modal,
.car-charging-success-modal {
  inset: 12vh max(18px, calc((100vw - 680px) / 2)) auto;
}

.article-change-confirmation-note .page-note {
  margin: 0;
  color: var(--text);
}

.article-change-confirmation-table-wrap {
  max-height: min(36vh, 360px);
  overflow: auto;
}

.article-change-confirmation-table th,
.article-change-confirmation-table td {
  vertical-align: top;
}

.article-change-confirmation-table th:first-child,
.article-change-confirmation-table td:first-child {
  width: 56px;
}

.article-change-confirmation-table td:nth-child(2) {
  min-width: 280px;
  white-space: normal;
}

.article-change-confirmation-table td {
  overflow-wrap: anywhere;
}

.car-charging-form-layout {
  display: grid;
  gap: 14px;
}

.car-charging-success-state {
  display: grid;
  gap: 18px;
}

.car-charging-success-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(148, 193, 31, 0.16);
  color: var(--accent);
}

.car-charging-success-mark .material-icons {
  font-size: 40px;
}

.car-charging-success-copy {
  display: grid;
  gap: 6px;
}

.car-charging-success-copy strong {
  color: var(--brand);
  font-size: 21px;
}

.car-charging-success-copy p {
  margin: 0;
  color: var(--muted);
}

.car-charging-success-actions {
  justify-content: flex-end;
}

.car-charging-form-grid {
  align-items: end;
}

.car-charging-form-grid .field {
  margin-bottom: 0;
}

.car-charging-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.car-charging-metric-row .field {
  margin-bottom: 0;
}

.car-charging-form-grid .input,
.car-charging-form-grid .select,
.car-charging-metric-row .input,
.car-charging-metric-row .select,
.car-charging-value-card {
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
}

.car-charging-value-field {
  min-width: 0;
}

.car-charging-value-card {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 900;
}

.car-charging-rate-note {
  margin: -2px 0 2px;
}

.car-charging-preview-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 132, 0, 0.18);
  border-radius: 8px;
  background: #fff7df;
  color: #7a4b00;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.car-charging-household-copy {
  display: grid;
  gap: 4px;
}

.car-charging-household-copy strong {
  color: var(--brand);
}

.car-charging-household-copy .page-note {
  margin: 0;
}

.car-charging-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.car-charging-choice-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.car-charging-choice-card input {
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.car-charging-choice-card strong,
.car-charging-choice-card small {
  display: block;
}

.car-charging-choice-card strong {
  color: var(--ink);
  font-size: 15px;
}

.car-charging-choice-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.car-charging-choice-card:hover,
.car-charging-choice-card.active {
  border-color: rgba(148, 193, 31, 0.45);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.car-charging-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(201, 39, 86, 0.16);
  border-radius: 8px;
  background: rgba(201, 39, 86, 0.06);
  color: #ad2146;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.car-charging-duplicate-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 0, 73, 0.16);
  border-radius: 8px;
  background: rgba(229, 0, 85, 0.06);
  color: #ad2146;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.car-charging-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.car-charging-file-name {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.car-charging-form-actions {
  justify-content: flex-end;
}

.car-charging-filter-field {
  width: min(300px, 100%);
}

.car-charging-table {
  min-width: 900px;
}

.car-charging-table td:nth-child(2),
.car-charging-table td:nth-child(3),
.car-charging-table td:nth-child(5),
.car-charging-table td:nth-child(6),
.car-charging-table td:nth-child(7) {
  white-space: nowrap;
}

.car-charging-table td:nth-child(4) {
  min-width: 190px;
  white-space: normal;
}

.vehicle-check-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.vehicle-check-panel {
  min-height: 100%;
}

.vehicle-check-workspace-body,
.vehicle-check-month-stack,
.vehicle-check-vehicle-list,
.vehicle-check-period-list {
  display: grid;
  gap: 10px;
}

.vehicle-check-vehicle-card,
.vehicle-check-period-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.vehicle-check-vehicle-card > div,
.vehicle-check-period-card > div {
  min-width: 0;
}

.vehicle-check-card-badges {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex-shrink: 0;
}

.vehicle-check-vehicle-card > div > strong,
.vehicle-check-period-card > div > strong {
  display: block;
  color: var(--brand);
  font-size: 15px;
}

.vehicle-check-vehicle-card > div > span,
.vehicle-check-period-card > div > span,
.vehicle-check-vehicle-card > div > small,
.vehicle-check-period-card > div > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.vehicle-check-vehicle-card:hover,
.vehicle-check-vehicle-card.active,
.vehicle-check-period-card:hover,
.vehicle-check-period-card.active {
  border-color: rgba(148, 193, 31, 0.45);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.vehicle-check-period-card.missing {
  background: #fffdf7;
}

.vehicle-check-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-check-month-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 18px;
}

.vehicle-check-month-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vehicle-check-period-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vehicle-check-period-rail .vehicle-check-period-card {
  min-height: 100%;
}

.vehicle-check-focus-strip .section-body {
  padding: 14px 16px;
}

.vehicle-check-focus-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.vehicle-check-focus-title {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.vehicle-check-focus-row .btn {
  white-space: nowrap;
}

.vehicle-check-focus-months {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.vehicle-check-period-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.vehicle-check-period-chip:hover,
.vehicle-check-period-chip.active {
  border-color: rgba(148, 193, 31, 0.45);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
}

.vehicle-check-detail {
  display: grid;
  gap: 16px;
}

.vehicle-check-callout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 193, 31, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(148, 193, 31, 0.12), rgba(0, 92, 169, 0.04));
}

.vehicle-check-callout--soft {
  border-color: rgba(0, 92, 169, 0.14);
  background: linear-gradient(135deg, rgba(0, 92, 169, 0.05), rgba(148, 193, 31, 0.06));
}

.vehicle-check-callout strong {
  display: block;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-check-callout p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.vehicle-check-callout-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vehicle-check-record-preview {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vehicle-check-readonly-note {
  padding: 14px 16px;
  border: 1px solid rgba(0, 92, 169, 0.12);
  border-radius: 8px;
  background: var(--surface-3);
}

.vehicle-check-readonly-note strong {
  display: block;
  color: var(--brand);
}

.vehicle-check-readonly-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.vehicle-check-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.vehicle-check-card.wide {
  grid-column: 1 / -1;
}

.vehicle-check-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-check-card-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 18px;
}

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

.vehicle-check-field {
  display: grid;
  gap: 6px;
}

.vehicle-check-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-check-field .input {
  min-height: 46px;
}

.vehicle-check-date-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.vehicle-check-today-button {
  min-height: 46px;
  white-space: nowrap;
}

.vehicle-check-field--readonly {
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.vehicle-check-field--readonly strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.vehicle-check-field--overdue > span {
  color: #c93452;
}

.vehicle-check-field--overdue .input,
.vehicle-check-field--overdue.vehicle-check-field--readonly {
  border-color: rgba(201, 52, 82, 0.48);
  background: rgba(229, 0, 85, 0.06);
  box-shadow: inset 4px 0 0 rgba(229, 0, 85, 0.62);
}

.vehicle-check-field--overdue strong,
.vehicle-check-field--overdue .input {
  color: #8f1430;
  font-weight: 800;
}

.vehicle-check-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.vehicle-check-checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
}

.vehicle-check-checkbox-card.checked {
  border-color: rgba(148, 193, 31, 0.4);
  background: rgba(148, 193, 31, 0.1);
}

.vehicle-check-checkbox-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.vehicle-check-checkbox-card span {
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.vehicle-check-mini-preview {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.vehicle-fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.vehicle-fleet-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.vehicle-fleet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.vehicle-fleet-thumbnail {
  flex: 0 0 86px;
  width: 86px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}

.vehicle-fleet-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-fleet-thumbnail-image[hidden],
.vehicle-fleet-thumbnail-placeholder[hidden] {
  display: none !important;
}

.vehicle-fleet-thumbnail-placeholder {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(233, 246, 252, 0.88));
}

.vehicle-fleet-thumbnail-placeholder::before {
  content: "";
  width: 40px;
  height: 30px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%230059a6' fill-opacity='.72' d='M16 23.5 20.4 13c.7-1.7 2.3-2.8 4.2-2.8h14.8c1.9 0 3.5 1.1 4.2 2.8L48 23.5l3.8 1.9c1.2.6 2 1.8 2 3.2v14.2c0 1.5-1.2 2.7-2.7 2.7h-3.4c-1.5 0-2.7-1.2-2.7-2.7v-1.5H19v1.5c0 1.5-1.2 2.7-2.7 2.7h-3.4c-1.5 0-2.7-1.2-2.7-2.7V28.6c0-1.4.8-2.6 2-3.2l3.8-1.9Zm6.7-8.2-3.1 8h24.8l-3.1-8c-.3-.7-1-1.2-1.8-1.2H24.5c-.8 0-1.5.5-1.8 1.2ZM18.3 34.6a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4Zm27.4 0a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4ZM19 37.3h26v-3.4H19v3.4Z'/%3E%3C/svg%3E");
}

.vehicle-fleet-thumbnail-icon {
  display: none;
  width: 34px;
  height: 34px;
  fill: rgba(0, 89, 166, 0.72);
}

.vehicle-fleet-summary:hover {
  background: rgba(255, 255, 255, 0.5);
}

.vehicle-fleet-summary-main {
  min-width: 0;
  flex: 1 1 auto;
}

.vehicle-fleet-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vehicle-fleet-summary h3 {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
}

.vehicle-fleet-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.vehicle-fleet-summary-side {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.vehicle-fleet-summary-user {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.vehicle-fleet-summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vehicle-fleet-summary-user strong {
  font-size: 14px;
  line-height: 1.2;
}

.vehicle-fleet-summary-icon {
  color: var(--brand);
}

.vehicle-fleet-detail-page {
  overflow: visible;
}

.vehicle-fleet-detail-header {
  align-items: flex-start;
}

.vehicle-fleet-detail-body {
  display: grid;
  gap: 14px;
}

.vehicle-fleet-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.vehicle-fleet-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.vehicle-fleet-detail-image-panel {
  min-height: 260px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vehicle-fleet-detail-image {
  max-height: 340px;
}

.vehicle-fleet-readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.vehicle-fleet-readonly-field {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  display: grid;
  align-content: start;
  gap: 4px;
}

.vehicle-fleet-readonly-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-fleet-readonly-field strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vehicle-fleet-readonly-field--overdue {
  border-color: rgba(196, 49, 86, 0.45);
  background: rgba(196, 49, 86, 0.08);
}

.vehicle-fleet-detail-notes {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.vehicle-financing-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vehicle-financing-details > .page-note {
  margin: 10px 0 0;
}

.vehicle-leasing-empty {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vehicle-leasing-empty .material-icons {
  color: var(--brand);
}

.vehicle-leasing-forecast {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vehicle-leasing-forecast-header {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-leasing-forecast-header h4,
.vehicle-leasing-forecast-header p {
  margin: 0;
}

.vehicle-leasing-forecast-header h4 {
  color: var(--brand);
  font-size: 15px;
}

.vehicle-leasing-forecast-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-leasing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 8px;
}

.vehicle-leasing-metric {
  min-width: 0;
  min-height: 78px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  display: grid;
  align-content: start;
  gap: 4px;
}

.vehicle-leasing-metric > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-leasing-metric > strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.vehicle-leasing-metric > small {
  color: var(--muted);
  font-weight: 700;
}

.vehicle-leasing-metric.success,
.vehicle-leasing-metric > small.success {
  color: var(--success);
}

.vehicle-leasing-metric.danger,
.vehicle-leasing-metric > small.danger {
  color: var(--danger);
}

.vehicle-leasing-metric.success {
  border-color: rgba(89, 128, 20, 0.38);
  background: rgba(145, 195, 20, 0.08);
}

.vehicle-leasing-metric.danger {
  border-color: rgba(196, 49, 86, 0.4);
  background: rgba(196, 49, 86, 0.07);
}

.vehicle-leasing-metric.success > strong,
.vehicle-leasing-metric.success > small {
  color: var(--success);
}

.vehicle-leasing-metric.danger > strong,
.vehicle-leasing-metric.danger > small {
  color: var(--danger);
}

.vehicle-fleet-detail-tabs-section {
  overflow: hidden;
}

.vehicle-fleet-detail-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.vehicle-fleet-detail-tab {
  min-width: 0;
  min-height: 54px;
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 4px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.vehicle-fleet-detail-tab:last-child {
  border-right: 0;
}

.vehicle-fleet-detail-tab:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.vehicle-fleet-detail-tab.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.vehicle-fleet-detail-tab .material-icons {
  font-size: 21px;
}

.vehicle-fleet-detail-tab .badge {
  min-width: 28px;
  justify-content: center;
}

.vehicle-fleet-detail-tab-body {
  min-height: 220px;
}

.vehicle-fleet-tab-content {
  display: grid;
  gap: 14px;
}

.vehicle-fleet-tab-content > .storage-modal-section {
  margin: 0;
}

.vehicle-fleet-secondary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.vehicle-fleet-check-panel {
  display: grid;
  gap: 12px;
}

.vehicle-fleet-check-panel .section-subtitle {
  margin-top: 3px;
}

.vehicle-fleet-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.vehicle-fleet-handover-history-body {
  display: grid;
  gap: 16px;
}

.vehicle-fleet-handover-history .vehicle-handover-list-group {
  margin: 0;
}

.vehicle-fleet-secondary-layout .vehicle-fleet-check-list {
  grid-template-columns: 1fr;
}

.vehicle-operations-dashboard .section-body {
  padding-top: 14px;
}

.vehicle-operations-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
}

.vehicle-operation-metric {
  min-width: 0;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.vehicle-operation-metric:hover {
  border-color: var(--accent);
  background: var(--brand-soft);
}

.vehicle-operation-metric > .material-icons {
  color: var(--brand);
  font-size: 28px;
}

.vehicle-operation-metric > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vehicle-operation-metric strong {
  color: var(--brand);
  font-size: 22px;
}

.vehicle-operation-metric small {
  color: var(--muted);
  font-weight: 700;
}

.vehicle-operation-metric.warning {
  border-color: rgba(211, 145, 23, 0.45);
  background: rgba(255, 241, 205, 0.55);
}

.vehicle-operation-metric.danger {
  border-color: rgba(196, 49, 86, 0.45);
  background: rgba(196, 49, 86, 0.07);
}

.vehicle-operation-metric.success {
  border-color: rgba(140, 198, 21, 0.42);
}

.vehicle-reminder-list,
.vehicle-operation-list {
  display: grid;
}

.vehicle-reminder-row,
.vehicle-operation-row {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.vehicle-reminder-row:last-child,
.vehicle-operation-row:last-child {
  border-bottom: 0;
}

.vehicle-reminder-row:hover,
.vehicle-operation-row:hover {
  background: var(--brand-soft);
}

.vehicle-reminder-row.warning {
  box-shadow: inset 4px 0 0 #d39117;
}

.vehicle-reminder-row.danger {
  box-shadow: inset 4px 0 0 #c43156;
}

.vehicle-reminder-row > .material-icons,
.vehicle-operation-row > .material-icons {
  color: var(--brand);
}

.vehicle-reminder-main,
.vehicle-operation-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vehicle-reminder-main strong,
.vehicle-operation-row-main strong {
  color: var(--brand);
}

.vehicle-reminder-main small,
.vehicle-operation-row-main small,
.vehicle-reminder-date {
  color: var(--muted);
}

.vehicle-operation-list.compact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.vehicle-operation-modal {
  inset-inline: max(18px, calc((100vw - 900px) / 2));
}

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

.vehicle-reservation-conflict {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 55, 90, 0.45);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  background: rgba(200, 55, 90, 0.08);
  color: #8a1630;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vehicle-reservation-conflict > .material-icons {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--danger);
}

.vehicle-reservation-conflict > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vehicle-reservation-conflict strong {
  font-weight: 800;
}

.vehicle-reservation-conflict div > span {
  color: #5f2835;
  line-height: 1.4;
}

.vehicle-operation-wide {
  grid-column: 1 / -1;
}

.vehicle-fleet-check-card {
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.vehicle-fleet-check-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.vehicle-fleet-check-card strong {
  display: block;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-fleet-check-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.vehicle-fleet-check-card.missing {
  background: #fffdf8;
}

.vehicle-fleet-damage-body {
  padding: 0;
}

.vehicle-fleet-damage-body .vehicle-damage-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.vehicle-handover-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.vehicle-handover-panel {
  min-width: 0;
}

.vehicle-handover-vehicle-list,
.vehicle-handover-list {
  display: grid;
  gap: 10px;
}

.vehicle-handover-group {
  display: grid;
  gap: 8px;
}

.vehicle-handover-list-group {
  display: grid;
  gap: 8px;
}

.vehicle-handover-group + .vehicle-handover-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.vehicle-handover-list-group + .vehicle-handover-list-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.vehicle-handover-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
}

.vehicle-handover-group-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 14px;
}

.vehicle-handover-group-list {
  display: grid;
  gap: 8px;
}

.vehicle-usage-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.vehicle-usage-control-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-usage-control strong {
  display: block;
  margin-top: 2px;
  color: var(--brand);
}

.vehicle-usage-segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface);
}

.vehicle-usage-segment-button {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.vehicle-usage-segment-button.active {
  background: var(--accent);
  color: #102136;
  cursor: default;
}

.vehicle-handover-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vehicle-handover-card:hover,
.vehicle-handover-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

.vehicle-handover-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.vehicle-handover-driver-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #d7ecad;
  border-radius: 8px;
  background: #eef7dc;
  color: var(--text);
  font-weight: 800;
}

.vehicle-handover-driver-pill .material-icons {
  color: var(--brand);
  font-size: 22px;
}

.vehicle-handover-driver-pill small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.vehicle-handover-driver-pill strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.vehicle-handover-card-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 10px;
}

.vehicle-handover-start-return,
.vehicle-handover-review {
  white-space: nowrap;
}

.vehicle-handover-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vehicle-handover-modal {
  max-width: min(980px, calc(100vw - 48px));
}

.vehicle-handover-form-section {
  display: grid;
  gap: 14px;
}

.vehicle-handover-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-handover-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(13, 55, 91, 0.05);
}

.vehicle-handover-step.active {
  border-color: #afd2e8;
  background: #f2f8fc;
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--brand), 0 1px 2px rgba(13, 55, 91, 0.05);
}

.vehicle-handover-step.done {
  border-color: #cfe4a1;
  background: #f5fae9;
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--accent), 0 1px 2px rgba(13, 55, 91, 0.05);
}

.vehicle-handover-step.upcoming {
  background: var(--surface-alt);
}

.vehicle-handover-step-copy {
  min-width: 0;
}

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

.vehicle-handover-step strong {
  color: var(--brand);
}

.vehicle-handover-step div > span {
  font-size: 0.82rem;
  color: var(--muted);
}

.vehicle-handover-step .vehicle-handover-step-check {
  color: #a9b6c1;
  font-size: 30px;
}

.vehicle-handover-step.active .vehicle-handover-step-check {
  color: var(--brand);
}

.vehicle-handover-step.done .vehicle-handover-step-check {
  color: var(--accent-strong);
}

.vehicle-handover-form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.vehicle-handover-summary-section {
  background: var(--surface-alt);
}

.vehicle-handover-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.vehicle-handover-summary-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.vehicle-handover-summary-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-handover-summary-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.vehicle-handover-known-damages {
  display: grid;
  gap: 8px;
}

.vehicle-handover-known-damages-empty {
  min-height: 54px;
}

.vehicle-handover-known-damage {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vehicle-handover-known-damage:hover,
.vehicle-handover-known-damage:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--accent);
  outline: none;
}

.vehicle-handover-known-damage h4 {
  margin: 0;
}

.vehicle-handover-known-damage p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.vehicle-handover-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.35;
}

.vehicle-handover-acknowledgement.invalid {
  border-color: var(--danger);
  background: #fff0f3;
  color: var(--danger);
}

.vehicle-handover-acknowledgement input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.vehicle-handover-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.vehicle-handover-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
}

.vehicle-handover-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.vehicle-handover-tour-key-count {
  max-width: 260px;
}

.vehicle-handover-approval-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vehicle-handover-footer {
  flex-wrap: wrap;
}

.vehicle-handover-footer [data-action="vehicle-handover-submit-return"]:disabled {
  color: var(--muted);
  background: #e2e8ed;
  border-color: var(--line);
  box-shadow: none;
  opacity: 1;
}

.vehicle-handover-footer [data-action="vehicle-handover-submit-return"]:disabled:hover {
  background: #e2e8ed;
}

.vehicle-fleet-preview {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 5px;
}

.vehicle-fleet-preview div {
  padding: 6px 8px;
}

.vehicle-fleet-preview dt {
  font-size: 9px;
}

.vehicle-fleet-preview dd {
  margin-top: 1px;
  line-height: 1.15;
}

.vehicle-fleet-edit-btn {
  min-height: 32px;
  padding: 6px 10px;
}

.vehicle-editor-modal {
  max-width: min(980px, calc(100vw - 48px));
}

.vehicle-editor-modal--camera {
  max-width: min(760px, calc(100vw - 48px));
}

.vehicle-editor-layout {
  display: grid;
  gap: 14px;
}

.vehicle-editor-camera-only {
  display: grid;
  gap: 14px;
}

.vehicle-editor-image-panel {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vehicle-editor-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #fff;
}

.vehicle-editor-image[hidden] {
  display: none;
}

.vehicle-editor-image-placeholder {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.vehicle-editor-image-placeholder[hidden] {
  display: none;
}

.vehicle-editor-image-placeholder-content {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.vehicle-editor-image-placeholder-content .material-icons {
  font-size: 44px;
  color: var(--brand);
  opacity: 0.72;
}

.vehicle-editor-image-actions {
  margin-top: 12px;
  align-items: center;
}

.vehicle-editor-image-actions-inline {
  margin-top: 0;
}

.vehicle-editor-image-input {
  display: none;
}

.vehicle-editor-source-picker {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.vehicle-editor-source-picker-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-editor-source-picker-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vehicle-editor-source-picker-option {
  position: relative;
  overflow: hidden;
}

.vehicle-editor-source-picker-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.vehicle-editor-camera-panel {
  position: relative;
  display: grid;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #101820;
}

.vehicle-editor-camera-video {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.vehicle-editor-camera-placeholder {
  grid-area: 1 / 1;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

.vehicle-editor-field-wide {
  grid-column: 1 / -1;
}

.vehicle-editor-toggle {
  margin-top: 16px;
}

.vehicle-editor-actions {
  justify-content: flex-end;
}

.vehicle-editor-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.vehicle-editor-header-actions .btn,
.vehicle-editor-header-actions .icon-btn {
  margin: 0;
}

.vehicle-editor-camera-actions {
  justify-content: center;
}

.vehicle-damage-section {
  min-width: 0;
}

.vehicle-check-damage-card {
  padding: 0;
  overflow: hidden;
}

.vehicle-check-damage-card .vehicle-damage-section {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.vehicle-damage-list {
  display: grid;
  gap: 10px;
}

.vehicle-damage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vehicle-damage-card:hover,
.vehicle-damage-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

.vehicle-damage-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.vehicle-damage-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-damage-title-row h4 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-damage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-damage-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vehicle-damage-location {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.vehicle-damage-location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-damage-location-header h3 {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-damage-location-content {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(160px, 1fr);
  align-items: center;
  gap: 16px;
}

.vehicle-damage-location-map {
  appearance: none;
  position: relative;
  width: 100%;
  max-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: crosshair;
}

div.vehicle-damage-location-map {
  cursor: default;
}

.vehicle-damage-location-map:focus-visible {
  outline: 3px solid rgba(149, 193, 31, 0.35);
  outline-offset: 2px;
}

.vehicle-damage-location-map svg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
}

.vehicle-damage-location-label-front {
  fill: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-damage-location-wheel {
  fill: #1b2a3d;
}

.vehicle-damage-location-body {
  fill: #eaf4fb;
  stroke: var(--brand);
  stroke-width: 2;
}

.vehicle-damage-location-window {
  fill: #d7ecfb;
  stroke: rgba(0, 86, 166, 0.45);
  stroke-width: 1;
}

.vehicle-damage-location-centerline {
  fill: none;
  stroke: rgba(0, 86, 166, 0.25);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.vehicle-damage-location-marker {
  fill: #d11f45;
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.25));
}

.vehicle-damage-location-info {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.vehicle-damage-location-info span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.vehicle-damage-location-info strong {
  color: var(--text);
  font-size: 18px;
}

.vehicle-damage-location-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 0;
  padding: 6px 8px;
  background: #eef7dc;
  border-color: #d7ecad;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.vehicle-damage-location-compact .vehicle-damage-location-map {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 7px;
  cursor: default;
}

.vehicle-damage-location-compact .vehicle-damage-location-map svg {
  max-height: 34px;
}

.vehicle-damage-location-compact .vehicle-damage-location-label-front {
  display: none;
}

.vehicle-damage-add-photo-button {
  width: fit-content;
}

.vehicle-damage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.vehicle-damage-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
  align-content: start;
}

.vehicle-damage-photo {
  appearance: none;
  padding: 0;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: zoom-in;
}

.vehicle-damage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-damage-photo img[hidden] {
  display: none;
}

.vehicle-damage-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
}

.vehicle-damage-photo-placeholder[hidden] {
  display: none;
}

.vehicle-damage-photo-placeholder .material-icons {
  font-size: 22px;
}

.vehicle-damage-modal {
  max-width: min(820px, calc(100vw - 48px));
}

.vehicle-damage-readonly-modal {
  max-width: min(900px, calc(100vw - 48px));
}

.vehicle-damage-readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.vehicle-damage-readonly-item {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.vehicle-damage-readonly-item span,
.vehicle-damage-readonly-description span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-damage-readonly-item strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vehicle-damage-readonly-description {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vehicle-damage-readonly-description p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vehicle-damage-readonly-third-party,
.vehicle-damage-readonly-photos {
  margin-top: 14px;
}

.vehicle-damage-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-damage-autosave-status {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.vehicle-damage-autosave-status.saved {
  color: var(--success);
}

.vehicle-damage-autosave-status.saving {
  color: var(--brand);
}

.vehicle-damage-autosave-status.warning {
  color: #8a5b00;
}

.vehicle-damage-autosave-status.error {
  color: var(--danger);
}

.vehicle-damage-photo-preview-modal {
  width: min(980px, calc(100vw - 32px));
  max-width: min(980px, calc(100vw - 32px));
}

.vehicle-damage-photo-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-damage-photo-preview-actions .btn {
  min-width: 70px;
  justify-content: center;
}

.vehicle-damage-photo-preview-body {
  display: grid;
  place-items: center;
  padding: 16px;
  max-height: calc(100vh - 160px);
  overflow: hidden;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.vehicle-damage-photo-preview-body.is-pannable {
  cursor: grab;
}

.vehicle-damage-photo-preview-body.is-dragging {
  cursor: grabbing;
}

.vehicle-damage-photo-preview-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 8px;
  transform: translate3d(var(--vehicle-damage-photo-pan-x, 0px), var(--vehicle-damage-photo-pan-y, 0px), 0) scale(var(--vehicle-damage-photo-zoom, 1));
  transform-origin: center center;
  transition: transform 120ms ease;
  pointer-events: none;
}

.vehicle-damage-photo-preview-body.is-dragging img {
  transition: none;
}

.vehicle-damage-form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.vehicle-damage-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vehicle-damage-third-party {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.vehicle-damage-third-party h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-damage-pending-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vehicle-damage-pending-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vehicle-damage-pending-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.vehicle-damage-pending-photo .icon-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.vehicle-damage-pending-photo .icon-btn .material-icons {
  color: var(--danger);
}

.vehicle-damage-existing-photos {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.vehicle-damage-existing-photos h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
}

.vehicle-damage-pending-photo span:not(.material-icons) {
  display: block;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-damage-unsaved-note {
  margin: 10px 0 0;
  color: #8a5b00;
  font-weight: 700;
}

.vehicle-damage-unsaved-warning {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f5b5b5;
  border-radius: var(--radius);
  background: #fff1f2;
  color: #9f1239;
}

.vehicle-damage-unsaved-warning strong {
  font-size: 16px;
}

.vehicle-damage-unsaved-warning div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storage-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.vehicle-check-mini-preview dd {
  margin: 6px 0 0;
}

.vehicle-check-mini-preview .cell-muted {
  display: inline;
}

.vehicle-check-bool-list {
  display: grid;
  gap: 8px;
}

.vehicle-check-bool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.vehicle-check-bool-row span:first-child {
  font-weight: 700;
}

.vehicle-check-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.vehicle-check-notes div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.vehicle-check-notes small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-check-notes p {
  margin: 8px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vehicle-check-textarea {
  min-height: 132px;
  resize: vertical;
}

.vehicle-check-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.temp-search-bar {
  max-width: 360px;
}

.temp-search-bar .field {
  margin-bottom: 0;
}

.tour-archive-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 260px));
  gap: 12px;
  align-items: start;
}

.tour-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tour-archive-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 960px) {
  .vehicle-check-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-fleet-detail-layout,
  .vehicle-fleet-secondary-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-leasing-metrics {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }

  .vehicle-check-focus-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vehicle-check-focus-row .icon-btn {
    justify-self: flex-start;
  }

  .vehicle-check-form-grid,
  .vehicle-check-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .vehicle-fleet-detail-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .vehicle-fleet-detail-tab {
    flex: 1 0 164px;
    padding-inline: 12px;
  }

  .vehicle-fleet-detail-tab-body {
    padding: 12px;
  }

  .vehicle-leasing-forecast-header {
    flex-direction: column;
  }

  .vehicle-leasing-metrics {
    grid-template-columns: 1fr;
  }

  .vehicle-check-callout {
    flex-direction: column;
  }

  .vehicle-check-callout-badges {
    justify-content: flex-start;
  }

  .vehicle-check-period-rail {
    grid-auto-columns: minmax(190px, 1fr);
  }

  .vehicle-check-card,
  .vehicle-check-field--readonly {
    padding: 14px;
  }
}

.tour-archive-filters .field {
  margin-bottom: 0;
}

.tour-archive-filters .input,
.tour-archive-filters .select {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .car-charging-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .car-charging-modal {
    inset: 12px;
    max-height: calc(100vh - 24px);
  }

  .article-change-success-modal,
  .vehicle-editor-modal,
  .car-charging-success-modal {
    inset: 12px;
    max-height: calc(100vh - 24px);
  }

  .car-charging-modal .storage-modal-body,
  .vehicle-editor-modal .storage-modal-body {
    padding: 12px;
  }

  .car-charging-choice-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-hub-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vehicle-check-grid,
  .vehicle-check-detail-grid,
  .vehicle-damage-form-grid,
  .vehicle-handover-grid,
  .vehicle-handover-form-grid,
  .vehicle-editor-grid,
  .vehicle-fleet-detail-layout,
  .vehicle-fleet-secondary-layout,
  .vehicle-fleet-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-fleet-detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-fleet-detail-header .actions-row {
    justify-content: flex-start;
  }

  .vehicle-fleet-check-list {
    grid-template-columns: 1fr;
  }

  .vehicle-damage-location-header,
  .vehicle-damage-location-content {
    grid-template-columns: 1fr;
  }

  .vehicle-damage-location-header {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-damage-card {
    grid-template-columns: 1fr;
  }

  .vehicle-handover-card {
    grid-template-columns: 1fr;
  }

  .vehicle-handover-card-side {
    justify-items: start;
  }

  .vehicle-handover-modal {
    max-width: calc(100vw - 24px);
  }

  .vehicle-damage-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(68px, 72px));
  }

  .vehicle-fleet-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-fleet-summary-side {
    justify-content: space-between;
  }

  .vehicle-fleet-summary-user {
    min-width: 0;
  }

  .vehicle-check-focus-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vehicle-check-period-rail {
    grid-auto-columns: minmax(240px, 88%);
  }

  .car-charging-metric-row {
    grid-template-columns: 1fr;
  }

  .car-charging-upload-row {
    align-items: stretch;
  }

  .car-charging-upload-row .btn,
  .car-charging-form-actions .btn {
    width: 100%;
  }

  .car-charging-form-actions {
    display: grid;
  }

  .car-charging-filter-field {
    width: 100%;
  }

  .article-change-confirmation-table td:nth-child(2) {
    min-width: 220px;
  }

  .tour-archive-filters {
    width: min(100%, 360px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tour-archive-toolbar-actions {
    align-self: flex-start;
  }
}

.tour-route-section .section-header {
  align-items: center;
}

.tour-route-map {
  height: clamp(320px, 42vh, 460px);
  min-height: 320px;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
}

.tour-route-placeholder {
  min-height: 320px;
}

.route-coordinate-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: #7a4b00;
  background: #fff7df;
  font-size: 13px;
  font-weight: 700;
}

.route-coordinate-warning .material-icons {
  color: #c88400;
  font-size: 20px;
}

.tour-archive-table th,
.tour-archive-table td {
  white-space: nowrap;
}

.tour-archive-table td:nth-child(4),
.tour-archive-table td:nth-child(11) {
  min-width: 220px;
  white-space: normal;
}

.tour-archive-table .depot-row {
  background: rgba(0, 92, 169, 0.055);
  font-weight: 700;
}

.tour-archive-table .pause-row {
  background: rgba(198, 54, 136, 0.08);
  color: #8f175c;
  font-weight: 700;
}

.tour-archive-table tr.clickable-row:hover td {
  background: #eef7dc;
}

.tour-archive-main-row.expanded td {
  background: #f4f9ea;
}

.tour-archive-detail-row td {
  background: #fbfdf6;
  padding-top: 0;
}

.tour-archive-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.tour-archive-expanded-item {
  display: grid;
  gap: 4px;
}

.tour-archive-expanded-item small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tour-archive-expanded-actions {
  display: flex;
  align-items: flex-end;
}

.tour-archive-expanded-actions .btn {
  width: 100%;
}

.waypoint-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.waypoint-number.depot {
  background: var(--brand);
}

.waypoint-number.pause {
  background: #c63688;
}

.tour-times-modal {
  inset-inline: max(18px, calc((100vw - 980px) / 2));
}

.tour-history-modal {
  inset-inline: max(18px, calc((100vw - 1080px) / 2));
}

.tour-time-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.tour-time-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
}

.tour-time-summary .wide {
  grid-column: 1 / -1;
}

.tour-time-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-time-summary dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tour-times-table-wrap {
  max-height: 420px;
}

.tour-history-table-wrap {
  max-height: 520px;
}

.toggle-line {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--brand);
  background: var(--surface);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.toggle-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #dfe7ef;
  box-shadow: inset 0 0 0 1px #cfd9e3;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  flex: 0 0 auto;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 36, 53, 0.25);
  transition: transform 0.18s ease;
}

.toggle-line input:checked + .toggle-track {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-strong);
}

.toggle-line input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.toggle-line:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.24);
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brand);
  background: #eaf3f9;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.data-table tr:hover td {
  background: #f7fbef;
}

.clickable-row {
  cursor: pointer;
}

.kunden-table {
  min-width: 620px;
}

.cell-muted {
  color: var(--muted);
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdf7;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fbfdf7;
}

.user-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 420px);
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdf7;
}

.user-admin-toolbar .field {
  margin-bottom: 0;
}

.user-admin-table {
  min-width: 920px;
}

.user-admin-table td:first-child strong {
  color: var(--brand);
}

.user-admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-admin-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-admin-modal {
  inset-inline: max(18px, calc((100vw - 720px) / 2));
}

.user-admin-form {
  display: grid;
  gap: 12px;
}

.user-admin-meta {
  margin-top: 4px;
}

.user-admin-modal-actions {
  justify-content: flex-end;
}

.temp-control-mobile-hint {
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
}

.temp-control-main-row.expanded td {
  background: #f7fbef;
}

.temp-control-detail-row td {
  padding: 0;
  background: #fbfdf7;
}

.temp-control-expanded {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.temp-control-expanded-item {
  display: grid;
  gap: 4px;
}

.temp-control-expanded-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bestellungen-main-row.expanded td,
.bestellung-article-main-row.expanded td {
  background: #f7fbef;
}

.bestellungen-detail-row td,
.bestellung-article-detail-row td {
  padding: 0;
  background: #fbfdf7;
}

.bestellungen-expanded,
.bestellung-article-expanded {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.bestellungen-expanded-item,
.bestellung-article-expanded-item {
  display: grid;
  gap: 4px;
}

.bestellungen-expanded-item small,
.bestellung-article-expanded-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bestellungen-expanded-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.bestellungen-expanded-actions .btn {
  width: 100%;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
}

.badge.success {
  color: #2c5009;
  background: var(--accent-soft);
}

.badge.warning {
  color: #5f3b00;
  background: #fff0d3;
}

.badge.danger {
  color: #6c1919;
  background: #fde0e0;
}

.empty-state,
.error-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.error-state {
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  color: #fff;
  background: #20252c;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toast.error {
  background: var(--danger);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10, 16, 26, 0.34);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(620px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer-header,
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 18px;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.drawer-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.report-drawer {
  width: min(1120px, 100vw);
}

.bestellung-drawer {
  top: 16px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(1480px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  border-radius: 14px;
  overflow: hidden;
}

.bestellung-drawer .drawer-header {
  align-items: flex-start;
}

.bestellung-drawer .drawer-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bestellung-detail-body {
  display: grid;
  gap: 16px;
  align-content: start;
  grid-auto-rows: max-content;
}

.bestellung-general {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.bestellung-general h3,
.bestellung-suborders-section h3,
.bestellung-articles-section h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.bestellung-general dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0 28px;
  margin: 10px 0 0;
}

.bestellung-general div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}

.bestellung-general dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bestellung-general dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
}

.bestellung-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.bestellung-section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bestellung-articles-wrap {
  max-height: 54vh;
}

@media (max-width: 900px) {
  .bestellung-drawer {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

.bestellung-suborders-section,
.bestellung-articles-section {
  display: grid;
  gap: 10px;
}

.bestellung-suborder-groups {
  display: grid;
  gap: 14px;
}

.bestellung-suborder-group {
  display: grid;
  gap: 10px;
}

.bestellung-suborder-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bestellung-suborder-group-header h4 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
}

.bestellung-suborders-table,
.bestellung-articles-table {
  min-width: 1120px;
}

.readonly-checkbox-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.readonly-checkbox-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  pointer-events: none;
}

.report-form {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.report-drawer-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.report-form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-content: start;
}

.report-textarea {
  min-height: 130px;
}

.report-linked {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 4px solid var(--brand);
}

.report-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

.report-tab {
  min-width: 190px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--brand);
  background: #ece8e8;
  font-weight: 800;
  cursor: pointer;
}

.report-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.report-tab:last-child {
  border-radius: 0 6px 6px 0;
}

.report-tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-panel-header {
  display: grid;
  gap: 12px;
}

.report-panel-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 17px;
}

.report-inline-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
}

.report-task-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(220px, 1.5fr) auto auto;
  gap: 10px;
  align-items: center;
}

.report-task-form .field-hint {
  grid-column: 1 / -1;
}

.report-mini-table {
  min-width: 720px;
}

.report-mini-table th {
  background: #f4f8fc;
}

.compact-toggle {
  margin: 0;
}

.danger-icon {
  color: var(--danger);
  background: #fde8e8;
}

.record-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.record-preview div {
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.record-preview dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.record-preview dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.bestellungen-subnote {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.kunde-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(460px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.kunde-side-stack {
  display: grid;
  gap: 14px;
}

.kunde-visits {
  grid-column: 1 / -1;
}

.kunde-facts {
  display: grid;
  grid-template-columns: minmax(116px, 0.32fr) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.kunde-facts dt {
  color: var(--brand);
  font-weight: 900;
}

.kunde-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.kunde-detail-table {
  min-width: 680px;
}

.kunde-detail-table.wide {
  min-width: 980px;
}

.kunde-tour-reports .table-wrap {
  max-height: 230px;
}

.kunde-map {
  height: 240px;
  background: var(--surface-3);
}

.kunde-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.apple-map {
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 92, 169, 0.08), rgba(148, 193, 31, 0.14)),
    var(--surface-2);
}

.map-placeholder .material-icons {
  color: var(--brand);
  font-size: 34px;
}

.apple-map .map-placeholder {
  height: 100%;
  min-height: 100%;
}

.apple-map-fallback .btn {
  margin-top: 4px;
}

.error-state.compact {
  padding: 0 0 16px;
  text-align: left;
}

.storage-workspace {
  display: grid;
  gap: 14px;
}

.storage-header-panel .section-header > div:first-child {
  min-width: 0;
}

.storage-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.storage-subtitle span {
  color: var(--brand);
  font-weight: 800;
}

.storage-subnote {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.storage-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  color: var(--muted);
}

.storage-path .material-icons {
  color: var(--muted);
  font-size: 18px;
}

.storage-path-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--brand);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

button.storage-path-item {
  cursor: pointer;
}

button.storage-path-item:hover,
.storage-path-item.active {
  border-color: var(--line);
  background: var(--accent-soft);
}

.storage-master-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}

.storage-panel {
  min-width: 0;
}

.storage-step-panel {
  max-width: 980px;
  min-width: 0;
}

.storage-create-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdf7;
}

.storage-create-details summary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.storage-create-details summary::-webkit-details-marker {
  display: none;
}

.storage-create-details form {
  padding: 0 16px 16px;
}

.storage-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
}

.storage-area-form {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.storage-form-wide {
  grid-column: 1 / -1;
}

.storage-table {
  min-width: 720px;
}

.selected-row td {
  background: var(--accent-soft);
}

.storage-choice-list {
  display: grid;
}

.storage-choice-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 10px 0 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.storage-choice-row:hover,
.storage-choice-row.active {
  background: var(--accent-soft);
}

.storage-choice-select {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 12px 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.storage-choice-edit {
  justify-self: end;
}

.storage-choice-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.storage-choice-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.storage-choice-main strong,
.storage-choice-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-choice-main strong {
  color: var(--brand);
  font-size: 15px;
}

.storage-choice-main small {
  color: var(--muted);
}

.storage-choice-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.storage-detail-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.storage-detail-panel {
  overflow: visible;
}

.storage-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(520px, 1.45fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.storage-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.storage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdf7;
}

.storage-card-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.storage-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.storage-inline-form .input {
  min-width: 160px;
}

.storage-mobile-place-bar,
.storage-mobile-articles {
  margin-top: 14px;
}

.storage-mobile-place-form {
  width: 100%;
  justify-content: stretch;
}

.storage-mobile-place-form .input {
  flex: 1 1 auto;
  min-width: 0;
}

.accent-icon {
  color: #173100;
  background: var(--accent);
}

.storage-list {
  max-height: 420px;
  overflow: auto;
}

.storage-list-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 4px 6px 4px 0;
  color: var(--ink);
  background: #fff;
}

.storage-list-row:hover,
.storage-list-row.active {
  background: var(--accent-soft);
}

.storage-list-select {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.storage-list-select .material-icons {
  color: var(--brand);
}

.storage-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.storage-list-actions .icon-btn,
.storage-list-delete {
  width: 34px;
  height: 34px;
}

.compact-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 100%);
}

.compact-search .input {
  flex: 1 1 auto;
}

.search-clear-btn {
  flex: 0 0 auto;
}

.storage-lookup-modal {
  inset: 8vh max(18px, calc((100vw - 980px) / 2)) auto;
}

.storage-lookup-list {
  display: grid;
  gap: 10px;
}

.storage-lookup-row {
  width: 100%;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.storage-lookup-row:hover {
  border-color: rgba(148, 193, 31, 0.34);
  background: var(--accent-soft);
}

.storage-lookup-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.storage-lookup-main strong {
  color: var(--brand);
  font-size: 15px;
}

.storage-lookup-main span:last-child {
  min-width: 0;
  line-height: 1.4;
}

.storage-lookup-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.storage-lookup-meta .badge {
  white-space: nowrap;
}

.storage-article-picker-modal .storage-modal-body {
  grid-template-rows: auto minmax(180px, auto) auto;
}

.storage-article-search-wrap {
  max-height: 360px;
}

.storage-article-picker-modal .storage-article-search-wrap {
  min-height: 180px;
  max-height: clamp(180px, 34vh, 360px);
  overflow: auto;
}

.storage-add-article-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(180px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.storage-add-article-form .field {
  margin-bottom: 0;
}

.storage-existing-articles {
  margin: 0;
}

.storage-mobile-article-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.storage-mobile-article-card {
  width: 100%;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.storage-mobile-article-card.active {
  border-color: rgba(148, 193, 31, 0.42);
  box-shadow: inset 0 0 0 1px rgba(148, 193, 31, 0.12);
  background: #fbfdf7;
}

.storage-mobile-article-top,
.storage-mobile-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.storage-mobile-article-id {
  color: var(--brand);
  font-weight: 900;
}

.storage-mobile-article-name {
  font-size: 15px;
  line-height: 1.35;
}

.storage-mobile-article-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.storage-mobile-article-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.storage-mobile-article-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.storage-mobile-article-stat-value {
  font-weight: 800;
}

.storage-mobile-article-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.storage-mobile-sheet {
  inset: auto 0 0;
  max-height: min(82vh, 720px);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.storage-mobile-sheet .storage-modal-body {
  gap: 12px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 720px) {
  .storage-lookup-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.storage-mobile-sheet-selection {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf7;
}

.storage-mobile-order-actions,
.storage-mobile-action-grid {
  display: grid;
  gap: 10px;
}

.storage-mobile-order-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.storage-mobile-order-actions .btn,
.storage-mobile-action-grid .btn {
  justify-content: flex-start;
}

.storage-existing-table {
  min-width: 860px;
}

.storage-article-actions {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.storage-article-actions .actions-row {
  align-items: flex-start;
}

.storage-order-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.storage-article-toolset {
  display: flex;
  flex: 1 1 720px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.storage-selected-article {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
}

.storage-selected-article span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-action-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
}

.storage-article-edit-form {
  grid-template-columns: 1fr;
  gap: 14px;
}

.storage-action-form .field {
  margin-bottom: 0;
}

.storage-article-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.storage-article-history-field {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.storage-article-history-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.storage-article-history-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-hint-pill {
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0;
}

.storage-article-history-field.required {
  border-color: rgba(189, 56, 56, 0.24);
  background: #fff8f8;
}

.storage-article-history-field.has-error {
  border-color: rgba(189, 56, 56, 0.42);
  box-shadow: inset 0 0 0 1px rgba(189, 56, 56, 0.12);
}

.storage-article-history-field.has-error .textarea {
  border-color: rgba(189, 56, 56, 0.55);
  box-shadow: 0 0 0 3px rgba(189, 56, 56, 0.12);
}

.storage-article-history-field .textarea {
  min-height: 112px;
}

.storage-warning {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.storage-duplicate-alert {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid #f1a6a6;
  border-radius: 14px;
  background: #fff2f2;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.12);
}

.storage-duplicate-alert-text {
  margin: 0;
  color: #b42318 !important;
  font-size: 1.1rem;
  font-weight: 900 !important;
  line-height: 1.55;
}

.storage-action-modal {
  max-width: 1180px;
}

.storage-history-wrap {
  max-height: 520px;
}

.history-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.history-transition {
  flex-wrap: wrap;
}

.history-arrow {
  font-size: 16px;
  color: var(--muted);
}

.history-to {
  font-weight: 800;
}

.history-to.positive {
  color: #1d5f19;
}

.history-to.negative {
  color: #9f1731;
}

.history-delta {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.history-delta.positive {
  color: #1d5f19;
  background: #dff2dc;
}

.history-delta.negative {
  color: #9f1731;
  background: #f7d9df;
}

.storage-details-stack {
  display: grid;
  gap: 14px;
}

.storage-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.storage-detail-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.storage-detail-item dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.storage-detail-item dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.storage-modal-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.storage-modal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.storage-modal-section-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.storage-chart-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.storage-chart {
  width: 100%;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.storage-chart-grid {
  stroke: rgba(48, 62, 56, 0.14);
  stroke-width: 1;
}

.storage-chart-grid.subtle {
  stroke: rgba(48, 62, 56, 0.08);
}

.storage-chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.storage-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.storage-chart-line.order {
  stroke: #4f83d6;
  fill: none;
}

.storage-chart-dot.order,
.storage-chart-legend .order {
  stroke: #4f83d6;
  background: #4f83d6;
  fill: #4f83d6;
}

.storage-chart-line.parcel {
  stroke: #9d3d36;
  fill: none;
}

.storage-chart-dot.parcel,
.storage-chart-legend .parcel {
  stroke: #9d3d36;
  background: #9d3d36;
  fill: #9d3d36;
}

.storage-chart-legend {
  display: inline-flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.storage-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.storage-chart-legend i {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
}

.storage-order-history-wrap {
  max-height: 420px;
}

.storage-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 27, 23, 0.38);
}

.storage-modal {
  position: fixed;
  inset: 6vh max(18px, calc((100vw - 1120px) / 2)) auto;
  z-index: 80;
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.storage-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdf7;
}

.storage-modal-header h2 {
  margin: 0;
  color: var(--brand);
}

.storage-modal-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

@media (max-height: 760px) {
  .storage-article-picker-modal {
    inset: 12px max(12px, calc((100vw - 1120px) / 2)) auto;
    max-height: calc(100vh - 24px);
  }

  .storage-article-picker-modal .storage-modal-header {
    padding: 12px 16px;
  }

  .storage-article-picker-modal .storage-modal-body {
    gap: 10px;
    padding: 12px;
  }

  .storage-article-picker-modal .storage-article-search-wrap {
    min-height: 170px;
    max-height: 30vh;
  }

  .storage-article-picker-modal .storage-add-article-form {
    gap: 8px;
    padding: 12px;
  }

  .storage-article-picker-modal .textarea {
    min-height: 64px;
  }
}

.form-span {
  grid-column: 1 / -1;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.page-note {
  color: var(--muted);
  line-height: 1.5;
}

.page-note.warning {
  color: #7a4b00;
}

.mobile-toggle {
  display: none;
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.18s ease;
  }

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

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

  .content {
    padding: 14px;
  }

  .topbar {
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .topbar-title h1 {
    font-size: 19px;
  }

  .dashboard-logo-stage {
    min-height: min(calc(100vh - 210px), 560px);
    padding: 14px;
  }

  .dashboard-logo-image {
    width: min(100%, 760px);
  }

  .table-toolbar {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .kunde-detail-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-change-selection-grid,
  .article-change-workspace-grid,
  .article-change-flow {
    grid-template-columns: 1fr;
  }

  .article-change-list-head,
  .article-change-list-row {
    grid-template-columns: minmax(100px, 0.36fr) minmax(0, 1fr) minmax(80px, 0.24fr);
    gap: 10px;
  }

  .kunde-visits {
    grid-column: auto;
  }

  .storage-master-grid,
  .storage-detail-grid {
    grid-template-columns: 1fr;
  }

  .storage-add-article-form {
    grid-template-columns: 1fr 1fr;
  }

  .report-form-grid,
  .report-inline-form,
  .report-task-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .table-footer > span {
    align-self: flex-start;
  }

  .table-footer .actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr 1fr;
    width: 100%;
  }

  .table-footer .actions-row .select,
  .table-footer .actions-row .btn {
    width: 100%;
    min-width: 0;
  }

  .article-table,
  .temp-control-table,
  .tour-archive-table {
    min-width: 0;
    table-layout: fixed;
  }

  .article-table th:nth-child(2),
  .article-table td:nth-child(2),
  .article-table th:nth-child(n + 4),
  .article-table td:nth-child(n + 4) {
    display: none;
  }

  .article-table th:nth-child(1),
  .article-table td:nth-child(1) {
    width: 34%;
    white-space: nowrap;
  }

  .article-table th:nth-child(3),
  .article-table td:nth-child(3) {
    width: 66%;
    white-space: normal;
    word-break: break-word;
  }

  .temp-control-table {
    min-width: 0;
    table-layout: fixed;
  }

  .temp-control-table th:nth-child(1),
  .temp-control-table td:nth-child(1) {
    width: 24%;
    white-space: nowrap;
  }

  .temp-control-table th:nth-child(2),
  .temp-control-table td:nth-child(2) {
    width: 24%;
    white-space: nowrap;
  }

  .temp-control-table th:nth-child(3),
  .temp-control-table td:nth-child(3) {
    width: 52%;
    white-space: normal;
    word-break: break-word;
  }

  .tour-archive-table th,
  .tour-archive-table td {
    font-size: 12px;
  }

  .tour-archive-table th:nth-child(3),
  .tour-archive-table td:nth-child(3) {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .tour-archive-table th:nth-child(1),
  .tour-archive-table td:nth-child(1) {
    width: 52px;
  }

  .tour-archive-table th:nth-child(2),
  .tour-archive-table td:nth-child(2) {
    width: 76px;
    white-space: nowrap;
  }

  .tour-archive-table th:nth-child(4),
  .tour-archive-table td:nth-child(4),
  .tour-archive-table th:nth-child(5),
  .tour-archive-table td:nth-child(5) {
    width: 72px;
    min-width: 0;
    white-space: nowrap;
  }

  .tour-archive-expanded {
    grid-template-columns: 1fr 1fr;
  }

  .customer-search-bar {
    grid-template-columns: 1fr;
  }

  .bestellungen-table,
  .bestellung-articles-table {
    min-width: 0;
    table-layout: fixed;
  }

  .bestellungen-table th,
  .bestellungen-table td,
  .bestellung-articles-table th,
  .bestellung-articles-table td {
    font-size: 12px;
  }

  .bestellungen-table th:nth-child(1),
  .bestellungen-table td:nth-child(1) {
    width: 30%;
    white-space: normal;
  }

  .bestellungen-table th:nth-child(2),
  .bestellungen-table td:nth-child(2) {
    width: 42%;
    white-space: normal;
    word-break: break-word;
  }

  .bestellungen-table th:nth-child(3),
  .bestellungen-table td:nth-child(3) {
    width: 28%;
    white-space: nowrap;
  }

  .car-charging-table th,
  .car-charging-table td {
    font-size: 12px;
  }

  .car-charging-table th:nth-child(4),
  .car-charging-table td:nth-child(4),
  .car-charging-table th:nth-child(7),
  .car-charging-table td:nth-child(7) {
    display: none;
  }

  .car-charging-table th:nth-child(1),
  .car-charging-table td:nth-child(1),
  .car-charging-table th:nth-child(2),
  .car-charging-table td:nth-child(2),
  .car-charging-table th:nth-child(3),
  .car-charging-table td:nth-child(3),
  .car-charging-table th:nth-child(5),
  .car-charging-table td:nth-child(5),
  .car-charging-table th:nth-child(6),
  .car-charging-table td:nth-child(6) {
    white-space: nowrap;
  }

  .kunde-facts,
  .kunde-action-grid,
  .article-detail-facts {
    grid-template-columns: 1fr;
  }

  .bestellung-general dl {
    grid-template-columns: 1fr;
  }

  .bestellung-general div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bestellung-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .bestellung-section-header .compact-toggle {
    justify-content: space-between;
  }

  .storage-form,
  .storage-area-form,
  .storage-add-article-form,
  .storage-action-form,
  .storage-card-header {
    grid-template-columns: 1fr;
  }

  .storage-article-edit-grid {
    grid-template-columns: 1fr;
  }

  .storage-choice-row {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .storage-choice-select {
    grid-template-columns: 1fr;
    padding: 12px 4px 0;
  }

  .storage-choice-actions {
    justify-self: stretch;
    justify-content: flex-end;
  }

  .storage-choice-meta {
    justify-content: space-between;
  }

  .storage-detail-tools {
    justify-content: flex-start;
  }

  .storage-details-grid {
    grid-template-columns: 1fr;
  }

  .storage-card-header {
    display: grid;
  }

  .storage-article-toolset {
    flex-basis: 100%;
  }

  .storage-inline-form {
    width: 100%;
  }

  .storage-inline-form .input {
    min-width: 0;
  }

  .storage-mobile-article-stats,
  .storage-mobile-order-actions,
  .storage-mobile-action-grid {
    grid-template-columns: 1fr;
  }

  .report-tabs {
    justify-content: stretch;
  }

  .report-tab {
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 1100px) {
  .vehicle-operations-metrics {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar-actions {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

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

  .vehicle-operation-metric {
    min-height: 76px;
    padding: 11px;
  }

  .vehicle-reminder-row,
  .vehicle-operation-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .vehicle-reminder-date,
  .vehicle-operation-row > span:nth-last-child(2) {
    grid-column: 2 / -1;
  }

  .vehicle-operation-form-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-operation-wide {
    grid-column: auto;
  }
}
