/* Purchase styles copied and scoped from legacy purchasePrintHtml. */
.paper-document{width:100%;min-width:0;overflow-wrap:anywhere;break-inside:auto}
.paper-document table{width:100%;border-collapse:collapse;table-layout:fixed}
.paper-document .jobsheet th,.paper-document .jobsheet td,.production-document .sheet-view th,.production-document .sheet-view td{border:1px solid var(--line-strong,#9aa39d);padding:5px 6px;text-align:center;vertical-align:middle;font-size:12px}
.paper-document .jobsheet th{white-space:nowrap;background:var(--surface-2,#f8faf8)}
.paper-document .jobsheet td.blank{background:repeating-linear-gradient(135deg,transparent 0 6px,var(--line,#d9e0db) 6px 7px)}
.paper-document .jobsheet td.used{background:var(--accent-soft,#e2f3e9);color:var(--accent-soft-ink,#1e8e5a);font-weight:600}
.paper-document .jobsheet td.mark{font-weight:700;color:var(--accent,#1e8e5a)}
.paper-document .js-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.paper-document .js-title h2{font-size:20px;margin:0}
.paper-document .js-block{break-inside:avoid}
.paper-document .js-h{font-size:13px;margin:10px 0 5px}
.paper-document td,.paper-document .dispatch-documents{white-space:pre-wrap}
.paper-document .ink{margin-top:6px}
.paper-document .confirmation-images{display:flex;flex-wrap:wrap;gap:10px}
.paper-document .confirmation-images h3{flex-basis:100%}
.paper-document .confirmation-images figure{margin:0;max-width:45%;break-inside:avoid}
.paper-document .confirmation-images img{max-width:100%;max-height:180px;object-fit:contain}
.production-document .sheet-block{margin:10px 0;break-inside:avoid}
.production-document .sheet-block h4{margin:8px 0 4px}
.production-document .production-totals{margin-top:10px}
.dispatch-document .dispatch-lane{margin:12px 0;break-inside:avoid}
.dispatch-document .dispatch-lane>h2{font-size:24px;border-bottom:2px solid currentColor}
.dispatch-document .dispatch-print-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.dispatch-document .dispatch-print-day{border:1px solid var(--line-strong,#9aa39d);padding:5px;min-width:0}
.dispatch-document .dispatch-print-day h3{font-size:12px;margin:3px 0}
.dispatch-document .dispatch-print-region h4{font-size:11px;margin:5px 0}
.dispatch-document .dispatch-print-card{border-top:1px solid var(--line,#d9e0db);padding:5px 0;font-size:11px;break-inside:avoid}
.dispatch-document .dispatch-print-card p{margin:3px 0}
.dispatch-document .dispatch-status{float:right}
@media print{
 @page{size:A4 portrait;margin:12mm}
 .paper-document{color:#000;background:#fff;box-shadow:none;border:0;border-radius:0;max-width:none;overflow:visible;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .paper-document .hint{color:#444}
 .paper-document .jobsheet th,.paper-document .jobsheet td,.production-document .sheet-view th,.production-document .sheet-view td{font-size:10px;padding:3px 4px;border-color:#777}
 .paper-document .jobsheet td.blank{background:repeating-linear-gradient(135deg,transparent 0 6px,#ddd 6px 7px)}
 .paper-document .jobsheet-audit{display:none}
 .dispatch-document .dispatch-lane{break-inside:auto}
 .dispatch-document .dispatch-lane+.dispatch-lane{break-before:page}
 .dispatch-document .dispatch-print-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm;align-items:stretch}
 .dispatch-document .dispatch-print-day{min-height:76mm;border:1px solid #777;break-inside:avoid-page}
 .dispatch-document .dispatch-print-day h3{font-size:12px;background:#eee;border-bottom:1px solid #777;padding:2mm;margin:0}
 .dispatch-document .dispatch-print-region{padding:0 2mm}
 .dispatch-document .dispatch-print-region h4{font-size:10px;margin:2mm 0 1mm;break-after:avoid}
 .dispatch-document .dispatch-print-card{font-size:10px;line-height:1.3;padding:1.5mm 0;border-top:1px solid #bbb}
 .purchase-preview .po-page{min-height:0;break-after:page}
 .purchase-preview .po-page:last-child{break-after:auto}
}
.purchase-preview *{box-sizing:border-box}.purchase-preview{margin:0;color:#000;font:11px "Malgun Gothic",Arial,sans-serif}.purchase-preview .po-page{break-after:page;padding:2mm}.purchase-preview .po-page:last-child{break-after:auto}.purchase-preview h1{margin:6px 0 76px;text-align:center;font-size:30px;letter-spacing:14px;font-weight:700}.purchase-preview .po-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.purchase-preview .po-head-left{display:flex;flex-direction:column;justify-content:space-between;flex:1;min-width:0}.purchase-preview .po-date{margin:0;font-size:12px;font-weight:700}.purchase-preview .po-issuer{border-collapse:collapse;width:48%;table-layout:fixed;align-self:flex-start}.purchase-preview .po-issuer th,.purchase-preview .po-issuer td{border:1px solid #000;padding:3px 6px;font-size:10px;height:19px;vertical-align:middle;text-align:center}.purchase-preview .po-issuer th{background:#fff;font-weight:700;text-align:center;width:17%;white-space:nowrap}.purchase-preview .po-issuer .po-seal{position:relative}.purchase-preview .po-issuer .po-seal img{position:absolute;right:3px;top:2px;width:36px;height:31px;opacity:.9;z-index:1}.purchase-preview .po-to{margin:0;font-size:17px;font-weight:700;color:#1f3864}.purchase-preview .po-lead{margin:0;font-size:12px;font-weight:700}.purchase-preview .po-band{display:flex;justify-content:space-between;overflow:hidden;white-space:nowrap;margin:14px 0 14px;font-size:7px;letter-spacing:1px;color:#c9ccd4}.purchase-preview .po-items{border-collapse:collapse;width:100%;table-layout:fixed}.purchase-preview .po-items th,.purchase-preview .po-items td{border:1px solid #000;padding:2px 3px;text-align:center;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:middle}.purchase-preview .po-items thead th{background:#f8cbad;font-weight:700;height:30px}.purchase-preview .po-items tbody td{height:28px}.purchase-preview .po-items col{}.purchase-preview .po-items th:nth-child(1),.purchase-preview .po-items td:nth-child(1){width:5%}.purchase-preview .po-items th:nth-child(2),.purchase-preview .po-items td:nth-child(2){width:7%}.purchase-preview .po-items th:nth-child(3),.purchase-preview .po-items td:nth-child(3){width:7%}.purchase-preview .po-items th:nth-child(4),.purchase-preview .po-items td:nth-child(4){width:17%}.purchase-preview .po-items th:nth-child(5),.purchase-preview .po-items td:nth-child(5){width:7%}.purchase-preview .po-items th:nth-child(6),.purchase-preview .po-items td:nth-child(6){width:8%}.purchase-preview .po-items th:nth-child(7),.purchase-preview .po-items td:nth-child(7){width:9%}.purchase-preview .po-items th:nth-child(8),.purchase-preview .po-items td:nth-child(8){width:14%}.purchase-preview .po-items tbody td:nth-child(8){color:#c00000}.purchase-preview .po-items th:nth-child(9),.purchase-preview .po-items td:nth-child(9){width:26%}.purchase-preview .po-total th{background:#fff;font-weight:700;height:26px}.purchase-preview .po-remark{border-collapse:collapse;width:100%;table-layout:fixed;margin-top:14px}.purchase-preview .po-remark th{border:1px solid #000;width:5%;font-size:10px;font-weight:700;vertical-align:middle}.purchase-preview .po-remark td{border:1px solid #000;height:104px;padding:8px 10px;vertical-align:top}.purchase-preview .po-standard{margin:0 0 5px;color:#c00000;font-size:11px}.purchase-preview .po-free{margin:10px 0 0;font-size:11px;white-space:pre-wrap}.purchase-preview .po-foot{display:flex;align-items:center;justify-content:center;margin-top:24px;position:relative}.purchase-preview .po-foot-mark{display:flex;align-items:center;gap:12px}.purchase-preview .po-foot span{font-size:15px;font-weight:700;letter-spacing:2px}.purchase-preview .po-foot small{position:absolute;right:0;bottom:-2px;color:#666;font-size:9px}

