/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.form-header {
  background: #1a3a5c;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.header-text {
  flex: 1;
  text-align: center;
}

.form-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.shop-info {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Sections */
fieldset.section, .section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 16px 20px;
  margin: 0;
  border-top: none;
}

fieldset.section:last-of-type {
  border-radius: 0 0 12px 12px;
}

legend {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  padding: 0 8px;
}

/* Form Layout */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-note {
  text-transform: none;
  font-weight: 400;
  font-size: 0.7rem;
  color: #888;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fafafa;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: #1a3a5c;
  outline: none;
  background: #fff;
}

textarea { resize: vertical; }

/* VIN Row */
.vin-row { align-items: flex-end; }

.vin-buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 2px;
}

/* Scanner */
.scanner-container {
  margin: 12px 0;
  text-align: center;
}

.vin-video-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto 8px;
  border: 2px solid #1a3a5c;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

#vinVideo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vin-scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: rgba(255, 80, 80, 0.8);
  box-shadow: 0 0 8px rgba(255, 80, 80, 0.8);
  pointer-events: none;
}

.vin-video-wrap::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 25%;
  bottom: 25%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  pointer-events: none;
}

.scanner-hint {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
  padding: 0 8px;
  line-height: 1.4;
}

.photo-preview {
  margin: 10px 0;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
}

.photo-preview-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 6px;
}

#photoPreviewImg {
  max-width: 100%;
  max-height: 240px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.scanner-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.scanner-actions .btn {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
}

.status-message {
  padding: 8px 14px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 0.85rem;
}

.status-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-message.info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.pdf-status {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

.pdf-status.info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.pdf-status.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.pdf-status.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Inspection Points - checkbox grid */
.inspection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 4px;
}

.check-item:hover { background: #f0f4f8; }

/* Custom checkbox — works on screen and prints as clear empty box */
.check-item input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #1a3a5c;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

.check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: -1px;
  width: 6px;
  height: 12px;
  border: solid #1a3a5c;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Large CEL row — text first, large rectangular box right next to it */
.check-item-large {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a5c;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 2px solid #1a3a5c;
  border-radius: 6px;
  background: #f0f4f8;
  justify-content: flex-start;
  gap: 14px;
}

.check-item-large .check-label { flex: 0 0 auto; }

.check-item-large input[type="checkbox"].cel-box {
  width: 160px;
  height: 36px;
  min-width: 160px;
  border: 2.5px solid #1a3a5c;
  border-radius: 4px;
}

.check-item-large input[type="checkbox"].cel-box:checked::after {
  left: 50%;
  top: 50%;
  width: 14px;
  height: 24px;
  border-width: 0 4px 4px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* Optional field tag */
.optional-tag {
  text-transform: none;
  font-weight: 400;
  font-size: 0.65rem;
  color: #888;
  font-style: italic;
  letter-spacing: 0;
}

/* Marketing opt-in */
.marketing-optin {
  margin-top: 4px;
  padding: 10px 12px;
  background: #f0f4f8;
  border: 1px solid #d0dbe5;
  border-radius: 6px;
}

.optin-label a {
  color: #1a3a5c;
  text-decoration: underline;
}

/* Notice at Collection */
.collection-notice {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #555;
}

.collection-notice a {
  color: #1a3a5c;
  text-decoration: underline;
}

.nav-sep {
  color: #ccc;
  margin: 0 4px;
}

.app-version {
  display: block;
  font-size: 0.7rem;
  color: #999;
  margin-top: 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.app-version-bar {
  text-align: center;
  padding: 12px 0 4px;
  margin-top: 8px;
  border-top: 1px solid #eee;
}

/* Privacy Policy page */
.policy-content {
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 32px 40px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.policy-content h2 {
  color: #1a3a5c;
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}

.policy-content p { margin-bottom: 10px; }

.policy-content ul {
  margin: 8px 0 12px 24px;
}

.policy-content li { margin-bottom: 6px; }

.policy-effective {
  padding: 10px 14px;
  background: #f0f4f8;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.policy-nav {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

@media (max-width: 600px) {
  .policy-content { padding: 20px 16px; }
}

.optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #333;
  cursor: pointer;
  line-height: 1.5;
}

.optin-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  accent-color: #1a3a5c;
  cursor: pointer;
}

.optin-note {
  color: #888;
  font-weight: 400;
  font-size: 0.8rem;
}

/* Cal/Fed row */
.cal-fed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 6px 4px;
}

.cal-fed-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a3a5c;
  text-transform: uppercase;
}

/* Aftermarket lines */
.aftermarket-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.write-line {
  border: none !important;
  border-bottom: 2px solid #333 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 10px 6px !important;
  font-size: 1.15rem !important;
  min-height: 36px;
}

.write-line:focus {
  border-bottom-color: #1a3a5c !important;
  background: transparent !important;
}

/* Inspection Results - radio options inline */
.results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.result-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a3a5c;
}

.result-option {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  padding: 6px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
}

.result-option:hover { border-color: #1a3a5c; }

.result-option input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1a3a5c;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.price-item label {
  display: block;
}

.price-item input {
  font-size: 1rem;
}

.price-total input {
  font-weight: 700;
  border-color: #1a3a5c !important;
}

/* Authorization */
.auth-text {
  margin-bottom: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #444;
}

.auth-text p { margin-bottom: 6px; }
.spanish-text { font-style: italic; color: #666; }
.disclaimer { font-size: 0.72rem; color: #888; }

/* Signature areas */
.signature-area {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-top: 8px;
}

/* Drawable signature */
.signature-area-draw {
  align-items: stretch;
}

.sig-line.sig-draw { flex: 3; }

.sig-canvas-wrap {
  position: relative;
  width: 100%;
}

.signature-canvas {
  width: 100%;
  height: 110px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 6px;
  touch-action: none;
  display: block;
  cursor: crosshair;
}

.btn-clear-sig {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
}

.btn-clear-sig:hover { background: #f0f0f0; }

.sig-line {
  flex: 2;
}

.sig-line.sig-date {
  flex: 1;
}

.sig-line label {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 2px;
}

.sig-field {
  border-bottom: 2px solid #333;
  min-height: 32px;
  display: flex;
  align-items: flex-end;
}

.sig-field input {
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  background: transparent !important;
  font-size: 1rem;
  width: 100%;
}

.sig-field input:focus {
  outline: none;
}

.auth-check {
  margin-top: 10px;
  align-items: center;
}

.auth-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
}

.auth-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Tech signature (print only) */
.tech-sig-section {
  border-top: none;
  padding-top: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary { background: #1a3a5c; color: #fff; }
.btn-primary:hover { background: #2a5a8c; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }
.btn-outline { background: #fff; color: #1a3a5c; border: 2px solid #1a3a5c; }
.btn-outline:hover { background: #f0f4f8; }
.btn-scan { background: #28a745; color: #fff; }
.btn-scan:hover { background: #218838; }
.btn-photo { background: #fd7e14; color: #fff; }
.btn-photo:hover { background: #e66a00; }
.btn-lookup { background: #17a2b8; color: #fff; }
.btn-lookup:hover { background: #138496; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-link { background: none; color: #1a3a5c; text-decoration: underline; padding: 8px 0; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; }

.form-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.form-actions .btn { flex: 1; min-width: 150px; }

.nav-bar { text-align: center; margin-bottom: 24px; }

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 { color: #28a745; margin-bottom: 8px; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

/* Screen / Print visibility */
.print-only { display: none; }

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 8px; }
  .form-header { padding: 16px; }
  .form-header h1 { font-size: 1.2rem; }
  fieldset.section { padding: 12px; }
  .form-row { flex-direction: column; gap: 8px; }
  .vin-buttons { justify-content: stretch; }
  .vin-buttons .btn { flex: 1; }
  .inspection-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .form-actions { flex-direction: column; }
  .form-actions .btn { min-width: unset; }
  .signature-area { flex-direction: column; gap: 8px; }
}

/* ========== PRINT STYLES ========== */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body {
    background: #fff;
    font-size: 8.5pt;
    line-height: 1.3;
    margin: 0;
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .screen-only { display: none !important; }
  .print-only { display: block !important; }

  /* Header compact */
  .form-header {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
    border-radius: 0;
    padding: 6px 8px;
  }

  .form-header { display: flex; align-items: center; gap: 8px; }
  .header-logo { width: 50px; height: 50px; padding: 2px; }
  .form-header h1 { font-size: 12pt; margin-bottom: 0; }
  .shop-info { font-size: 7.5pt; }

  /* Sections compact */
  fieldset.section, .section {
    border: 1px solid #999;
    padding: 4px 8px 6px;
    margin: 0;
    border-top: none;
    page-break-inside: avoid;
  }

  legend {
    font-size: 8pt;
    color: #000;
    padding: 0 4px;
  }

  /* Form fields compact */
  .form-row { margin-bottom: 3px; gap: 6px; }

  label {
    font-size: 6.5pt;
    margin-bottom: 1px;
  }

  input[type="text"],
  input[type="tel"],
  input[type="date"],
  select {
    border: none !important;
    border-bottom: 1px solid #999 !important;
    border-radius: 0 !important;
    padding: 1px 2px !important;
    font-size: 8.5pt;
    background: transparent !important;
    min-height: 16px;
  }

  /* Inspection grid compact */
  .inspection-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1px 8px;
  }

  .check-item {
    font-size: 8pt;
    padding: 2px 0;
    gap: 5px;
  }

  .check-item input[type="checkbox"] {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border: 1.2px solid #000 !important;
    background: #fff !important;
    border-radius: 2px;
  }

  .check-item input[type="checkbox"]:checked::after {
    left: 2px;
    top: -2px;
    width: 4px;
    height: 9px;
    border-color: #000;
    border-width: 0 1.5px 1.5px 0;
  }

  /* Large CEL on print */
  .check-item-large {
    font-size: 10pt;
    font-weight: 700;
    padding: 4px 8px;
    margin-bottom: 4px;
    border: 1.2px solid #000;
    background: #fff !important;
    border-radius: 3px;
    justify-content: flex-start;
    gap: 10px;
  }

  .check-item-large input[type="checkbox"].cel-box {
    width: 130px;
    height: 22px;
    min-width: 130px;
    border: 1.5px solid #000 !important;
    border-radius: 2px;
  }

  .check-item-large input[type="checkbox"].cel-box:checked::after {
    left: 50%;
    top: 50%;
    width: 9px;
    height: 15px;
    border-width: 0 2.5px 2.5px 0;
    border-color: #000;
    transform: translate(-50%, -60%) rotate(45deg);
  }

  /* Cal/Fed print */
  .cal-fed-row {
    gap: 10px;
    margin-bottom: 4px;
    padding: 2px 0;
  }

  .cal-fed-label { font-size: 8pt; }

  /* Aftermarket print */
  .aftermarket-lines {
    gap: 10px;
    padding: 4px 0;
  }

  .write-line {
    border-bottom: 1px solid #000 !important;
    padding: 2px 0 !important;
    min-height: 14px;
    font-size: 8.5pt;
  }

  /* Results compact */
  .result-label { font-size: 8pt; }

  .result-option {
    font-size: 8pt;
    padding: 2px 6px;
    border: 1px solid #999;
    border-radius: 3px;
  }

  .result-option input[type="radio"] {
    width: 11px;
    height: 11px;
  }

  /* Pricing compact */
  .pricing-grid { gap: 6px; }
  .price-item label { font-size: 6.5pt; }
  .price-item input { font-size: 8.5pt; }
  .label-note { font-size: 6pt; }

  /* Auth compact */
  .auth-text { margin-bottom: 4px; font-size: 6.5pt; line-height: 1.3; }
  .auth-text p { margin-bottom: 2px; }
  .disclaimer { font-size: 6pt; }

  /* Signatures compact */
  .signature-area { gap: 12px; margin-top: 4px; }

  .sig-line label { font-size: 6pt; }

  .sig-field {
    min-height: 22px;
    border-bottom: 1px solid #333;
  }

  .sig-field input {
    font-size: 8.5pt;
    padding: 1px 0 !important;
  }

  /* Drawn signature on print */
  .signature-canvas {
    height: 56px;
    border: 1px solid #000 !important;
    border-radius: 3px;
  }

  /* Tech signature visible in print */
  .tech-sig-section {
    border: 1px solid #999;
    border-top: none;
    padding: 4px 8px 6px;
  }

  /* No page break */
  html, body { height: auto; }

  @page {
    margin: 0.3in;
    size: letter;
  }
}

/* ========== Records Page ========== */
.records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.backup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.backup-bar .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.record-count {
  margin-left: auto;
  color: #888;
  font-size: 0.85rem;
}

.search-bar {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}

.search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.records-table th {
  background: #1a3a5c;
  color: #fff;
  padding: 10px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.records-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.records-table tr:hover td { background: #f8f9fa; }
.records-table .actions { white-space: nowrap; }
.records-table .actions .btn { padding: 6px 12px; font-size: 0.8rem; margin-right: 4px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pass { background: #d4edda; color: #155724; }
.badge-fail { background: #f8d7da; color: #721c24; }
.badge-abort { background: #fff3cd; color: #856404; }
.badge-pending { background: #e2e3e5; color: #383d41; }
.badge-optin { background: #cce5ff; color: #004085; padding: 2px 6px; }

.empty-state { text-align: center; padding: 48px 24px; color: #888; }
.empty-state h3 { margin-bottom: 8px; }

.detail-modal .modal-content {
  max-width: 600px;
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.detail-item label { display: block; font-size: 0.7rem; color: #888; margin-bottom: 2px; }
.detail-item span { font-size: 0.95rem; }

@media (max-width: 600px) {
  .records-table { font-size: 0.8rem; }
  .records-table th, .records-table td { padding: 8px; }
  .detail-grid { grid-template-columns: 1fr; }
}
