/* LabList: printed sheet (A4). Used for paper and for "Save as PDF". */

@page {
  size: A4;
  margin: 14mm 14mm 16mm;
  @bottom-right {
    content: counter(page) " / " counter(pages);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 8pt;
    color: #555;
  }
}

/* Only the sheet is printed */
html, body { background: #fff !important; }
body { margin: 0; color: #000; font-size: 9.5pt; line-height: 1.3; }
.site-header, #selection, .results-head, .actions, .jump { display: none !important; }
.layout { display: block; max-width: none; padding: 0; margin: 0; }
#results { position: static; max-height: none; overflow: visible; border: 0; padding: 0; background: none; }
.sheet { margin: 0; padding: 0; border: 0; }

/* Header block */
.sheet-header { border-bottom: 1.5pt solid #000; padding-bottom: 6pt; margin-bottom: 8pt; }
.sheet-brand { font-size: 7.5pt; color: #444; }
.sheet-title { font-size: 15pt; margin: 1pt 0 8pt; }
.sheet-fields { font-size: 10pt; gap: 4pt 24pt; }
.blank { border-bottom: 0.75pt solid #000; height: 1.1em; }
.sheet-patient { color: #000; font-size: 9pt; margin-top: 6pt; }

/* Two columns of category blocks, like a lab requisition */
#results-list { column-count: 2; column-gap: 9mm; }
.category {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 7pt;
}
.category h3 {
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 2pt;
  padding: 0 0 1.5pt;
  border-bottom: 1pt solid #000;
  break-after: avoid;
}
.markers li { font-size: 9pt; padding: 0.9pt 0; gap: 5pt; }
.markers .subgroup { color: #333; font-size: 8pt; padding-top: 2pt; }
.markers .in-subgroup { padding-left: 8pt; }
.markers .reference { color: #333; padding-left: 21pt; }
.box { width: 8pt; height: 8pt; border: 0.9pt solid #000; border-radius: 0; transform: translateY(0.5pt); }
.badge { font-size: 6.5pt; padding: 0 4pt; border: 0.6pt solid #000; color: #000; }
.empty { display: none; }

.sheet-disclaimer { color: #333; font-size: 7.5pt; margin-top: 10pt; border-top: 0.5pt solid #999; padding-top: 4pt; break-inside: avoid; }

/* Exact colors and borders, no browser "economy" printing */
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Show why and preparation notes */
.why { font-size: 7pt; color: #444; }
.prep { break-inside: avoid; margin-top: 8pt; }
.prep h3 { font-size: 9.5pt; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 3pt; padding-bottom: 1.5pt; border-bottom: 1pt solid #000; }
.prep li { font-size: 8.5pt; margin: 0 0 3pt; }
.prep-tests { font-size: 7.5pt; color: #444; }
