@page{size:letter;margin:12mm}
body.print-doc{background:#fff;color:#101828;font-size:10.5pt;line-height:1.45;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet{max-width:8.5in;margin:0 auto;padding:10mm 0}
.doc-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2.5px solid #0e6b4f;padding-bottom:10px;margin-bottom:14px;gap:1rem}
.company{display:flex;align-items:center;gap:14px}
.print-logo{height:58px;width:auto;object-fit:contain}
.company-text strong{font-size:12.5pt;color:#0e6b4f}
.company-text .small{color:#475467;font-size:8.8pt}
.doc-title{text-align:end}
.doc-title h1{font-size:17pt;margin:0;letter-spacing:-.01em;color:#101828}
.docno{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11pt;color:#0e6b4f;font-weight:600;margin-top:2px}
.stamp{display:inline-block;border:2px solid #b42318;color:#b42318;padding:0 10px;border-radius:4px;font-weight:700;transform:rotate(-4deg);margin-top:6px;letter-spacing:.05em}
table.kv{width:100%;border-collapse:separate;border-spacing:0;margin-bottom:14px;border:1px solid #d0d5dd;border-radius:6px;overflow:hidden}
table.kv th,table.kv td{border-bottom:1px solid #eaecf0;padding:5px 8px;text-align:start;font-size:9.5pt}
table.kv tr:last-child th,table.kv tr:last-child td{border-bottom:0}
table.kv th{background:#f2f7f5;width:18%;font-weight:600;color:#344054}
table.lines-print{width:100%;border-collapse:separate;border-spacing:0;font-size:9.5pt;border:1px solid #d0d5dd;border-radius:6px;overflow:hidden}
.lines-print th,.lines-print td{border-bottom:1px solid #eaecf0;padding:5px 7px;text-align:start;vertical-align:top}
.lines-print thead th{background:#0e6b4f;color:#fff;font-weight:600;font-size:9pt}
.lines-print tbody tr:nth-child(even) td{background:#f9fafb}
.lines-print tbody tr:last-child td{border-bottom:0}
.lines-print td.num,.lines-print th.num{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.lines-print tfoot th,.lines-print tfoot td{background:#f2f7f5;font-weight:700;border-top:1px solid #d0d5dd;border-bottom:0}
.lines-print tr{page-break-inside:avoid}
.en{font-size:.86em;color:#475467;font-weight:500}
.mode-both th .en{display:block}
.lines-print thead .en{color:#d2ede1}
.signs{display:flex;gap:28px;margin-top:44px}.sign{flex:1;text-align:center;font-size:9.5pt;color:#344054}.sign .line{border-bottom:1px solid #101828;height:44px;margin-bottom:6px}
footer{margin-top:18px;border-top:1px solid #eaecf0;padding-top:6px;font-size:8pt;color:#667085}
.toolbar{position:sticky;top:0;padding:12px 0;background:#fff}
@media print{.noprint{display:none!important}.sheet{padding:0}}

/* ---------- shelf labels & promo signs (US Letter) ---------- */
body.print-labels{background:#eef0f3;color:#101828;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
body.print-labels .label-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #eaecf0;font-size:13px}
body.print-labels .label-toolbar .btn{margin-inline-start:auto}
@page labels{size:letter;margin:0}
.label-sheet{page:labels;width:8.5in;height:11in;box-sizing:border-box;padding:.25in;margin:16px auto;background:#fff;display:grid;gap:0;box-shadow:0 4px 18px rgba(16,24,40,.12);page-break-after:always;break-after:page;overflow:hidden}
.label{box-sizing:border-box;overflow:hidden;position:relative;border:.6pt dashed #c3c8d0;display:flex;flex-direction:column}
.label .muted{color:#98a2b3}
/* shelf-edge label */
.label.shelf{padding:.07in .1in .05in;gap:1px}
.l-name{font-weight:700;font-size:10.5pt;line-height:1.2;flex-shrink:0}
.l-name,.l-name .en{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mode-both .l-name{display:block}
.mode-both .l-name br{display:none}
.mode-both .l-name .fa,.mode-both .l-name .en{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-name .en{display:block;font-size:8.5pt;color:#475467;font-weight:600}
.l-price{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:flex-end}
.ln{display:block}
.ln.en{direction:ltr}
.l-promo strong,.sign-reg strong{font-weight:800}
.deal-big small.for{display:inline-block;font-size:.4em;line-height:1.05;text-align:center;vertical-align:.35em}
.mode-both .deal-big small.for span{display:block}
.mode-both .l-promo .ln,.mode-both .l-unit .ln{line-height:1.25}
.mode-both.tpl-shelf24 .l-bc{height:.27in}
.mode-both.tpl-shelf24 .price-big{font-size:21pt}
.mode-both.tpl-shelf24 .deal-big{font-size:17pt}
.price-big{font-size:24pt;font-weight:800;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.price-big small,.deal-big small{font-size:.45em;font-weight:600;color:#475467;margin-inline-start:2px}
.deal-big{font-size:19pt;font-weight:800;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.deal-big.bogo{font-size:13pt;white-space:normal;text-align:end}
.l-promo{font-size:7pt;color:#b42318;font-weight:600;text-align:end}
.l-meta{display:flex;flex-direction:column;gap:1px}
.l-unit{font-size:7pt;color:#344054}
.l-codes{display:flex;align-items:flex-end;justify-content:space-between;gap:6px}
.l-bc{display:block;width:1.15in;height:.32in}
.l-bc svg{width:100%;height:100%;display:block}
.l-sku{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:6.5pt;color:#667085}
.label.shelf.is-promo{border:1.4pt solid #b42318;background:linear-gradient(180deg,#fff 0%,#fff 62%,#fff5f4 100%)}
.label.shelf.is-promo .price-big,.label.shelf.is-promo .deal-big{color:#b42318}
.ribbon{position:absolute;top:0;inset-inline-start:0;background:#b42318;color:#fff;font-size:6.5pt;font-weight:800;letter-spacing:.08em;padding:1px 7px;border-end-end-radius:5px}
[dir=rtl] .ribbon{letter-spacing:0}
.is-promo .l-name{padding-top:9px}
.tpl-shelf10 .label.shelf{padding:.12in .16in .08in}
.tpl-shelf10 .l-name{font-size:14pt}.tpl-shelf10 .l-name .en{font-size:11pt}
.tpl-shelf10 .price-big{font-size:40pt}.tpl-shelf10 .deal-big{font-size:30pt}
.tpl-shelf10 .l-promo,.tpl-shelf10 .l-unit{font-size:9pt}.tpl-shelf10 .l-bc{width:1.5in;height:.42in}
/* promotional sign */
.label.sign{padding:.25in .3in;align-items:center;text-align:center;justify-content:space-between;border:1.5pt solid #b42318}
.sign-head{background:#b42318;color:#fff;font-weight:800;letter-spacing:.12em;padding:4px 22px;border-radius:999px;font-size:16pt;text-transform:uppercase}
[dir=rtl] .sign-head{letter-spacing:0}
.sign-name{font-size:22pt;font-weight:800;line-height:1.15}
.sign-name .en{display:block;font-size:15pt;color:#344054;font-weight:700}
.sign-deal .price-big{font-size:72pt;color:#b42318}
.sign-deal .deal-big{font-size:54pt;color:#b42318}
.sign-deal .deal-big.bogo{font-size:34pt;text-align:center}
.sign-reg{font-size:14pt;color:#344054}
.sign-reg strong{color:#b42318}
.sign-limit{font-size:11pt;color:#475467}
.sign-head .en,.ribbon .en{color:inherit}
.sign-head .en{opacity:.8;font-weight:700}
.sign-period,.sign-unit{text-align:start}
.sign-foot{display:flex;justify-content:space-between;align-items:flex-end;width:100%;gap:10px;font-size:9pt;color:#475467}
.sign-foot .l-bc{width:1.3in;height:.38in}
.tpl-sign2 .sign-name{font-size:30pt}.tpl-sign2 .sign-deal .price-big{font-size:110pt}.tpl-sign2 .sign-deal .deal-big{font-size:80pt}
@media print{
  body.print-labels{background:#fff}
  .label-sheet{margin:0;box-shadow:none}
}
/* stock count sheet: boxes to write the counted quantity in */
.lines-print td.write-box{min-width:22mm;border:1px solid #98a2b3;background:#fff}
.lines-print tfoot th,.lines-print tfoot td{background:#f2f4f7;font-weight:700;border-top:1px solid #d0d5dd}
