:root {
  --motion-fast: 180ms ease;
  --motion-medium: 280ms ease;
  --motion-slow: 4.8s ease-in-out;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #151922;
  --muted: #697386;
  --line: #dde3eb;
  --line-strong: #c9d2df;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --shadow: 0 14px 40px rgba(28, 36, 52, 0.08);
  --radius: 8px;
  --red: #dc2626;
  --yellow: #d89a00;
  --green: #16803f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.mobile-action-dock,
.mobile-selected-vehicle {
  display: none;
}

.nav-logout {
  width: 100%;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, #ef6670 20%, transparent);
  background: color-mix(in srgb, #ef6670 7%, transparent);
  color: #ffb5bb;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-logout-icon {
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
}

.login-marketing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.wizard-location-card,
.dispatch-map-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.dispatch-map-card {
  margin: 16px 0 0;
}

.wizard-location-copy,
.dispatch-map-copy {
  align-content: center;
  min-width: 0;
}

.wizard-location-copy h3,
.dispatch-map-copy h3 {
  margin: 5px 0 7px;
}

.wizard-location-copy p,
.dispatch-map-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.wizard-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-map-frame {
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
}

.support-chat-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.support-chat-topics button {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.support-message {
  display: grid;
  gap: 4px;
}

.support-message > small {
  color: var(--muted);
  font-size: 9px;
}

.support-message-user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.support-message-user > small {
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}

.support-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.support-message-actions button {
  min-height: 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 9px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--accent-dark);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.language-dropdown {
  position: relative;
  z-index: 20;
}

.language-toggle {
  min-width: 70px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium);
}

.language-toggle:hover,
.language-dropdown.open .language-toggle {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line-strong));
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--motion-fast),
    visibility var(--motion-fast),
    transform var(--motion-fast);
}

.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* TruckTrace premium SaaS redesign inspired by the supplied reference. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-muted: #f7f8fc;
  --text: #111827;
  --muted: #6b778c;
  --line: #e5e9f2;
  --line-strong: #d7deea;
  --accent: #6c5cff;
  --accent-dark: #5a49e8;
  --accent-soft: #efedff;
  --accent-cyan: #19b7e8;
  --shadow: 0 12px 34px rgba(24, 32, 56, 0.07);
  --shadow-soft: 0 8px 22px rgba(24, 32, 56, 0.055);
  --radius: 8px;
  --red: #ef4444;
  --yellow: #f59e0b;
  --green: #22c55e;
}

body.dark-theme {
  --bg: #0f1420;
  --surface: #171d2b;
  --surface-muted: #111827;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --line: #283244;
  --line-strong: #3a465c;
  --accent: #8b7cff;
  --accent-dark: #b9b0ff;
  --accent-soft: rgba(139, 124, 255, 0.14);
  --accent-cyan: #38c6f4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 249, 0) 260px),
    var(--bg);
}

body.dark-theme {
  background:
    linear-gradient(180deg, rgba(24, 31, 47, 0.54), rgba(15, 20, 32, 0) 280px),
    var(--bg);
}

.app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  background: var(--surface);
  color: var(--text);
  padding: 28px 20px;
  gap: 34px;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(24, 32, 56, 0.035);
}

body.dark-theme .sidebar {
  background: #121826;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.16);
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, #7c6dff 0%, #6254f5 48%, #19b7e8 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(108, 92, 255, 0.28);
  font-size: 14px;
}

.brand-name {
  color: var(--text);
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  max-width: 170px;
}

.nav-list {
  gap: 8px;
}

.nav-link {
  min-height: 46px;
  gap: 10px;
  color: #26334a;
  border: 1px solid transparent;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 700;
}

body.dark-theme .nav-link {
  color: #dbe4f2;
}

.nav-link::before,
.nav-link.disabled::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    var(--surface-muted);
  border: 1px solid var(--line);
}

.nav-link[data-view-link="overview"]::before {
  background:
    linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px, var(--accent) 11px 17px, transparent 17px),
    linear-gradient(var(--accent) 0 6px, transparent 6px 11px, var(--accent) 11px 17px, transparent 17px),
    var(--accent-soft);
  background-size: 18px 18px, 18px 18px, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.nav-link[data-view-link="companies"]::before,
.nav-link[data-view-link="profile"]::before {
  background:
    radial-gradient(circle at 50% 34%, var(--accent) 0 4px, transparent 4.5px),
    radial-gradient(ellipse at 50% 72%, var(--accent) 0 8px, transparent 8.5px),
    var(--accent-soft);
}

.nav-link[data-view-link="trucks"]::before,
.nav-link.disabled::before {
  background:
    linear-gradient(90deg, transparent 8px, var(--accent) 8px 21px, transparent 21px),
    radial-gradient(circle at 10px 20px, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle at 20px 20px, var(--accent) 0 3px, transparent 3.5px),
    var(--accent-soft);
}

.nav-link[data-view-link="reports"]::before {
  background:
    linear-gradient(var(--accent) 7px, transparent 7px 10px, var(--accent) 10px 13px, transparent 13px 16px, var(--accent) 16px 19px, transparent 19px),
    var(--accent-soft);
  background-size: 14px 22px, auto;
  background-position: center, center;
  background-repeat: no-repeat;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
}

.nav-link.active::before {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.nav-link-action {
  justify-content: flex-start;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 14px 28px rgba(108, 92, 255, 0.22);
}

.nav-link-action::before {
  display: none;
}

.nav-link-action span {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-link-action span::before {
  font-size: 18px;
  transform: translateY(-1px);
}

.nav-link-action:hover,
.nav-link-action.active {
  color: #fff;
  background: linear-gradient(135deg, #5f50f0, #12a9dc);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(108, 92, 255, 0.28);
}

.nav-link.disabled {
  color: #98a4b6;
}

.nav-link.disabled:hover {
  background: transparent;
  border-color: transparent;
}

.nav-link small {
  color: #8b7cff;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 7px;
}

.main-content {
  padding: 30px clamp(24px, 4vw, 56px) 58px;
}

.page-header {
  align-items: center;
  margin: 0 -8px 30px;
  padding: 8px 8px 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 11px;
}

h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
}

.page-intro {
  max-width: 820px;
  font-size: 16px;
}

.top-controls {
  gap: 12px;
}

.user-chip,
.theme-toggle {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.user-chip {
  min-height: 48px;
  border-radius: 999px;
  padding: 5px 15px 5px 6px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 8px 18px rgba(108, 92, 255, 0.2);
}

.theme-toggle {
  width: 92px;
  height: 48px;
  border-radius: 999px;
  padding: 4px;
}

.theme-toggle-track {
  background: #f0f2f7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.theme-toggle-track::before,
.theme-toggle-track::after {
  font-size: 16px;
  text-align: center;
  z-index: 1;
}

.theme-toggle-track::before {
  content: "\2600";
  color: #f59e0b;
}

.theme-toggle-track::after {
  content: "\263E";
  color: #64748b;
}

.theme-toggle-thumb {
  top: 3px;
  left: 3px;
  width: 36px;
  height: 36px;
  box-shadow: 0 8px 18px rgba(24, 32, 56, 0.18);
}

.theme-icon::before {
  display: none;
}

body.dark-theme .theme-toggle-track {
  background: #242d3e;
}

body.dark-theme .theme-toggle-thumb {
  transform: translateX(44px);
}

.header-summary {
  grid-template-columns: repeat(2, minmax(156px, 1fr));
  gap: 14px;
  min-width: 360px;
}

.header-summary > div,
.truck-card,
.company-card,
.report-table-wrap,
.simple-panel,
.profile-card {
  border-color: rgba(215, 222, 234, 0.84);
  box-shadow: var(--shadow);
}

body.dark-theme .header-summary > div,
body.dark-theme .truck-card,
body.dark-theme .company-card,
body.dark-theme .report-table-wrap,
body.dark-theme .simple-panel,
body.dark-theme .profile-card {
  border-color: rgba(58, 70, 92, 0.86);
}

.header-summary > div {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
}

.header-summary > div::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 5.5px),
    linear-gradient(135deg, #34d399, #22c55e);
}

.header-summary > div:nth-child(2)::before {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 5.5px),
    linear-gradient(135deg, #19b7e8, #6c5cff);
}

.summary-value {
  font-size: 34px;
  letter-spacing: 0;
}

.summary-label {
  font-size: 14px;
}

.overview-tools {
  grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.search-field input {
  min-height: 50px;
  border-radius: 8px;
  padding: 0 18px;
  box-shadow: var(--shadow-soft);
}

.status-tabs {
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
}

body.dark-theme .filter-button:hover,
body.dark-theme .filter-button.active {
  background: var(--accent-soft);
}

.truck-list {
  gap: 24px;
}

.truck-card {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--surface-muted)));
}

.truck-card:hover,
.company-card:hover {
  box-shadow: 0 18px 42px rgba(24, 32, 56, 0.11);
  transform: translateY(-1px);
}

body.dark-theme .truck-card:hover,
body.dark-theme .company-card:hover {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.truck-card-header {
  grid-template-columns: minmax(120px, 0.7fr) minmax(210px, 1.2fr) minmax(128px, 0.75fr) minmax(185px, 1fr) minmax(132px, auto);
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
}

body.dark-theme .truck-card-header {
  background: var(--surface);
}

.truck-card-body {
  gap: 24px;
  padding: 24px;
}

.field-label,
.section-kicker,
.search-field span {
  color: #7d899b;
  font-size: 10px;
}

body.dark-theme .field-label,
body.dark-theme .section-kicker,
body.dark-theme .search-field span {
  color: #97a6ba;
}

.field-value {
  font-size: 15px;
}

.plate {
  border-color: #dbe3ef;
  border-left-color: #2563eb;
  box-shadow: 0 5px 14px rgba(24, 32, 56, 0.055);
}

.status-pill {
  background: color-mix(in srgb, currentColor 8%, var(--surface));
  border-color: color-mix(in srgb, currentColor 18%, var(--line));
  box-shadow: none;
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
    opacity: 0.96;
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 9%, transparent);
    opacity: 1;
  }
}

/* v02: wide damage-capture workstation. Keep after legacy rules so these widths win. */
.app-view,
.create-report-panel,
.wizard-shell,
.wizard-damage-layout,
.damage-capture-layout {
  width: 100%;
  max-width: none;
}

.create-report-panel {
  justify-self: stretch;
}

.damage-capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(34vw, 420px));
  gap: 24px;
  align-items: stretch;
}

.damage-viewer-main {
  min-width: 0;
  min-height: 720px;
}

.damage-viewer-main .damage-viewer-placeholder,
.damage-viewer-main .wizard-viewer {
  min-height: 620px;
  height: 100%;
}

.damage-viewer-main .damage-viewer-stage {
  min-height: 500px;
}

.damage-viewer-main .viewer-truck-outline {
  left: 5%;
  right: 5%;
  top: 24%;
  height: 54%;
}

.damage-side-panel {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  justify-self: end;
}

.damage-side-panel .wizard-card {
  width: 100%;
}

.parts-selection-panel {
  min-height: 0;
}

.parts-selection-panel .parts-list {
  max-height: min(48vh, 520px);
}

.selected-damages-panel .selected-parts-list {
  max-height: min(34vh, 380px);
}

@media (max-width: 1180px) {
  .damage-capture-layout {
    grid-template-columns: 1fr;
  }

  .damage-side-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.88;
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 11%, transparent);
  }
}

.status-copy,
.detail-item,
.media-panel,
.process-timeline,
.photo-count,
.company-info-grid > div,
.report-detail-grid > div,
.report-media,
.mini-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 5px 16px rgba(24, 32, 56, 0.035);
}

body.dark-theme .status-copy {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted));
}

.status-copy h2 {
  font-size: 21px;
}

.history-box {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

body.dark-theme .history-box {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.timeline-step.complete::before,
.timeline-step.current::before,
.timeline-step.complete .timeline-marker {
  background: var(--accent);
}

.timeline-step.complete .timeline-marker,
.timeline-step.current .timeline-marker {
  border-color: var(--accent);
}

.photo-preview {
  min-height: 210px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.photo-preview::after {
  left: 16px;
  right: 16px;
  bottom: 14px;
  border-color: rgba(229, 233, 242, 0.8);
  box-shadow: 0 8px 18px rgba(24, 32, 56, 0.08);
}

.action-button,
.table-link {
  border-radius: 8px;
}

.action-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 12px 22px rgba(108, 92, 255, 0.2);
}

.access-badge,
.company-status,
.table-status {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  color: var(--accent-dark);
}

.company-summary {
  padding: 20px;
}

.company-details {
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  padding: 20px;
}

.report-table th {
  background: var(--surface-muted);
}

.report-table th,
.report-table td {
  padding: 14px 15px;
}

.simple-panel {
  padding: 26px;
}

.viewer-placeholder,
.mini-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent),
    var(--surface-muted);
}

.profile-hero {
  background:
    radial-gradient(circle at 95% 8%, color-mix(in srgb, var(--accent-cyan) 18%, transparent), transparent 30%),
    linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.user-license-card {
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    var(--surface-muted);
}

.license-frame {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 8, 24, 0.96) 0%, rgba(13, 24, 52, 0.92) 36%, rgba(32, 38, 86, 0.54) 66%, rgba(5, 11, 28, 0.18) 100%),
    url("assets/images/license-card.jpg"),
    url("assets/images/license-card.png"),
    url("public/images/license-truck-bg.png");
  box-shadow:
    0 22px 56px rgba(24, 32, 56, 0.2),
    inset 0 0 0 1px rgba(139, 124, 255, 0.38);
}

.license-frame::before {
  border-radius: 6px;
  border-color: rgba(139, 124, 255, 0.46);
  box-shadow: none;
}

.lightbox {
  background: rgba(7, 12, 20, 0.82);
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::before,
  .nav-link.disabled::before {
    display: none;
  }

  .page-header {
    margin: 0 0 24px;
    padding: 0 0 24px;
  }

  .overview-tools {
    grid-template-columns: 1fr;
  }

  .status-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 24px 16px 38px;
  }

  .brand-subtitle {
    max-width: none;
  }

  .theme-toggle {
    width: 84px;
  }

  body.dark-theme .theme-toggle-thumb {
    transform: translateX(36px);
  }

  .header-summary {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .truck-card-header,
  .truck-card-body,
  .company-summary,
  .company-details {
    padding: 18px;
  }

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

  .filter-button {
    width: 100%;
  }

  .license-frame {
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(3, 8, 24, 0.97) 0%, rgba(13, 24, 52, 0.9) 50%, rgba(13, 24, 52, 0.58) 100%),
      url("assets/images/license-card.jpg"),
      url("assets/images/license-card.png"),
      url("public/images/license-truck-bg.png");
  }
}

/* TruckTrace v08: zone marker cards with related body-part rows. */
.viewer-marker-card.zone-card {
  top: auto;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100% - 36px));
  max-height: min(520px, calc(100% - 36px));
  overflow: auto;
  padding: 14px;
}

.viewer-marker-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.viewer-marker-card.zone-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.zone-parts-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

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

.zone-part-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
}

.zone-part-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.zone-part-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-part-row span,
.zone-part-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.viewer-marker-card.zone-card .marker-add-button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

/* TruckTrace v07: marker info card for predefined 3D damage points. */
.viewer-marker-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  width: min(280px, calc(100% - 36px));
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.viewer-marker-card > span {
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viewer-marker-card h4 {
  margin: 0;
  font-size: 16px;
}

.viewer-marker-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.viewer-marker-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.viewer-marker-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.viewer-marker-card dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.viewer-marker-card .marker-add-button {
  justify-content: center;
  width: 100%;
  min-height: 36px;
}

body.dark-theme .viewer-marker-card {
  background: color-mix(in srgb, var(--surface) 88%, rgba(15, 23, 42, 0.72));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
}

/* TruckTrace v05: fixed sidebar CTA label and first-step GLB viewer visibility. */
.sidebar-bottom-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.88rem;
  white-space: normal;
}

.sidebar-bottom-cta-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.sidebar-bottom-cta-label {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.truck-three-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 320px;
  border-radius: inherit;
  opacity: 0;
  overflow: hidden;
  transition: opacity 220ms ease;
}

.truck-three-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.truck-three-stage canvas:active {
  cursor: grabbing;
}

.damage-viewer-placeholder.viewer-loaded .truck-three-stage {
  opacity: 1;
}

.damage-viewer-placeholder.viewer-loaded .damage-viewer-fallback {
  opacity: 0;
  pointer-events: none;
}

.damage-viewer-placeholder.viewer-error .damage-viewer-fallback,
.damage-viewer-placeholder.viewer-loading .damage-viewer-fallback {
  opacity: 1;
}

/* TruckTrace v03: full-width GLB workstation layout and viewer layer. */
.app-view,
.create-report-panel,
.wizard-shell,
.wizard-damage-layout,
.damage-capture-layout {
  width: 100%;
  max-width: none;
}

.create-report-panel {
  justify-self: stretch;
}

.damage-capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(32vw, 420px));
  gap: 24px;
  align-items: stretch;
}

.damage-viewer-main {
  min-width: 0;
  min-height: 720px;
}

.damage-viewer-main .damage-viewer-placeholder,
.damage-viewer-main .wizard-viewer {
  min-height: 620px;
  height: 100%;
}

.damage-viewer-main .damage-viewer-stage,
.damage-viewer-main .truck-three-stage {
  min-height: 560px;
}

.damage-side-panel {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  justify-self: end;
  min-width: 0;
}

.damage-side-panel .wizard-card {
  width: 100%;
  min-width: 0;
  padding: 16px;
}

.parts-selection-panel {
  min-height: 0;
}

.parts-selection-panel .parts-list {
  max-height: min(52vh, 560px);
}

.selected-damages-panel .selected-parts-list {
  max-height: min(34vh, 380px);
}

.damage-viewer-placeholder {
  isolation: isolate;
}

.truck-three-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 320px;
  border-radius: inherit;
  opacity: 0;
  overflow: hidden;
  transition: opacity 220ms ease;
}

.truck-three-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.truck-three-stage canvas:active {
  cursor: grabbing;
}

.damage-viewer-placeholder.viewer-loaded .truck-three-stage {
  opacity: 1;
}

.damage-viewer-placeholder.viewer-loaded .damage-viewer-fallback {
  opacity: 0;
  pointer-events: none;
}

.damage-viewer-fallback {
  transition: opacity 220ms ease;
}

.damage-viewer-placeholder.viewer-loading .damage-viewer-fallback,
.damage-viewer-placeholder.viewer-error .damage-viewer-fallback {
  opacity: 1;
}

.viewer-feedback {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(520px, calc(100% - 36px));
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.viewer-feedback span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.viewer-feedback strong {
  color: var(--text);
  font-size: 12px;
}

.viewer-feedback strong small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.viewer-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 4px;
  width: 210px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(16px);
}

.viewer-tooltip strong {
  color: var(--danger);
  font-size: 12px;
}

.viewer-tooltip span {
  color: var(--muted);
  line-height: 1.35;
}

.viewer-tooltip[hidden] {
  display: none;
}

body.dark-theme .viewer-feedback,
body.dark-theme .viewer-tooltip {
  background: color-mix(in srgb, var(--surface) 88%, rgba(15, 23, 42, 0.6));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

@media (max-width: 1180px) {
  .damage-capture-layout {
    grid-template-columns: 1fr;
  }

  .damage-side-panel {
    max-width: none;
    justify-self: stretch;
  }
}

/* v02: wide damage-capture workstation. Keep after legacy rules so these widths win. */
.app-view,
.create-report-panel,
.wizard-shell,
.wizard-damage-layout,
.damage-capture-layout {
  width: 100%;
  max-width: none;
}

.create-report-panel {
  justify-self: stretch;
}

.damage-capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(34vw, 420px));
  gap: 24px;
  align-items: stretch;
}

.damage-viewer-main {
  min-width: 0;
  min-height: 720px;
}

.damage-viewer-main .damage-viewer-placeholder,
.damage-viewer-main .wizard-viewer {
  min-height: 620px;
  height: 100%;
}

.damage-viewer-main .damage-viewer-stage {
  min-height: 500px;
}

.damage-viewer-main .viewer-truck-outline {
  left: 5%;
  right: 5%;
  top: 24%;
  height: 54%;
}

.damage-side-panel {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  justify-self: end;
}

.damage-side-panel .wizard-card {
  width: 100%;
}

.parts-selection-panel {
  min-height: 0;
}

.parts-selection-panel .parts-list {
  max-height: min(48vh, 520px);
}

.selected-damages-panel .selected-parts-list {
  max-height: min(34vh, 380px);
}

@media (max-width: 1180px) {
  .damage-capture-layout {
    grid-template-columns: 1fr;
  }

  .damage-side-panel {
    max-width: none;
    justify-self: stretch;
  }
}

.create-report-panel {
  max-width: none;
}

.wizard-shell {
  display: grid;
  gap: 22px;
}

.wizard-topbar,
.wizard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wizard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.wizard-topbar h2,
.wizard-section-heading h2,
.selected-part-head h3,
.part-card h3 {
  margin: 0;
}

.wizard-topbar h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.wizard-topbar p,
.wizard-section-heading p,
.part-card p,
.selected-part-head p,
.estimate-card p,
.wizard-success-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-mini-status {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.wizard-step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 900;
}

.wizard-step strong {
  font-size: 13px;
}

.wizard-step.active,
.wizard-step.complete {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.wizard-step.active span,
.wizard-step.complete span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.wizard-card {
  padding: 24px;
}

.wizard-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.wizard-section-heading.compact {
  margin-bottom: 16px;
}

.wizard-section-heading .access-badge {
  flex: 0 0 auto;
}

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

.wizard-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.wizard-field span {
  color: #7d899b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.wizard-field em {
  color: var(--red);
  font-style: normal;
  margin-left: 3px;
}

body.dark-theme .wizard-field span {
  color: #97a6ba;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.wizard-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.wizard-damage-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(320px, 380px);
  gap: 22px;
  align-items: stretch;
}

.damage-viewer-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 640px;
}

.damage-viewer-main .wizard-section-heading {
  margin-bottom: 14px;
}

.damage-viewer-main .wizard-section-heading p strong {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.damage-side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 16px;
  min-width: 0;
  max-width: 400px;
}

.damage-side-panel .wizard-card {
  min-width: 0;
  padding: 16px;
}

.model-placeholder {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent-cyan) 16%, transparent), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent),
    var(--surface-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.model-truck-shell {
  position: relative;
  width: min(440px, 92%);
  min-height: 270px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 10%, color-mix(in srgb, var(--accent) 10%, transparent) 10% 90%, transparent 90%),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), var(--shadow-soft);
}

.model-truck-shell::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 42%;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.model-truck-shell button {
  position: absolute;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.model-truck-shell button:nth-child(1) {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.model-truck-shell button:nth-child(2) {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.model-truck-shell button:nth-child(3) {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.model-truck-shell button:nth-child(4) {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}

.model-truck-shell button:nth-child(5) {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.parts-card,
.selected-parts-panel {
  display: grid;
  gap: 10px;
}

.parts-card {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.selected-parts-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.parts-list,
.selected-parts-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
}

.selected-parts-list {
  max-height: 330px;
}

.part-card,
.selected-part-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-muted));
}

.part-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
}

.part-card-main {
  min-width: 0;
}

.part-card-main h3,
.part-card-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.part-card-main p {
  margin-top: 3px;
  font-size: 11px;
}

.part-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent),
    var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.part-card h3,
.selected-part-head h3 {
  font-size: 13px;
}

.part-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.part-meta span,
.selected-part-footer span {
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
}

.part-card .table-link {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.table-link[disabled],
.action-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.selected-part-card {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.selected-part-card .table-link {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.selected-part-head,
.selected-part-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.selected-part-head p {
  margin-top: 3px;
  font-size: 11px;
}

.selected-part-footer {
  align-items: center;
}

.selected-part-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.selected-part-controls .wizard-field:last-child {
  grid-column: auto;
}

.selected-parts-panel .wizard-field input,
.selected-parts-panel .wizard-field select,
.selected-parts-panel .wizard-field textarea {
  min-height: 38px;
  padding-inline: 10px;
  font-size: 12px;
}

.compact-empty {
  min-height: 92px;
  padding: 18px;
}

.table-link.danger {
  color: var(--red);
}

.wizard-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: start;
}

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

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

.summary-description {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 14px;
}

.summary-description p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.estimate-card {
  display: grid;
  gap: 8px;
}

.estimate-card h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 34px);
}

.estimate-card strong {
  margin-top: 14px;
  font-size: 24px;
}

.estimate-card > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.wizard-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wizard-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}

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

.wizard-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-table tr:last-child td {
  border-bottom: 0;
}

.report-preview-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text);
  padding: 18px;
  line-height: 1.65;
  white-space: pre-line;
}

.report-preview-title {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  margin: 14px 0 8px;
}

.report-template-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 12px;
}

.report-template-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.template-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
}

.template-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.template-toggle button.active {
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(108, 92, 255, 0.18);
}

.wizard-success-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 34px;
}

.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #19b7e8);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.2);
}

.wizard-success-card h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 36px);
}

.wizard-success-card .success-grid {
  width: min(860px, 100%);
  margin-top: 12px;
  text-align: left;
}

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

.wizard-actions .action-button {
  width: auto;
  padding: 0 18px;
}

.wizard-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 800;
}

.wizard-message.warning {
  color: #a16207;
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--yellow) 28%, var(--line));
}

.wizard-message.success {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
}

.wizard-message.neutral {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}

.wizard-status-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-status-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.wizard-status-labels span.active {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
}

@media (max-width: 1240px) {
  .wizard-damage-layout,
  .wizard-summary-grid {
    grid-template-columns: 1fr;
  }

  .damage-side-panel {
    max-width: none;
  }

  .parts-list,
  .selected-parts-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .wizard-topbar,
  .wizard-section-heading,
  .selected-part-head,
  .selected-part-footer {
    flex-direction: column;
  }

  .wizard-steps,
  .wizard-form-grid,
  .selected-part-controls,
  .summary-detail-grid,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .wizard-field-wide,
  .wizard-summary-wide {
    grid-column: auto;
  }

  .part-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .part-card .table-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .model-placeholder,
  .damage-viewer-placeholder {
    min-height: 320px;
  }

  .model-truck-shell {
    min-height: 230px;
  }

  .wizard-actions {
    justify-content: stretch;
  }

  .wizard-actions .action-button {
    width: 100%;
  }

  .report-template-control,
  .template-toggle {
    width: 100%;
  }

  .report-template-control {
    align-items: stretch;
    flex-direction: column;
  }

  .template-toggle {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.report-controls {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.search-field.compact {
  max-width: none;
}

.official-report-text,
.report-preview-box {
  white-space: pre-line;
}

.report-part-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.report-part-list article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.report-part-list span,
.report-part-list small,
.report-part-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.report-part-list p {
  margin-top: 4px;
}

.activity-log {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.activity-log div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
}

.activity-log span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.activity-log strong {
  font-size: 13px;
}

.activity-log small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.activity-log.compact div {
  grid-template-columns: 12px minmax(0, 1fr);
}

.activity-log.compact small {
  grid-column: 2;
}

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

.summary-note-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 14px;
}

.summary-note-grid p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.5;
}

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

.vehicle-registry-head h2 {
  margin: 0 0 6px;
}

.vehicle-registry-head p {
  margin: 0;
  color: var(--muted);
}

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

.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.vehicle-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(100px, 0.65fr) minmax(190px, 1.25fr) minmax(170px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.vehicle-summary > span:not(.plate):not(.company-chevron) {
  display: grid;
  gap: 3px;
}

.vehicle-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-card.expanded .company-chevron {
  transform: rotate(90deg);
}

.vehicle-details {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 16px;
}

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

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

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

.vehicle-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.vehicle-history-layout > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

/* Desktop fleet cockpit overview */
:root {
  --accent: #2f7f93;
  --accent-dark: #1f6274;
  --accent-soft: #eaf5f7;
  --accent-cyan: #33a6b2;
}

body.dark-theme {
  --accent: #58c7d3;
  --accent-dark: #9ee5ec;
  --accent-soft: rgba(88, 199, 211, 0.14);
  --accent-cyan: #78d8df;
}

.app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.main-content {
  padding-inline: clamp(16px, 2vw, 28px);
}

body:not(.dark-theme) {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #f0f4f6;
  --text: #17212b;
  --muted: #6f7f8d;
  --line: #dde5e8;
  --line-strong: #c9d5da;
  --accent: #2f7f93;
  --accent-dark: #1f6274;
  --accent-soft: #e8f4f6;
  --green: #2f9d68;
  --yellow: #c9891f;
  --red: #d75b66;
}

body.dark-theme {
  --bg: #0f151b;
  --surface: #151d26;
  --surface-muted: #101820;
  --text: #edf3f6;
  --muted: #9aabb5;
  --line: #283542;
  --line-strong: #3a4a58;
}

.truck-list {
  display: block;
}

.fleet-cockpit {
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(520px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.fleet-list-panel,
.selected-truck-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fleet-list-panel {
  min-height: 705px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

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

.fleet-panel-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.fleet-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 236px);
  min-height: 520px;
  overflow: auto;
  padding: 2px 4px 2px 2px;
}

.fleet-vehicle-card {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 11px;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent),
    var(--surface);
  color: var(--text);
  padding: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(24, 32, 56, 0.045);
  transition:
    border-color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium),
    background-color var(--motion-medium);
}

.fleet-vehicle-card:hover,
.fleet-vehicle-card.selected {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 14px 34px rgba(31, 98, 116, 0.13);
  transform: translateY(-1px);
}

.fleet-vehicle-card.selected {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--surface);
}

.fleet-card-top,
.fleet-card-meta,
.selected-detail-header,
.selected-detail-actions,
.selected-photo-panel .media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fleet-card-copy {
  display: none;
}

.fleet-card-copy strong {
  font-size: 15px;
}

.fleet-card-copy span,
.fleet-card-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.fleet-card-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(34px, auto));
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 10px;
}

.fleet-card-info span {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
}

.fleet-card-info span:first-child {
  grid-row: 1 / span 2;
  padding-right: 4px;
}

.fleet-card-info span:nth-child(2),
.fleet-card-info span:nth-child(3) {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.fleet-card-info strong {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fleet-card-info span:nth-child(2) strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fleet-card-info small,
.fleet-card-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
}

.fleet-card-info em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-card-info small {
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.fleet-card-meta {
  display: none;
}

.damage-viewer-placeholder {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent-cyan) 16%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
    var(--surface-muted);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--shadow-soft);
}

.damage-viewer-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 72%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 72%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  opacity: 0.45;
  pointer-events: none;
}

.damage-viewer-copy {
  position: relative;
  z-index: 2;
}

.damage-viewer-copy h3 {
  margin: 4px 0 4px;
  font-size: clamp(20px, 2.4vw, 28px);
}

.damage-viewer-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.damage-viewer-stage {
  position: relative;
  z-index: 1;
  min-height: 220px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  isolation: isolate;
}

.viewer-grid-plane {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 14px;
  height: 46%;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent) 13%, transparent) 0 1px, transparent 1px 26px);
  transform: perspective(480px) rotateX(62deg);
  transform-origin: center bottom;
  opacity: 0.72;
}

.viewer-truck-outline {
  position: absolute;
  left: 10%;
  right: 9%;
  top: 31%;
  height: 42%;
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, 0.13));
}

.outline-body,
.outline-cab {
  position: absolute;
  bottom: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line-strong));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #ffffff), color-mix(in srgb, var(--surface-muted) 84%, var(--accent-soft)));
}

.outline-body {
  left: 4%;
  width: 66%;
  height: 72px;
  border-radius: 10px 4px 4px 10px;
}

.outline-cab {
  right: 6%;
  width: 25%;
  height: 86px;
  border-radius: 14px 18px 6px 4px;
}

.outline-cab::before {
  content: "";
  position: absolute;
  right: 15%;
  top: 16px;
  width: 42%;
  height: 24px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent-cyan) 28%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}

.outline-wheel {
  position: absolute;
  bottom: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1f2933;
  border: 5px solid #8fa0ad;
  box-shadow: inset 0 0 0 4px #344452;
}

.wheel-a {
  left: 16%;
}

.wheel-b {
  left: 58%;
}

.wheel-c {
  right: 11%;
}

.damage-marker {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: default;
}

button.damage-marker {
  cursor: pointer;
}

.marker-dot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--red);
  border: 3px solid color-mix(in srgb, #ffffff 74%, var(--red));
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 18%, transparent), 0 10px 22px color-mix(in srgb, var(--red) 18%, transparent);
}

.marker-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.damage-marker:hover .marker-card,
.damage-marker:focus-visible .marker-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.marker-card strong,
.marker-card b,
.marker-card small {
  display: block;
}

.marker-card strong {
  margin-bottom: 8px;
  font-size: 12px;
}

.marker-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.marker-card b {
  margin: 2px 0 7px;
  font-size: 12px;
}

.marker-front {
  left: 77%;
  top: 49%;
}

.marker-headlight {
  left: 73%;
  top: 37%;
}

.marker-mirror {
  left: 82%;
  top: 30%;
}

.wizard-viewer {
  min-height: 560px;
  height: 100%;
  grid-template-rows: auto minmax(410px, 1fr);
  padding: 20px;
}

.wizard-viewer .damage-viewer-stage {
  min-height: 430px;
}

.wizard-viewer .damage-viewer-copy h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.wizard-viewer .damage-viewer-copy p {
  max-width: 680px;
}

.wizard-viewer .viewer-truck-outline {
  left: 7%;
  right: 7%;
  top: 26%;
  height: 50%;
}

.wizard-viewer .outline-body {
  height: 104px;
  bottom: 44px;
}

.wizard-viewer .outline-cab {
  height: 122px;
  bottom: 44px;
}

.wizard-viewer .outline-wheel {
  bottom: 23px;
  width: 42px;
  height: 42px;
  border-width: 6px;
}

.wizard-viewer .marker-front {
  left: 78%;
  top: 50%;
}

.wizard-viewer .marker-headlight {
  left: 75%;
  top: 35%;
}

.wizard-viewer .marker-mirror {
  left: 84%;
  top: 28%;
}

.truck-illustration {
  position: relative;
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
}

.truck-illustration.large {
  min-height: 300px;
}

.truck-illustration img {
  position: absolute;
  left: -9%;
  right: -9%;
  bottom: -4px;
  z-index: 2;
  width: 118%;
  height: 118%;
  object-fit: contain;
  object-position: center bottom;
}

.truck-illustration.large img {
  left: -6%;
  right: -6%;
  bottom: -6px;
  width: 112%;
  height: 116%;
}

.truck-illustration::before {
  content: "";
  position: absolute;
  inset: auto 12px 16px;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.truck-illustration.has-image::before,
.truck-illustration.has-image .truck-trailer,
.truck-illustration.has-image .truck-cab,
.truck-illustration.has-image .wheel {
  display: none;
}

.truck-trailer,
.truck-cab {
  position: absolute;
  bottom: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line-strong));
  background: linear-gradient(180deg, #f8fafc, #dfe7ee);
}

body.dark-theme .truck-trailer,
body.dark-theme .truck-cab {
  background: linear-gradient(180deg, #293347, #1c2433);
}

.truck-trailer {
  left: 9%;
  width: 58%;
  height: 34px;
  border-radius: 5px 3px 3px 5px;
}

.truck-cab {
  right: 10%;
  width: 22%;
  height: 42px;
  border-radius: 8px 10px 4px 3px;
}

.truck-cab::before {
  content: "";
  position: absolute;
  right: 13%;
  top: 8px;
  width: 38%;
  height: 13px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent-cyan) 32%, #ffffff);
}

.truck-illustration.large .truck-trailer {
  height: 70px;
  bottom: 52px;
}

.truck-illustration.large .truck-cab {
  height: 82px;
  bottom: 52px;
}

.truck-illustration.large .truck-cab::before {
  height: 24px;
  top: 15px;
}

.wheel {
  position: absolute;
  bottom: 19px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #263241;
  border: 3px solid #8b98a8;
}

.truck-illustration.large .wheel {
  bottom: 36px;
  width: 34px;
  height: 34px;
  border-width: 5px;
}

.wheel-one {
  left: 18%;
}

.wheel-two {
  left: 58%;
}

.wheel-three {
  right: 15%;
}

.selected-truck-detail {
  min-height: 705px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.selected-detail-header h2 {
  margin: 4px 0 2px;
  font-size: clamp(30px, 4vw, 44px);
}

.selected-detail-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-truck-visual {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
}

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

.selected-history-box,
.selected-photo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 15px;
}

.selected-history-box p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.55;
}

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

.photo-count-inline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.selected-detail-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.selected-detail-actions .action-button {
  width: auto;
  min-width: 148px;
  padding: 0 16px;
}

.selected-detail-actions .action-button.primary {
  background: linear-gradient(135deg, #2f7f93, #33a6b2);
}

.sidebar-bottom-cta {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f7f93, #33a6b2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  padding: 12px 14px;
  overflow: hidden;
  flex-shrink: 0;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(47, 127, 147, 0.2);
  transition:
    transform var(--motion-medium),
    box-shadow var(--motion-medium);
}

.sidebar-bottom-cta:hover,
.sidebar-bottom-cta.active {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 127, 147, 0.28);
}

.sidebar-bottom-cta-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  line-height: 1;
}

.sidebar-bottom-cta-label {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .fleet-cockpit {
    grid-template-columns: 1fr;
  }

  .fleet-card-list {
    max-height: none;
  }
}

body.dark-theme {
  --bg: #10141b;
  --surface: #171d26;
  --surface-muted: #202835;
  --text: #edf2f7;
  --muted: #9aa8ba;
  --line: #2d3748;
  --line-strong: #435065;
  --accent: #2dd4bf;
  --accent-dark: #5eead4;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --red: #f87171;
  --yellow: #facc15;
  --green: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition:
    background-color var(--motion-medium),
    color var(--motion-medium);
}

body,
.sidebar,
.main-content,
.truck-card,
.truck-card-header,
.truck-card-body,
.status-copy,
.detail-item,
.history-box,
.media-panel,
.header-summary > div,
.filter-button,
.search-field input,
.user-chip,
.theme-toggle-track,
.theme-toggle-thumb,
.nav-link,
.company-card,
.company-summary,
.company-details,
.report-table-wrap,
.report-table th,
.report-table td,
.simple-panel,
.profile-card,
.dashboard-dialog,
.action-button,
.table-link,
.thumb,
.photo-count {
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium),
    opacity var(--motion-medium);
}

body.lightbox-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #1f2329;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f766e;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
}

.brand-subtitle {
  color: #b8c0cc;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #e8eaef;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.25;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 6px 0 8px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  background: rgba(15, 118, 110, 0.16);
  color: #f8fffd;
}

.nav-link-action span {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.nav-link-action span::before {
  content: "+";
  display: block;
  font-size: 13px;
  line-height: 1;
}

.nav-link-action:hover,
.nav-link-action.active {
  border-color: rgba(45, 212, 191, 0.58);
  background: rgba(15, 118, 110, 0.24);
}

.nav-link.disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #89919d;
  cursor: not-allowed;
  opacity: 0.76;
}

.nav-link.disabled:hover {
  background: transparent;
}

.nav-link small {
  color: #a8b0bd;
  font-size: 10px;
  font-weight: 800;
}

.main-content {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 34px clamp(18px, 4vw, 48px) 56px;
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 4px 12px 4px 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.04);
}

.user-chip:hover {
  border-color: var(--line-strong);
}

.user-chip span:not(.user-avatar) {
  display: grid;
  gap: 1px;
  text-align: left;
}

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

.user-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.user-avatar.large {
  width: 54px;
  height: 54px;
  font-size: 16px;
}

.theme-toggle {
  width: 58px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.06);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #dfe6ee;
  transition: background-color var(--motion-medium);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  transition:
    transform var(--motion-medium),
    color var(--motion-medium);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  transition:
    opacity var(--motion-medium),
    transform var(--motion-medium);
}

.theme-icon::before {
  display: block;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-0.25px);
}

.theme-icon-sun::before {
  content: "\2600";
}

.theme-icon-moon::before {
  content: "\263E";
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.7);
}

body.dark-theme .theme-toggle-track {
  background: #334155;
}

body.dark-theme .theme-toggle-thumb {
  color: #0f172a;
  transform: translateX(26px);
}

body.dark-theme .theme-icon-sun {
  opacity: 0;
  transform: scale(0.7);
}

body.dark-theme .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.page-intro {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.header-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  min-width: 310px;
}

.header-summary > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.04);
}

.summary-value,
.summary-label {
  display: block;
}

.summary-value {
  font-size: 24px;
  font-weight: 800;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.overview-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  gap: 7px;
  max-width: 620px;
}

.search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.04);
}

.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: #edf7f5;
}

body.dark-theme .filter-button:hover,
body.dark-theme .filter-button.active {
  background: #14322f;
}

.truck-list {
  display: grid;
  gap: 20px;
}

.truck-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    border-color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium);
}

.truck-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(28, 36, 52, 0.1);
  transform: translateY(-0.5px);
}

body.dark-theme .truck-card:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.truck-card-header {
  display: grid;
  grid-template-columns: minmax(135px, 0.8fr) minmax(190px, 1.25fr) minmax(128px, 0.75fr) minmax(170px, 1fr) minmax(132px, auto);
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

body.dark-theme .truck-card-header {
  background: linear-gradient(180deg, #171d26, #151b24);
}

.truck-meta {
  min-width: 0;
  padding-right: 6px;
}

.truck-meta-plate .field-label {
  margin-bottom: 7px;
  font-size: 10px;
  color: var(--muted);
}

.truck-meta .field-value {
  overflow-wrap: anywhere;
}

.truck-meta-status {
  justify-self: end;
  padding-right: 0;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.field-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.plate {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d7dee8;
  border-left: 3px solid #2563eb;
  border-radius: 5px;
  background: #fff;
  color: #182233;
  padding: 5px 9px 5px 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.plate.compact {
  font-size: 13px;
  padding: 4px 7px 4px 8px;
  border-left-width: 3px;
}

body.dark-theme .plate {
  border-color: #394557;
  border-left-color: #60a5fa;
}

.license-plate {
  position: relative;
  display: inline-grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: stretch;
  width: 128px;
  min-width: 128px;
  height: 28px;
  min-height: 28px;
  padding: 1px 7px 1px 0;
  border: 1px solid #7e8791;
  border-radius: 3px;
  background:
    linear-gradient(#e11d2e, #e11d2e) top / 100% 1px no-repeat,
    linear-gradient(#e11d2e, #e11d2e) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, #fff 0%, #fbfbfa 55%, #e8e9e7 100%);
  color: #0b0d0f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(15, 23, 42, 0.05),
    0 2px 4px rgba(15, 23, 42, 0.16);
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-stretch: condensed;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.035em;
  overflow: hidden;
  text-overflow: clip;
}

.license-plate-at {
  background:
    linear-gradient(#d71920, #d71920) top / 100% 1px no-repeat,
    linear-gradient(#d71920, #d71920) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, #fff 0%, #fbfbfa 55%, #e8e9e7 100%);
}

.license-plate-hu {
  background:
    linear-gradient(180deg, #fff 0%, #fbfbfa 55%, #e8e9e7 100%);
}

.license-plate-eu {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  width: 17px;
  min-width: 17px;
  margin: -1px 6px -1px 0;
  padding: 1px 1px 2px;
  background: #003399;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.license-plate-eu svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  overflow: visible;
}

.license-plate-eu circle {
  fill: #ffcc00;
}

.license-plate-country {
  display: block;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  -webkit-text-fill-color: #fff;
}

.license-plate-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  align-self: center;
  min-width: 0;
  white-space: nowrap;
  text-shadow: 0 0.25px 0 #000;
}

.license-plate-block {
  display: inline-block;
}

.license-plate-registration {
  letter-spacing: 0.02em;
}

.license-plate-hyphen {
  width: 5px;
  height: 1.5px;
  margin-inline: 1px;
  border-radius: 1px;
  background: currentColor;
}

.license-plate-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 12px;
  height: 16px;
  filter: drop-shadow(0 0.3px 0 rgba(15, 23, 42, 0.45));
}

.license-plate-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.license-plate-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.license-plate-seal .seal-outline {
  fill: #f8fafc;
  stroke: #26313d;
  stroke-width: 1.2;
}

.license-plate-seal .seal-vienna {
  fill: #d71920;
}

.license-plate-seal .seal-vienna-cross,
.license-plate-seal .seal-styria-panther {
  fill: #fff;
}

.license-plate-seal .seal-styria {
  fill: #168447;
}

.license-plate-seal .seal-burgenland {
  fill: #f2cc3d;
}

.license-plate-seal .seal-burgenland-eagle {
  fill: #d71920;
  stroke: #1f2937;
  stroke-width: 0.45;
}

.license-plate-seal .seal-crown {
  fill: #d9ad26;
  stroke: #4b3b14;
  stroke-width: 0.8;
}

.license-plate-seal .seal-hungary-red {
  fill: #ce2939;
}

.license-plate-seal .seal-hungary-green {
  fill: #477050;
}

.license-plate-seal .seal-hungary-white {
  fill: #fff;
}

#view-companies .plate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: center;
  gap: 8px 12px;
}

#view-companies .plate-list .license-plate {
  width: 128px;
  min-width: 128px;
}

#view-companies .company-truck-row .license-plate {
  width: 128px;
  min-width: 128px;
}

#view-companies .company-plate-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.license-plate.compact {
  grid-template-columns: 15px minmax(0, 1fr);
  width: 108px;
  min-width: 108px;
  height: 23px;
  min-height: 23px;
  padding: 1px 5px 1px 0;
  font-size: 11.5px;
  letter-spacing: 0.025em;
}

.license-plate.compact .license-plate-eu {
  width: 15px;
  min-width: 15px;
  margin: -1px 4px -1px 0;
}

.license-plate.compact .license-plate-eu svg {
  width: 11px;
  height: 11px;
}

.license-plate.compact .license-plate-country {
  font-size: 5.5px;
}

.license-plate.compact .license-plate-number {
  gap: 2px;
}

.license-plate.compact .license-plate-seal {
  width: 9px;
  height: 12px;
}

.license-plate.display {
  grid-template-columns: 22px minmax(0, 1fr);
  width: 164px;
  min-width: 164px;
  height: 35px;
  min-height: 35px;
  margin: 5px 0 4px;
  padding-right: 9px;
  font-size: 18px;
}

.license-plate.display .license-plate-eu {
  width: 22px;
  min-width: 22px;
}

.license-plate.display .license-plate-eu svg {
  width: 17px;
  height: 17px;
}

.license-plate.display .license-plate-country {
  font-size: 7px;
}

.license-plate.display .license-plate-seal {
  width: 14px;
  height: 18px;
}

body.dark-theme .license-plate {
  border-color: #9ca3af;
  color: #111827;
  background:
    linear-gradient(#e11d2e, #e11d2e) top / 100% 1px no-repeat,
    linear-gradient(#e11d2e, #e11d2e) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, #fff 0%, #f8fafc 52%, #e5e7eb 100%);
}

body.dark-theme .license-plate-hu {
  background:
    linear-gradient(180deg, #fff 0%, #fbfbfa 55%, #e8e9e7 100%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  animation: statusPulse var(--motion-slow) infinite;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: dotPulse var(--motion-slow) infinite;
}

.status-not-arrived {
  color: var(--red);
}

.status-in-progress {
  color: var(--yellow);
}

.status-completed {
  color: var(--green);
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, currentColor 0%, transparent),
      inset 0 0 0 1px color-mix(in srgb, currentColor 0%, transparent);
    opacity: 0.94;
  }

  50% {
    box-shadow:
      0 0 0 4px color-mix(in srgb, currentColor 8%, transparent),
      inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
    opacity: 1;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.9;
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 9%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.truck-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  padding: 22px;
  background: var(--surface);
}

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

.status-copy {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
}

body.dark-theme .status-copy {
  background: linear-gradient(180deg, #202835, #171d26);
}

.section-kicker {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status-copy h2 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.25;
}

.status-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 13px 12px 10px;
}

.timeline-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(-50% + 10px);
  right: calc(50% + 10px);
  height: 2px;
  background: var(--line-strong);
  transition:
    background-color var(--motion-medium),
    box-shadow var(--motion-medium),
    opacity var(--motion-medium);
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    box-shadow var(--motion-medium),
    opacity var(--motion-medium);
}

.timeline-step.complete,
.timeline-step.current {
  color: var(--text);
}

.timeline-step.complete::before,
.timeline-step.current::before {
  background: var(--accent);
}

.timeline-step.complete .timeline-marker {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-step.current .timeline-marker {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 11%, transparent);
  animation: timelinePulse var(--motion-slow) infinite;
}

.timeline-step.current::before {
  animation: timelineBarPulse var(--motion-slow) infinite;
}

@keyframes timelinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 13%, transparent);
  }
}

@keyframes timelineBarPulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: var(--surface);
  min-width: 0;
}

.detail-item .field-value {
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.history-box {
  border-left: 3px solid var(--accent);
  background: #f1f8f7;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 15px 17px;
}

body.dark-theme .history-box {
  background: #142926;
}

.history-box p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

body.dark-theme .history-box p {
  color: #cbd5e1;
}

.media-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}

.media-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.media-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.report-chip {
  max-width: 132px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-preview {
  position: relative;
  display: block;
  width: 100%;
  min-height: 188px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(15, 118, 110, 0.11), rgba(30, 41, 59, 0.03)),
    repeating-linear-gradient(135deg, #e8edf2 0 10px, #f8fafc 10px 20px);
}

.photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-medium);
}

.photo-preview:hover img {
  transform: scale(1.018);
}

.photo-preview:has(img)::before {
  display: none;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.photo-preview.image-missing {
  display: grid;
  place-items: center;
}

.photo-preview.image-missing::before {
  display: none;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  cursor: pointer;
}

.thumbnail-grid:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.thumb {
  position: relative;
  min-height: 68px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(100, 116, 139, 0.08)),
    var(--surface);
  padding: 8px;
  display: grid;
  align-content: end;
  gap: 2px;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.thumb.image-missing {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(100, 116, 139, 0.08) 9px 18px),
    var(--surface);
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-medium);
}

.thumbnail-grid:hover .thumb img,
.report-thumbs:hover .thumb img {
  transform: scale(1.018);
}

.thumb span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  padding: 3px 5px;
}

.thumb small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  width: fit-content;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  padding: 2px 5px;
}

.thumb:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(28, 36, 52, 0.07);
}

body.dark-theme .thumb span,
body.dark-theme .thumb small {
  background: rgba(15, 23, 42, 0.82);
}

body.dark-theme .photo-preview {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(15, 23, 42, 0.3)),
    repeating-linear-gradient(135deg, #202835 0 10px, #151b24 10px 20px);
}

.photo-preview::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 46px;
  height: 72px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 23% 106%, #263241 0 10px, transparent 11px),
    radial-gradient(circle at 76% 106%, #263241 0 10px, transparent 11px),
    linear-gradient(90deg, #d8e0e9 0 24%, transparent 24% 29%, #aebdcc 29% 78%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.92));
  border: 1px solid rgba(100, 116, 139, 0.32);
  opacity: 0.78;
}

.photo-preview::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  color: #263241;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 7px;
  padding: 8px 10px;
}

body.dark-theme .photo-preview::after {
  color: #edf2f7;
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(67, 80, 101, 0.9);
}

.photo-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
}

.photo-count strong {
  color: var(--text);
  font-size: 20px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.action-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium);
}

.action-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.action-button:hover {
  box-shadow: 0 8px 22px rgba(28, 36, 52, 0.1);
  transform: translateY(-0.5px);
}

.dashboard-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.dashboard-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 82px;
  background: rgba(7, 12, 20, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-medium);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  width: min(1040px, calc(100vw - 104px));
  margin: 0;
  display: grid;
  gap: 12px;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--motion-medium);
}

.lightbox.open .lightbox-frame {
  transform: translateY(0) scale(1);
}

.lightbox-frame img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #f8fafc;
  font-size: 13px;
}

.lightbox-frame figcaption span {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.lightbox-frame figcaption strong {
  white-space: nowrap;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  padding: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    transform var(--motion-medium),
    box-shadow var(--motion-medium);
}

.lightbox-close::before,
.lightbox-arrow::before {
  display: block;
  font-weight: 500;
  line-height: 1;
}

.lightbox-close::before {
  content: "\00d7";
  font-size: 26px;
  transform: translateY(-1px);
}

.lightbox-prev::before {
  content: "\2039";
  font-size: 36px;
}

.lightbox-next::before {
  content: "\203a";
  font-size: 36px;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 56px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(226, 232, 240, 0.4);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.03);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.dialog-content {
  padding: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.view-toolbar p {
  margin: 0;
  color: var(--muted);
}

.access-badge,
.company-status,
.table-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.access-badge {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.access-badge.workshop {
  color: #475569;
}

body.dark-theme .access-badge.workshop {
  color: #cbd5e1;
}

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

.company-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 36, 52, 0.05);
  overflow: hidden;
}

.company-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(28, 36, 52, 0.07);
}

.company-summary {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(190px, 1.4fr) repeat(3, minmax(120px, 0.8fr)) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 17px 18px;
  text-align: left;
  cursor: pointer;
}

.company-chevron {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0;
  line-height: 1;
  flex: 0 0 auto;
  align-self: center;
  justify-self: center;
  transition: transform var(--motion-medium);
}

.company-chevron::before {
  content: "\203a";
  font-size: 18px;
  line-height: 1;
}

.company-card.expanded .company-chevron {
  transform: rotate(90deg);
}

.company-summary span {
  display: grid;
  gap: 3px;
}

.company-summary small {
  color: var(--muted);
  font-size: 12px;
}

.company-details {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 16px 18px;
  animation: companyExpand var(--motion-medium);
}

.company-details[hidden] {
  display: none;
}

.company-details p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

@keyframes companyExpand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-stat-row,
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.company-info-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.plate-list,
.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.token-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.company-truck-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.company-table-head,
.company-truck-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.9fr) minmax(160px, 1.3fr) minmax(126px, 0.9fr) minmax(110px, 0.8fr) minmax(100px, 0.8fr) minmax(116px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
}

.company-table-head {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-truck-row {
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.status-pill.compact {
  min-height: 28px;
  width: fit-content;
  padding: 0 9px;
  font-size: 12px;
}

.status-pill.compact .status-dot {
  width: 8px;
  height: 8px;
}

.history-toggle {
  width: fit-content;
}

.history-toggle.open .chevron {
  transform: rotate(90deg);
}

.truck-history {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  animation: companyExpand 160ms ease;
}

.truck-history[hidden] {
  display: none;
}

.truck-history p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 36, 52, 0.05);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 13px;
}

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

.report-row {
  transition:
    background-color var(--motion-medium),
    box-shadow var(--motion-medium);
}

.report-row:hover td {
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface));
}

.report-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  background: var(--surface-muted);
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.report-row.expanded td {
  border-bottom-color: transparent;
}

.report-detail-row td {
  background: var(--surface-muted);
  padding: 0;
}

.report-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.report-detail p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  white-space: normal;
}

.report-detail-main {
  display: grid;
  gap: 14px;
}

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

.report-detail-grid > div,
.report-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.report-media {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

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

.table-link {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color var(--motion-medium),
    border-color var(--motion-medium),
    color var(--motion-medium),
    box-shadow var(--motion-medium),
    transform var(--motion-medium);
}

.table-link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 16px rgba(28, 36, 52, 0.07);
  transform: translateY(-0.5px);
}

.report-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.history-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chevron {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 1;
  transition: transform var(--motion-medium);
}

.chevron::before {
  content: "\203a";
  font-size: 15px;
  line-height: 1;
}

.report-toggle.open .chevron {
  transform: rotate(90deg);
}

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

.simple-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.simple-panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.create-report-panel {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.create-report-panel .action-button {
  width: fit-content;
  padding: 0 18px;
}

/* TruckTrace v03 final cascade: wide GLB damage workstation. */
.app-view,
.wizard-shell,
.wizard-damage-layout,
.damage-capture-layout {
  width: 100%;
  max-width: none;
}

.damage-capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(32vw, 420px));
  gap: 24px;
  align-items: stretch;
}

.damage-viewer-main {
  min-width: 0;
  min-height: 720px;
}

.damage-viewer-main .damage-viewer-placeholder,
.damage-viewer-main .wizard-viewer {
  min-height: 620px;
  height: 100%;
}

.damage-viewer-main .damage-viewer-stage,
.damage-viewer-main .truck-three-stage {
  min-height: 560px;
}

.damage-viewer-main .viewer-truck-outline {
  left: 5%;
  right: 5%;
  top: 24%;
  height: 54%;
}

.damage-side-panel {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  justify-self: end;
  min-width: 0;
}

.damage-side-panel .wizard-card {
  width: 100%;
  min-width: 0;
  padding: 16px;
}

.parts-selection-panel {
  min-height: 0;
}

.parts-selection-panel .parts-list {
  max-height: min(52vh, 560px);
}

.selected-damages-panel .selected-parts-list {
  max-height: min(34vh, 380px);
}

/* Keep the side cards content-sized instead of stretching to the 3D viewer height. */
.damage-capture-layout .damage-side-panel {
  align-self: start;
  align-content: start;
  grid-template-rows: auto auto;
}

.damage-capture-layout .parts-selection-panel {
  grid-template-rows: auto auto auto;
  align-content: start;
}

@media (max-width: 1180px) {
  .damage-capture-layout {
    grid-template-columns: 1fr;
  }

  .damage-side-panel {
    max-width: none;
    justify-self: stretch;
  }
}

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

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

.mini-card small,
.mini-card span:not(.plate) {
  color: var(--muted);
}

.viewer-placeholder {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(100, 116, 139, 0.06)),
    var(--surface-muted);
  overflow: hidden;
}

.mock-truck {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 42%;
  height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.viewer-placeholder span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #b45309;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.14);
}

.viewer-placeholder span:nth-child(2) {
  left: 28%;
  top: 38%;
}

.viewer-placeholder span:nth-child(3) {
  left: 52%;
  top: 46%;
}

.viewer-placeholder span:nth-child(4) {
  right: 25%;
  top: 40%;
}

.muted-panel {
  opacity: 0.78;
}

.profile-panel {
  max-width: 860px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.profile-hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
}

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

.user-license-card {
  padding: 20px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.1), transparent 36%),
    var(--surface-muted);
}

.license-frame {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.56);
  background:
    linear-gradient(90deg, rgba(3, 8, 24, 0.96) 0%, rgba(5, 16, 42, 0.92) 34%, rgba(6, 22, 55, 0.48) 62%, rgba(5, 11, 28, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 74, 110, 0.26), rgba(2, 6, 23, 0.1)),
    url("assets/images/license-card.jpg"),
    url("public/images/license-truck-bg.png");
  background-size: cover;
  background-position: center right;
  color: #f8fbff;
  box-shadow:
    0 22px 60px rgba(2, 8, 23, 0.32),
    0 0 0 1px rgba(125, 211, 252, 0.18),
    inset 0 0 0 1px rgba(14, 165, 233, 0.46),
    inset 0 0 34px rgba(37, 99, 235, 0.22);
  padding: clamp(22px, 4vw, 42px);
}

body:not(.dark-theme) .license-frame {
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(14, 165, 233, 0.24),
    inset 0 0 0 1px rgba(14, 165, 233, 0.48),
    inset 0 0 36px rgba(37, 99, 235, 0.18);
}

.license-frame::before,
.license-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.license-frame::before {
  inset: 10px;
  border-radius: 17px;
  border: 1px solid rgba(56, 189, 248, 0.72);
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.32),
    inset 0 0 22px rgba(59, 130, 246, 0.18);
}

.license-frame::after {
  inset: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(125, 211, 252, 0.32), transparent 18%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.24), transparent 48%, rgba(2, 6, 23, 0.04));
}

.license-top,
.license-main,
.license-meta,
.license-badges {
  position: relative;
  z-index: 1;
}

.license-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.license-shield {
  width: 56px;
  height: 64px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 92% 16%, 84% 72%, 50% 100%, 16% 72%, 8% 16%);
  background: linear-gradient(180deg, #3b82f6, #0ea5e9);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.48);
}

.license-shield span {
  width: 20px;
  height: 12px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.license-status {
  display: block;
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.license-top p {
  margin: 5px 0 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: clamp(13px, 1.7vw, 18px);
}

.license-main {
  max-width: 680px;
  margin-top: clamp(42px, 7vw, 86px);
}

.license-main h3 {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 26px rgba(59, 130, 246, 0.28);
}

.license-main h3::first-letter {
  color: #fff;
}

.license-main h3 {
  background: linear-gradient(90deg, #fff 0 58%, #3b82f6 58% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.license-date {
  margin-top: 22px;
  display: grid;
  gap: 4px;
}

.license-date .field-label {
  color: rgba(226, 232, 240, 0.74);
  font-size: 13px;
}

.license-date strong {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
}

.license-meta {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(32px, 5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid rgba(125, 211, 252, 0.26);
}

.license-meta div {
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 10px;
  background: rgba(2, 8, 23, 0.36);
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

.license-meta .license-company {
  grid-column: span 2;
}

.license-meta span {
  display: block;
  color: rgba(203, 213, 225, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.license-meta strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.license-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.license-badges span {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: rgba(248, 250, 252, 0.86);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 10;
    padding: 14px 16px;
    overflow: visible;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .nav-link {
    white-space: nowrap;
  }

  .main-content {
    height: auto;
    overflow: visible;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-items: stretch;
  }

  .top-controls {
    justify-content: space-between;
  }

  .header-summary {
    min-width: 0;
  }

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

  .truck-card-body {
    grid-template-columns: 1fr;
  }

  .report-detail {
    grid-template-columns: 1fr;
  }

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

  .company-status {
    justify-self: start;
  }

  .company-stat-row,
  .company-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-truck-table {
    overflow-x: auto;
  }

  .company-table-head,
  .company-truck-row {
    min-width: 880px;
  }

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

  .license-meta .license-company {
    grid-column: span 3;
  }

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

@media (max-width: 640px) {
  .main-content {
    height: auto;
    overflow: visible;
  }

  .main-content {
    padding: 22px 14px 36px;
  }

  .brand {
    align-items: start;
  }

  .header-summary,
  .detail-grid,
  .process-timeline,
  .thumbnail-grid,
  .report-detail-grid,
  .report-thumbs,
  .profile-grid,
  .company-summary,
  .company-details,
  .company-stat-row,
  .company-info-grid,
  .mini-grid,
  .truck-card-header {
    grid-template-columns: 1fr;
  }

  .view-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-tools {
    gap: 12px;
  }

  .truck-card-header,
  .truck-card-body {
    padding: 16px;
  }

  .truck-meta-status {
    justify-self: start;
  }

  .process-timeline {
    gap: 10px;
  }

  .timeline-step {
    grid-template-columns: 18px 1fr;
    justify-items: start;
    text-align: left;
  }

  .timeline-step::before {
    top: -10px;
    bottom: calc(100% - 8px);
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .status-pill {
    width: fit-content;
  }

  .photo-preview {
    min-height: 150px;
  }

  .lightbox {
    padding: 18px;
    align-items: center;
  }

  .lightbox-frame {
    width: calc(100vw - 36px);
  }

  .lightbox-frame img {
    max-height: 68vh;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 22px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .lightbox-prev {
    left: 22px;
  }

  .lightbox-next {
    right: 22px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-arrow:hover {
    transform: scale(1.03);
  }

  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .user-license-card {
    padding: 14px;
  }

  .license-frame {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(3, 8, 24, 0.96) 0%, rgba(5, 16, 42, 0.9) 48%, rgba(5, 16, 42, 0.55) 100%),
      url("assets/images/license-card.jpg"),
      url("public/images/license-truck-bg.png");
    background-size: cover;
    background-position: center right;
    padding: 24px;
  }

  .license-top {
    align-items: flex-start;
  }

  .license-shield {
    width: 46px;
    height: 54px;
  }

  .license-main {
    margin-top: 44px;
  }

  .license-main h3 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .license-meta {
    grid-template-columns: 1fr;
  }

  .license-meta .license-company {
    grid-column: auto;
  }

  .user-chip span:not(.user-avatar) {
    display: none;
  }
}

/* TruckTrace final cascade: keep this after legacy rules so the redesign wins. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-muted: #f7f8fc;
  --text: #111827;
  --muted: #6b778c;
  --line: #e5e9f2;
  --line-strong: #d7deea;
  --accent: #6c5cff;
  --accent-dark: #5a49e8;
  --accent-soft: #efedff;
  --accent-cyan: #19b7e8;
  --shadow: 0 12px 34px rgba(24, 32, 56, 0.07);
  --shadow-soft: 0 8px 22px rgba(24, 32, 56, 0.055);
  --red: #ef4444;
  --yellow: #f59e0b;
  --green: #22c55e;
}

body.dark-theme {
  --bg: #0f1420;
  --surface: #171d2b;
  --surface-muted: #111827;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --line: #283244;
  --line-strong: #3a465c;
  --accent: #8b7cff;
  --accent-dark: #b9b0ff;
  --accent-soft: rgba(139, 124, 255, 0.14);
  --accent-cyan: #38c6f4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 249, 0) 260px),
    var(--bg);
}

body.dark-theme {
  background:
    linear-gradient(180deg, rgba(24, 31, 47, 0.54), rgba(15, 20, 32, 0) 280px),
    var(--bg);
}

.app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  background: var(--surface);
  color: var(--text);
  padding: 28px 20px;
  gap: 34px;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(24, 32, 56, 0.035);
}

body.dark-theme .sidebar {
  background: #121826;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.16);
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, #7c6dff 0%, #6254f5 48%, #19b7e8 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(108, 92, 255, 0.28);
  font-size: 14px;
}

.brand-name {
  color: var(--text);
  font-size: 19px;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  max-width: 170px;
}

.nav-list {
  gap: 8px;
}

.nav-link {
  min-height: 46px;
  gap: 10px;
  color: #26334a;
  border: 1px solid transparent;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 700;
}

body.dark-theme .nav-link {
  color: #dbe4f2;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
}

.nav-link-action {
  justify-content: flex-start;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 14px 28px rgba(108, 92, 255, 0.22);
}

.nav-link-action:hover,
.nav-link-action.active {
  color: #fff;
  background: linear-gradient(135deg, #5f50f0, #12a9dc);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(108, 92, 255, 0.28);
}

.nav-link-action span {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-link-action span::before {
  font-size: 18px;
  transform: translateY(-1px);
}

.nav-link.disabled {
  color: #98a4b6;
}

.nav-link small {
  color: #8b7cff;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 7px;
}

.main-content {
  padding: 30px clamp(24px, 4vw, 56px) 58px;
}

.page-header {
  align-items: center;
  margin: 0 -8px 30px;
  padding: 8px 8px 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 11px;
}

h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
}

.page-intro {
  max-width: 820px;
  font-size: 16px;
}

.top-controls {
  gap: 12px;
}

.user-chip,
.theme-toggle {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.user-chip {
  min-height: 48px;
  border-radius: 999px;
  padding: 5px 15px 5px 6px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 8px 18px rgba(108, 92, 255, 0.2);
}

.theme-toggle {
  width: 92px;
  height: 48px;
  border-radius: 999px;
  padding: 4px;
}

.theme-toggle-track {
  background: #f0f2f7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.theme-toggle-track::before,
.theme-toggle-track::after {
  font-size: 16px;
  text-align: center;
  z-index: 1;
}

.theme-toggle-track::before {
  content: "\2600";
  color: #f59e0b;
}

.theme-toggle-track::after {
  content: "\263E";
  color: #64748b;
}

.theme-toggle-thumb {
  top: 3px;
  left: 3px;
  width: 36px;
  height: 36px;
  box-shadow: 0 8px 18px rgba(24, 32, 56, 0.18);
}

.theme-icon::before {
  display: none;
}

body.dark-theme .theme-toggle-track {
  background: #242d3e;
}

body.dark-theme .theme-toggle-thumb {
  transform: translateX(44px);
}

.header-summary {
  grid-template-columns: repeat(2, minmax(156px, 1fr));
  gap: 14px;
  min-width: 360px;
}

.header-summary > div,
.truck-card,
.company-card,
.report-table-wrap,
.simple-panel,
.profile-card {
  border-color: rgba(215, 222, 234, 0.84);
  box-shadow: var(--shadow);
}

body.dark-theme .header-summary > div,
body.dark-theme .truck-card,
body.dark-theme .company-card,
body.dark-theme .report-table-wrap,
body.dark-theme .simple-panel,
body.dark-theme .profile-card {
  border-color: rgba(58, 70, 92, 0.86);
}

.header-summary > div {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
}

.header-summary > div::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 5.5px),
    linear-gradient(135deg, #34d399, #22c55e);
}

.header-summary > div:nth-child(2)::before {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 5.5px),
    linear-gradient(135deg, #19b7e8, #6c5cff);
}

.summary-value {
  font-size: 34px;
}

.summary-label {
  font-size: 14px;
}

.overview-tools {
  grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.search-field input {
  min-height: 50px;
  border-radius: 8px;
  padding: 0 18px;
  box-shadow: var(--shadow-soft);
}

.status-tabs {
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active,
body.dark-theme .filter-button:hover,
body.dark-theme .filter-button.active {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
}

.truck-list {
  gap: 24px;
}

.truck-card {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--surface-muted)));
}

.truck-card:hover,
.company-card:hover {
  box-shadow: 0 18px 42px rgba(24, 32, 56, 0.11);
  transform: translateY(-1px);
}

body.dark-theme .truck-card:hover,
body.dark-theme .company-card:hover {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.truck-card-header {
  grid-template-columns: minmax(120px, 0.7fr) minmax(210px, 1.2fr) minmax(128px, 0.75fr) minmax(185px, 1fr) minmax(132px, auto);
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
}

body.dark-theme .truck-card-header {
  background: var(--surface);
}

.truck-card-body {
  gap: 24px;
  padding: 24px;
}

.field-label,
.section-kicker,
.search-field span {
  color: #7d899b;
  font-size: 10px;
}

body.dark-theme .field-label,
body.dark-theme .section-kicker,
body.dark-theme .search-field span {
  color: #97a6ba;
}

.plate {
  border-color: #dbe3ef;
  border-left-color: #2563eb;
  box-shadow: 0 5px 14px rgba(24, 32, 56, 0.055);
}

.status-pill {
  background: color-mix(in srgb, currentColor 8%, var(--surface));
  border-color: color-mix(in srgb, currentColor 18%, var(--line));
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
    opacity: 0.96;
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 9%, transparent);
    opacity: 1;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.88;
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 11%, transparent);
  }
}

.status-copy,
.detail-item,
.media-panel,
.process-timeline,
.photo-count,
.company-info-grid > div,
.report-detail-grid > div,
.report-media,
.mini-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 5px 16px rgba(24, 32, 56, 0.035);
}

.status-copy h2 {
  font-size: 21px;
}

.history-box {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

body.dark-theme .history-box,
body.dark-theme .status-copy {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.timeline-step.complete::before,
.timeline-step.current::before,
.timeline-step.complete .timeline-marker {
  background: var(--accent);
}

.timeline-step.complete .timeline-marker,
.timeline-step.current .timeline-marker {
  border-color: var(--accent);
}

.photo-preview {
  min-height: 210px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.photo-preview::after {
  left: 16px;
  right: 16px;
  bottom: 14px;
  border-color: rgba(229, 233, 242, 0.8);
  box-shadow: 0 8px 18px rgba(24, 32, 56, 0.08);
}

.action-button,
.table-link {
  border-radius: 8px;
}

.action-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #6c5cff, #19b7e8);
  box-shadow: 0 12px 22px rgba(108, 92, 255, 0.2);
}

.access-badge,
.company-status,
.table-status {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  color: var(--accent-dark);
}

.company-summary {
  padding: 20px;
}

.company-details {
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  padding: 20px;
}

.report-table th {
  background: var(--surface-muted);
}

.report-table th,
.report-table td {
  padding: 14px 15px;
}

.simple-panel {
  padding: 26px;
}

.viewer-placeholder,
.mini-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent),
    var(--surface-muted);
}

.profile-hero {
  background:
    radial-gradient(circle at 95% 8%, color-mix(in srgb, var(--accent-cyan) 18%, transparent), transparent 30%),
    linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.license-frame {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 8, 24, 0.96) 0%, rgba(13, 24, 52, 0.92) 36%, rgba(32, 38, 86, 0.54) 66%, rgba(5, 11, 28, 0.18) 100%),
    url("assets/images/license-card.jpg"),
    url("assets/images/license-card.png"),
    url("public/images/license-truck-bg.png");
}

.license-frame::before {
  border-radius: 6px;
  border-color: rgba(139, 124, 255, 0.46);
  box-shadow: none;
}

.lightbox {
  background: rgba(7, 12, 20, 0.82);
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-header {
    margin: 0 0 24px;
    padding: 0 0 24px;
  }

  .overview-tools {
    grid-template-columns: 1fr;
  }

  .status-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 24px 16px 38px;
  }

  .brand-subtitle {
    max-width: none;
  }

  .theme-toggle {
    width: 84px;
  }

  body.dark-theme .theme-toggle-thumb {
    transform: translateX(36px);
  }

  .header-summary {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .truck-card-header,
  .truck-card-body,
  .company-summary,
  .company-details {
    padding: 18px;
  }

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

  .filter-button {
    width: 100%;
  }

  .license-frame {
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(3, 8, 24, 0.97) 0%, rgba(13, 24, 52, 0.9) 50%, rgba(13, 24, 52, 0.58) 100%),
      url("assets/images/license-card.jpg"),
      url("assets/images/license-card.png"),
      url("public/images/license-truck-bg.png");
  }
}
