:root {
  --ink: #17211f;
  --muted: #64706d;
  --line: #dbe2df;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --green-900: #163b35;
  --green-700: #226457;
  --green-100: #dff0ea;
  --orange: #e87524;
  --orange-soft: #fff0e5;
  --blue: #176b87;
  --red: #b83a3a;
  --shadow: 0 5px 18px rgba(17, 42, 36, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
}

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

button { cursor: pointer; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  background: var(--green-900);
  color: white;
  box-shadow: 0 2px 12px rgba(15, 41, 35, 0.2);
}

.topbar-inner {
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: var(--orange);
  font-size: 20px;
}

.brand-title { font-weight: 750; font-size: 18px; }
.brand-sub { color: rgba(255,255,255,.66); font-size: 12px; margin-top: 2px; }

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 22px 48px;
}

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

.page-heading h1 { margin: 0; font-size: 25px; letter-spacing: 0; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

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

.checkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 20px;
  align-items: start;
}

.form-panel { padding: 24px; }

.form-section + .form-section {
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.section-index {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 { margin: 0; font-size: 17px; }

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

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

.field label, .field-label {
  display: block;
  margin-bottom: 8px;
  color: #33413e;
  font-size: 13px;
  font-weight: 700;
}

.required::after { content: " *"; color: var(--orange); }

.control {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.control:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(34,100,87,.12);
}

.control.textarea {
  height: auto;
  min-height: 86px;
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
  line-height: 1.55;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid #cbd5d1;
  border-radius: 7px;
  background: #f4f6f5;
}

.segment { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.segment input:checked + span {
  background: var(--green-900);
  color: white;
  box-shadow: 0 2px 7px rgba(22,59,53,.15);
}

.location-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #f7faf9;
}

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

.location-status { font-weight: 750; font-size: 14px; }
.location-address { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.coordinates { margin-top: 8px; color: var(--blue); font-family: Consolas, monospace; font-size: 12px; }

.text-button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.photo-input { display: none; }

.photo-trigger {
  width: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px dashed #9aaba6;
  border-radius: 7px;
  background: #f8faf9;
  color: #41504c;
  text-align: center;
  cursor: pointer;
}

.photo-trigger:hover { border-color: var(--green-700); background: #f0f7f4; }
.photo-trigger-icon { color: var(--green-700); font-size: 28px; }
.photo-trigger strong { font-size: 14px; }
.photo-trigger small { color: var(--muted); font-size: 12px; }

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

.photo-choice-grid .photo-trigger { min-height: 100px; }

.photo-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101514;
}

.photo-preview img {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: contain;
}

.photo-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  gap: 7px;
}

.photo-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 5px;
  color: white;
  background: rgba(13, 25, 22, .82);
  backdrop-filter: blur(4px);
  font-size: 12px;
}

.fuel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.fuel-row strong { display: block; font-size: 14px; }
.fuel-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.toggle {
  width: 48px;
  height: 27px;
  position: relative;
  flex: 0 0 auto;
}

.toggle input { position: absolute; opacity: 0; }
.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #b9c3c0;
  transition: .15s;
}

.toggle span::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: .15s;
}

.toggle input:checked + span { background: var(--orange); }
.toggle input:checked + span::after { transform: translateX(21px); }

.fuel-fields { margin-top: 16px; }

.submit-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.button {
  min-height: 43px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
}

.button.primary { background: var(--green-900); color: white; }
.button.primary:hover { background: #0f302b; }
.button.secondary { background: white; border-color: #cbd5d1; color: var(--ink); }
.button.orange { background: var(--orange); color: white; }
.button.danger { background: white; border-color: #e2bcbc; color: var(--red); }
.button.danger.solid { background: var(--red); border-color: var(--red); color: white; }
.button.small { min-height: 35px; padding: 0 12px; font-size: 13px; }

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  background: white;
  color: var(--green-900);
  font-size: 20px;
  line-height: 1;
}

.summary-panel { position: sticky; top: 86px; overflow: hidden; }
.summary-head { padding: 20px; background: var(--green-900); color: white; }
.summary-head h2 { margin: 0; font-size: 17px; }
.summary-head p { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: 12px; }
.summary-body { padding: 18px 20px; }

.summary-line {
  min-height: 44px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.summary-line span { color: var(--muted); }
.summary-line strong { max-width: 62%; text-align: right; overflow-wrap: anywhere; }
.summary-note { margin: 16px 0 0; padding: 11px; background: var(--orange-soft); color: #754018; border-radius: 6px; font-size: 12px; line-height: 1.6; }

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto auto;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-toolbar > *, .admin-layout > * { min-width: 0; }

.search-wrap { position: relative; }
.search-wrap .control { padding-left: 38px; }
.search-icon { position: absolute; left: 13px; top: 11px; color: var(--muted); }

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.vehicle-sidebar { overflow: hidden; }
.sidebar-head { min-height: 54px; padding: 10px 10px 8px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--line); }
.vehicle-list { padding: 0 8px 10px; }

.vehicle-item {
  width: 100%;
  min-height: 58px;
  margin: 2px 0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.vehicle-item:hover { background: #f1f5f3; }
.vehicle-item.active { background: var(--green-100); color: var(--green-900); }
.vehicle-item.inactive { opacity: .55; }
.vehicle-name { display: block; font-size: 13px; font-weight: 750; }
.vehicle-plate { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.vehicle-arrow { color: #87938f; }

.records-panel { overflow: hidden; box-shadow: none; }
.records-head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.records-head h2 { margin: 0; font-size: 18px; }
.records-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.records-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.bill-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}
.bill-summary > div { min-height: 74px; padding: 14px 18px; border-right: 1px solid var(--line); }
.bill-summary > div:last-child { border-right: 0; }
.bill-summary span { display: block; color: var(--muted); font-size: 12px; }
.bill-summary strong { display: block; margin-top: 6px; font-size: 19px; }

.records-table-head, .day-summary {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1fr) 130px 96px;
  align-items: center;
  gap: 12px;
}

.records-table-head.bill-head, .bill-main {
  grid-template-columns: 118px minmax(180px, 1fr) 100px 110px 88px;
}

.bill-row { border-bottom: 1px solid var(--line); }
.bill-row:last-child { border-bottom: 0; }
.bill-main { min-height: 66px; padding: 10px 18px; display: grid; align-items: center; gap: 12px; font-size: 13px; }
.bill-date { font-weight: 750; }
.bill-date small, .bill-place small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.bill-place { min-width: 0; }
.bill-place strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-amount { color: var(--green-700); font-weight: 800; font-variant-numeric: tabular-nums; }

.pagination { min-height: 58px; padding: 10px 18px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); background: #fafbfb; }
.pagination span { color: var(--muted); font-size: 12px; }

.records-table-head {
  min-height: 42px;
  padding: 0 18px;
  color: var(--muted);
  background: #f5f7f6;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.day-row { border-bottom: 1px solid var(--line); }
.day-row:last-child { border-bottom: 0; }
.day-row.invalid { background: #fafbfb; color: #a2aaa8; }
.day-summary { min-height: 58px; padding: 9px 18px; font-size: 13px; }
.day-date { font-weight: 750; }
.day-place { overflow: hidden; color: #34413e; text-overflow: ellipsis; white-space: nowrap; }
.day-duration { font-variant-numeric: tabular-nums; }

.details-button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5d1;
  border-radius: 5px;
  background: white;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 750;
}

.details-button[aria-expanded="true"] { background: var(--green-900); color: white; border-color: var(--green-900); }
.detail-drawer { padding: 0 18px 18px; background: #f7f9f8; }
.record-detail { padding: 17px 0; border-top: 1px dashed #cbd5d1; }
.record-detail:first-child { border-top: 0; }

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.meta-item span { display: block; color: var(--muted); font-size: 11px; }
.meta-item strong { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-actions { margin: 0 0 14px; display: flex; justify-content: flex-end; }
.detail-photo { margin: 0; }
.detail-photo figcaption { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.photo-zoom-trigger { width: 100%; position: relative; padding: 0; overflow: hidden; border: 1px solid #28312f; border-radius: 6px; background: #111; cursor: zoom-in; }
.photo-zoom-trigger:focus-visible { outline: 3px solid rgba(232,117,36,.55); outline-offset: 2px; }
.photo-zoom-trigger img { width: 100%; max-height: 420px; display: block; background: #111; object-fit: contain; }
.photo-zoom-trigger > span { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: white; background: rgba(13,25,22,.84); font-size: 23px; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.no-photo { min-height: 130px; display: grid; place-items: center; border: 1px dashed #cbd5d1; border-radius: 6px; color: var(--muted); background: white; font-size: 13px; }

body.viewer-open { overflow: hidden; }
.photo-viewer { position: fixed; z-index: 200; inset: 0; display: flex; flex-direction: column; color: white; background: rgba(8,12,11,.97); }
.photo-viewer-bar { min-height: 62px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.14); background: #111817; }
.photo-viewer-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.photo-viewer-tools { display: flex; align-items: center; gap: 7px; }
.photo-viewer-tools button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 5px; color: white; background: #25302d; font-weight: 750; }
.photo-viewer-tools button:hover { background: #35433f; }
.photo-viewer-tools span { width: 56px; color: rgba(255,255,255,.72); text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.photo-viewer-stage { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.photo-viewer-canvas { min-width: 100%; min-height: 100%; padding: 16px; display: grid; place-items: center; }
.photo-viewer-canvas img { max-width: none; max-height: none; display: block; box-shadow: 0 8px 30px rgba(0,0,0,.35); user-select: none; }

.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }
.empty-icon { margin-bottom: 10px; font-size: 30px; }

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 24, 21, .55);
}

.modal { width: min(430px, 100%); max-height: calc(100vh - 40px); padding: 22px; overflow-y: auto; background: white; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.wide-modal { width: min(760px, 100%); }
.modal h2 { margin: 0 0 18px; font-size: 19px; }
.modal-title { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title h2 { margin-bottom: 4px; }
.modal-title p { margin: 0; color: var(--muted); font-size: 12px; }
.modal .field + .field { margin-top: 14px; }
.modal .field-grid .field { margin-top: 0; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.confirm-modal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.fuel-row.compact { margin-top: 0; }
.form-hint { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.manual-photo-field .photo-trigger { min-height: 92px; }
.manual-photo-field .photo-preview img { max-height: 320px; }

.login-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background: #eef3f0;
}

.login-panel {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(20, 54, 46, .13);
}

.login-brand { display: flex; align-items: center; gap: 12px; color: var(--green-900); }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 17px; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.login-copy { margin: 34px 0 24px; }
.login-copy h1 { margin: 0; font-size: 25px; letter-spacing: 0; }
.login-copy p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.login-button { width: 100%; margin-top: 18px; }

.search-results { margin-bottom: 16px; overflow: hidden; }
.search-results-head { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; background: #f5f7f6; border-bottom: 1px solid var(--line); }
.search-results-head strong { font-size: 14px; }
.search-result-item { padding: 12px 16px; display: grid; grid-template-columns: 120px 1fr 140px; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.search-result-item:last-child { border-bottom: 0; }
.result-vehicle { color: var(--green-700); font-weight: 700; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 6px;
  color: white;
  background: #17211f;
  box-shadow: 0 8px 30px rgba(0,0,0,.24);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .2s;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .checkin-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .vehicle-sidebar { overflow-x: auto; }
  .sidebar-head { min-width: 180px; }
  .vehicle-list { display: flex; gap: 6px; padding: 8px; }
  .vehicle-item { min-width: 170px; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { height: 58px; }
  .topbar-inner { padding: 0 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; }
  .brand-title { font-size: 16px; }
  .brand-sub { display: none; }
  .page { padding: 18px 12px 28px; overflow-x: hidden; }
  .page-heading { margin-bottom: 14px; align-items: flex-start; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { font-size: 12px; }
  .form-panel { padding: 17px 14px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-section + .form-section { margin-top: 22px; padding-top: 21px; }
  .field.full { grid-column: auto; }
  .submit-bar { position: sticky; bottom: 8px; z-index: 9; margin: 22px -7px -8px; padding: 9px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 7px; }
  .submit-bar .button { width: 100%; }
  .summary-panel { display: none; }
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) 118px; }
  .admin-toolbar .control, .admin-toolbar .search-wrap { min-width: 0; }
  .admin-toolbar .button { min-height: 40px; }
  .records-head { padding: 14px; align-items: flex-start; flex-direction: column; }
  .records-actions { width: 100%; justify-content: flex-start; }
  .bill-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-summary > div { min-height: 66px; padding: 12px; }
  .bill-summary strong { font-size: 16px; }
  .records-table-head { display: none; }
  .day-summary { grid-template-columns: 92px minmax(0, 1fr) 70px; gap: 8px; padding: 10px 12px; }
  .day-summary .details-button { grid-column: 1 / -1; width: 100%; }
  .detail-drawer { padding: 0 12px 14px; }
  .detail-meta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-viewer-bar { padding: 8px; gap: 8px; }
  .photo-viewer-bar strong { display: none; }
  .photo-viewer-tools { width: 100%; justify-content: center; }
  .photo-viewer-tools button { min-width: 42px; }
  .photo-viewer-canvas { padding: 8px; }
  .bill-main { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 13px 12px; }
  .bill-date { grid-column: 1; }
  .bill-place { grid-column: 1 / -1; grid-row: 2; }
  .bill-main > span:nth-child(3) { grid-column: 1; grid-row: 3; }
  .bill-amount { grid-column: 2; grid-row: 3; text-align: right; }
  .bill-main .details-button { grid-column: 2; grid-row: 1; }
  .pagination { justify-content: center; }
  .login-page { padding: 16px; }
  .login-panel { padding: 24px 20px; }
  .toast { top: 72px; bottom: auto; transform: translate(-50%, -12px); }
  .toast.show { transform: translate(-50%, 0); }
  .search-result-item { grid-template-columns: 1fr 1fr; }
  .search-result-item .result-place { grid-column: 1 / -1; }
}

@media print {
  .topbar, .admin-toolbar, .vehicle-sidebar, .details-button { display: none !important; }
  .page { width: 100%; padding: 0; }
  .admin-layout { display: block; }
  .records-panel { border: 0; }
}
