:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #63717a;
  --line: #dfe5e8;
  --accent: #0e7c70;
  --accent-dark: #075f57;
  --blue: #255f99;
  --red: #b83b3b;
  --amber: #986b10;
  --card-border: #c9d5da;
  --card-border-strong: #b7c6cc;
  --card-accent-line: #b7c9c5;
  --shadow: 0 16px 34px rgba(23, 32, 38, .12), 0 2px 8px rgba(23, 32, 38, .06);
  --shadow-soft: 0 10px 22px rgba(23, 32, 38, .10), 0 1px 4px rgba(23, 32, 38, .05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(244, 247, 248, 0.96);
}

.app-loading[hidden] {
  display: none;
}

.app-loading-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 28px;
  color: #17232b;
  text-align: center;
}

.app-loading-box small {
  color: #68747b;
}

.app-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d5dfe2;
  border-top-color: #13877c;
  border-radius: 50%;
  animation: app-loading-spin 0.8s linear infinite;
}

.app-loading.is-error .app-loading-spinner {
  display: none;
}

.app-loading.is-error .app-loading-box {
  border: 1px solid #e2b8b8;
  border-radius: 8px;
  background: #fff;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 260px 1fr;
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

.sidebar {
  background: #172026;
  color: white;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 8px;
  object-fit: contain;
}

.brand span,
.eyebrow {
  color: #9fb0b8;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  color: #dce6ea;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav-button-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-alert-badge {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d84a43;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.dashboard-attention {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e0b65e;
  border-left: 5px solid #d39a23;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.dashboard-attention.dashboard-attention-clear {
  border-color: #b9d8cf;
  border-left-color: var(--accent);
  background: #f7fcfa;
}

.dashboard-attention-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dashboard-attention-heading h2 {
  margin: 1px 0 0;
  font-size: 19px;
}

.dashboard-attention-kicker {
  color: #876115;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-attention-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-attention-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e5d8bb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.dashboard-attention-item:hover,
.dashboard-attention-item:focus-visible {
  border-color: #c28a17;
  box-shadow: 0 5px 14px rgba(44, 39, 25, .1);
  outline: none;
}

.dashboard-attention-item > strong {
  color: #9a6510;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.dashboard-attention-item.urgent > strong {
  color: #b63b35;
}

.dashboard-attention-item span,
.dashboard-attention-item small {
  display: block;
}

.dashboard-attention-item span {
  min-width: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.dashboard-attention-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.dashboard-attention-empty {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #176b60;
}

.dashboard-attention-empty span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1150px) {
  .dashboard-attention-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .dashboard-attention-empty {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 470px) {
  .dashboard-attention-items {
    grid-template-columns: 1fr;
  }
}

.nav-button.active,
.nav-button:hover {
  background: #233039;
  color: white;
}

.app {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, 520px) minmax(190px, 1fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

.top-actions,
.section-heading,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.labeled-filters {
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading-clean {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 12px 18px;
}

.section-heading-clean h2,
.section-heading-clean .heading-title {
  min-width: 0;
  padding-top: 6px;
}

.heading-filter-stack {
  align-items: start;
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}

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

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #172026 0%, #253138 55%, #f4f7f8 55%);
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-logo {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-self: center;
  width: min(100%, 340px);
}

.auth-logo > img {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.auth-logo > div {
  display: grid;
  min-width: 0;
}

.auth-logo strong {
  color: #111820;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.auth-logo span {
  align-items: center;
  display: flex;
  gap: 9px;
}

.auth-logo em {
  color: #e00032;
  font-size: 27px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-logo small {
  color: #111820;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
}

@media (max-width: 460px) {
  .auth-logo {
    gap: 10px;
  }

  .auth-logo > img {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .auth-logo strong {
    font-size: 23px;
  }

  .auth-logo em {
    font-size: 22px;
  }
}

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

.auth-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.auth-user-menu[hidden] {
  display: none;
}

.auth-user-menu div {
  display: grid;
  gap: 1px;
}

.auth-user-menu strong {
  font-size: 13px;
}

.auth-user-menu span {
  color: var(--muted);
  font-size: 12px;
}

.auth-user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}

.auth-management-panel {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.auth-management-panel > div:first-child {
  max-width: 720px;
}

.auth-management-panel .scan-result {
  grid-column: auto;
}

.auth-users-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.auth-user-row {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.auth-user-row span {
  color: var(--muted);
  font-size: 13px;
}

.auth-user-row small {
  color: #7a878d;
  font-size: 12px;
}

.auth-user-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.auth-user-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.auth-user-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .8fr) minmax(220px, 1fr) auto auto;
}

.auth-active-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}

.auth-active-toggle input {
  width: 18px;
  height: 18px;
}

.auth-permissions-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfcfc;
}

.auth-permissions-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.auth-permissions-head h3 {
  margin: 0 0 4px;
}

.auth-permissions-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(120px, .7fr));
  overflow: hidden;
}

.auth-permissions-cell,
.auth-permission-check {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  min-height: 42px;
  padding: 9px 11px;
}

.auth-permissions-title {
  background: #edf2f3;
  color: var(--ink);
  font-weight: 700;
}

.auth-permissions-section {
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.auth-permission-check {
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.auth-permission-check input {
  width: 18px;
  height: 18px;
}

.auth-permissions-grid > :nth-last-child(-n + 4) {
  border-bottom: 0;
}

.auth-permissions-grid > :nth-child(4n) {
  border-right: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.topbar-search {
  justify-self: center;
  width: min(520px, 100%);
}

.top-actions {
  justify-content: flex-end;
  min-width: 0;
}

.search {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.search input {
  width: min(360px, 44vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.topbar-search input {
  width: 100%;
}

.primary,
.ghost,
.chip {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
}

.primary {
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost {
  background: #e9eef0;
  color: var(--ink);
}

.chip {
  background: white;
  color: var(--muted);
  border: 1px solid var(--line);
}

.chip.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-status-card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 10px 14px;
}

.dashboard-status-card span,
.dashboard-status-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.dashboard-status-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.dashboard-status-card small {
  margin-top: 3px;
}

.status-clock strong {
  font-size: 22px;
}

.status-clock {
  background: #172026;
  color: white;
}

.status-clock span,
.status-clock small {
  color: #b8c7ce;
}

.status-weather {
  border-color: #cfe0dd;
}

.dashboard-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dashboard-search-results {
  margin-bottom: 18px;
  padding: 18px;
}

.dashboard-search-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-search-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.dashboard-search-group-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-search-group-head strong {
  font-size: 15px;
}

.dashboard-vehicle-search-head,
.dashboard-vehicle-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-vehicle-search-head > div,
.dashboard-vehicle-quick-head > div:first-child {
  display: grid;
  gap: 3px;
}

.dashboard-vehicle-search-head span,
.dashboard-vehicle-quick-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-vehicle-match-list {
  display: grid;
  gap: 7px;
}

.dashboard-vehicle-match {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.dashboard-vehicle-match:hover {
  border-color: var(--accent);
  background: #f2f8f6;
}

.dashboard-vehicle-match-plate {
  font-size: 17px;
  font-weight: 800;
}

.dashboard-vehicle-match-plate mark {
  padding: 0 2px;
  background: #dcefea;
  color: inherit;
}

.dashboard-vehicle-match-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-vehicle-match-main strong,
.dashboard-vehicle-match-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-vehicle-match-main small {
  color: var(--muted);
}

.dashboard-vehicle-quick-head h2 {
  margin: 0;
  font-size: 24px;
}

.dashboard-vehicle-quick-head h2 span {
  margin-left: 7px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.text-action {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.dashboard-vehicle-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-vehicle-summary-grid article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 104px;
  padding: 11px;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: #fff;
}

.dashboard-vehicle-summary-grid span,
.dashboard-vehicle-summary-grid small {
  color: var(--muted);
}

.dashboard-vehicle-summary-grid strong,
.dashboard-vehicle-summary-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-vehicle-summary-grid small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.dashboard-vehicle-history-grid > section {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.dashboard-vehicle-history-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.dashboard-vehicle-history-row strong,
.dashboard-vehicle-history-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-vehicle-history-row small {
  color: var(--muted);
}

.dashboard-search-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat,
.work-surface,
.order-card,
.row-card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-surface,
.order-card,
.row-card {
  position: relative;
}

.order-card,
.row-card {
  border-left: 4px solid var(--card-accent-line);
}

.order-card:hover,
.row-card:hover,
.work-surface:hover,
.stat:hover {
  border-color: var(--card-border-strong);
  box-shadow: 0 18px 36px rgba(23, 32, 38, .15), 0 3px 10px rgba(23, 32, 38, .07);
}

.stat {
  padding: 18px;
  min-width: 0;
}

.stat-link {
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.stat-link:hover,
.stat-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(14, 124, 112, .16);
  outline: none;
  transform: translateY(-1px);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin-top: 8px;
  overflow-wrap: anywhere;
  white-space: normal;
}

#dashboard .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

#dashboard .stat {
  padding: 18px 16px;
}

#dashboard .stat strong {
  font-size: 22px;
  letter-spacing: 0;
}

.reports-stats {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
}

.reports-stats .stat {
  min-width: 0;
  padding: 18px 16px;
}

.reports-stats .stat strong {
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: normal;
}

.work-surface {
  padding: 18px;
}

.work-surface.stacked {
  margin-top: 18px;
}

.dashboard-grid,
.dashboard-recent-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

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

.dashboard-month-panel {
  margin-bottom: 18px;
}

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

.dashboard-panel {
  min-height: 210px;
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-heading-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-filter {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.dashboard-filter select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 40px;
  padding: 0 12px;
}

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

.alerts-missing-km-filters {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.dashboard-row:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.dashboard-row small {
  color: var(--muted);
  margin-top: 3px;
}

.dashboard-appointment-row {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
}

.dashboard-appointment-row:first-child {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dashboard-appointment-main {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 0;
}

.dashboard-appointment-time {
  background: #111418;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 8px;
  text-align: center;
}

.dashboard-ready-status {
  align-self: center;
  background: #111418;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 10px 8px;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-appointment-info {
  min-width: 0;
}

.dashboard-appointment-info strong {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-appointment-plate {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.dashboard-appointment-row .dashboard-actions {
  border-top: 1px solid #eef2f4;
  justify-content: flex-start;
  padding-top: 10px;
}

.dashboard-appointment-row .small {
  font-size: 13px;
  min-height: 32px;
  padding: 0 8px;
}

.dashboard-ready-row .dashboard-appointment-plate,
.dashboard-ready-row .dashboard-ready-status {
  color: #fff;
  display: block;
}

.dashboard-ready-row .dashboard-appointment-plate {
  color: var(--ink);
  font-size: 17px;
  margin-top: 0;
}

.service-notice-status {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.dashboard-collection-total {
  background: #111418;
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.dashboard-collection-total span,
.dashboard-collection-total small {
  color: #d5dbe0;
}

.dashboard-collection-total strong {
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dashboard-collection-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.dashboard-collection-row {
  align-items: stretch;
  background: #fff;
  border: 1px solid #d7dfe2;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding: 12px;
}

.dashboard-collection-row:first-child {
  border: 1px solid #d7dfe2;
  padding-top: 12px;
}

.dashboard-collection-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dashboard-collection-head .badge {
  flex: 0 0 auto;
}

.dashboard-collection-vehicle {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-collection-amounts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-collection-amounts > div {
  background: #f6f8f9;
  border: 1px solid #e0e6e8;
  border-radius: 6px;
  min-width: 0;
  padding: 8px;
}

.dashboard-collection-amounts span {
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.dashboard-collection-amounts strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dashboard-collection-amounts .dashboard-collection-balance {
  background: #fff4f3;
  border-color: #ecc9c6;
}

.dashboard-collection-amounts .dashboard-collection-balance strong {
  color: var(--red);
}

.dashboard-workshop-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.dashboard-collection-actions {
  border-top: 1px solid #eef2f4;
  justify-content: flex-end;
  padding-top: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-pager {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
}

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

.dashboard-month-block {
  background: #f8fafb;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  padding: 12px;
}

.dashboard-month-block.current {
  border-top: 4px solid var(--teal);
}

.dashboard-month-block.previous {
  border-top: 4px solid #839198;
}

.dashboard-month-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.dashboard-month-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.summary-tile span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.summary-tile strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.scanner-panel {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr) 120px 150px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
}

.backup-panel {
  grid-template-columns: minmax(240px, 1fr) 180px minmax(240px, 1fr) 180px;
}

.backup-panel .scan-result {
  grid-column: 1 / -1;
}

.scanner-panel.auth-management-panel {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.scanner-panel.auth-management-panel > div:first-child {
  max-width: 760px;
}

.scanner-panel.auth-management-panel .auth-user-form,
.scanner-panel.auth-management-panel .auth-users-list {
  width: 100%;
}

.scanner-panel.auth-management-panel .scan-result {
  grid-column: auto;
}

.backup-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.backup-security-card {
  align-content: start;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px;
}

.backup-security-card > span,
.backup-preview-head span {
  color: var(--muted);
  font-size: 13px;
}

.backup-security-card > strong {
  font-size: 18px;
}

.backup-security-card > small {
  color: var(--muted);
  line-height: 1.4;
}

.backup-security-card .small {
  justify-self: start;
  margin-top: 4px;
}

.backup-preview {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 16px;
}

.backup-preview.is-invalid {
  border-left-color: var(--danger);
}

.backup-export-summary {
  border-left-color: var(--accent);
}

.backup-preview-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.backup-preview-head > div {
  display: grid;
  gap: 5px;
}

.backup-preview-head small {
  color: var(--muted);
  text-align: right;
}

.backup-preview-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.backup-preview-counts span {
  background: #f3f6f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
  padding: 9px;
}

.backup-preview-counts strong {
  color: var(--text);
  font-size: 17px;
}

.backup-preview-warnings {
  color: #8a5b12;
  display: grid;
  font-size: 13px;
  gap: 4px;
  margin-top: 12px;
}

.backup-preview-warnings:empty {
  display: none;
}

.local-saves-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.local-save-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

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

.local-save-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.report-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.report-filter-panel {
  background: var(--panel);
  border: 1px solid var(--card-border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 16px 0 18px;
  overflow: hidden;
}

.report-filter-panel-head {
  align-items: center;
  background: #f5f8f8;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 18px;
}

.report-filter-panel-head > div:first-child > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.report-filter-panel .report-period-label {
  color: var(--ink);
  display: block;
  font-size: 15px;
}

.report-result-badge {
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 8px 11px;
}

.report-result-badge strong {
  color: var(--accent-dark);
  font-size: 20px;
}

.report-result-badge span {
  color: var(--muted);
  font-size: 12px;
}

.report-filter-step {
  display: grid;
  gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 18px;
}

.report-filter-step + .report-filter-step {
  border-top: 1px solid var(--line);
}

.report-filter-step-number {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.report-filter-step-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.report-filter-step-title h3 {
  font-size: 16px;
  margin: 0;
}

.report-filter-step-title p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.report-filter-step-content .filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-filter-step-content .filter-label {
  color: var(--ink);
  flex: 0 0 62px;
  font-size: 12px;
  font-weight: 800;
}

.report-date-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-filter-secondary {
  margin-top: -8px;
}

.report-view-tabs {
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 6px;
}

.report-view-tabs .filter-label {
  color: var(--ink);
  font-weight: 800;
  margin: 0 5px 0 8px;
}

.report-view-tabs .chip {
  background: transparent;
}

.report-view-tabs .chip.active {
  background: var(--accent);
  color: white;
}

.report-view-panel {
  display: grid;
  gap: 18px;
}

.report-view-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.report-view-heading span {
  color: var(--accent-dark);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.report-view-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.report-view-panel[hidden] {
  display: none;
}

.report-date-field input {
  width: 170px;
}

.report-period-label {
  color: var(--muted);
  font-size: 14px;
}

.report-panel {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.report-type-panel {
  margin-bottom: 18px;
}

.report-ranking {
  display: grid;
  gap: 10px;
}

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

.ranking-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  padding: 12px;
}

.ranking-position {
  align-items: center;
  background: #edf1f2;
  border-radius: 8px;
  color: #59636a;
  display: flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ranking-main {
  min-width: 0;
}

.ranking-head,
.ranking-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.ranking-head span,
.ranking-meta {
  color: var(--muted);
  font-size: 13px;
}

.ranking-bar {
  background: #edf1f2;
  border-radius: 999px;
  height: 8px;
  margin: 9px 0;
  overflow: hidden;
}

.ranking-bar span {
  background: var(--accent);
  display: block;
  height: 100%;
}

.payment-method-report {
  display: grid;
  gap: 14px;
}

.payment-method-chart {
  display: grid;
  gap: 10px;
}

.payment-method-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.payment-method-row-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.payment-method-row-head span {
  color: var(--muted);
  font-size: 13px;
}

.payment-method-bar {
  background: #edf1f2;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.payment-method-bar span {
  background: linear-gradient(90deg, var(--accent), #1b5f65);
  display: block;
  height: 100%;
}

.payment-method-table table {
  min-width: 620px;
}

.report-detail-panel {
  margin-bottom: 0;
}

.report-result-list {
  display: grid;
  gap: 10px;
}

.report-result-card {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 1fr) minmax(330px, auto) auto;
  padding: 14px;
}

.report-result-card-collection {
  border-left-color: var(--amber);
}

.report-result-main {
  min-width: 0;
}

.report-result-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-result-title > strong {
  font-size: 17px;
}

.report-result-title > span:not(.badge) {
  color: var(--muted);
  font-size: 13px;
}

.report-result-main p {
  font-weight: 700;
  margin-top: 7px;
}

.report-result-main small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.report-result-values {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
}

.report-result-values > div {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.report-result-values span,
.report-result-values strong {
  display: block;
}

.report-result-values span {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.report-result-values strong {
  white-space: nowrap;
}

.report-result-values .has-balance strong {
  color: var(--red);
}

.report-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

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

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

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.report-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.report-orders-table table {
  min-width: 980px;
}

.report-orders-table td:last-child,
.report-orders-table th:last-child {
  text-align: right;
}

.scan-field,
.scan-small {
  display: grid;
  gap: 6px;
}

.scan-field span,
.scan-small span {
  color: var(--muted);
  font-size: 13px;
}

.scan-field input,
.scan-field select,
.scan-small input,
.scan-small select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.scan-result {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.4;
}

.scan-actions {
  display: flex;
}

.scan-actions .primary {
  width: 100%;
}

.scan-confirmation {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
}

.scan-confirmation[hidden] {
  display: none;
}

.budget-observation-check {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
}

.budget-observation-check input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.budget-selection-toolbar {
  align-items: center;
  background: #f5f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.budget-observation-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.budget-observation-row > div:nth-child(2) {
  min-width: 0;
}

.budget-observation-row > div:nth-child(2) strong,
.budget-observation-row > div:nth-child(2) small {
  overflow-wrap: anywhere;
}

.selection-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selection-count.warning {
  color: #a14b18;
}

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

  .budget-selection-toolbar button {
    width: 100%;
  }

  .budget-observation-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .budget-observation-row .dashboard-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.scan-confirmation.is-found {
  background: #eef7f5;
  border-color: #cfe4df;
}

.scan-confirmation.is-missing {
  background: #fff8e7;
  border-color: #e3c986;
}

.scan-confirmation-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.scan-confirmation-head strong {
  display: block;
  font-size: 17px;
}

.scan-confirmation-head span,
.scan-confirmation p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.scan-confirmation-stock {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scan-confirmation-stock span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 10px;
}

.scan-cost-update {
  align-items: start;
  background: white;
  border: 1px solid #b9d6cf;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-width: 390px;
  padding: 12px;
}

.scan-cost-update > label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.scan-cost-update-row {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.scan-cost-update-row > span {
  background: #eef3f3;
  border: 2px solid #74858d;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 10px;
}

.scan-cost-update-row > input {
  border: 2px solid #74858d;
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.scan-cost-update-row > input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 133, 121, 0.16);
  outline: none;
}

.scan-cost-update small {
  color: var(--muted);
}

.scan-confirmation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-category-filters {
  align-items: end;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 12px;
}

.stock-filter-block {
  display: grid;
  gap: 6px;
}

.stock-filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stock-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-rubro-filter,
.stock-location-filter {
  min-width: min(280px, 100%);
}

.stock-category-select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 40px;
  padding: 0 12px;
  width: 100%;
}

.stock-movements-panel {
  display: grid;
  gap: 12px;
}

.stock-movements-head {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.stock-movements-head h3 {
  margin: 0 0 4px;
}

.stock-movement-list {
  display: grid;
  gap: 8px;
}

.stock-movement-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.stock-movement-row.is-out {
  border-left-color: var(--danger);
}

.stock-movement-row.is-in {
  border-left-color: #1f9d61;
}

.stock-movement-row span,
.stock-movement-row small,
.stock-movement-side span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.stock-movement-row strong {
  overflow-wrap: anywhere;
}

.stock-movement-side {
  text-align: right;
}

.stock-movement-side strong {
  display: block;
  font-size: 20px;
}

.stock-low-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.stock-low-group-head {
  align-items: center;
  background: #f2f5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.stock-low-group-head strong {
  font-size: 15px;
}

.stock-low-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.stock-low-group-list {
  display: grid;
  gap: 10px;
}

#stock-categories-form {
  padding: 20px;
}

.stock-categories-editor {
  display: grid;
  gap: 10px;
}

.stock-category-row {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.2fr);
  padding: 12px;
}

.stock-category-row span {
  color: var(--muted);
  font-size: 13px;
}

.stock-category-row input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.cards {
  display: grid;
  gap: 16px;
}

.appointment-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.appointment-toolbar-actions {
  display: flex;
  justify-content: flex-start;
}

.calendar-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#appointment-period-label {
  min-width: 170px;
  text-align: center;
}

.appointment-history-dialog {
  max-width: min(1100px, calc(100vw - 32px));
  width: 960px;
}

.appointment-history-dialog::backdrop {
  background: rgba(15, 23, 32, 0.42);
}

.appointment-history-dialog #appointment-history-dialog-content {
  display: grid;
  gap: 14px;
  max-height: min(72vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.appointment-history-dialog .vehicle-report-hero,
.appointment-history-dialog .vehicle-report-data,
.appointment-history-dialog .vehicle-report-history {
  margin-top: 0;
}

.appointment-calendar {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.appointment-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 140px minmax(240px, 1fr);
  margin-bottom: 14px;
}

.appointment-summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.appointment-summary-card span,
.appointment-day-title span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment-summary-card strong {
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.appointment-summary-card.wide strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.appointment-day-group {
  display: grid;
  gap: 10px;
}

.appointment-day-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 4px 2px;
}

.appointment-day-title strong {
  font-size: 18px;
}

.appointment-day-list {
  display: grid;
  gap: 10px;
}

.appointment-agenda-card {
  grid-template-columns: 96px 1fr;
}

.appointment-time-block {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 76px;
  padding: 10px;
}

.appointment-time-block strong {
  font-size: 22px;
}

.appointment-time-block span {
  color: var(--muted);
  font-size: 12px;
}

.day-agenda {
  display: grid;
  gap: 8px;
  min-width: 720px;
}

.day-slot {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 110px 1fr;
  padding: 10px;
}

.day-slot.available {
  background: #f7faf9;
}

.day-slot.reserved {
  border-color: #d5dde0;
}

.day-slot-time {
  align-content: center;
  background: #f4f7f8;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px;
}

.day-slot-time strong {
  font-size: 22px;
}

.day-slot-time span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.day-slot-content {
  align-content: center;
  display: grid;
  gap: 8px;
}

.day-agenda-extra {
  background: var(--panel);
  border: 1px dashed #b9c4c8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.day-agenda-extra > strong {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  gap: 8px;
  min-width: 760px;
}

.week-grid,
.month-weekdays,
.month-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekdays {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-width: 760px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 132px;
  padding: 10px;
}

.week-grid .calendar-day {
  min-height: 240px;
}

.calendar-day.muted-day {
  background: #f5f7f8;
  color: #889199;
}

.calendar-day.today {
  border-color: var(--accent);
}

.calendar-day-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-day-head strong {
  font-size: 18px;
}

.calendar-day-head span {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.calendar-day-items {
  display: grid;
  gap: 6px;
}

.calendar-item {
  background: #eef3f4;
  color: var(--ink);
  min-height: auto;
  padding: 7px 8px;
  text-align: left;
}

.calendar-item.waiting {
  background: #fff7d8;
  border-left: 4px solid #d8a700;
}

.calendar-item.ready {
  background: #e8f7ef;
  border-left: 4px solid #168a55;
}

.calendar-item.shop {
  background: #e7f0ff;
  border-left: 4px solid #2d6cdf;
}

.calendar-item.expired {
  background: #f8e5e5;
  border-left: 4px solid #bd2f36;
}

.calendar-item span,
.calendar-item small,
.calendar-item em {
  display: block;
  overflow-wrap: anywhere;
}

.calendar-item span {
  font-size: 12px;
  font-weight: 800;
}

.calendar-item small,
.calendar-empty {
  color: var(--muted);
  font-size: 11px;
}

.calendar-item em {
  color: #4f5b62;
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
}

.appointment-detail-card {
  display: grid;
  gap: 14px;
}

.appointment-detail-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.appointment-detail-title strong {
  font-size: 18px;
}

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

.appointment-detail-grid div,
.appointment-detail-notes {
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.appointment-detail-grid span,
.appointment-detail-notes span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.appointment-detail-grid strong,
.appointment-detail-notes p {
  margin: 0;
}

.appointment-detail-actions {
  justify-content: flex-end;
}

.order-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

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

.order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.order-title strong {
  font-size: 17px;
}

.order-meta {
  margin-top: 6px;
}

.workflow-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.workflow-trail > span:first-child {
  font-weight: 700;
  margin-right: 4px;
}

.workflow-trail .workflow-delivered {
  color: var(--ink);
  font-weight: 700;
}

.order-work-detail {
  color: var(--ink);
  line-height: 1.45;
  margin-top: 10px;
}

.order-work-detail span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.order-work-detail p {
  margin: 0;
  overflow-wrap: anywhere;
}

.work-request-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-request-list li {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.work-request-list li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 7px;
  margin-top: .48em;
  width: 7px;
}

.work-request-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-help {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

.badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.badge.waiting {
  color: var(--amber);
  background: #fff3d7;
}

.badge.shop {
  color: var(--blue);
  background: #e6f0fb;
}

.badge.ready {
  color: var(--accent-dark);
  background: #dff4ef;
}

.badge.done {
  color: #59636a;
  background: #edf1f2;
}

.badge.partial {
  color: #835500;
  background: #fff0c2;
}

.badge.expired {
  color: var(--red);
  background: #fbe4e4;
}

.badge.muted-badge {
  background: #edf1f2;
  color: #59636a;
  margin-left: 8px;
}

.inactive-customer {
  background: #f8fafb;
  opacity: .78;
}

.meta {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.amount {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.order-total-preview {
  align-self: start;
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px 12px;
  white-space: normal;
}

.order-total-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-total-preview strong {
  color: var(--ink);
  font-size: 18px;
}

.order-total-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-summary-box {
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 42px;
  padding: 10px 12px;
}

.payment-summary-box div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.payment-summary-box strong {
  color: var(--ink);
  font-size: 18px;
}

.payment-summary-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.inline-select {
  align-items: center;
  background: #eef3f4;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px 0 10px;
}

.inline-select span {
  font-size: 12px;
  font-weight: 700;
}

.inline-select select {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-height: 30px;
  padding: 0 2px;
}

.inline-select select:focus {
  outline: 2px solid rgba(14, 124, 112, .25);
  outline-offset: 2px;
}

.workshop-list {
  display: grid;
  gap: 14px;
}

.workshop-card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.workshop-card-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.workshop-plate {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.workshop-vehicle {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  margin-top: 5px;
}

.workshop-head-actions,
.workshop-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workshop-head-actions .inline-select {
  min-height: 38px;
}

.workshop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: 14px;
}

.workshop-block {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 13px;
}

.workshop-block-main {
  background: #eef7f5;
  border-color: #cfe4df;
}

.workshop-block span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.workshop-block p,
.workshop-block ul {
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.workshop-block ul {
  padding-left: 18px;
}

.workshop-block li + li {
  margin-top: 5px;
}

.workshop-actions {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f8;
  color: var(--muted);
}

.service-notice-banner {
  align-items: flex-start;
  background: #fff8e7;
  border-color: #e3c986;
  color: var(--ink);
}

.service-notice-banner strong,
.service-notice-banner span,
.service-notice-banner small {
  display: block;
}

.service-notice-banner span,
.service-notice-banner small {
  color: var(--muted);
  margin-top: 3px;
}

.service-notice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small {
  background: #eef3f4;
  border-radius: 8px;
  color: var(--ink);
  min-height: 34px;
  padding: 0 10px;
}

.small:disabled {
  color: #7c878e;
  cursor: default;
  opacity: .75;
}

.danger {
  color: white;
  background: var(--red);
}

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

.row-card {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.vehicle-card {
  align-items: start;
  grid-template-columns: 1fr;
}

.vehicle-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  margin-top: 4px;
  padding-top: 10px;
}

.row-main strong {
  display: block;
}

.row-main span {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.row-main .registration-date {
  color: #536168;
  font-size: 12px;
}

.row-main .registration-date strong {
  display: inline;
}

.vehicle-report-hero,
.vehicle-report-data article,
.vehicle-report-order {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vehicle-report-print-head {
  display: none;
}

.vehicle-report-hero {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px;
}

.vehicle-report-hero span,
.vehicle-report-data span,
.vehicle-report-text span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.vehicle-report-hero h2 {
  margin-bottom: 4px;
}

.vehicle-report-hero p,
.vehicle-report-data p,
.vehicle-report-text p {
  color: var(--muted);
  line-height: 1.45;
}

.vehicle-report-actions,
.vehicle-report-order-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.vehicle-report-stats {
  grid-template-columns: repeat(5, minmax(145px, 1fr));
}

.vehicle-report-stats .stat strong {
  white-space: normal;
}

.vehicle-report-data {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.vehicle-report-data-main {
  grid-column: 1 / -1;
}

.vehicle-report-data article,
.vehicle-report-order {
  padding: 16px;
}

.vehicle-report-history {
  display: grid;
  gap: 12px;
}

.vehicle-report-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  overflow-x: auto;
}

.vehicle-report-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 700;
  padding: 11px 14px 10px;
  white-space: nowrap;
}

.vehicle-report-tabs button.active {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.vehicle-report-tabs button span {
  background: var(--soft);
  border-radius: 10px;
  display: inline-block;
  font-size: 11px;
  margin-left: 4px;
  min-width: 20px;
  padding: 2px 6px;
  text-align: center;
}

.vehicle-report-panel[hidden] {
  display: none;
}

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

.vehicle-report-panel-heading h2 {
  margin-bottom: 4px;
}

.vehicle-report-panel-heading p,
.vehicle-report-pending-main > span,
.vehicle-report-document-row span,
.vehicle-report-document-row p {
  color: var(--muted);
  line-height: 1.45;
}

.vehicle-report-pending-list,
.vehicle-report-document-list {
  display: grid;
  gap: 10px;
}

.vehicle-report-pending-row,
.vehicle-report-document-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.vehicle-report-pending-main,
.vehicle-report-document-row > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.vehicle-report-pending-main .order-badges {
  justify-content: flex-start;
}

.ownership-dialog {
  width: min(1120px, calc(100vw - 32px));
}

.ownership-dialog > section,
.ownership-dialog > details,
.ownership-layout {
  margin: 0 20px 18px;
}

.ownership-current {
  background: var(--soft);
  border-left: 4px solid var(--teal);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.ownership-current span,
.ownership-history-row span,
.ownership-history-row small,
.ownership-open-order span,
.ownership-audit-row span {
  color: var(--muted);
}

.ownership-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
}

.ownership-layout h3,
.ownership-audit h3 {
  margin-bottom: 10px;
}

#ownership-change-form {
  display: grid;
  gap: 13px;
}

.ownership-history-list,
#ownership-open-orders,
#ownership-audit-list {
  display: grid;
  gap: 8px;
}

.ownership-history-row,
.ownership-open-order,
.ownership-audit-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.ownership-history-row > div,
.ownership-open-order > div,
.ownership-audit-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ownership-open-order select {
  max-width: 230px;
}

.ownership-correction {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.ownership-correction summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px;
}

.ownership-correction form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ownership-correction-help {
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
}

.ownership-correction-help p {
  line-height: 1.45;
  margin: 0;
}

.ownership-correction-help small {
  color: var(--muted);
  line-height: 1.4;
}

.ownership-preview-summary {
  align-items: center;
  background: var(--soft);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 10px;
}

.ownership-review-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  width: 100%;
}

.vehicle-report-ownership-history {
  margin-top: 18px;
}

.vehicle-report-search {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.vehicle-report-search label,
.vehicle-report-result-count {
  color: var(--muted);
  font-size: 13px;
}

.vehicle-report-search-bar {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  overflow: hidden;
}

.vehicle-report-search input {
  background: white;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  min-height: 42px;
  padding: 11px 12px;
  width: 100%;
}

.vehicle-report-search input:focus {
  box-shadow: inset 0 0 0 2px var(--teal);
  outline: none;
}

.vehicle-report-search-count {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
  white-space: nowrap;
}

.vehicle-report-search-bar .icon {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  height: 42px;
  min-height: 42px;
  padding: 0;
  width: 42px;
}

.vehicle-report-search-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.vehicle-report-history-results {
  display: grid;
  gap: 12px;
}

.vehicle-report-highlight {
  -webkit-box-decoration-break: clone;
  background: #ffe36d;
  border-radius: 2px;
  box-decoration-break: clone;
  color: #111418;
  font: inherit;
  font-weight: 900;
  line-height: inherit;
  overflow-wrap: normal;
  padding: 1px 0;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
}

.vehicle-report-highlight.active {
  background: #ffb84d;
  box-shadow: 0 0 0 2px rgba(18, 133, 121, 0.45);
}

.vehicle-report-order.search-match {
  border-left: 4px solid var(--accent);
}

.vehicle-report-no-results {
  align-items: start;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.vehicle-report-vtv-current {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 16px;
}

.vehicle-report-vtv-current article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.vehicle-report-vtv-current span,
.vehicle-report-vtv-block > span {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-report-vtv-current strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.vehicle-report-vtv-history {
  display: grid;
  gap: 10px;
}

.vehicle-report-vtv-record {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px;
}

.vehicle-report-vtv-record > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.vehicle-report-vtv-record > header > div:first-child {
  display: grid;
  gap: 4px;
}

.vehicle-report-vtv-record > header span,
.vehicle-report-vtv-record > small {
  color: var(--muted);
}

.vehicle-report-vtv-block {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.vehicle-report-vtv-empty {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.vehicle-report-print-dialog {
  width: min(620px, calc(100vw - 32px));
}

.vehicle-report-print-dialog form {
  padding: 22px;
}

.vehicle-report-print-options {
  display: grid;
  gap: 10px;
}

.vehicle-report-print-options label {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 13px;
}

.vehicle-report-print-options label:has(input:checked) {
  background: #fcf2f4;
  border-color: var(--accent);
}

.vehicle-report-print-options input {
  margin-top: 3px;
}

.vehicle-report-print-options span {
  display: grid;
  gap: 3px;
}

.vehicle-report-print-options small {
  color: var(--muted);
  line-height: 1.4;
}

.vehicle-report-print-dialog menu {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 18px 0 0;
  padding: 0;
}

.vehicle-report-order-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.vehicle-report-order-head strong {
  display: block;
  margin-bottom: 4px;
}

.vehicle-report-order-head span {
  color: var(--muted);
}

.vehicle-report-items {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0;
}

.vehicle-report-items li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 8px;
}

.vehicle-report-items li > span,
.vehicle-report-order-head > div,
.vehicle-report-text {
  min-width: 0;
}

.vehicle-report-items li > span,
.vehicle-report-text p,
.vehicle-report-text li {
  overflow-wrap: break-word;
  word-break: normal;
}

.vehicle-report-text {
  border-left: 3px solid var(--line);
  margin-top: 12px;
  padding-left: 10px;
}

.vehicle-report-order-foot {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

dialog {
  width: min(980px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(23, 32, 38, .28);
}

dialog::backdrop {
  background: rgba(23, 32, 38, .45);
}

#editor-form {
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #edf1f2;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-grid > .full {
  grid-column: 1 / -1;
}

.order-form-section {
  background: #fff;
  border: 1px solid var(--card-border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(23, 32, 38, .05);
  padding: 16px;
}

.order-form-section + .order-form-section {
  margin-top: 4px;
}

.order-form-section-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  position: relative;
}

summary.order-form-section-head {
  cursor: pointer;
  list-style: none;
  padding-right: 34px;
  user-select: none;
}

summary.order-form-section-head::-webkit-details-marker {
  display: none;
}

summary.order-form-section-head::after {
  color: var(--muted);
  content: "⌄";
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 4px;
  top: 5px;
  transform: rotate(-90deg);
  transition: transform .16s ease;
}

.order-form-section[open] > summary.order-form-section-head::after {
  transform: rotate(0);
}

.order-form-section:not([open]) > .order-form-section-head {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-form-section-head > span {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
}

.order-form-section-head h3 {
  font-size: 18px;
  margin: 0;
}

.order-form-section-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.order-form-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-form-section-grid > .order-service-observation-container {
  grid-column: 1 / -1;
  min-width: 0;
}

.additional-work-types-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.additional-work-types-field legend {
  margin-bottom: 7px;
  font-weight: 700;
}

.additional-work-types-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.additional-work-type-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.additional-work-type-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.additional-work-type-option.active {
  border-color: var(--accent);
  background: #e9f5f2;
  color: #075f54;
}

.additional-work-type-option.is-primary {
  opacity: .5;
  cursor: default;
}

.additional-work-types-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.report-ranking-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.report-ranking-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.order-service-observation-prompt {
  align-items: center;
  margin: 0;
}

.order-service-observation-prompt > div:first-child {
  min-width: 0;
}

.order-service-observation-prompt .service-notice-actions {
  flex: 0 0 auto;
}

.order-form-section-internal {
  border-left-color: var(--amber);
}

.order-form-section-internal .order-form-section-head > span {
  background: var(--amber);
}

.order-form-section-payment {
  border-left-color: var(--blue);
}

.order-form-section-payment .order-form-section-head > span {
  background: var(--blue);
}

.quick-customer-vehicle {
  background: #f6f8f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.quick-block-head {
  display: grid;
  gap: 3px;
}

.quick-block-head span {
  color: var(--muted);
  font-size: 13px;
}

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

.field:has(textarea),
.field:has(input[type="date"]),
.field:has(input[type="number"]) {
  min-width: 0;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

#editor[data-editor-mode="appointments"] .requested-work-field > label,
#editor[data-editor-mode="orders"] .vehicle-search-field > label,
#editor[data-editor-mode="orders"] .requested-work-field > label,
#editor[data-editor-mode="orders"] .field:has(> [name="development"]) > label,
#editor[data-editor-mode="orders"] .used-parts-field > label,
#editor[data-editor-mode="orders"] .order-items-field > label,
#editor[data-editor-mode="orders"] .order-observations-field > label,
#editor[data-editor-mode="orders"] .order-costs-field > label,
#editor[data-editor-mode="orders"] .field:has(> [name="observations"]) > label,
#editor[data-editor-mode="orders"] .field:has(> [name="notes"]) > label,
#editor[data-editor-mode="orders"] .payment-items-field > label,
#editor[data-editor-mode="orders"] .payment-summary-field > label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

#editor[data-editor-mode="orders"] .order-total-field,
#editor[data-editor-mode="orders"] .payment-summary-field {
  background: #f6f8f9;
  border: 1px solid #cbd5d9;
  border-radius: 8px;
  grid-column: span 2;
  padding: 12px;
}

#editor[data-editor-mode="orders"] .order-total-field > label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

#editor[data-editor-mode="orders"] .order-total-field > input {
  border-color: #74858d;
  border-width: 2px;
  font-size: 18px;
  font-weight: 800;
}

#editor[data-editor-mode="orders"] .order-total-field > input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 133, 121, 0.16);
  outline: none;
}

#editor[data-editor-mode="appointments"] .requested-work-field textarea,
#editor[data-editor-mode="orders"] .vehicle-search-field > #vehicle-search-input,
#editor[data-editor-mode="orders"] .requested-work-field textarea,
#editor[data-editor-mode="orders"] .field:has(> [name="development"]) > textarea,
#editor[data-editor-mode="orders"] .used-parts-field input,
#editor[data-editor-mode="orders"] .used-parts-field select,
#editor[data-editor-mode="orders"] .order-items-field input,
#editor[data-editor-mode="orders"] .order-observations-field input,
#editor[data-editor-mode="orders"] .order-observations-field select,
#editor[data-editor-mode="orders"] .order-costs-field input,
#editor[data-editor-mode="orders"] .order-costs-field select,
#editor[data-editor-mode="orders"] .field:has(> [name="notes"]) > textarea,
#editor[data-editor-mode="orders"] .payment-items-field input,
#editor[data-editor-mode="orders"] .payment-items-field select {
  border-color: #74858d;
  border-width: 2px;
  box-shadow: 0 2px 4px rgba(22, 34, 40, 0.09);
}

#editor[data-editor-mode="appointments"] .requested-work-field textarea:focus,
#editor[data-editor-mode="orders"] .vehicle-search-field > #vehicle-search-input:focus,
#editor[data-editor-mode="orders"] .requested-work-field textarea:focus,
#editor[data-editor-mode="orders"] .field:has(> [name="development"]) > textarea:focus,
#editor[data-editor-mode="orders"] .used-parts-field input:focus,
#editor[data-editor-mode="orders"] .used-parts-field select:focus,
#editor[data-editor-mode="orders"] .order-items-field input:focus,
#editor[data-editor-mode="orders"] .order-observations-field input:focus,
#editor[data-editor-mode="orders"] .order-observations-field select:focus,
#editor[data-editor-mode="orders"] .order-costs-field input:focus,
#editor[data-editor-mode="orders"] .order-costs-field select:focus,
#editor[data-editor-mode="orders"] .field:has(> [name="notes"]) > textarea:focus,
#editor[data-editor-mode="orders"] .payment-items-field input:focus,
#editor[data-editor-mode="orders"] .payment-items-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 133, 121, 0.16);
  outline: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}

.field.field-error label {
  color: #bd2f36;
  font-weight: 800;
}

.field.field-error input,
.field.field-error select,
.field.field-error textarea {
  border-color: #bd2f36;
  box-shadow: 0 0 0 3px rgba(189, 47, 54, 0.14);
}

.field-error-message {
  color: #bd2f36;
  font-size: 12px;
  font-weight: 700;
}

.field.field-disabled label {
  color: #8d989f;
}

.field input:disabled {
  background: #eef1f2;
  color: #7b868d;
  cursor: not-allowed;
}

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

.expandable-text-field-head,
.expandable-text-field-meta,
.expanded-text-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

#editor .expandable-text-field-head > label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

#editor[data-editor-mode="orders"] .development-field textarea {
  min-height: 150px;
  resize: vertical;
}

.expandable-text-field-meta > small:last-child,
.expanded-text-footer > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.expanded-text-dialog {
  height: min(820px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  width: min(1100px, calc(100vw - 32px));
}

.expanded-text-shell {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: 20px;
}

#expanded-text-textarea {
  border: 2px solid #74858d;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.55;
  min-height: 0;
  padding: 16px;
  resize: none;
  width: 100%;
}

#expanded-text-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 133, 121, 0.16);
  outline: none;
}

@media (max-width: 640px) {
  .expandable-text-field-head,
  .expandable-text-field-meta,
  .expanded-text-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .expandable-text-button,
  .expanded-text-footer .primary {
    width: 100%;
  }

  .expanded-text-shell {
    padding: 14px;
  }
}

.documents-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

#vehicle-document-form {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

#vehicle-document-form .modal-head {
  align-items: flex-start;
}

#vehicle-document-form .modal-head h2 {
  margin-bottom: 4px;
}

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

.document-form-grid .field > span {
  color: var(--muted);
  font-size: 13px;
}

.document-description-field,
.document-file-field {
  grid-column: span 3;
}

.document-file-field small {
  color: var(--muted);
}

.document-form-actions {
  min-height: 42px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.document-library {
  padding: 20px;
}

.document-library .section-heading {
  margin-bottom: 12px;
}

.document-list {
  display: grid;
  gap: 8px;
}

.document-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.document-row:first-child {
  border-top: 0;
}

.document-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.document-row-main strong,
.document-row-main span {
  overflow-wrap: anywhere;
}

.document-row-main span {
  color: var(--muted);
  font-size: 13px;
}

.document-row .card-actions {
  margin-top: 0;
}

.vehicle-search-field {
  position: relative;
}

.appointment-customer-mode {
  display: grid;
  gap: 10px;
}

.appointment-customer-mode > span {
  color: var(--muted);
  font-size: 13px;
}

.appointment-mode-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-mode-options label {
  align-items: start;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-columns: 20px 1fr;
  padding: 12px;
}

.appointment-mode-options label.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(14, 124, 112, .12);
}

.appointment-mode-options input {
  grid-row: span 2;
  margin-top: 2px;
}

.appointment-mode-options strong {
  font-size: 15px;
}

.appointment-mode-options small {
  color: var(--muted);
  line-height: 1.3;
}

.appointment-existing-customer-panel,
.appointment-new-customer-panel {
  display: grid;
  gap: 12px;
}

.appointment-existing-customer-panel[hidden],
.appointment-new-customer-panel[hidden] {
  display: none;
}

.vehicle-search-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  width: 100%;
}

.vehicle-search-results:empty {
  display: none;
}

.vehicle-search-result {
  align-items: start;
  background: #f6f8f9;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-items: stretch;
  line-height: 1.25;
  min-height: 0;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.vehicle-search-result:hover {
  background: #eaf3f2;
  border-color: #b9d8d4;
}

.vehicle-search-main,
.vehicle-search-meta,
.vehicle-search-selected,
.vehicle-search-empty {
  min-width: 0;
}

.vehicle-search-main {
  align-items: baseline;
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(82px, max-content) minmax(0, 1fr);
}

.vehicle-search-main strong,
.vehicle-search-main span,
.vehicle-search-meta {
  overflow-wrap: anywhere;
}

.vehicle-search-main strong {
  font-size: 14px;
}

.vehicle-search-main span,
.vehicle-search-meta,
.vehicle-search-selected,
.vehicle-search-empty {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-search-empty {
  padding: 10px;
}

.vehicle-quick-picks {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
}

.vehicle-quick-picks span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-quick-picks div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-history-panel {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.appointment-history-empty,
.appointment-history-head,
.appointment-history-grid,
.appointment-history-list,
.appointment-history-observations,
.appointment-history-actions {
  min-width: 0;
}

.appointment-history-empty,
.appointment-history-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.appointment-history-empty {
  align-items: flex-start;
  display: grid;
  justify-content: stretch;
}

.appointment-history-head div,
.appointment-history-empty {
  display: grid;
  gap: 4px;
}

.appointment-history-head strong,
.appointment-history-empty strong,
.appointment-history-grid strong,
.appointment-history-list strong,
.appointment-history-observations strong {
  overflow-wrap: anywhere;
}

.appointment-history-head span,
.appointment-history-empty span,
.appointment-history-grid span,
.appointment-history-grid small,
.appointment-history-list span,
.appointment-history-list small,
.appointment-history-observations > span,
.appointment-history-observations small {
  color: var(--muted);
  font-size: 12px;
}

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

.appointment-history-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.appointment-history-list,
.appointment-history-observations {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.appointment-history-list div,
.appointment-history-observations li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.appointment-history-observations ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 0;
}

.appointment-history-observations li {
  grid-template-columns: auto minmax(0, 1fr);
}

.appointment-history-observations li small {
  grid-column: 2;
}

.appointment-history-observations li.appointment-history-choice {
  align-items: start;
  grid-template-columns: 20px auto minmax(0, 1fr);
}

.appointment-history-choice > input {
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.appointment-history-choice-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.appointment-history-observations .appointment-history-choice small {
  grid-column: auto;
}

.appointment-history-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.appointment-history-actions > span {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
}

.vehicle-vtv-summary { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.report-vtv-list { max-height: 440px; overflow: auto; }
.report-vtv-list table { width: 100%; border-collapse: collapse; text-align: left; }
.report-vtv-list th, .report-vtv-list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.report-vtv-list th { position: sticky; top: 0; background: #fff; }
.report-vtv-list td:nth-child(3), .report-vtv-list td:last-child { white-space: nowrap; }
.vehicle-vtv-dialog { max-height: 92vh; max-width: 880px; overflow: auto; padding: 24px; width: min(880px, calc(100vw - 28px)); }
.vehicle-vtv-dialog .modal-head { align-items: center; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.vehicle-vtv-dialog .modal-head h2 { margin: 0; }
.vehicle-vtv-dialog .modal-head p { margin: 6px 0 0; }
.vehicle-vtv-current { border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; padding-bottom: 16px; }
.vehicle-vtv-current div { display: grid; gap: 5px; }
.vehicle-vtv-current span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.vehicle-vtv-current strong { font-size: 16px; }
.vehicle-vtv-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle-vtv-form-grid .full { grid-column: 1 / -1; }
.vehicle-vtv-form-actions { align-items: center; display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.vehicle-vtv-save-status { color: var(--muted); font-size: 13px; font-weight: 700; margin-right: auto; }
.vehicle-vtv-history { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.vehicle-vtv-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
.vehicle-vtv-row > div:first-child { display: grid; gap: 4px; }
.vehicle-vtv-row span, .vehicle-vtv-row small, .vtv-alert-row small { color: var(--muted); }
.vehicle-vtv-observations { margin: 4px 0 0; }
.vehicle-vtv-measurements-editor { border: 1px solid var(--line); border-radius: 6px; margin-top: 16px; padding: 12px; }
.vehicle-vtv-measurements-editor > summary { cursor: pointer; font-weight: 800; }
.vehicle-vtv-measurements-editor > summary span { color: var(--muted); font-size: 12px; font-weight: 600; margin-left: 6px; }
.vehicle-vtv-measurement-groups { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.vehicle-vtv-measurement-column { align-content: start; display: grid; gap: 14px; }
.vehicle-vtv-measurement-groups fieldset { border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 10px; margin: 0; min-width: 0; padding: 12px; }
.vehicle-vtv-measurement-groups legend { font-size: 13px; font-weight: 800; padding: 0 5px; }
.vehicle-vtv-measurement-compact { align-content: start; grid-template-columns: repeat(2, minmax(0, 180px)); }
.vehicle-vtv-measurement-compact legend { grid-column: 1 / -1; }
.vehicle-vtv-measurement-compact .field { min-width: 0; }
.vehicle-vtv-measurement-groups .vtv-measurement-value { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-width: 0; }
.vehicle-vtv-measurement-groups .vtv-measurement-value input { width: 100px; max-width: 100%; min-width: 0; flex: 0 1 100px; }
.vehicle-vtv-measurement-groups .vtv-measurement-reference { color: #606773; font-size: 12px; font-weight: 400; line-height: 1.3; }
.vehicle-vtv-measurements-view { margin-top: 6px; }
.vehicle-vtv-measurements-view > summary { color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 800; }
.vehicle-vtv-measurements-view dl { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 0; }
.vehicle-vtv-measurements-view dl div { border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 7px 8px; }
.vehicle-vtv-measurements-view dt { color: var(--muted); }
.vehicle-vtv-measurements-view dd { font-weight: 800; margin: 0; white-space: nowrap; }
.vehicle-vtv-measurements-view dl div { flex-wrap: wrap; align-items: baseline; }
.vehicle-vtv-measurements-view dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; white-space: normal; }
.vehicle-vtv-measurements-view dd strong { white-space: nowrap; }
.vehicle-vtv-measurements-view .vtv-saved-reference { color: #606773; font-size: 12px; font-weight: 400; }

@media (max-width: 640px) {
  .vehicle-vtv-current, .vehicle-vtv-form-grid, .vehicle-vtv-row { grid-template-columns: 1fr; }
  .vehicle-vtv-measurement-groups, .vehicle-vtv-measurements-view dl { grid-template-columns: 1fr; }
  .vehicle-vtv-form-grid .full { grid-column: auto; }
  .vehicle-vtv-row .card-actions { justify-content: flex-start; }
  .vehicle-report-vtv-current { grid-template-columns: 1fr; }
  .vehicle-report-vtv-record > header { align-items: flex-start; flex-direction: column; }
}

.used-parts-editor {
  display: grid;
  gap: 8px;
}

.used-part-search-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.used-part-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px auto;
  gap: 8px;
}

.used-part-search-row input {
  min-height: 38px;
}

.used-part-search-results {
  display: grid;
  gap: 6px;
}

.used-part-result {
  align-items: start;
  background: #f5f8f8;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 3px;
  justify-items: start;
  min-height: auto;
  padding: 9px 10px;
  text-align: left;
}

.used-part-result:hover,
.used-part-result:focus-visible {
  background: #eaf2f2;
  border-color: var(--accent);
}

.used-part-result span,
.used-part-info span,
.used-parts-empty,
.used-part-search-empty {
  color: var(--muted);
  font-size: 12px;
}

.used-parts-empty,
.used-part-search-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
}

.used-part-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px auto;
  gap: 8px;
  align-items: center;
}

.used-part-row input {
  min-height: 38px;
}

.used-part-info {
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 38px;
  padding: 8px 10px;
}

.add-used-part {
  justify-self: start;
}

.estimate-items-editor,
.order-items-editor,
.payment-items-editor,
.order-costs-editor,
.order-observations-editor {
  display: grid;
  gap: 8px;
}

.order-items-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.order-items-footer > .add-order-item {
  margin-right: auto;
}

.estimate-items-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 10px;
}

.estimate-items-total-box {
  min-width: 280px;
}

.order-discount-control {
  display: grid;
  gap: 5px;
}

.order-discount-control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-discount-control > div {
  align-items: center;
  display: flex;
  gap: 7px;
}

.order-discount-control input {
  max-width: 110px;
  text-align: right;
}

.order-items-total-box {
  background: #f2f7f6;
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding: 10px 12px;
}

.order-items-total-box > div {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.order-items-total-box .order-items-final {
  border-top: 1px solid #cfe0dc;
  margin-top: 2px;
  padding-top: 7px;
}

.order-items-total-box span {
  color: var(--muted);
  font-size: 13px;
}

.order-items-total-box strong {
  color: var(--ink);
  font-size: 18px;
  white-space: nowrap;
}

.estimate-items-head,
.estimate-item-row,
.order-items-head,
.order-item-row,
.payment-items-head,
.payment-item-row,
.order-costs-head,
.order-cost-row,
.order-observations-head,
.order-observation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px auto;
  gap: 8px;
}

.order-costs-head,
.order-cost-row {
  grid-template-columns: minmax(180px, 1fr) 130px minmax(150px, 180px) 120px 145px auto;
}

.order-observations-head,
.order-observation-row {
  grid-template-columns: minmax(220px, 1fr) 140px auto;
}

.estimate-items-head,
.order-items-head,
.payment-items-head,
.order-costs-head,
.order-observations-head {
  color: var(--muted);
  font-size: 12px;
  padding: 0 12px;
}

.estimate-item-row input,
.order-item-row input,
.payment-item-row input,
.order-cost-row input,
.order-observation-row input {
  min-height: 38px;
}

.order-cost-row select,
.order-observation-row select {
  min-height: 38px;
  min-width: 0;
}

.order-observation-reminder {
  align-items: center;
  background: #f5f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  grid-column: 1 / -1;
  padding: 9px 12px;
}

.observation-reminder-toggle,
.observation-reminder-date {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.observation-reminder-toggle input {
  height: 17px;
  min-height: 17px;
  width: 17px;
}

.observation-reminder-date input {
  min-height: 34px;
  width: auto;
}

.observation-reminder-date[hidden] {
  display: none;
}

.observation-follow-up-groups {
  display: grid;
  gap: 18px;
}

.observation-follow-up-group {
  display: grid;
  gap: 9px;
}

.observation-follow-up-group > h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
}

.observation-follow-up-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.observation-follow-up-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.observation-follow-up-row .dashboard-actions {
  align-self: center;
}

@media (max-width: 760px) {
  .observation-follow-up-row {
    grid-template-columns: 1fr;
  }

  .observation-follow-up-row .dashboard-actions {
    justify-content: flex-start;
  }
}

.order-cost-row-stock {
  background: #f7fbf9;
  border: 1px solid #c8e0d7;
  border-radius: 8px;
  padding: 6px;
}

.order-cost-row-stock input[readonly] {
  background: #eef8f4;
  border-color: #c8e0d7;
  color: #24463a;
  font-weight: 700;
}

.stock-cost-badge {
  align-self: center;
  background: #dff3ea;
  border: 1px solid #b7dbc9;
  border-radius: 999px;
  color: #246147;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  padding: 7px 10px;
}

.payment-items-head,
.payment-item-row {
  grid-template-columns: 145px 145px minmax(140px, 170px) minmax(190px, 1fr) auto;
}

.payment-item-row select {
  min-height: 38px;
  min-width: 0;
}

.add-estimate-item,
.add-order-item,
.add-payment-item,
.add-order-cost,
.add-order-observation {
  justify-self: start;
}

.observation-points {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.observation-points li {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.35;
}

.observation-points .badge {
  flex: 0 0 auto;
}

.order-work-detail .observation-points .observation-detail {
  color: var(--ink);
  flex: 1 1 280px;
  font-size: inherit;
  font-weight: 400;
  margin: 0;
  text-transform: none;
}

.order-work-detail .observation-points .observation-budget-status {
  display: inline-flex;
  font-size: 11px;
  margin: 0;
  text-transform: none;
}

.order-work-detail .observation-points .observation-follow-up-status {
  display: inline-flex;
  font-size: 11px;
  margin: 0;
  text-transform: none;
}

.linked-observation-panel {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.linked-observation-head,
.linked-observation-panel article,
.linked-observation-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.linked-observation-head span,
.linked-observation-panel small {
  color: var(--muted);
  font-size: 12px;
}

.linked-observation-panel article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.linked-observation-panel article > div:first-child {
  display: grid;
  flex: 1 1 280px;
  gap: 3px;
}

.order-costs-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.order-costs-footer strong,
.order-cost-summary span {
  color: var(--amber);
}

.order-costs-summary {
  align-items: center;
  background: #fff7e5;
  border: 1px solid #efdcae;
  border-radius: 8px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto auto;
  min-width: min(100%, 360px);
  padding: 10px 12px;
}

.order-costs-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-costs-summary strong {
  color: var(--amber);
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}

.supplier-stats {
  margin-bottom: 18px;
}

.supplier-view-tabs {
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 6px;
}

.supplier-view-tabs .chip {
  background: transparent;
}

.supplier-view-tabs .chip.active {
  background: var(--accent);
  color: white;
}

.supplier-card {
  align-items: start;
}

.supplier-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.supplier-account-grid span {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.supplier-account-grid strong {
  color: var(--ink);
}

.supplier-movements {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.supplier-movement-row {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.supplier-movement-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supplier-movement-row span,
.supplier-movement-row small {
  color: var(--muted);
  font-size: 12px;
}

.supplier-movement-side,
.supplier-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.supplier-movement-side strong {
  white-space: nowrap;
}

.supplier-movement-table table {
  min-width: 860px;
}

.supplier-movement-table span {
  color: var(--muted);
  font-size: 12px;
}

.supplier-account-view {
  display: grid;
  gap: 14px;
}

.supplier-account-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.supplier-account-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.supplier-account-head h2 {
  margin: 4px 0;
}

.supplier-account-head p {
  color: var(--muted);
  margin: 0;
}

.supplier-account-summary {
  margin-top: 0;
}

.supplier-account-movements-panel {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.supplier-account-section-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.supplier-account-section-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.supplier-account-section-head h3 {
  margin: 4px 0 0;
}

.supplier-account-section-head > strong {
  background: #eef3f4;
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  white-space: nowrap;
}

.supplier-account-movement-list {
  display: grid;
  gap: 8px;
}

.whatsapp {
  border-color: #1f9d61;
  color: #147847;
}

.whatsapp:hover {
  background: #e7f7ef;
}

.calendar-sync {
  border-color: #2d6cdf;
  color: #2557b8;
}

.calendar-sync:hover {
  background: #e7f0ff;
}

.whatsapp-guide {
  max-width: 720px;
  width: min(720px, calc(100vw - 32px));
}

.whatsapp-guide-body {
  display: grid;
  gap: 14px;
}

.whatsapp-step {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.whatsapp-step strong {
  color: var(--text);
  font-size: 15px;
}

.whatsapp-step span,
.whatsapp-guide-status {
  color: var(--muted);
  font-size: 13px;
}

.whatsapp-step span + span {
  display: none;
}

.whatsapp-step textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
  min-height: 170px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.whatsapp-step button {
  justify-self: start;
}

.whatsapp-guide-status {
  margin: 0;
}

.parts-inquiry-dialog {
  max-width: 820px;
  width: min(820px, calc(100vw - 32px));
}

.parts-inquiry-body {
  display: grid;
  gap: 14px;
}

.parts-inquiry-vehicle {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.parts-inquiry-vehicle-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.parts-inquiry-vehicle-head strong {
  color: var(--text);
  font-size: 18px;
}

.parts-inquiry-vehicle-head span {
  color: var(--muted);
}

.parts-inquiry-data {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parts-inquiry-data div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.parts-inquiry-data span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.parts-inquiry-data strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.parts-inquiry-grid .full {
  grid-column: 1 / -1;
}

.parts-inquiry-grid textarea {
  min-height: 86px;
}

#parts-inquiry-message {
  font-family: Consolas, "Courier New", monospace;
  min-height: 220px;
}

.parts-inquiry-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.parts-inquiry-actions .meta {
  margin-right: auto;
}

.phone-link {
  color: #147847;
  font-weight: 800;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.plate-link {
  background: transparent;
  border: 0;
  color: #0e7c70;
  cursor: pointer;
  display: inline;
  font: inherit;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.plate-link::after {
  color: var(--muted);
  content: " | ";
  font-weight: 400;
}

.plate-link:last-child::after {
  content: "";
}

.vehicle-search-selected-note::after {
  color: #0e7c70;
  content: " " attr(data-mode-note);
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

.plate-link:hover {
  text-decoration: underline;
}

menu {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}

.editor-save-status {
  color: var(--muted);
  font-size: 13px;
  margin-right: auto;
}

.editor-save-status.error {
  color: var(--red);
  font-weight: 700;
}

.empty {
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
}

.receipt-sheet {
  background: white;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  min-height: 297mm;
  padding: 28mm 22mm 18mm;
  width: 210mm;
}

.receipt-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14mm;
}

.receipt-mark {
  height: 84px;
  object-fit: contain;
  width: 84px;
}

.receipt-name {
  font-size: 30px;
  font-weight: 900;
  line-height: .95;
}

.receipt-name span {
  color: #c21824;
  display: block;
}

.receipt-name small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.receipt-rule {
  border-top: 1px solid #222;
  margin-bottom: 14px;
}

.receipt-headline {
  color: #c21824;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.receipt-headline strong,
.receipt-subline strong {
  color: #111;
}

.receipt-subline {
  color: #c21824;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
}

.receipt-box {
  border: 1px solid #b9b9b9;
  margin-bottom: 22px;
  padding: 18px 20px;
}

.receipt-box h2,
.receipt-online,
.receipt-contacts h3 {
  color: #c21824;
}

.receipt-box h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.receipt-grid {
  display: grid;
  font-size: 13px;
  gap: 8px 18px;
  grid-template-columns: repeat(4, 1fr);
}

.receipt-line {
  border-bottom: 1px dotted #aaa;
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 4px 0;
}

.receipt-total {
  color: #c21824;
  font-weight: 900;
}

.receipt-comments {
  font-size: 13px;
  line-height: 1.35;
  margin-top: 18px;
}

.receipt-next,
.receipt-signatures {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.receipt-next {
  font-size: 13px;
  margin-top: 18px;
}

.receipt-online {
  font-size: 18px;
  font-weight: 900;
  margin-top: 24px;
}

.receipt-muted {
  color: #444;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.receipt-contacts {
  border-top: 1px dotted #aaa;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 24px;
  padding-top: 14px;
}

.receipt-contacts h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.receipt-signatures {
  gap: 28px;
  margin-top: 36px;
}

.receipt-signature {
  border-top: 1px solid #333;
  font-size: 12px;
  padding-top: 7px;
  text-align: center;
}

.receipt-modern {
  background: #f7f8fa;
  color: #16191d;
  font-family: Arial, Helvetica, sans-serif;
  padding: 16mm;
}

.receipt-hero {
  align-items: stretch;
  background: #111418;
  color: white;
  display: grid;
  grid-template-columns: 1fr 190px;
  min-height: 118px;
  overflow: hidden;
}

.receipt-brand-modern {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 20px 24px;
}

.receipt-mark-modern {
  background: white;
  height: 76px;
  object-fit: contain;
  padding: 6px;
  width: 76px;
}

.receipt-name-modern {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.receipt-name-modern span {
  color: #e3002b;
}

.receipt-brand-modern small,
.receipt-summary small,
.receipt-summary span,
.receipt-info-grid span,
.receipt-next-modern span {
  color: #6f7881;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipt-summary {
  background: #e3002b;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 20px;
}

.receipt-summary span,
.receipt-summary small {
  color: white;
}

.receipt-summary strong {
  font-size: 34px;
  line-height: 1;
}

.receipt-info-grid,
.receipt-two-col,
.receipt-next-modern {
  display: grid;
  gap: 12px;
}

.receipt-info-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0;
}

.receipt-info-grid article,
.receipt-section,
.receipt-next-modern,
.receipt-footer-modern {
  background: white;
  border: 1px solid #dfe4e8;
}

.receipt-info-grid article {
  align-content: start;
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px;
}

.receipt-info-grid strong {
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.receipt-info-grid small {
  color: #5d6670;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.receipt-section {
  padding: 16px;
}

.receipt-section-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.receipt-section-title span {
  align-items: center;
  background: #111418;
  color: white;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.receipt-section-title h2 {
  color: #111418;
  font-size: 17px;
  margin: 0;
}

.receipt-service-list {
  display: grid;
  gap: 8px;
}

.receipt-service-head {
  align-items: center;
  background: #eef1f3;
  color: #4f5963;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 16px;
  justify-content: space-between;
  letter-spacing: .06em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.receipt-service-row,
.receipt-mini-lines p {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0;
  padding: 8px 0;
}

.receipt-service-row span {
  line-height: 1.35;
}

.receipt-total-modern {
  background: #111418;
  color: white;
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px 16px;
}

.receipt-total-modern > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.receipt-total-modern .receipt-final-total:not(:first-child) {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 8px;
}

.receipt-total-modern span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-total-modern strong {
  color: #fff;
  font-size: 24px;
}

.receipt-two-col {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.receipt-single-col {
  grid-template-columns: 1fr;
}

.receipt-stacked-sections {
  grid-template-columns: 1fr;
}

.receipt-maintenance-hidden {
  display: none;
}

.receipt-check-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.receipt-check-grid div {
  background: #f5f6f7;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.receipt-check-grid span {
  color: #69727c;
  font-size: 12px;
}

.receipt-mini-lines {
  margin-top: 10px;
}

.receipt-estimate-vehicle {
  margin-bottom: 14px;
}

.receipt-estimate-vehicle > strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.receipt-estimate-vehicle .receipt-mini-lines {
  margin-top: 0;
}

.receipt-estimate-vehicle .receipt-mini-lines span {
  overflow-wrap: anywhere;
  text-align: right;
}

.receipt-estimate-work {
  margin-top: 12px;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) {
  background: #fff;
  color: #172027;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-hero {
  background: #fff;
  border-bottom: 2px solid #d9092f;
  color: #172027;
  grid-template-columns: minmax(0, 1fr) 155px;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-brand-modern {
  gap: 12px;
  min-width: 0;
  padding-left: 0;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-mark-modern {
  background: transparent;
  flex: 0 0 88px;
  height: 88px;
  padding: 0;
  width: 88px;
}

.receipt-estimate-brand-name {
  min-width: 0;
}

.receipt-estimate-brand-name > strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.receipt-estimate-brand-name > div {
  align-items: end;
  display: flex;
  gap: 9px;
}

.receipt-estimate-brand-name > div > strong {
  color: #d9092f;
  font-size: 26px;
  line-height: 1;
}

.receipt-estimate-brand-name small {
  color: #172027;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-summary {
  background: #fff;
  border-left: 1px solid #d9dee2;
  color: #172027;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-summary span,
:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-summary small {
  color: #5e6870;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-info-grid {
  border-bottom: 1px solid #d9dee2;
  margin: 0 0 12px;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-info-grid article {
  border: 0;
  min-width: 0;
  padding-left: 0;
}

.receipt-estimate-title {
  font-size: 25px;
  line-height: 1.15;
  margin: 12px 0 14px;
  overflow-wrap: anywhere;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-section {
  border: 0;
  border-bottom: 1px solid #d9dee2;
  padding: 12px 0;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-section-title span {
  background: transparent;
  color: #d9092f;
  width: auto;
}

:is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-section-title h2 {
  text-transform: uppercase;
}

.receipt-estimate-sheet .receipt-total-modern {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.receipt-estimate-excluded {
  background: #f4f6f7;
  border-left: 4px solid #d9092f;
  margin-top: 16px;
  padding: 10px 14px;
}

.receipt-estimate-excluded > strong {
  color: #d9092f;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.receipt-estimate-excluded .work-request-list {
  margin-bottom: 0;
}

.receipt-order-sheet .receipt-next-highlight {
  background: #fff;
  border: 0;
  border-top: 2px solid #d9092f;
  color: #172027;
  padding-left: 0;
  padding-right: 0;
}

.receipt-order-sheet .receipt-next-highlight span,
.receipt-order-sheet .receipt-next-highlight small {
  color: #5e6870;
}

.receipt-order-sheet .receipt-next-highlight strong {
  color: #172027;
}

.receipt-order-sheet .receipt-footer-modern {
  border: 0;
  border-top: 1px solid #d9dee2;
  padding-left: 0;
  padding-right: 0;
}

.receipt-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-parts-section {
  margin-top: 12px;
}

.receipt-parts span {
  background: #f0f2f4;
  color: #20262c;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.receipt-comments-modern {
  margin-top: 14px;
}

.receipt-comments-modern strong {
  display: block;
  margin-bottom: 6px;
}

.receipt-comments-modern p {
  color: #4f5963;
  line-height: 1.45;
  margin: 0;
}

.receipt-next-modern {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding: 14px;
}

.receipt-next-highlight {
  align-items: center;
  background: #111418;
  border-color: #111418;
  color: white;
  grid-template-columns: 1.45fr 1fr;
}

.receipt-next-modern div {
  display: grid;
  gap: 4px;
}

.receipt-next-highlight span,
.receipt-next-highlight small {
  color: #d5dbe0;
}

.receipt-next-highlight strong {
  color: white;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.receipt-next-main strong {
  font-size: 18px;
}

.receipt-next-main small {
  line-height: 1.35;
}

.receipt-history-reminder small {
  line-height: 1.35;
}

.receipt-footer-modern {
  margin-top: 12px;
  padding: 14px 16px 18px;
}

.receipt-footer-modern > div:first-child {
  display: grid;
  gap: 4px;
}

.receipt-footer-modern span {
  color: #4f5963;
  font-size: 12px;
}

.receipt-signatures-modern {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
}

.receipt-signatures-modern span {
  border-top: 1px solid #222;
  color: #222;
  padding-top: 8px;
  text-align: center;
}

.worker-order-sheet {
  box-sizing: border-box;
  min-height: 297mm;
  padding: 9mm;
  width: 210mm;
}

.worker-order-hero {
  align-items: center;
  background: #111418;
  color: white;
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  padding: 11px 14px;
}

.worker-order-hero span,
.worker-order-grid span,
.worker-order-section h3 {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.worker-order-hero strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin: 3px 0;
}

.worker-order-hero small {
  color: #d6dde2;
  font-size: 11px;
}

.worker-order-hero img {
  background: white;
  height: 52px;
  object-fit: contain;
  padding: 5px;
  width: 52px;
}

.worker-order-grid,
.worker-order-two-col {
  display: grid;
  gap: 10px;
}

.worker-order-top-grid,
.worker-order-main-grid {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.worker-order-top-grid {
  grid-template-columns: 1.15fr .85fr;
}

.worker-order-main-grid {
  grid-template-columns: 1fr 1fr;
}

.worker-order-two-col {
  break-inside: avoid;
  page-break-inside: avoid;
}

.worker-order-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0;
}

.worker-order-grid article,
.worker-order-section {
  border: 1px solid #dfe4e8;
  background: white;
}

.worker-order-grid article {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.worker-order-grid span,
.worker-order-section h3 {
  color: #5d6670;
}

.worker-order-grid strong {
  font-size: 13px;
}

.worker-order-grid small {
  color: #5d6670;
  font-size: 10px;
}

.worker-order-section {
  break-inside: avoid;
  margin-top: 7px;
  padding: 8px;
  page-break-inside: avoid;
}

.worker-order-section h3 {
  margin: 0 0 5px;
}

.worker-requested-section p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.worker-prep-section h3 + .worker-order-lines + h3 {
  margin-top: 8px;
}

.worker-final-section {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.35fr 1fr;
}

.worker-final-inline {
  margin-top: 8px;
}

.worker-order-two-col {
  grid-template-columns: 1fr 1fr;
}

.worker-order-lines {
  display: grid;
  gap: 3px;
}

.worker-order-lines p {
  border-bottom: 1px dotted #b8c1c8;
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
  padding: 3px 0;
}

.worker-order-lines.compact p {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.worker-checklist {
  display: grid;
  gap: 5px;
}

.worker-checklist label,
.worker-final-checks label {
  align-items: center;
  display: grid;
  font-size: 11px;
  gap: 6px;
  grid-template-columns: 14px 1fr;
  line-height: 1.2;
}

.worker-checklist label span,
.worker-final-checks label span {
  border: 2px solid #111418;
  height: 12px;
  width: 12px;
}

.worker-reception-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
}

.worker-reception-grid label {
  border: 1px solid #dfe4e8;
  display: grid;
  gap: 4px;
  min-height: 36px;
  padding: 5px;
}

.worker-reception-grid span {
  color: #5d6670;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.worker-reception-grid div {
  border-bottom: 1px dotted #b8c1c8;
  min-height: 12px;
}

.worker-pending-table {
  border: 1px solid #dfe4e8;
  display: grid;
}

.worker-pending-table > div {
  display: grid;
  grid-template-columns: 1fr 110px 82px;
}

.worker-pending-table strong,
.worker-pending-table span {
  border-bottom: 1px solid #dfe4e8;
  border-right: 1px solid #dfe4e8;
  font-size: 10px;
  min-height: 19px;
  padding: 4px 6px;
}

.worker-pending-table strong:last-child,
.worker-pending-table span:last-child {
  border-right: 0;
}

.worker-pending-table strong {
  background: #f6f8f9;
  color: #5d6670;
  font-size: 11px;
  text-transform: uppercase;
}

.worker-final-checks {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worker-text {
  border-bottom: 1px dotted #b8c1c8;
  font-size: 11px;
  line-height: 1.25;
  margin: 0 0 5px;
  min-height: 18px;
  padding-bottom: 4px;
}

.worker-write-lines {
  min-height: 50px;
  background: repeating-linear-gradient(to bottom, transparent, transparent 25px, #b8c1c8 26px);
}

.worker-order-footer {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
}

.worker-order-footer span {
  border-top: 1px solid #111418;
  font-size: 11px;
  padding-top: 5px;
  text-align: center;
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-button {
    text-align: center;
    padding: 10px 6px;
  }

  .topbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .app {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .top-actions,
  .topbar-search,
  .search input {
    width: 100%;
  }

  .top-actions {
    justify-content: flex-start;
  }

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

  .dashboard-vehicle-history-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .form-grid,
  .order-form-section-grid,
  .quick-fields-grid,
  .appointment-mode-options,
  .workshop-grid,
  .appointment-history-grid,
  .appointment-summary,
  .dashboard-status-panel,
  .dashboard-grid,
  .dashboard-recent-grid,
  .report-grid,
  .vehicle-report-data,
  .vehicle-report-stats,
  .backup-security-grid,
  .backup-preview-counts,
  .scanner-panel,
  .auth-user-form,
  .auth-user-row,
  .auth-user-controls,
  .parts-inquiry-data,
  .parts-inquiry-grid {
    grid-template-columns: 1fr;
  }

  .ownership-layout {
    grid-template-columns: 1fr;
  }

  .ownership-open-order {
    align-items: stretch;
    flex-direction: column;
  }

  .ownership-open-order select {
    max-width: none;
    width: 100%;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .report-filter-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-view-tabs {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-view-tabs .filter-label {
    grid-column: 1 / -1;
  }

  .report-result-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .report-result-values > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .report-result-actions {
    justify-content: flex-start;
  }

  .report-filter-step {
    grid-template-columns: 1fr;
  }

  .report-filter-step-content .filter-label {
    flex-basis: 100%;
  }

  .report-date-fields,
  .report-date-field,
  .report-date-field input {
    width: 100%;
  }

  .backup-preview-head {
    flex-direction: column;
  }

  .backup-preview-head small {
    text-align: left;
  }

  .vehicle-report-hero,
  .vehicle-report-order-head,
  .vehicle-report-panel-heading,
  .vehicle-report-pending-row,
  .vehicle-report-document-row {
    align-items: stretch;
    flex-direction: column;
  }

  .workshop-card-head,
  .workshop-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workshop-head-actions {
    justify-content: flex-start;
  }

  .auth-permissions-panel {
    overflow-x: auto;
  }

  .auth-permissions-grid {
    min-width: 680px;
  }

  .vehicle-report-actions,
  .vehicle-report-order-foot,
  .vehicle-report-pending-row .card-actions,
  .vehicle-report-document-row .card-actions {
    justify-content: flex-start;
  }

  .vehicle-report-items li {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-report-items li > strong {
    text-align: left;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .stock-category-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-status-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-items-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .order-items-total-box {
    min-width: 0;
    width: 100%;
  }

  .order-discount-control,
  .order-discount-control input {
    max-width: none;
    width: 100%;
  }

  .order-card,
  .row-card,
  .appointment-agenda-card {
    grid-template-columns: 1fr;
  }

  .receipt-modern {
    min-height: auto;
    padding: 10px;
    width: 100%;
  }

  .receipt-hero,
  .receipt-info-grid,
  .receipt-two-col,
  .receipt-next-modern,
  .worker-order-grid,
  .worker-order-top-grid,
  .worker-order-main-grid,
  .worker-final-section,
  .worker-order-two-col,
  .worker-order-footer,
  .worker-reception-grid,
  .worker-final-checks {
    grid-template-columns: 1fr;
  }

  .receipt-next-modern.receipt-next-highlight {
    grid-template-columns: 1fr;
  }

  .order-items-head,
  .order-item-row,
  .payment-items-head,
  .payment-item-row,
  .order-costs-head,
  .order-cost-row,
  .order-observations-head,
  .order-observation-row,
  .supplier-movement-row,
  .stock-movement-row {
    grid-template-columns: 1fr;
  }

  .stock-movement-side {
    text-align: left;
  }

  .supplier-movement-side,
  .supplier-actions {
    justify-content: flex-start;
  }

  .document-form-grid,
  .document-row {
    grid-template-columns: 1fr;
  }

  .document-description-field,
  .document-file-field {
    grid-column: auto;
  }

  .document-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .document-row .card-actions {
    justify-content: flex-start;
  }

  .amount {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body {
    background: #fff !important;
    display: block;
    height: auto;
    overflow: visible;
  }

  .sidebar,
  .topbar,
  .view:not(.active),
  .no-print {
    display: none !important;
  }

  .app {
    background: #fff !important;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  #receipt.active,
  #work-order.active,
  #vehicle-report.active {
    display: block !important;
  }

  .vehicle-report-print-head {
    align-items: center;
    border-bottom: 2px solid #d9092f;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .vehicle-report-print-head img {
    border-radius: 0;
    height: 54px;
    object-fit: contain;
    width: 76px;
  }

  .vehicle-report-print-brand {
    align-items: center;
    display: flex;
    gap: 10px;
  }

  .vehicle-report-print-brand > div,
  .vehicle-report-print-title {
    display: grid;
    gap: 1px;
  }

  .vehicle-report-print-brand strong {
    font-size: 21px;
    line-height: 1;
  }

  .vehicle-report-print-brand b {
    color: #d9092f;
    font-size: 18px;
    line-height: 1;
  }

  .vehicle-report-print-brand small {
    color: #59636a;
    font-size: 7px;
    font-weight: 700;
  }

  .vehicle-report-print-title {
    justify-items: end;
    text-align: right;
  }

  .vehicle-report-print-title strong {
    font-size: 16px;
    text-transform: uppercase;
  }

  .vehicle-report-print-title span {
    color: #d9092f;
    font-size: 15px;
    font-weight: 800;
  }

  .vehicle-report-print-title small {
    color: #59636a;
    font-size: 9px;
  }

  #vehicle-report-content {
    background: #fff !important;
    color: #151d22;
    font-size: 11px;
    min-height: 0 !important;
  }

  #vehicle-report,
  #vehicle-report .vehicle-report-panel {
    background: #fff !important;
  }

  .vehicle-report-hero,
  .vehicle-report-data article,
  .vehicle-report-order,
  .vehicle-report-stats .stat {
    box-shadow: none;
  }

  .vehicle-report-hero {
    border-color: #cfd4d8;
    margin-bottom: 10px;
    padding: 11px 13px;
  }

  .vehicle-report-hero h2 {
    font-size: 18px;
  }

  .vehicle-report-actions,
  .vehicle-report-search,
  .vehicle-report-tabs,
  .vehicle-report-panel-heading button,
  .vehicle-report-pending-row .card-actions,
  .vehicle-report-document-row .card-actions,
  .vehicle-report-order-foot button,
  #vehicle-report .service-notice-actions {
    display: none !important;
  }

  .vehicle-report-stats {
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  .vehicle-report-stats .stat {
    min-height: 0;
    padding: 8px;
  }

  .vehicle-report-stats .stat span {
    font-size: 8px;
  }

  .vehicle-report-stats .stat strong {
    font-size: 12px;
  }

  .vehicle-report-data {
    gap: 7px;
    margin-bottom: 9px;
  }

  .vehicle-report-data article {
    padding: 9px;
  }

  .vehicle-report-history {
    gap: 7px;
  }

  .vehicle-report-panel[hidden] {
    display: block !important;
  }

  .vehicle-report-panel {
    border-top: 1px solid #cfd4d8;
    margin-top: 10px;
    padding-top: 9px;
  }

  .vehicle-report-panel-heading {
    margin-bottom: 7px;
  }

  .vehicle-report-panel-heading h2 {
    font-size: 15px;
  }

  .vehicle-report-panel-heading p {
    font-size: 9px;
  }

  .vehicle-report-vtv-current {
    gap: 5px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 7px;
  }

  .vehicle-report-vtv-current article {
    break-inside: avoid;
    padding: 7px;
  }

  .vehicle-report-vtv-current span {
    font-size: 8px;
  }

  .vehicle-report-vtv-current strong {
    font-size: 10px;
  }

  .vehicle-report-vtv-history {
    gap: 6px;
  }

  .vehicle-report-vtv-record {
    break-inside: avoid;
    padding: 8px 9px;
  }

  .vehicle-report-vtv-record > header strong {
    font-size: 11px;
  }

  .vehicle-report-vtv-block {
    margin-top: 7px;
    padding-top: 6px;
  }

  .vehicle-report-vtv-block > span {
    font-size: 8px;
  }

  .vehicle-report-vtv-panel details:not([open]) > :not(summary) {
    display: block !important;
  }

  .vehicle-report-vtv-panel details summary {
    display: none;
  }

  .vehicle-vtv-measurements-view dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-vtv-measurements-view dl div {
    padding: 4px 5px;
  }

  .vehicle-vtv-measurements-view dt,
  .vehicle-vtv-measurements-view dd,
  .vehicle-vtv-measurements-view .vtv-saved-reference {
    font-size: 8px;
  }

  #vehicle-report[data-print-scope="filtered"] .vehicle-report-history .section-heading h2::after {
    color: #59636a;
    content: " - resultado filtrado";
    font-size: 9px;
    font-weight: 600;
  }

  .vehicle-report-pending-row,
  .vehicle-report-document-row {
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  .vehicle-report-history .section-heading {
    margin-bottom: 0;
  }

  .vehicle-report-history .section-heading h2 {
    font-size: 15px;
  }

  .vehicle-report-result-count {
    font-size: 9px;
  }

  .vehicle-report-history-results {
    gap: 7px;
  }

  .vehicle-report-order {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 9px 10px;
  }

  .vehicle-report-order-head strong {
    font-size: 12px;
  }

  .vehicle-report-order .order-badges {
    gap: 4px;
  }

  .vehicle-report-order .badge {
    font-size: 8px;
    padding: 3px 5px;
  }

  .vehicle-report-items {
    gap: 4px;
    margin: 7px 0;
  }

  .vehicle-report-items li {
    gap: 8px;
    padding-bottom: 4px;
  }

  .vehicle-report-text {
    margin-top: 6px;
    padding-left: 7px;
  }

  .vehicle-report-text span {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .vehicle-report-text p {
    line-height: 1.3;
  }

  .vehicle-report-order-foot {
    margin-top: 7px;
    padding-top: 6px;
  }

  .receipt-sheet {
    margin: 0;
    min-height: auto;
    padding: 0;
    width: 100%;
  }

  .receipt-modern {
    background: white;
    font-size: 11px;
  }

  .worker-order-sheet {
    box-shadow: none;
    font-size: 12.5px;
    margin: 0 auto;
    min-height: auto;
    padding: 0;
    width: 194mm;
    zoom: .9;
  }

  .worker-order-hero {
    grid-template-columns: 1fr 56px;
    padding: 10px 12px;
  }

  .worker-order-hero span,
  .worker-order-grid span,
  .worker-order-section h3 {
    font-size: 11px;
  }

  .worker-order-hero strong {
    font-size: 38px;
    margin: 3px 0;
  }

  .worker-order-hero small {
    font-size: 12px;
  }

  .worker-order-hero img {
    height: 54px;
    padding: 5px;
    width: 54px;
  }

  .worker-order-grid {
    gap: 7px;
    margin: 6px 0;
  }

  .worker-order-top-grid,
  .worker-order-main-grid {
    gap: 7px;
  }

  .worker-order-top-grid,
  .worker-order-main-grid {
    align-items: stretch;
    display: flex;
    gap: 7px;
  }

  .worker-order-top-grid > .worker-order-section,
  .worker-order-main-grid > .worker-order-section {
    flex: 1 1 0;
    min-width: 0;
  }

  .worker-order-two-col {
    align-items: stretch;
    display: flex;
    gap: 4px;
  }

  .worker-order-two-col > .worker-order-section {
    flex: 1 1 0;
    min-width: 0;
  }

  .worker-order-grid article {
    padding: 7px 8px;
  }

  .worker-order-grid strong {
    font-size: 15px;
  }

  .worker-order-grid small {
    font-size: 11px;
  }

  .worker-order-section {
    margin-top: 6px;
    padding: 8px;
  }

  .worker-order-section h3 {
    margin-bottom: 5px;
  }

  .worker-order-lines {
    gap: 4px;
  }

  .worker-order-lines p,
  .worker-text,
  .worker-checklist label,
  .worker-final-checks label {
    font-size: 12px;
    line-height: 1.28;
  }

  .worker-requested-section p {
    font-size: 15px;
    line-height: 1.28;
  }

  .worker-order-lines p {
    padding: 3px 0;
  }

  .worker-checklist,
  .worker-final-checks {
    gap: 5px;
  }

  .worker-checklist label,
  .worker-final-checks label {
    grid-template-columns: 15px 1fr;
  }

  .worker-checklist label span,
  .worker-final-checks label span {
    border-width: 2px;
    height: 14px;
    width: 14px;
  }

  .worker-reception-grid label {
    gap: 4px;
    min-height: 34px;
    padding: 5px;
  }

  .worker-reception-grid span {
    font-size: 9.5px;
  }

  .worker-reception-grid div {
    min-height: 12px;
  }

  .worker-pending-table strong,
  .worker-pending-table span {
    font-size: 11px;
    min-height: 22px;
    padding: 4px 6px;
  }

  .worker-text {
    margin-bottom: 5px;
    min-height: 20px;
    padding-bottom: 4px;
  }

  .worker-order-footer {
    gap: 18px;
    margin-top: 12px;
  }

  .worker-order-footer span {
    font-size: 12px;
    padding-top: 6px;
  }

  .receipt-hero {
    grid-template-columns: 1fr 155px;
    min-height: 82px;
  }

  .receipt-brand-modern {
    gap: 10px;
    padding: 12px 14px;
  }

  .receipt-mark-modern {
    height: 54px;
    width: 54px;
  }

  .receipt-name-modern {
    font-size: 22px;
  }

  .receipt-brand-modern small,
  .receipt-summary small,
  .receipt-summary span,
  .receipt-info-grid span,
  .receipt-next-modern span {
    font-size: 9px;
  }

  .receipt-summary {
    padding: 12px;
  }

  .receipt-summary strong {
    font-size: 25px;
  }

  .receipt-info-grid {
    gap: 8px;
    margin: 8px 0;
  }

  :is(.receipt-estimate-sheet, .receipt-order-sheet) .receipt-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .receipt-order-sheet .receipt-next-modern {
    grid-template-columns: 1.45fr 1fr;
  }

  .receipt-info-grid article,
  .receipt-section,
  .receipt-next-modern,
  .receipt-footer-modern,
  .worker-order-grid article,
  .worker-order-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .worker-order-grid article,
  .worker-order-section,
  .worker-order-main-grid,
  .worker-order-top-grid,
  .worker-final-section {
    break-inside: auto;
    page-break-inside: auto;
  }

  .receipt-info-grid article {
    gap: 3px;
    padding: 8px;
  }

  .receipt-info-grid strong {
    font-size: 12px;
  }

  .receipt-section {
    padding: 9px 10px;
  }

  .receipt-section-title {
    gap: 7px;
    margin-bottom: 6px;
  }

  .receipt-section-title span {
    font-size: 9px;
    height: 21px;
    width: 21px;
  }

  .receipt-section-title h2 {
    font-size: 13px;
  }

  .receipt-service-list,
  .receipt-check-grid,
  .receipt-info-grid,
  .receipt-two-col,
  .receipt-next-modern {
    gap: 7px;
  }

  .receipt-service-row,
  .receipt-mini-lines p {
    padding: 4px 0;
  }

  .receipt-service-head {
    padding: 5px 7px;
  }

  .receipt-total-modern {
    margin-top: 7px;
    padding: 8px 10px;
  }

  .receipt-total-modern strong {
    font-size: 18px;
  }

  .receipt-two-col,
  .receipt-next-modern,
  .receipt-footer-modern {
    margin-top: 8px;
  }

  .receipt-check-grid div {
    gap: 2px;
    padding: 6px;
  }

  .receipt-check-grid span,
  .receipt-parts span,
  .receipt-footer-modern span {
    font-size: 10px;
  }

  .receipt-mini-lines {
    margin-top: 6px;
  }

  .receipt-parts {
    gap: 5px;
  }

  .receipt-parts span {
    padding: 5px 7px;
  }

  .receipt-comments-modern {
    margin-top: 8px;
  }

  .receipt-comments-modern p {
    line-height: 1.25;
  }

  .receipt-next-modern {
    padding: 9px 10px;
  }

  .receipt-next-main strong {
    font-size: 14px;
  }

  .receipt-footer-modern {
    padding: 9px 10px 10px;
  }

  .receipt-signatures-modern {
    gap: 20px;
    margin-top: 22px;
  }
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #132027;
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .dashboard-vehicle-search-head,
  .dashboard-vehicle-quick-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-vehicle-match {
    grid-template-columns: 1fr auto;
  }

  .dashboard-vehicle-match-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dashboard-vehicle-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-collection-amounts {
    grid-template-columns: 1fr;
  }

  .dashboard-collection-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 980px) {
  .section-heading-clean {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    justify-content: flex-start;
  }
}
