/* A5 landscape order: monochrome, legible fields, one shared preview/print article. */
.production-print-preview.modal{width:1000px;max-width:calc(100vw - 24px)}
.production-print-preview .modal-content{padding:0;background:#edf0ee}
.po-preview-help{padding:15px 24px;display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #d4dad5;background:#fff;color:#3e4941;font-size:12px;line-height:1.7}
.po-preview-help strong{flex-shrink:0;color:#111}
.po-preview-stage{padding:24px 18px;overflow:auto}
.production-order-sheet{box-sizing:border-box;width:210mm;min-height:148mm;margin:0 auto;padding:8mm;background:#fff;color:#111;box-shadow:0 8px 30px #00000014;font:10.5pt/1.4 "PingFang SC","Microsoft YaHei",sans-serif;text-align:left;overflow-wrap:anywhere}
.production-order-sheet *{box-sizing:border-box}
.production-order-sheet h1,.production-order-sheet h2,.production-order-sheet p{margin:0}
.production-order-sheet .po-header{display:flex;align-items:center;gap:3.5mm;padding-bottom:2.2mm;border-bottom:.7mm solid #111}
.production-order-sheet .po-logo{display:block;width:12mm;height:12mm;object-fit:contain;flex:0 0 12mm;background:#fff;border:0;clip-path:none;border-radius:0;filter:grayscale(1) contrast(2)}
.production-order-sheet .po-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:4mm;flex-wrap:wrap}
.production-order-sheet .po-brand{font-size:12pt;font-weight:650;letter-spacing:.7mm;color:#111}
.production-order-sheet .po-title h1{font-size:20pt;font-weight:700;letter-spacing:1.4mm;line-height:1.2;color:#111}
.production-order-sheet .po-title p{color:#333;font-size:7.5pt;letter-spacing:.5mm}
.production-order-sheet .po-document-mark{text-align:right;min-width:20mm;color:#111;align-self:center}
.production-order-sheet .po-document-mark strong{font-size:10pt;font-weight:600;letter-spacing:.3mm;line-height:1.25}
.production-order-sheet .po-document-mark span{display:block;font-size:8pt;margin-top:.7mm}
.production-order-sheet .po-identity{display:grid;grid-template-columns:minmax(0,1fr) 25mm 37mm;gap:4mm;padding:2mm 0;border-bottom:.2mm solid #777;align-items:start;font-size:9pt;line-height:1.4}
.production-order-sheet .po-identity>div{display:flex;gap:2mm;align-items:baseline}
.production-order-sheet .po-identity span{color:#333;font-size:8.5pt;flex-shrink:0}
.production-order-sheet .po-identity strong{font-weight:650;font-variant-numeric:tabular-nums}
.production-order-sheet .po-customer{display:flex;align-items:flex-start;justify-content:space-between;gap:6mm;margin:2.5mm 0}
.production-order-sheet .po-customer>div:first-child{min-width:0;flex:1;display:flex;align-items:baseline;gap:3mm}
.production-order-sheet .po-customer span{color:#333;font-size:8.5pt;flex-shrink:0}
.production-order-sheet .po-customer>div:first-child strong{display:block;font-size:14pt;font-weight:750;line-height:1.4;color:#111}
.production-order-sheet .po-priority{display:flex;align-items:baseline;gap:3mm;text-align:right;flex-shrink:0;padding-left:4mm;border-left:.3mm solid #777;color:#111}
.production-order-sheet .po-priority strong{font-size:13pt;font-weight:650;color:#111}
.production-order-sheet .po-priority-urgent strong{font-weight:800;text-decoration:underline;text-underline-offset:.8mm}
.production-order-sheet .po-facts{display:grid;grid-template-columns:1.25fr .8fr .85fr 1.1fr;gap:3mm;border-top:.2mm solid #777;border-bottom:.3mm solid #111;padding:2mm 0}
.production-order-sheet .po-facts>div{display:flex;align-items:baseline;gap:2mm;font-size:9pt;line-height:1.5}
.production-order-sheet .po-facts span{color:#333;flex-shrink:0;font-size:8.5pt}
.production-order-sheet .po-facts strong{font-weight:550;color:#111}
.production-order-sheet .po-facts>div:first-child strong{font-size:11pt;font-weight:750}
.production-order-sheet h2{font-size:10pt;font-weight:650;line-height:1.4;margin:2.5mm 0 1.5mm;letter-spacing:.2mm;break-after:avoid;color:#111}
.production-order-sheet h2>span{font-size:8.5pt;font-weight:500;margin-right:1.5mm;color:#333}
.production-order-sheet table{border-collapse:collapse;table-layout:fixed;width:100%;border-top:.5mm solid #111;border-bottom:.5mm solid #111;margin:0;font-size:10.5pt;line-height:1.4}
.production-order-sheet thead{display:table-header-group}
.production-order-sheet .po-col-index{width:5%}
.production-order-sheet .po-col-product{width:31%}
.production-order-sheet .po-col-pack{width:30%}
.production-order-sheet .po-col-variety{width:17%}
.production-order-sheet .po-col-quantity{width:17%}
.production-order-sheet th,.production-order-sheet td{padding:1.7mm 2mm;white-space:normal;text-align:left;border:0;border-bottom:.2mm solid #777;background:#fff;color:#111;vertical-align:top;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}
.production-order-sheet th{font-size:9pt;font-weight:700;border-bottom:.3mm solid #111;padding-top:1.5mm;padding-bottom:1.5mm;letter-spacing:0}
.production-order-sheet tr{break-inside:avoid}
.production-order-sheet td:first-child,.production-order-sheet th:first-child{padding-left:1mm;text-align:center}
.production-order-sheet .po-product-name{font-weight:650}
.production-order-sheet td small{display:block;font-size:8.5pt;color:#333;margin-top:.6mm}
.production-order-sheet .po-quantity{text-align:right;font-variant-numeric:tabular-nums}
.production-order-sheet .po-quantity strong{font-size:13pt;font-weight:750;line-height:1.2;display:inline;color:#111}
.production-order-sheet .po-quantity span{display:inline;font-size:10pt;margin-left:1.5mm;color:#111}
.production-order-sheet .po-notes{padding:1mm 0 1mm 2.5mm;border-left:.5mm solid #333;white-space:pre-wrap;min-height:5mm;font-size:10pt;line-height:1.5;orphans:2;widows:2;color:#111}
.production-order-sheet .po-plan-note{display:flex;gap:3mm;border-top:.2mm solid #777;padding-top:1.5mm;margin-top:1.5mm;font-size:9pt;line-height:1.5;color:#111}
.production-order-sheet .po-plan-note strong{flex-shrink:0;font-weight:650}
.production-order-sheet .po-plan-note span{white-space:pre-wrap}
.production-order-sheet .po-signatures{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12mm;padding:4mm 0 2.5mm;break-inside:avoid}
.production-order-sheet .po-signatures>div{display:flex;align-items:baseline;gap:3mm;font-size:9.5pt}
.production-order-sheet .po-signatures span{flex-shrink:0;color:#111}
.production-order-sheet .po-signatures i{flex:1;border-bottom:.2mm solid #333;min-width:14mm}
.production-order-sheet .po-signatures{gap:2mm 5mm}
.production-order-sheet .po-signatures strong{font-weight:650;overflow-wrap:anywhere}
.production-order-sheet .po-signatures small{grid-column:1/-1;font-size:7.5pt;color:#444}
.production-order-sheet .po-products,.production-order-sheet .po-requirements{display:block;width:100%}
.production-order-sheet .po-footer{border-top:.25mm solid #333;padding-top:1.7mm;font-size:7.5pt;line-height:1.45;color:#333;display:flex;justify-content:space-between;gap:6mm;break-inside:avoid}
.production-order-sheet .po-footer strong{font-weight:600;max-width:65mm;color:#111}
.production-order-sheet .po-footer>span{max-width:116mm;text-align:right}
@media(max-width:850px){
  .po-preview-help{padding:13px 15px;display:block;font-size:11px}
  .po-preview-help strong{display:block;margin-bottom:3px}
  .po-preview-stage{padding:16px 10px}
  .production-order-sheet{margin-left:0;margin-right:0}
  .production-print-preview .modal-footer .button{flex:1;justify-content:center}
}
@page hehe-production-order{size:210mm 148mm;margin:8mm}
/* Save space through structure and removing duplication, not tiny main text. */
.production-order-sheet .po-header{padding-bottom:1.5mm}
.production-order-sheet .po-logo{width:10mm;height:10mm;flex-basis:10mm}
.production-order-sheet .po-identity{padding:1mm 0}
.production-order-sheet .po-customer{margin:1.5mm 0}
.production-order-sheet h2{margin:1.5mm 0 1mm}
.production-order-sheet .po-signatures{padding:3mm 0 2mm}
@media print{
  body.printing-production-order{margin:0!important;padding:0!important;page:hehe-production-order;background:#fff!important;color:#111!important}
  #print-root.production-order-print-root{page:hehe-production-order;margin:0!important;padding:0!important;width:auto!important}
  .production-order-sheet{page:hehe-production-order;width:auto;min-height:0;max-width:none;padding:0;margin:0;box-shadow:none;border:0;font-size:10.5pt;line-height:1.4;print-color-adjust:economy;-webkit-print-color-adjust:economy}
  .production-order-sheet .po-header,.production-order-sheet .po-identity,.production-order-sheet .po-customer,.production-order-sheet .po-facts{break-inside:avoid}
}
