.print-only { display: none; }
@page { size: letter; margin: 14mm 14mm 16mm; }
@media print {
  /* Paper is always white with black ink, whatever the screen theme (--print-* tokens are not themed). */
  body { background: var(--print-paper); color: var(--print-ink); font-size: 12pt; }
  main, .foot, .mbar { display: none !important; }
  .print-only { display: block; font-family: system-ui, Arial, sans-serif; color: var(--print-ink); }
  .print-only h1 { font-size: 20pt; margin: 0 0 6pt; letter-spacing: 0; }
  .print-only h2 { font-size: 9pt; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--print-muted); margin: 14pt 0 2pt; break-after: avoid; page-break-after: avoid; }
  .print-only p { margin: 3pt 0; }
  .print-only table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 6pt 0; }
  .print-only table, .print-only tr { break-inside: avoid; page-break-inside: avoid; }
  .print-only th, .print-only td { border: 0; border-bottom: 0.5pt solid var(--print-rule); padding: 3pt 6pt; text-align: left; font-size: 10pt; line-height: 1.25; font-variant-numeric: tabular-nums; }
  .print-only thead th {
    background: none; border-bottom: 1pt solid var(--print-ink); font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    vertical-align: bottom; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .print-only th:first-child, .print-only td:first-child { padding-left: 0; }
  .print-only th:last-child, .print-only td:last-child { padding-right: 0; }
  .print-only tbody td:nth-child(5):has(+ td:empty) { font-style: italic; color: var(--print-muted); }
  .print-only tfoot td { border-bottom: 0; }
  .print-only th:nth-child(1), .print-only td:nth-child(1) { width: 16%; }
  .print-only th:nth-child(2), .print-only td:nth-child(2) { width: 17%; }
  .print-only th:nth-child(3), .print-only td:nth-child(3) { width: 21%; }
  .print-only th:nth-child(4), .print-only td:nth-child(4) { width: 12%; }
  .print-only th:nth-child(5), .print-only td:nth-child(5),
  .print-only th:nth-child(6), .print-only td:nth-child(6) { width: 17%; text-align: right; }
  .print-only tfoot td { font-weight: 700; }
  .print-only tfoot td:not(:first-child) { text-align: right; }
  .print-only tfoot tr:first-child td { border-top: 1.5pt solid var(--print-ink); }
  .print-only > h1 { padding-bottom: 6pt; border-bottom: 1.5pt solid var(--print-ink); margin-bottom: 8pt; }
  .print-only > h1 + p, .print-only > h1 + p + p {
    display: inline-block; min-width: 40%; margin: 0 18pt 8pt 0; font-size: 12pt; font-weight: 600; vertical-align: top;
  }
  .print-only .pl { display: block; font-size: 8pt; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--print-muted); }
  .print-only .pv { font-size: 12pt; font-weight: 600; }
  .print-only .pt {
    display: inline-block; margin: 16pt 14pt 0 0; padding: 6pt 10pt; border: 1pt solid var(--print-ink); vertical-align: middle;
    font-size: 14pt; font-weight: 700; font-variant-numeric: tabular-nums; break-inside: avoid; page-break-inside: avoid;
  }
  .print-only table + p:not(.pf), .print-only .pt + p:not(.pf) { margin-top: 12pt; font-size: 11pt; font-variant-numeric: tabular-nums; }
  .print-only .pt + p:not(.pf) { display: inline-block; margin-top: 16pt; vertical-align: middle; }
  .print-only .pf { margin-top: 12pt; font-size: 9pt; color: var(--print-muted); }
  .print-only .sig { display: flex; gap: 24pt; margin-top: 28pt; break-inside: avoid; page-break-inside: avoid; }
  .print-only .sig > span { flex: 1; border-top: 0.75pt solid var(--print-ink); padding-top: 3pt; font-size: 9pt; color: var(--print-muted); }
  .print-only .sig > span:first-child { flex: 2; }
  .print-only:not(:has(.sig)) .pf::before {
    content: "Employee signature\9 Date"; display: block; white-space: pre; tab-size: 360pt;
    margin: 28pt 0 14pt; padding-top: 3pt; font-size: 9pt; color: var(--print-muted); break-inside: avoid; page-break-inside: avoid;
    background:
      linear-gradient(var(--print-ink), var(--print-ink)) left top / 336pt 0.75pt no-repeat,
      linear-gradient(var(--print-ink), var(--print-ink)) 360pt 0 / calc(100% - 360pt) 0.75pt no-repeat;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
