/* Editor/visualização de etiquetas de gôndola 80 mm. Impressão é autônoma no popup. */
.shelf-label-picker{display:flex;flex-direction:column;gap:14px}
.shelf-label-picker>p:first-child,.shelf-label-help{font-size:.85rem;line-height:1.5;color:#526e62;margin:0}
.shelf-label-preview-title,.shelf-label-variant-head{font-size:.95rem;font-weight:800;color:#164f39}
.shelf-label-preview{display:flex;justify-content:center;align-items:center;border:1px solid #d5e5d9;
 background:#eaf1ec;border-radius:12px;padding:14px;overflow:auto}
.shelf-label-preview .shelf-label{box-sizing:border-box;display:flex;flex-direction:column;
 background:#fff;color:#000;width:80mm;max-width:80mm;min-width:80mm;height:56mm;padding:2.5mm 4mm 2mm;
 font-family:Arial,sans-serif;gap:1mm;box-shadow:0 2px 12px #0002;overflow:hidden}
.shelf-label-preview .shelf-label-heading{display:flex;align-items:center;justify-content:space-between}
.shelf-label-preview .shelf-label-heading strong{font-size:10pt;letter-spacing:.1px}
.shelf-label-preview .shelf-label-heading small{font-size:6.5pt;letter-spacing:.5px}
.shelf-label-preview .shelf-label-place{border-top:1.4px solid #000;border-bottom:1.4px solid #000;
 display:flex;align-items:center;justify-content:space-between;padding:.9mm 0;gap:2mm}
.shelf-label-preview .shelf-label-place>div{display:flex;flex-direction:column;gap:.5mm}
.shelf-label-preview .shelf-label-place span{font-size:7pt;font-weight:700}
.shelf-label-preview .shelf-label-place>div>strong{font-size:19pt;font-weight:900;line-height:1.1}
.shelf-label-preview .shelf-label-shelf{text-align:right}
.shelf-label-preview .shelf-label-shelf strong{font-size:17pt!important}
.shelf-label-preview .shelf-label-product{display:flex;flex-direction:column;gap:.7mm;min-height:11mm}
.shelf-label-preview .shelf-label-product strong{font-size:11pt;line-height:1.12;font-weight:900;overflow-wrap:anywhere}
.shelf-label-preview .shelf-label-product span{font-size:10.5pt;font-weight:800}
.shelf-label-preview .shelf-label-code{margin-top:auto;display:flex;align-items:center;flex-direction:column;gap:.4mm}
.shelf-label-preview .shelf-barcode{width:70mm;height:17mm;max-width:100%;display:block}
.shelf-label-preview .shelf-label-code>strong{font-size:10pt;letter-spacing:1px;font-family:monospace}
.shelf-label-preview .shelf-label-footer{border-top:1px solid #000;padding-top:.7mm;
 display:flex;justify-content:space-between;gap:2mm;font-size:7pt;font-weight:700}
.shelf-label-variant-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.shelf-label-variant-head small{font-size:.76rem;font-weight:400;color:#668176}
.shelf-label-variants{display:flex;flex-direction:column;gap:8px;max-height:280px;overflow:auto}
.shelf-label-option{display:flex;justify-content:space-between;gap:10px;align-items:center;
 border:1px solid #d9e6df;padding:10px;border-radius:10px;background:white}
.shelf-label-option>label:first-child{display:flex;align-items:center;gap:10px;min-width:0;flex:1;cursor:pointer}
.shelf-label-option input[type="checkbox"]{width:18px;height:18px;flex:none;accent-color:#146444}
.shelf-label-option>label:first-child span{display:flex;flex-direction:column;gap:3px;min-width:0}
.shelf-label-option strong{font-size:.85rem;color:#174e36}
.shelf-label-option small{font-size:.72rem;color:#5f796c;overflow-wrap:anywhere}
.shelf-label-option .shelf-label-warning{color:#a4461d}
.shelf-label-option.unavailable{opacity:.75;background:#f6f8f7}
.shelf-label-copies{display:flex;flex-direction:column;gap:3px;font-size:.72rem;color:#658274;align-items:center}
.shelf-label-copies input{width:70px;min-height:36px;border:1px solid #cadbd0;border-radius:8px;
 padding:5px 8px;text-align:center;font-size:1rem;background:white;color:#17392b}
.shelf-label-help{padding:10px;background:#f1f7f3;border-radius:8px}
@media(max-width:450px){.shelf-label-preview{padding:6px}
 .shelf-label-option{padding:8px;gap:7px}
 .shelf-label-copies input{width:54px}}


/* Etiqueta de gôndola 80 × 85 mm: prévia em escala física, idêntica à impressão. */
.shelf-label-preview .shelf-label{
 height:85mm;min-height:85mm;padding:2.5mm 3.5mm 2mm;gap:1mm;
}
.shelf-label-preview .shelf-label-product{min-height:15mm;gap:1mm}
.shelf-label-preview .shelf-label-product strong{
 font-size:17pt;line-height:1.12;font-weight:900;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.shelf-label-preview .shelf-label-product span{font-size:12pt}
.shelf-label-preview .shelf-label-identifiers{
 display:flex;flex-direction:column;gap:1mm;padding:1mm 0;border-top:1px solid #222;
}
.shelf-label-preview .shelf-label-identifiers>div{display:flex;align-items:baseline;gap:2mm;min-width:0}
.shelf-label-preview .shelf-label-identifiers span{font-size:9pt;font-weight:800;min-width:9mm}
.shelf-label-preview .shelf-label-identifiers strong{
 font-size:13pt;line-height:1.1;font-weight:850;color:#111;overflow-wrap:anywhere;
}
.shelf-label-preview .shelf-barcode{width:72mm;height:27mm;max-width:none}
.shelf-label-preview .shelf-label-code>strong{font-size:12pt;letter-spacing:.4px;font-weight:800}
@media(max-width:450px){.shelf-label-preview{justify-content:flex-start}}
