.labels-preview{background:#e9eaed;padding:18px;overflow:auto;margin-top:18px;max-height:560px}
.labels-output{color:#000;font-family:Arial,sans-serif;font-weight:400;line-height:1.08}
.product-label{background:white;box-sizing:border-box;width:50mm;height:30mm;padding:1.5mm 2mm;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;break-inside:avoid;margin:0}
.labels-preview .product-label{outline:1px solid #c6c9ce;margin-bottom:6px}
.product-label header{display:flex;justify-content:space-between;font-size:8pt;height:3.5mm;flex:none;gap:1mm}
.product-label header span{font-weight:bold;white-space:nowrap}
.label-description{font-size:7pt;height:5.3mm;overflow:hidden;overflow-wrap:anywhere;font-weight:bold}
.label-variant{font-size:6pt;height:4.6mm;overflow:hidden;overflow-wrap:anywhere}
.label-sku{font-size:6pt;white-space:nowrap;overflow:hidden;height:2.5mm}
.label-bars{height:8mm;flex:none;display:flex;justify-content:center;background:white}
.label-bars svg{max-width:none;flex:none}
.product-label footer{font-size:4.8pt;white-space:nowrap;text-align:center;height:2mm;margin-top:.3mm}
.roll70 .product-label{width:70mm;height:40mm;padding:3mm 4mm}
.roll70 .label-description{font-size:9pt;height:7.2mm}.roll70 .label-variant{font-size:7pt;height:10mm}
.labels-a4-page{width:158mm;display:grid;grid-template-columns:repeat(3,50mm);grid-auto-rows:30mm;gap:1mm;break-after:page}
.labels-a4-page:last-child{break-after:auto}.labels-preview .labels-a4-page{margin-bottom:20px}.labels-a4-page .product-label{margin:0}
@page labels50{size:50mm 30mm;margin:0}
@page labels70{size:70mm 40mm;margin:0}
@page labelsA4{size:A4;margin:5mm}
@media print{
 #print:has(.labels-output){width:auto!important;margin:0!important;padding:0!important}
 #print .roll50 .product-label{page:labels50;break-after:page}
 #print .roll70 .product-label{page:labels70;break-after:page}
 #print .a4{page:labelsA4}
 #print .product-label{outline:none!important;margin:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #print .product-label:last-child{break-after:auto}
}
