/* Printer-friendly forms. Everything inside #printRoot is hidden on screen and
   is the ONLY thing printed. */
.print-only { display: none; }

@media print {
  @page { margin: 0.5in; }
  body { background: #fff; color: #000; padding: 0; font-size: 11pt; font-family: 'DM Sans', Arial, sans-serif; }
  .no-print, .topbar, .sidebar, .bottomnav, .main, .toast, .modal-bg { display: none !important; }
  .print-only { display: block !important; }

  .pf { page-break-after: always; }
  .pf:last-child { page-break-after: auto; }
  .pf-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #6DB344; padding-bottom: 8px; margin-bottom: 14px; }
  .pf-head .co { font-size: 18pt; font-weight: 700; }
  .pf-head .co small { display: block; font-size: 9pt; font-weight: 500; color: #555; }
  .pf-head .title { text-align: right; }
  .pf-head .title b { font-size: 14pt; display: block; }
  .pf-head .title span { font-size: 9pt; color: #555; }
  .pf h3 { font-size: 10.5pt; text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }

  table.pt { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  table.pt th, table.pt td { border: 1px solid #bbb; padding: 4px 6px; text-align: left; vertical-align: top; }
  table.pt th { background: #eee; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .3px; }
  table.pt tr.cat td { background: #e8f3e0; font-weight: 700; text-transform: uppercase; font-size: 8.5pt; }
  table.pt td.overdue { color: #b3261e; font-weight: 700; }
  table.pt td.soon { color: #a85f00; font-weight: 700; }
  table.pt td.box { width: 22px; text-align: center; }
  .boxes { white-space: nowrap; }
  .box-sq { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #333; margin-right: 3px; vertical-align: middle; }
  .box-sq.filled { background: #333; }

  .kvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; font-size: 9.5pt; }
  .kvp .k { color: #666; font-size: 8pt; text-transform: uppercase; letter-spacing: .3px; }
  .kvp .v { font-weight: 600; min-height: 14px; border-bottom: 1px dotted #999; }

  .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; font-size: 9pt; }
  .sig div { border-top: 1px solid #000; padding-top: 4px; }
  .lines { border-bottom: 1px solid #999; height: 22px; }
  .lines + .lines { margin-top: 2px; }
  .pf-foot { margin-top: 14px; font-size: 8pt; color: #777; display: flex; justify-content: space-between; }
  .dvir .dv-title { font-size: 20pt; font-weight: 700; text-align: center; margin: 0 0 2pt; }
  .dvir .dv-sub { text-align: center; font-size: 10pt; margin-bottom: 12pt; }
  .dvir .dv-fields { display: flex; gap: 18pt; flex-wrap: wrap; margin-bottom: 8pt; font-size: 10pt; }
  .dvir .dv-field { display: flex; gap: 6pt; align-items: baseline; flex: 1; min-width: 150pt; }
  .dvir .dv-field:nth-child(2) { flex: 1.6; }
  .dvir .lb { font-weight: 700; text-transform: uppercase; font-size: 9pt; letter-spacing: .5px; white-space: nowrap; }
  .dvir .vl { display: inline-block; flex: 1; border-bottom: 1px solid #000; min-width: 90pt; padding: 0 4pt; font-weight: 500; }
  .dvir .vl.short { flex: 0 0 90pt; min-width: 90pt; }
  .dvir .dv-cols { column-count: 3; column-gap: 16pt; font-size: 10pt; }
  .dvir .dv-line { break-inside: avoid; padding: 2pt 0; display: flex; align-items: center; gap: 6pt; }
  .dvir .dv-remarks { margin-top: 10pt; font-size: 10pt; min-height: 40pt; border-bottom: 1px solid #000; padding-bottom: 4pt; }
  .dvir .lines { height: 20px; }
  .dvir .dv-sign { margin-top: 12pt; font-size: 10pt; display: flex; flex-direction: column; gap: 9pt; }
  .dvir .dv-sigline { display: flex; align-items: baseline; gap: 6pt; }
  .dvir .dv-sigline .vl { min-width: 200pt; }
  .two-col { column-count: 2; column-gap: 20px; }
  .two-col h3 { break-after: avoid; }
  .two-col table { break-inside: avoid; margin-bottom: 8px; }
}
