/* Screen preview, hidden measurement and physical output intentionally share one layout. */
.order-print-preview-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#dfe7eb);border-radius:8px;background:#edf0f2;padding:12px}
.order-print-preview-pages{width:max-content;min-width:100%;display:grid;justify-items:center;gap:16px}
.order-print-settings{margin:16px 0}
.order-print-settings>.form-grid{margin-bottom:12px}
.order-print-update{display:flex;align-items:flex-end;justify-content:flex-end}
.order-print-calibration,.order-print-help{margin:16px 0;padding:12px 14px;border:1px solid var(--line,#dfe7eb);border-radius:8px;background:#fff}
.order-print-calibration>summary,.order-print-help>summary{cursor:pointer;color:var(--text,#213640);font-size:13px;font-weight:600;line-height:1.7}
.order-print-calibration[open]>.form-grid{margin-top:16px}
.order-print-help ol{padding-left:20px;color:var(--muted,#5b6e79);font-size:13px;line-height:1.9}
.order-print-columns{grid-template-columns:repeat(4,minmax(0,1fr))}
#order-print-summary{margin:12px 0;font-size:13px}
#order-print-error:not(:empty){margin:12px 0 16px}
.order-print-measure{position:fixed;top:0;left:-100000px;width:max-content;visibility:hidden;pointer-events:none;z-index:-1}

.order-print-page,#print-root .order-print-page{
  display:block;position:relative;box-sizing:border-box;width:var(--op-width);height:var(--op-height);
  min-width:var(--op-width);max-width:none;min-height:0;margin:0;padding:0;border:0;
  background:#fff!important;color:#000!important;box-shadow:none;
  font-family:SimSun,"宋体","Songti SC",serif!important;font-size:9pt!important;line-height:1.25!important;
  font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:normal;text-align:left;white-space:normal;
  overflow:visible;-webkit-print-color-adjust:exact;print-color-adjust:exact;
}
.order-print-page *,#print-root .order-print-page *{box-sizing:border-box;color:#000!important;letter-spacing:normal;text-shadow:none;box-shadow:none}
.order-print-page .op-content,#print-root .order-print-page .op-content{
  display:flex;flex-direction:column;position:relative;
  left:calc((var(--op-width) - var(--op-content)) / 2 + var(--op-x));top:calc(var(--op-top) + var(--op-y));
  width:var(--op-content);height:calc(var(--op-height) - var(--op-top) - var(--op-bottom));
  margin:0;padding:0;min-width:0;overflow:visible;border:0;background:#fff!important;
}
.order-print-page .op-flow,#print-root .order-print-page .op-flow{display:flow-root;flex:0 0 auto;min-width:0;margin:0;padding:0;overflow:visible}
.order-print-page .op-header,#print-root .order-print-page .op-header{margin:0 0 4mm;padding:0;border:0;text-align:center}
.order-print-page h1,#print-root .order-print-page h1{
  font-family:inherit!important;font-size:18pt!important;font-weight:700;line-height:1.18;
  margin:0;padding:0;text-align:center;overflow-wrap:anywhere;white-space:pre-wrap;
}
.order-print-page .op-document-title,#print-root .order-print-page .op-document-title{
  font-size:10pt;line-height:1.3;margin:.7mm 0 0;overflow-wrap:anywhere;white-space:pre-wrap;
}
.order-print-page .op-meta,#print-root .order-print-page .op-meta{margin:0 0 1.5mm;padding:0 1.5mm;font-size:9pt;line-height:1.4}
.order-print-page :is(.op-meta-row,.op-footer-row),#print-root .order-print-page :is(.op-meta-row,.op-footer-row){
  display:flex;align-items:baseline;flex-wrap:wrap;gap:.4mm 4mm;min-width:0;
}
.order-print-page :is(.op-meta-row,.op-footer-row)>span,#print-root .order-print-page :is(.op-meta-row,.op-footer-row)>span{
  min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;
}
.order-print-page .op-meta-row+.op-meta-row,#print-root .order-print-page .op-meta-row+.op-meta-row{margin-top:.5mm}
.order-print-page table.op-table,#print-root .order-print-page table.op-table{display:table;width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;border:.25mm solid #000;border-spacing:0;margin:0;padding:0;font-family:inherit!important;font-size:9pt!important;line-height:1.3!important;white-space:normal;background:#fff!important}
.order-print-page .op-table thead,#print-root .order-print-page .op-table thead{display:table-header-group}
.order-print-page .op-table :is(tbody,tfoot),#print-root .order-print-page .op-table :is(tbody,tfoot){display:table-row-group}
.order-print-page .op-table tr,#print-root .order-print-page .op-table tr{display:table-row;break-inside:avoid;background:#fff!important}
.order-print-page .op-table th,.order-print-page .op-table td,#print-root .order-print-page .op-table th,#print-root .order-print-page .op-table td{
  display:table-cell;height:auto;min-height:0;margin:0;padding:1.25mm 1.2mm;border:.2mm solid #000;
  font-family:inherit!important;font-size:9pt!important;line-height:1.3!important;font-weight:400;
  vertical-align:middle;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff!important;
}
.order-print-page .op-table th,#print-root .order-print-page .op-table th{font-weight:700;text-align:center}
.order-print-page .op-table-total th,#print-root .order-print-page .op-table-total th{text-align:left}
.order-print-page .op-table-total :is(th,td),#print-root .order-print-page .op-table-total :is(th,td){font-weight:700}
.order-print-page .op-table td::before,#print-root .order-print-page .op-table td::before{display:none!important;content:none!important}
.order-print-page .op-table td:is(.op-numeric,.op-quantity),#print-root .order-print-page .op-table td:is(.op-numeric,.op-quantity){text-align:right;font-variant-numeric:tabular-nums}
.order-print-page .op-product span,#print-root .order-print-page .op-product span{display:block;overflow-wrap:anywhere;white-space:pre-wrap}
.order-print-page td.op-code,#print-root .order-print-page td.op-code{font-size:8pt!important;text-align:center}
.order-print-page .op-ordinal,#print-root .order-print-page .op-ordinal{text-align:center}
.order-print-page .op-footer,#print-root .order-print-page .op-footer{
  display:flow-root;flex:0 0 auto;margin:0;padding:1.6mm 1.5mm 0;border:0;background:#fff!important;font-size:9pt;line-height:1.4;
}
.order-print-page :is(.op-note,.op-footnote,.op-company-line),#print-root .order-print-page :is(.op-note,.op-footnote,.op-company-line){
  margin:.7mm 0 0;padding:0;white-space:pre-wrap;overflow-wrap:anywhere;
}
.order-print-page strong,#print-root .order-print-page strong{font-weight:700}

@media(max-width:560px){.order-print-preview-scroll{padding:8px}.order-print-settings .field{min-width:0}.order-print-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.order-print-calibration>summary,.order-print-help>summary{min-height:44px;display:flex;align-items:center}.order-print-update .btn{width:100%}}
@media print{
  html,body{margin:0!important;padding:0!important;min-width:0!important;background:#fff!important}
  body>*:not(#print-root){display:none!important}
  #print-root{display:block!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important}
  #print-root .order-print-page{page:a8-sales-order;break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;box-shadow:none!important}
  #print-root .order-print-page:last-child{break-after:auto;page-break-after:auto}
  #print-root .order-print-page .op-table{margin:0!important}
  #print-root .order-print-page .op-table th,#print-root .order-print-page .op-table td{padding:1.25mm 1.2mm!important;height:auto!important;border:.2mm solid #000!important}
}
