@font-face {
  font-family: Workshop;
  src: url("/static/vendor/DejaVuSans.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #f4f6f6;
  --ink: #162d32;
  --muted: #6f7e83;
  --line: #dfe7e8;
  --teal: #087d72;
  --teal-light: #e5f4f0;
  --dark: #102a2c;
  --red: #bd3b40;
  --amber: #b17720;
  --radius: 16px;
  font-family:
    Workshop,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 600;
  min-height: 44px;
  color: var(--ink);
  touch-action: manipulation;
}
button:hover {
  border-color: #9cbcb7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
.primary-link {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  min-height: 46px;
}
.primary-link:hover {
  background: #05665d;
}
.danger {
  color: var(--red);
  border-color: #e6bec1;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 10px;
}
.wide {
  width: 100%;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdadc;
  border-radius: 9px;
  padding: 13px;
  background: white;
  min-height: 47px;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #c2e8df;
  border-color: var(--teal);
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input[readonly] {
  background: #eff3f3;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
label.check {
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
label.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}
input.invalid,
select.invalid,
textarea.invalid {
  border: 2px solid var(--red);
}
.field-error,
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}
.field-error:empty,
.form-error:empty {
  display: none;
}
.required {
  color: var(--red);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.3;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--dark);
  color: #d4e3e2;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-family: system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
}
.wordmark > span {
  color: #5ed3bb;
}
.wordmark > small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 10px;
  color: #8da8a5;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 50px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 10px;
  font-size: 17px;
  color: #b5ccca;
}
nav a span {
  font-size: 12px;
}
nav a.active,
nav a:hover {
  background: #254341;
  color: white;
}
nav a.active {
  box-shadow: inset 3px 0 #5ed3bb;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 9px;
  color: #8aa5a1;
}
.sidebar-bottom small {
  display: block;
  margin-top: 14px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
}
.connection i,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61c8ac;
  display: inline-block;
}
.workspace {
  margin-left: 228px;
  min-height: 100vh;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #fff;
}
.topbar-sub {
  font-size: 11px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.user-area {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.avatar {
  background: var(--teal-light);
  color: var(--teal);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-area button {
  font-size: 10px;
  color: var(--muted);
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 36px 44px 48px;
  min-height: calc(100vh - 150px);
}
.page-footer {
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  margin: 0 44px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.head-copy .eyebrow {
  display: block;
  margin-bottom: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  background: white;
  position: relative;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin-top: 14px;
}
.stat .stat-icon {
  position: absolute;
  right: 20px;
  top: 22px;
  background: #f0f5f4;
  border-radius: 10px;
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  color: var(--teal);
  font-size: 17px;
}
.stat.highlight {
  background: var(--dark);
  color: white;
  border: 0;
}
.stat.highlight span {
  color: #b0ccc4;
}
.stat.highlight .stat-icon {
  background: #254842;
  color: #5ed3bb;
}
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-head {
  padding: 23px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.card-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.card-body {
  padding: 26px;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 200px;
}
.toolbar input[type="date"] {
  width: 160px;
}
.toolbar select {
  width: 180px;
}
.filters-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafbfb;
  font-weight: 600;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 20px 24px;
  font-size: 12px;
  border-bottom: 1px solid #edf1f2;
}
tr:last-child td {
  border: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f5faf8;
}
td strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
td small {
  color: var(--muted);
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 600;
}
.badge:before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.draft {
  background: #fff5e3;
  color: #a16e21;
}
.badge.repair {
  background: #e6f3ef;
  color: #087d72;
}
.badge.issued {
  background: #eef1f5;
  color: #657581;
}
.count-label {
  font-size: 10px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 11px;
  color: var(--muted);
}
.pagination button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 36px;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
}
.empty a {
  margin-top: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 20px;
}
.span-2 {
  grid-column: 1/-1;
}
.section-title {
  padding-bottom: 18px;
  margin: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}
.section-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.narrow {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}
.vin-entry {
  max-width: 520px;
  margin: 20px auto;
  text-align: center;
}
.vin-entry .vin-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 35px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal);
  margin: 0 auto 22px;
}
.vin-entry input {
  font-family: monospace;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  font-size: 19px;
  margin: 28px 0 12px;
}
.vin-entry .primary {
  margin-top: 12px;
}
.back {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 16px 18px;
  font-size: 12px;
}
.step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f3f3;
  color: var(--muted);
  font-size: 11px;
}
.step.active {
  border-color: #7cbaac;
  background: #f1faf6;
  color: var(--teal);
}
.step.active b {
  background: var(--teal);
  color: white;
}
.step.done b {
  background: #d9efe7;
  color: var(--teal);
}
.vehicle-strip {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: #f9fbfb;
  border-bottom: 1px solid var(--line);
}
.vehicle-strip .plate {
  font-family: monospace;
  font-weight: bold;
  font-size: 19px;
  letter-spacing: 1px;
  border: 1px solid #ccd9dc;
  border-left: 6px solid #3568a2;
  padding: 7px 12px;
  border-radius: 5px;
  background: white;
  white-space: nowrap;
}
.vehicle-strip small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #c8e4db;
  background: #eff8f3;
  color: #315e50;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 22px;
}
.notice.amber {
  border-color: #eed9af;
  background: #fff9ed;
  color: #8c6729;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.photo-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
  min-height: 120px;
}
.photo-tile .placeholder {
  height: 85px;
  background: #f0f4f3;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #8ba29d;
}
.photo-tile img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
}
.photo-tile span {
  display: block;
  padding: 10px;
  font-size: 10px;
}
.photo-tile .tick {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 5px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
}
.part-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 0.7fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  align-items: end;
}
.part-row label {
  margin: 0;
}
.part-row .row-actions {
  display: flex;
  gap: 8px;
}
.part-row button {
  padding: 12px;
}
.part-row:last-child {
  border: 0;
}
.camera-frame {
  background: #102a2c;
  position: relative;
  min-height: 230px;
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0;
}
.camera-frame video,
.camera-frame img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
}
.camera-frame:has(video):after {
  content: "";
  position: absolute;
  width: 70%;
  height: 35%;
  inset: 30% 15%;
  border: 2px solid #5ed3bb;
  border-radius: 12px;
  pointer-events: none;
}
.camera-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  margin: 0;
  min-height: 44px;
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pdf-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.pdf-shell {
  background: #dce3e5;
  padding: 12px;
  max-height: 65vh;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
  border-radius: 9px;
}
.pdf-pages {
  width: max-content;
  min-width: 100%;
}
.pdf-pages canvas {
  display: block;
  max-width: none;
  margin: 0 auto 14px;
  box-shadow: 0 3px 15px #18343a26;
}
.pdf-pages canvas:last-child {
  margin-bottom: 0;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 28px;
  width: min(620px, 94vw);
  max-height: 92dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 20px 90px #071e3b40;
}
dialog::backdrop {
  background: #0a252b99;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 10px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
dialog.fullscreen {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top)) 22px
    max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.signature-pad {
  flex: 1;
  min-height: 160px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  background: #fff;
}
.signature-pad canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}
.signature-hint {
  position: absolute;
  left: 22px;
  bottom: 15px;
  color: #aab6b7;
  font-size: 11px;
  pointer-events: none;
  border-top: 1px dashed #c7d3d3;
  width: calc(100% - 44px);
  padding-top: 10px;
}
.signer-fields {
  max-width: 700px;
  margin-top: 18px;
}
.signer-fields label {
  margin: 0;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  background: var(--dark);
  padding: 10vh 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro p {
  font-size: 44px;
  letter-spacing: -1.8px;
  color: white;
  line-height: 1.2;
  margin: 60px 0 24px;
}
.login-intro small {
  color: #98b9ae;
}
.login-card {
  align-self: center;
  justify-self: center;
  width: 80%;
  max-width: 380px;
  padding: 35px 0;
}
.login-card h1 {
  margin: 14px 0 8px;
}
.login-card p {
  margin-bottom: 28px;
  font-size: 12px;
}
.login-card small {
  display: block;
  text-align: center;
  font-size: 9px;
  margin-top: 30px;
}
.login-card button {
  display: flex;
  justify-content: space-between;
}
.offline {
  position: fixed;
  inset: 0;
  background: #102a2cf2;
  z-index: 100;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  padding: 24px;
}
.offline h2 {
  margin: 24px 0 18px;
}
.offline p {
  color: #bdceca;
  font-size: 13px;
}
.offline button {
  margin-top: 24px;
}
.offline .status-dot {
  background: #eeb25c;
  width: 14px;
  height: 14px;
}
#toasts {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 500;
  display: grid;
  gap: 10px;
}
.toast {
  background: var(--dark);
  color: white;
  border-radius: 10px;
  padding: 15px 22px;
  max-width: min(90vw, 440px);
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
}
.toast.error {
  background: #94313c;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.mobile-new {
  display: none;
}
.inline-tools {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.inline-tools label {
  flex: 1;
  min-width: 0;
}
.inline-tools > button {
  margin-bottom: 18px;
  padding: 10px;
  min-width: 44px;
}
.subtle-link {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
}
.install-hint {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 17px 22px;
  margin-top: 24px;
  color: #376057;
  font-size: 11px;
}
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.user-row:last-child {
  border: 0;
}
.user-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.user-row .actions {
  margin: 0;
}
.history {
  margin-top: 28px;
}
.record-id {
  font-family: monospace;
  color: var(--teal);
  font-size: 11px;
}
.saved-at {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .stat {
    padding: 28px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 190px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 28px 26px;
  }
  .page-footer {
    margin: 0 26px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 20px 15px;
  }
  th,
  td {
    padding: 16px;
  }
  .part-row {
    grid-template-columns: 1.8fr 1.4fr 0.7fr;
  }
  .part-row .row-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 25px;
  }
  .sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: 72px;
    z-index: 30;
    padding: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sidebar > .wordmark,
  .sidebar-bottom {
    display: none;
  }
  nav {
    margin: 0;
    flex-direction: row;
    height: 66px;
    justify-content: space-around;
    gap: 0;
  }
  nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 9px 4px 5px;
    border-radius: 0;
    font-size: 22px;
    color: #879895;
  }
  nav a span {
    font-size: 9px;
  }
  nav a.active,
  nav a:hover {
    background: transparent;
    color: var(--teal);
    box-shadow: inset 0 3px var(--teal);
  }
  .workspace {
    margin: 0;
    padding-bottom: 68px;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .topbar .eyebrow {
    font-size: 12px;
    letter-spacing: 0.6px;
  }
  .topbar-sub {
    display: none;
  }
  .user-area {
    gap: 7px;
  }
  .user-area #user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .user-area .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .user-area button {
    padding: 6px;
    font-size: 9px;
  }
  main {
    padding: 24px 16px;
    min-height: calc(100dvh - 180px);
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 12px;
  }
  .page-head .primary-link {
    font-size: 11px;
    padding: 12px 13px;
  }
  .page-head p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 30px;
    margin-top: 14px;
  }
  .stat span {
    font-size: 10px;
  }
  .stat .stat-icon {
    width: 27px;
    height: 27px;
    font-size: 14px;
    right: 15px;
    top: 15px;
  }
  .card {
    border-radius: 12px;
  }
  .card-head {
    padding: 19px 17px;
  }
  .card-head h2 {
    font-size: 17px;
  }
  .card-body {
    padding: 20px 17px;
  }
  .toolbar {
    padding: 16px;
    gap: 9px;
  }
  .toolbar input,
  .toolbar select {
    font-size: 12px;
  }
  .toolbar input[type="date"] {
    width: calc(50% - 6px);
    flex: 1;
  }
  .toolbar select {
    width: 100%;
    flex: 1;
  }
  .search {
    width: 100%;
    flex: auto;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2.keep {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .page-footer {
    margin: 0 16px;
    font-size: 9px;
  }
  .page-footer span {
    display: none;
  }
  th,
  td {
    padding: 15px 14px;
  }
  th {
    font-size: 8px;
  }
  td {
    font-size: 11px;
  }
  .table-wrap table .desktop-only {
    display: none;
  }
  .table-wrap table {
    min-width: 0;
  }
  .badge {
    font-size: 8px;
    padding: 5px 7px;
  }
  .stepper {
    gap: 7px;
  }
  .step {
    flex-direction: column;
    gap: 8px;
    padding: 12px 6px;
    font-size: 10px;
    text-align: center;
  }
  .step b {
    width: 25px;
    height: 25px;
  }
  .vehicle-strip {
    padding: 17px;
    gap: 14px;
    align-items: flex-start;
  }
  .vehicle-strip .plate {
    font-size: 16px;
    padding: 6px 8px;
  }
  .vehicle-strip h3 {
    font-size: 13px;
  }
  .vehicle-strip small {
    font-size: 9px;
    word-break: break-all;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .photo-tile span {
    font-size: 9px;
  }
  .actions button {
    font-size: 12px;
  }
  .part-row {
    grid-template-columns: 1fr 90px;
    gap: 12px;
  }
  .part-row label:first-child {
    grid-column: 1/-1;
  }
  .part-row label:nth-child(2) {
    grid-column: 1;
  }
  .part-row label:nth-child(3) {
    grid-column: 2;
  }
  .part-row .row-actions {
    justify-content: flex-end;
  }
  .login-wrap {
    display: flex;
    flex-direction: column;
  }
  .login-intro {
    padding: 35px 28px;
    min-height: 185px;
  }
  .login-intro p {
    font-size: 25px;
    margin: 25px 0 10px;
  }
  .login-intro p br {
    display: none;
  }
  .login-intro small {
    font-size: 10px;
  }
  .login-card {
    width: calc(100% - 48px);
    padding: 30px 0;
  }
  .mobile-new {
    display: grid;
    place-items: center;
    position: fixed;
    bottom: 90px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 27px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 16px #087d7244;
    z-index: 20;
  }
  #toasts {
    bottom: 90px;
    right: 16px;
  }
  .pagination {
    padding: 16px;
    font-size: 10px;
  }
  .user-row {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  .user-row .actions {
    justify-content: flex-start;
  }
  .user-row .actions button {
    font-size: 10px;
    padding: 8px;
  }
  .vin-entry input {
    font-size: 15px;
    letter-spacing: 1px;
  }
  dialog {
    padding: 23px 18px;
  }
  .pdf-shell {
    padding: 6px;
  }
  .signer-fields .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  dialog.fullscreen {
    padding: 15px;
  }
  .signature-hint {
    font-size: 9px;
  }
  .signer-fields {
    margin-top: 10px;
  }
  .signer-fields input {
    padding: 10px;
    min-height: 42px;
  }
  .signer-fields label {
    font-size: 10px;
  }
  .saved-at {
    display: block;
    margin-top: 10px;
  }
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border: 2px solid var(--red);
}
