#inspection-form { display: grid; gap: 14px; }
.inspection-section-title { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.inspection-section-title span, .field-note { color: var(--muted); font-size: 13px; }
.field-note { margin-top: 12px; }
.inspection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wide-field { grid-column: 1 / -1; }
.check-group { border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; overflow: clip; }
.check-group > summary { padding: 11px 13px; background: #f3f7f3; font-weight: 650; cursor: pointer; }
.check-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) minmax(135px, 160px); gap: 10px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--border); }
.check-number { padding-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.check-description { padding-top: 6px; overflow-wrap: anywhere; }
.check-result { font-size: 14px; }
.check-result.attention { border-color: #ac6553; color: #6f3121; }
.check-notes { grid-column: 2 / -1; }
.check-notes summary { cursor: pointer; color: #3e6350; font-size: 13px; }
.check-notes .inspection-grid { margin-top: 9px; grid-template-columns: 1fr 1fr; }
.axle-group > div { padding: 10px 12px; }
.axle-table { min-width: 430px; }
.axle-table th, .axle-table td { padding: 6px 8px; }
.axle-table th[scope="row"] { background: #fff; width: 29%; }
.axle-fields { margin-top: 10px; }
.inspection-footer { display: flex; justify-content: flex-end; }
#inspection-preview { max-width: 860px; padding: 16px; margin: auto; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
#inspection-preview #print-page { display: block; background: #fff; padding: clamp(12px, 4vw, 35px); border: 1px solid var(--border); border-radius: 8px; }
#inspection-preview #print-page:focus { outline: none; }
#print-page h2 { margin-top: 16px; margin-bottom: 4px; }
#print-page td { vertical-align: top; }
#print-page td:last-child { white-space: pre-wrap; }
@media (max-width: 960px) {
  .inspection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .inspection-grid { grid-template-columns: minmax(0, 1fr); }
  .check-row { grid-template-columns: 24px minmax(0, 1fr); gap: 6px 8px; }
  .check-row select, .check-notes { grid-column: 2; }
  .check-notes .inspection-grid { grid-template-columns: minmax(0, 1fr); }
  .inspection-footer button { width: 100%; }
}
@page { size: A4; margin: 12mm; }
@media print {
  #inspection-preview { max-width: none; padding: 0; }
  .preview-toolbar { display: none; }
  #inspection-preview #print-page { padding: 0; border: 0; }
  #print-page p { margin: 0 0 3pt; }
  #print-page table { margin: 3pt 0 10pt; font-size: 9pt; }
  #print-page h2 { margin-top: 10pt; break-after: avoid; }
  #print-page th { background: none; }
  #print-page td { vertical-align: top; }
  #print-page td:last-child { white-space: pre-wrap; }
  .inspection-print-fields th { width: 37%; }
  .inspection-print-checks th:first-child { width: 7%; }
  .inspection-print-checks th:nth-child(2) { width: 47%; }
  .inspection-print-checks th:nth-child(3) { width: 15%; }
  .inspection-print-signatures { break-inside: avoid; }
}
