/* Printing the purchase order generator prints only the order. Loaded with
   media="print" on that page alone. */
@page { size: A4; margin: 14mm; }
body { background: #fff; }
.skip, .site-header, .site-footer, .page-head, .toast { display: none !important; }
main.wrap { display: block; max-width: none; padding: 0; }
main.wrap > :not(.grid), .grid > :not(.results), .results > :not(.po-scroll) { display: none !important; }
.grid, .results { display: block; }
.po-scroll { overflow: visible; }
.po-doc { border: 0; border-radius: 0; padding: 0; min-width: 0; }
.po-items thead { display: table-header-group; }
.po-items tr, .po-clauses li, .po-sign, .po-parties { break-inside: avoid; }
/* A little tighter than on screen, so a usual order fits on one page. */
.po-doc { gap: 12px; font-size: 12px; line-height: 1.4; }
.po-head { padding-bottom: 8px; }
.po-items th, .po-items td { padding: 4px 6px; }
.po-terms th, .po-terms td { padding: 4px 0; }
.po-clauses { gap: 3px; }
.po-sign { margin-top: 4px; }
.po-sign-box .po-line { height: 32px; }
