/* This sheet is loaded only by the barcode page. All print rules are opt-in. */
.dg-label-maker { margin-block-start:2rem; padding-block-start:1.5rem; border-top:1px solid var(--border,#d8dde5); }
.dg-label-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.dg-label-wide { grid-column:1/-1; }
.dg-label-form textarea { width:100%; min-height:10rem; font-family:monospace; font-size:.85rem; }
.dg-label-form .field { min-width:0; }
.dg-label-form .field input,.dg-label-form .field select { width:100%; min-width:0; }
.dg-label-preview { max-width:100%; overflow:auto; }
.dg-label-preview-page { width:max-content; padding:2px; }
.dg-label-page-caption { font-weight:600; margin:.75rem 0; }
.dg-label-page { position:relative; width:210mm; height:297mm; box-sizing:border-box; background:#fff; color:#000; margin:0 0 1rem; box-shadow:0 0 0 1px #b8c0c9; }
.dg-label { position:absolute; box-sizing:border-box; padding:3mm; background:#fff; color:#000; outline:1px dashed #bbc3cd; overflow:hidden; font-family:Arial,sans-serif; }
.dg-label-name { height:8mm; line-height:4mm; font-size:3.1mm; font-weight:600; overflow-wrap:anywhere; white-space:pre-line; overflow:hidden; }
.dg-label-price { height:5mm; line-height:5mm; font-size:3mm; white-space:pre; overflow:hidden; }
.dg-label-codes { display:flex; align-items:center; justify-content:center; gap:2mm; margin-top:2mm; }
.dg-label-codes svg { display:block; max-width:none!important; flex:none; overflow:visible; }
.dg-label-print-root { display:none; }
@media(max-width:560px) { .dg-label-form { grid-template-columns:minmax(0,1fr); } }
@media print {
 @page dg-label-sheet { size:A4 portrait; margin:0; }
 body.dg-label-printing { margin:0!important; padding:0!important; background:#fff!important; }
 body.dg-label-printing > :not(.dg-label-print-root) { display:none!important; }
 body.dg-label-printing .dg-label-print-root { display:block!important; margin:0!important; padding:0!important; page:dg-label-sheet; }
 body.dg-label-printing .dg-label-page { display:block!important; width:210mm!important; height:297mm!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; break-after:page; break-inside:avoid; overflow:hidden; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 body.dg-label-printing .dg-label-page:last-child { break-after:auto; }
 body.dg-label-printing .dg-label { outline:0!important; }
}
