.drawer{width:min(1180px,92vw)}
.context-hint{margin:16px 0 8px;padding:9px 11px;border:1px solid #ead7bd;border-radius:7px;background:#fff9f0;color:#765021;font-size:11px}
.sheet-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 8px}.sheet-toolbar>div{display:flex;flex-direction:column;gap:3px}.sheet-toolbar span{font-size:11px;color:#6a7380}
.inventory-pick-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}.inventory-pick-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.inventory-pick-toolbar>span{font-size:11px;color:#667085}.inventory-search{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#556070}.inventory-search input{width:min(480px,58vw);height:32px;border:1px solid #d8dee7;border-radius:5px;padding:0 9px;background:#fff}
.inventory-marquee-hint{flex-basis:100%;margin:0;color:#667085;font-size:11px;line-height:1.55}
.inventory-selection-modes{display:inline-flex;gap:4px;padding:2px;border:1px solid #d8dee7;border-radius:6px;background:#fff}
.inventory-selection-modes .btn{min-width:78px;border-color:transparent}
.receipt-vat-merge-actions{display:inline-flex;gap:6px;align-items:center;padding-inline-start:8px;border-inline-start:1px solid #d8dee7}.receipt-vat-merge-actions .btn:disabled{cursor:not-allowed;opacity:.48}.receipt-vat-merged td{background:#fffaf2}.receipt-vat-merged .vat-total-weight{font-weight:700;color:#8a4d0a}.receipt-vat-badge{display:block;width:max-content;margin-top:4px;padding:2px 6px;border-radius:5px;background:#fff0d7;color:#8a4d0a;font-size:10px;font-weight:700;white-space:nowrap}
.inventory-marquee{position:fixed;z-index:99999;border:1px solid #2f80ed;background:rgba(47,128,237,.14);box-shadow:0 0 0 1px rgba(255,255,255,.55) inset;pointer-events:none}
.inventory-marquee.remove-mode{border-color:#d14343;background:rgba(209,67,67,.13)}
body.inventory-marquee-active{cursor:crosshair;user-select:none}

/* Raw inventory picker: compact summary rows with an expanded ten-column roll matrix. */
.receipt-input-code-toolbar{align-items:flex-end}
.receipt-input-code-toolbar p{flex-basis:100%;margin:0;color:#667085;font-size:11px;line-height:1.5}
.receipt-input-code-picker{padding:0;background:#fff}
.receipt-input-code-picker .inventory-sheet-hint{margin:0;padding:8px 10px;border:1px solid #e2e7ee;border-bottom:0;border-radius:7px 7px 0 0;background:#f8fafc;color:#667085;font-size:11px}
.receipt-input-code-picker .table-wrap{max-height:430px!important;border:1px solid #d8dee8!important;border-radius:0 0 7px 7px!important;overflow:auto}
.receipt-input-code-picker table{min-width:1280px;border-collapse:collapse;table-layout:fixed}
.receipt-input-code-picker th{height:38px;padding:5px 6px;background:#f4f6f9;color:#526078;text-align:center;white-space:nowrap}
.receipt-input-code-picker td{height:42px;padding:5px 6px;text-align:center;vertical-align:middle}
.receipt-input-code-picker th,.receipt-input-code-picker td{border-right:1px solid #e2e7ee;border-bottom:1px solid #dde2e9}
.receipt-input-code-picker th:last-child,.receipt-input-code-picker td:last-child{border-right:0}
.receipt-input-code-picker input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#d97818;cursor:pointer}
.receipt-input-code-picker .receipt-inventory-group.selected-row td{background:#fff4e6!important}
.receipt-input-code-picker .receipt-inventory-group:hover td{background:#f3f8ff}
.receipt-input-code-picker .receipt-inventory-vat{font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.receipt-input-code-picker .receipt-inventory-notes{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:#536174}
.receipt-input-code-picker .receipt-inventory-expand{min-width:74px;padding-inline:8px;white-space:nowrap}
.receipt-input-code-picker .receipt-inventory-matrix-row>td{padding:0!important;background:#fff!important}
.receipt-inventory-matrix{display:grid;grid-template-columns:56px repeat(10,minmax(56px,1fr)) repeat(3,minmax(74px,1fr));align-items:stretch;min-height:50px;background:#fff9f0}
.receipt-inventory-matrix-head{min-height:34px;background:#f4f6f9;color:#526078;font-size:10px;font-weight:700}
.receipt-inventory-matrix-head>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #e2e7ee}
.receipt-inventory-matrix-row.selected-row .receipt-inventory-matrix{background:#fff5e4}
.receipt-inventory-matrix .receipt-input-range,.receipt-inventory-matrix .receipt-input-total{display:flex;min-width:0;align-items:center;justify-content:center;border-right:1px solid #e2e7ee;text-align:center}
.receipt-inventory-matrix .receipt-input-range{background:#fff7ea;color:#97530d;font-size:10px;font-weight:800;white-space:nowrap}
.receipt-inventory-matrix .receipt-input-roll{display:flex;min-width:0;align-items:center;justify-content:center;border-right:1px solid #e2e7ee;background:#fff;color:#273752;cursor:pointer}
.receipt-inventory-matrix .receipt-input-roll label{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:50px;cursor:pointer}
.receipt-inventory-matrix .receipt-input-roll b{font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.receipt-inventory-matrix .receipt-input-roll.picked{background:#fff0d8!important;color:#8a4d0a}
.receipt-inventory-matrix .receipt-input-roll.empty-slot{background:#fafbfc;color:#b8c0cc;cursor:default}
.receipt-inventory-matrix .receipt-input-total{flex-direction:column;gap:2px;background:#fbfcfe;font-variant-numeric:tabular-nums}
.receipt-inventory-matrix .receipt-input-total small{color:#8490a0;font-size:9px;line-height:1}
.receipt-inventory-matrix .receipt-input-total b{color:#273752;font-size:10px;white-space:nowrap}
.receipt-input-code-picker .receipt-inventory-matrix-row .receipt-input-roll.marquee-preview{background:#dbeafe!important;box-shadow:inset 0 1px #93c5fd,inset 0 -1px #93c5fd}
.receipt-input-code-picker .receipt-inventory-matrix-row .receipt-input-roll.marquee-remove-preview{background:#fee2e2!important;box-shadow:inset 0 1px #fca5a5,inset 0 -1px #fca5a5}
@media(max-width:900px){.receipt-input-code-picker table{min-width:1160px}.receipt-inventory-matrix{grid-template-columns:50px repeat(10,minmax(50px,1fr)) repeat(3,minmax(66px,1fr))}}
@media(max-width:620px){.receipt-input-code-picker .table-wrap{max-height:380px!important}.receipt-input-code-picker table{min-width:1100px}.receipt-inventory-matrix{grid-template-columns:48px repeat(10,50px) repeat(3,64px)}.receipt-input-code-picker td{padding:4px}.receipt-input-code-picker .receipt-inventory-notes{max-width:110px}}
#receiptInputBox tbody tr[data-roll-id]{cursor:default;user-select:none}
#receiptInputBox tbody tr[data-roll-id]:hover td{background:#f3f8ff}
#receiptInputBox tbody tr.marquee-preview td{background:#dbeafe!important;box-shadow:inset 0 1px #93c5fd,inset 0 -1px #93c5fd}
#receiptInputBox tbody tr.marquee-remove-preview td{background:#fee2e2!important;box-shadow:inset 0 1px #fca5a5,inset 0 -1px #fca5a5}
.receipt-sheet-wrap{border:1px solid var(--line);border-radius:8px}
.receipt-sheet{min-width:1540px}
.receipt-sheet th{text-align:center}
.receipt-sheet td{padding:4px 3px}
.receipt-sheet select,.receipt-sheet input{width:100%;min-width:56px;height:30px;border:1px solid #d8dee7;border-radius:4px;padding:3px 5px;font-size:11px}
.receipt-sheet .receipt-product-cell select{min-width:126px}
.receipt-sheet .weight-cell{min-width:48px;text-align:right;background:#fffdf5}
.receipt-sheet input[type=number]{appearance:textfield;-moz-appearance:textfield}
.receipt-sheet input[type=number]::-webkit-inner-spin-button,.receipt-sheet input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.receipt-sheet .weight-group{text-align:center;background:#fff4e4;color:#8a4d0a}.receipt-sheet .weight-index{text-align:center;background:#fff9f1}
.receipt-sheet .weight-range-head,.receipt-sheet .weight-row-label{min-width:44px;width:44px;text-align:center;background:#fff9f1;color:#8a4d0a;font-weight:700}
.receipt-sheet .vat-total-head,.receipt-sheet .vat-total-weight{min-width:96px;white-space:nowrap;font-variant-numeric:tabular-nums}
.selected-row td{background:#fff4e6!important}
.tag.over{background:#f0e9ff;color:#6d3ec5}
#receiptInputBox .table-wrap{max-height:310px;overflow:auto}
#receiptInputBox .data-table th{position:sticky;top:0;z-index:1}
.receipt-input-notes-head,.receipt-input-notes{min-width:138px;max-width:210px}.receipt-input-notes{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#536174}
.receipt-inline-code{display:block;margin-top:3px;color:#8a5a18;font-size:10px}
.code-sheet{background:#fff;color:#1f2937;padding:8px 0 12px}
.code-sheet-heading{padding:4px 4px 12px;text-align:center;border-bottom:2px solid #26313f}
.code-sheet-site{font-size:18px;font-weight:800;letter-spacing:.08em;color:#172235}
.code-sheet-heading h2{margin:5px 0 9px;font-size:20px;letter-spacing:.16em}
.code-sheet-meta{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;color:#4b5563;font-size:11px}
.code-sheet-meta-line{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:24px}
.code-sheet-meta-line .code-sheet-meta{justify-content:flex-end;min-width:0}
.code-sheet-customer{margin:0 2px;text-align:left;font-size:16px;font-weight:700;color:#172235;white-space:nowrap}
.code-sheet-customer strong{font-weight:800;letter-spacing:.02em}
.code-sheet-table-wrap{margin-top:12px;border:1px solid #26313f;border-radius:0}
.code-sheet-table{min-width:1180px;border-collapse:collapse;font-size:11px}
.code-sheet-table th,.code-sheet-table td{border:1px solid #26313f;color:#1f2937;text-align:center;padding:5px 4px;vertical-align:middle}
.code-sheet-table th{height:30px;background:#f3f4f6;font-weight:700;color:#172235}
.code-sheet-table tbody tr:nth-child(even) td{background:#fbfcfd}
.code-sheet-table .code-vat{font-weight:700;white-space:nowrap}
.code-sheet-table .code-product{min-width:126px}
.code-sheet-table .code-color{min-width:82px}
.code-sheet-table .code-color small{display:block;margin-top:3px;color:#6b7280;font-size:9px;font-weight:400}
.code-sheet-table .code-spec{min-width:76px;white-space:pre-line}
.code-sheet-table .code-qty{min-width:47px;text-align:right;font-variant-numeric:tabular-nums}
.code-sheet-table .code-rolls,.code-sheet-table .code-subtotal{font-weight:700;font-variant-numeric:tabular-nums}
.code-sheet-table .code-notes{min-width:130px;text-align:left;white-space:pre-line}
.code-sheet-table .code-unit-price,.code-sheet-table .code-line-amount,.code-sheet-table .code-grand-total{min-width:72px;font-weight:700;font-variant-numeric:tabular-nums}
.code-sheet-table tfoot th{background:#fff4df;color:#8a4d0a;font-weight:800}
.code-sheet-footnote{margin:10px 2px 6px;color:#4b5563;font-size:11px}
.code-sheet-signatures{display:flex;justify-content:space-between;gap:14px;padding:8px 2px 0;font-size:11px;color:#1f2937;white-space:nowrap}
.code-sheet-actions{margin-top:16px}
@media print{
  @page{size:A4 landscape;margin:10mm}
  .code-sheet{padding:0;color:#111827}
  .code-sheet-heading{padding:0 0 8px;border-bottom:1.5px solid #111827}
  .code-sheet-site{font-size:16pt}
  .code-sheet-heading h2{font-size:15pt;margin:3px 0 6px}
  .code-sheet-meta{font-size:8.5pt;gap:12px}
  .code-sheet-meta-line{gap:18px}
  .code-sheet-customer{margin:0 2px;text-align:left;font-size:12pt}
  .code-sheet-table-wrap{margin-top:8px;overflow:visible;border:0}
  .code-sheet-table{min-width:0;width:100%;font-size:8.5pt;table-layout:fixed}
  .code-sheet-table th,.code-sheet-table td{padding:3px 2px;border:1px solid #111827}
  .code-sheet-table th{height:24px}
  .code-sheet-table .code-product{width:13%}.code-sheet-table .code-color{width:8%}.code-sheet-table .code-spec{width:8%}.code-sheet-table .code-vat{width:11%}.code-sheet-table .code-qty{width:4.4%}.code-sheet-table .code-rolls{width:5%}.code-sheet-table .code-subtotal{width:7%}.code-sheet-table .code-unit{width:5%}.code-sheet-table .code-notes{width:12%}
  .code-sheet-footnote{margin-top:7px;font-size:8.5pt}
  .code-sheet-signatures{padding-top:7px;font-size:8.5pt}
  .code-sheet-actions{display:none!important}
  body.print-hide-prices .code-price{display:none!important}
}

.reprocessing-original-vat-input input[readonly]{background:#f4f7fb;color:#40536d;border-color:#d7e0eb;cursor:not-allowed}
.sale-pick-toolbar{align-items:flex-end}.sale-pick-toolbar p{flex-basis:100%;margin:0;color:#667085;font-size:11px}.sale-code-picker{border:1px solid var(--line);border-radius:8px}.sale-code-picker table{min-width:1480px}.sale-code-picker th{text-align:center;white-space:nowrap}.sale-code-picker td{padding:6px;text-align:center}.sale-code-picker td:nth-child(2),.sale-code-picker td:nth-child(3),.sale-code-picker td:nth-child(4),.sale-code-picker td:nth-child(5){text-align:left}.sale-vat-secondary{display:block;margin-top:3px;color:#667085;font-size:10px}.sale-roll-quantity{min-width:62px;background:#fffdf5}.sale-roll-quantity label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:28px;cursor:pointer}.sale-roll-quantity input[type=checkbox]{width:14px;height:14px}.sale-roll-quantity input.return-roll-qty{width:52px;height:22px;border:0;background:transparent;font-weight:700;text-align:center;padding:0}.sale-code-picker input[data-return-price]{width:72px;height:24px;text-align:right}.sale-roll-quantity b{font-variant-numeric:tabular-nums}.sale-roll-quantity.picked{background:#fff0d8;color:#8a4d0a}.sale-roll-quantity.empty-slot{color:#a3abba;background:#fafbfc}.sale-code-picker .weight-row-label{min-width:48px;background:#fff9f1;color:#8a4d0a;font-weight:700}

/* Production receipt groups use the same compact two-row work area as finished arrivals. */
.receipt-sheet-wrap{overflow-x:auto;overflow-y:visible}
.receipt-sheet.receipt-two-row-layout{width:100%;min-width:0!important;table-layout:fixed;border-collapse:separate;border-spacing:0}
.receipt-sheet.receipt-two-row-layout>thead{display:none}
.receipt-sheet.receipt-two-row-layout>tbody>tr>td{padding:0!important;border:0;background:#fff}
.receipt-sheet.receipt-two-row-layout>tbody>tr.receipt-group-primary>td{border-top:1px solid #dfe5ee}
.receipt-sheet.receipt-two-row-layout>tbody>tr.receipt-group-primary:first-child>td{border-top:0}
.receipt-sheet.receipt-two-row-layout>tbody>tr.receipt-group-secondary>td{border-top:1px solid #edf0f4}
.receipt-group-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) auto;align-items:end;gap:8px;padding:10px 12px;border-bottom:1px solid #e5e9ef;background:#f8fafc}
.receipt-meta-field{display:grid;min-width:0;gap:4px;color:#667085;font-size:10px}
.receipt-meta-field>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.receipt-meta-field input,.receipt-meta-field select{width:100%;min-width:0!important;height:30px;border:1px solid #d8dee7;border-radius:4px;padding:3px 6px;background:#fff;color:#1f2937;font-size:11px}
.receipt-meta-field input[type=number]{appearance:textfield;-moz-appearance:textfield}
.receipt-meta-field input[type=number]::-webkit-inner-spin-button,.receipt-meta-field input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.receipt-group-head .receipt-product-cell select{min-width:0!important}
.receipt-group-head .receipt-notes-field{min-width:0}
.receipt-group-remove{align-self:end;height:30px;padding:0 9px;white-space:nowrap}
.receipt-group-quantity-wrap{width:100%;overflow:hidden;background:#fff}
.receipt-quantity-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:10px}
.receipt-quantity-table th,.receipt-quantity-table td{height:34px;padding:3px 2px;border-right:1px solid #e2e7ee;border-bottom:1px solid #e2e7ee;text-align:center;vertical-align:middle}
.receipt-quantity-table th{height:31px;background:#fff7ea;color:#8a4d0a;font-weight:700;white-space:nowrap}
.receipt-quantity-table td{background:#fff}
.receipt-quantity-table .receipt-range-head{width:6%;min-width:0!important;background:#fff7ea;color:#8a4d0a;font-weight:700;white-space:nowrap}
.receipt-quantity-table .weight-row-label{width:6%;min-width:0!important;background:#fff9f1;color:#8a4d0a;font-weight:700;white-space:nowrap}
.receipt-quantity-table .weight-index{width:auto;min-width:0!important;background:#fff9f1;color:#8a4d0a}
.receipt-quantity-table .receipt-summary-head,.receipt-quantity-table .receipt-summary-cell{width:8%;min-width:0!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.receipt-quantity-table .receipt-summary-cell{background:#fbfcfe;font-weight:700}
.receipt-quantity-table .receipt-amount-cell{background:#fffaf1;color:#7b4a16}
.receipt-quantity-table .receipt-weight-input,.receipt-quantity-table .weight-cell{width:100%;min-width:0!important;max-width:64px;height:28px;margin:0 auto;padding:2px 3px;border:1px solid #d8dee7;border-radius:4px;background:#fffdf8;text-align:right;font-size:11px}
.receipt-quantity-table .slot-placeholder{color:#b8c0cc}
.receipt-quantity-table .composite-meter-cell{background:#f4faf6}
.receipt-sheet.receipt-two-row-layout .receipt-vat-badge{margin-top:4px}
@media(max-width:900px){.receipt-group-head{grid-template-columns:repeat(4,minmax(0,1fr))}.receipt-group-head .receipt-notes-field{grid-column:span 2}.receipt-group-remove{justify-self:end}}
@media(max-width:620px){.receipt-group-head{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}.receipt-group-head .receipt-notes-field{grid-column:auto}.receipt-group-remove{justify-self:stretch}.receipt-quantity-table{font-size:9px}.receipt-quantity-table th,.receipt-quantity-table td{height:31px;padding:2px 1px;overflow:hidden}.receipt-quantity-table th{white-space:normal;overflow-wrap:anywhere;word-break:break-all}.receipt-quantity-table .receipt-weight-input,.receipt-quantity-table .weight-cell{height:26px;font-size:10px;padding-inline:2px}.receipt-quantity-table .receipt-summary-head,.receipt-quantity-table .receipt-summary-cell{font-size:9px;white-space:normal;overflow-wrap:anywhere;word-break:break-all}}

/* The outer table is a semantic shell; block rows prevent rowspan cells from creating a second column. */
.receipt-sheet.receipt-two-row-layout,.receipt-sheet.receipt-two-row-layout>tbody{display:block;width:100%}
.receipt-sheet.receipt-two-row-layout>tbody>tr{display:block;width:100%}
.receipt-sheet.receipt-two-row-layout>tbody>tr>td{display:block!important;width:100%!important;box-sizing:border-box}

/* Every SIMPLE column needs a width: fixed layout otherwise collapses the trailing fee columns. */
.receipt-simple-sheet{min-width:1540px!important;table-layout:fixed}
.receipt-simple-sheet th,.receipt-simple-sheet td{padding:6px 5px;vertical-align:middle}
.receipt-simple-sheet th{width:100px;text-align:center;white-space:normal;line-height:1.25}
.receipt-simple-sheet td input,.receipt-simple-sheet td select{width:100%;min-width:0;height:32px}
.receipt-simple-sheet th:first-child{width:180px}.receipt-simple-sheet th:last-child{width:54px}
/* Sales code sheets print as a dedicated 241 x 140 mm two-part form. */
.sale-excel-sheet{background:#fff;color:#111;padding:8px 0 12px}
.sale-excel-table{width:100%;border-collapse:collapse;table-layout:fixed;font-family:SimSun,"Songti SC",serif}
.sale-excel-table td{border:1px solid #111;text-align:center;vertical-align:middle;height:21px;padding:2px;font-size:12px}
.sale-excel-table .c-a{width:12.25%}.sale-excel-table .c-b{width:11.75%}.sale-excel-table .c-c{width:10.875%}.sale-excel-table .c-num{width:4.625%}.sale-excel-table .c-n{width:9.5%}.sale-excel-table .c-o{width:10%}
.sale-excel-table .r-title td{height:42px;font-size:30px}.sale-excel-table .r-info td{height:36px;font-size:20px}.sale-excel-table .r-head td{height:34px;font-size:20px}.sale-excel-table .r-info td[contenteditable],.sale-excel-table .r-notes td[contenteditable],.sale-excel-table .sale-excel-input{outline:none}.sale-excel-table .r-side td{height:21px}.sale-excel-table .r-notes td{height:21px}.sale-excel-table .r-notes td:first-child{font-size:16px}.sale-excel-table .r-notes td[contenteditable]{text-align:left;vertical-align:middle;line-height:1.55;padding:8px 10px;font-size:12px}.sale-excel-table .r-sign td{height:42px;font-size:16px}.sale-excel-summary{font-size:12px;margin-top:8px;color:#111}
.sale-code-sheet{background:#fff;color:#111;padding:8px 0 12px}
.sale-code-page{background:#fff;color:#111;padding:8px 10px;break-after:page;page-break-after:always}
.sale-code-page:last-of-type{break-after:auto;page-break-after:auto}
.sale-code-group{margin-top:8px;break-inside:avoid;page-break-inside:avoid}
.sale-code-info,.sale-code-table{min-width:0!important;width:100%;table-layout:fixed;border-collapse:collapse}
.sale-code-info th,.sale-code-info td,.sale-code-table th,.sale-code-table td{border:1px solid #111;text-align:center;vertical-align:middle}
.sale-code-info th{height:22px;padding:3px;background:#f5f5f5;font-weight:700;font-size:10px}
.sale-code-info td{min-height:29px;padding:4px 5px;font-size:12px;font-weight:700;white-space:normal;overflow-wrap:anywhere;word-break:break-all;line-height:1.25}
.sale-code-table th,.sale-code-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sale-code-info th:nth-child(1),.sale-code-info td:nth-child(1){width:28%}
.sale-code-info th:nth-child(2),.sale-code-info td:nth-child(2){width:38%}
.sale-code-info th:nth-child(3),.sale-code-info td:nth-child(3){width:34%}
.sale-code-table th,.sale-code-table td{height:25px;padding:3px 2px;font-size:10px}
.sale-code-table th{background:#f5f5f5;font-weight:700}
.sale-code-table th:nth-child(-n+10),.sale-code-table td:nth-child(-n+10){width:7.2%}
.sale-code-table th:nth-child(11),.sale-code-table td:nth-child(11){width:7.5%}
.sale-code-table th:nth-child(12),.sale-code-table td:nth-child(12){width:20.5%}
.sale-code-table .sale-cs-vat,.sale-code-table .sale-cs-product,.sale-code-table .sale-cs-color{font-weight:700}
.sale-code-table .code-qty,.sale-code-table .sale-cs-rolls,.sale-code-table .sale-cs-total{font-variant-numeric:tabular-nums}
.sale-code-table tfoot th,.sale-code-table tfoot td{background:#fff;font-weight:700}
.sale-code-summary{margin-top:8px}
.sale-code-signatures{display:flex;justify-content:space-between;gap:12px;padding:8px 2px 0;font-size:11px;white-space:nowrap}
@media screen{
  .sale-code-page+.sale-code-page{margin-top:18px;border-top:1px dashed #cfd6df;padding-top:18px}
}
@media print{
  @page{size:241mm 140mm;margin:0}
  body.print-sale-code-sheet{background:#fff}
  body.print-sale-code-sheet .rail,body.print-sale-code-sheet .topbar,body.print-sale-code-sheet .workspace-tabs,body.print-sale-code-sheet #view,body.print-sale-code-sheet .drawer-head,body.print-sale-code-sheet .backdrop,body.print-sale-code-sheet .code-sheet-actions{display:none!important}
  body.print-sale-code-sheet .workspace{margin:0;width:100%}
  body.print-sale-code-sheet .drawer.open{position:static;display:block;width:100%;height:auto;transform:none;box-shadow:none}
  body.print-sale-code-sheet .drawer-body{padding:0;overflow:visible}
  body.print-sale-code-sheet .sale-code-sheet{display:block;padding:0}
  body.print-sale-code-sheet .sale-code-page{width:241mm;height:140mm;padding:5mm 6mm;overflow:hidden;break-after:page;page-break-after:always}
  body.print-sale-code-sheet .sale-code-page:last-of-type{break-after:auto;page-break-after:auto}
  body.print-sale-code-sheet .code-sheet-heading{padding:0 0 2.5mm;border-bottom:1px solid #111}
  body.print-sale-code-sheet .code-sheet-site{display:none}
  body.print-sale-code-sheet .code-sheet-heading h2{margin:0 0 2mm;font-size:14pt;letter-spacing:.1em}
  body.print-sale-code-sheet .code-sheet-meta-line{gap:5mm}
  body.print-sale-code-sheet .code-sheet-customer{font-size:10pt}
  body.print-sale-code-sheet .code-sheet-meta{gap:4mm;font-size:8pt}
  body.print-sale-code-sheet .code-sheet-meta span:nth-child(n+3){display:none}
  body.print-sale-code-sheet .sale-code-group{margin-top:2.2mm}
  body.print-sale-code-sheet .sale-code-info th{height:5.5mm;padding:.6mm;font-size:7.5pt}
  body.print-sale-code-sheet .sale-code-info td{height:7mm;padding:.7mm 1mm;font-size:9pt}
  body.print-sale-code-sheet .sale-code-table{font-size:7.5pt}
  body.print-sale-code-sheet .sale-code-table th,body.print-sale-code-sheet .sale-code-table td{height:6.2mm;padding:.6mm .4mm;border:1px solid #111}
  body.print-sale-code-sheet .sale-code-table th{height:5.2mm;background:#f5f5f5}
  body.print-sale-code-sheet .sale-code-table tfoot th,body.print-sale-code-sheet .sale-code-table tfoot td{height:5.2mm;background:#fff}
  body.print-sale-code-sheet .sale-code-summary{margin-top:2.2mm}
  body.print-sale-code-sheet .sale-code-signatures{padding-top:2.5mm;font-size:8pt}
  body.print-sale-code-sheet.print-hide-prices .code-price{color:transparent!important}
  body.print-sale-code-sheet .sale-excel-sheet{padding:0;background:#fff}
  body.print-sale-code-sheet .sale-excel-table td{border:1px solid #111;height:21px;padding:2px;font-size:11px}
  body.print-sale-code-sheet .sale-excel-table .r-title td{height:27px;font-size:22px}
  body.print-sale-code-sheet .sale-excel-table .r-info td{height:23px;font-size:14px}
  body.print-sale-code-sheet .sale-excel-table .r-head td{height:21px;font-size:14px}
  body.print-sale-code-sheet .sale-excel-table .r-sign td{height:27px;font-size:12px}
  body.print-sale-code-sheet .sale-excel-summary{display:none}
}

body.workspace-page .sale-code-picker.return-code-picker table{width:max-content;min-width:1480px;table-layout:auto}
body.workspace-page .sale-code-picker.return-code-picker .sale-roll-quantity{min-width:86px;width:86px}
.return-code-picker .sale-roll-quantity label{flex-wrap:nowrap;white-space:nowrap}
.return-code-picker .return-roll-qty{width:48px;max-width:48px}
.return-code-picker td.num,.return-code-picker th.num{white-space:nowrap}
.return-code-picker input[data-return-price]{display:block;width:76px;max-width:100%;box-sizing:border-box;margin:0 auto 2px}

/* Keep headers visible in the receipt picker; warehouse inventory cards keep their own layout. */
#receiptInputBox .receipt-input-code-picker>.table-wrap>table>thead{display:table-header-group}
#receiptInputBox .receipt-source-plan span,#receiptInputBox .receipt-source-plan small{display:block}
#receiptInputBox .receipt-source-plan small{font-size:11px;margin-top:3px}
