.label-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:18px;align-items:start;min-width:0}
.label-workspace .formgrid{grid-template-columns:1fr}.label-workspace .hint{margin:0;font-size:12px}.label-workspace .panel{margin-bottom:0}.label-workspace input,.label-workspace select{min-width:0}.label-fields,.label-preview-panel{min-width:0}.label-preview-panel{padding-bottom:14px}.label-preview-panel>.hint{margin:12px 16px 0}.label-preview-mat{min-height:200px;background:#edf2f7;display:grid;place-items:center;padding:28px 10px;overflow:auto;border-bottom:1px solid var(--border)}.label-preview-mat .barcode-sticker{box-shadow:0 3px 12px #17314a25;outline:1px dashed #aab9c7}.label-summary{text-align:center;font-size:12px;color:#687d92;margin:12px 16px}.label-error{font-size:13px;color:#a1283b;margin:10px 16px;overflow-wrap:anywhere}.label-error:empty{display:none}.label-print-actions{display:flex;justify-content:center;margin:14px 16px}.label-print-actions>button{min-width:160px}.label-settings>summary{margin:0;font-size:13px;color:#406184}.label-settings .split{margin-top:12px}.label-shortcut-help{grid-column:1/-1;font-size:12px;color:#63798d;padding:4px 0}.label-shortcut-help p{margin:5px 0 10px}.label-shortcut-help kbd{color:#385a7b;background:white;font-size:11px;direction:ltr}.label-shortcut-help button{font-size:12px}#label-dialog{width:min(1000px,96vw);max-height:calc(100dvh - 28px);overflow:auto}#label-dialog .dialog-head{position:sticky;top:-16px;background:white;z-index:2;padding:8px 0}#label-dialog .label-workspace{min-width:0}.label-print-frame{position:fixed;width:1px;height:1px;border:0;left:0;bottom:0;opacity:0;pointer-events:none}
/* Shared, self-contained sticker geometry for preview and the isolated print document. */
.barcode-sticker{box-sizing:border-box;width:var(--label-width,50mm);height:var(--label-height,30mm);padding:1.2mm;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1.35fr) 2.4mm 3.8mm;gap:.4mm;background:#fff;color:#000;font-family:"IRANYekanX",Tahoma,Arial,sans-serif;text-align:center;direction:rtl;line-height:1;overflow:hidden;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.barcode-title{overflow:hidden;min-height:0;display:flex;align-items:center;justify-content:center}.barcode-title>span{display:block;width:100%;font-size:9pt;line-height:1.2;overflow-wrap:anywhere}.barcode-image{min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden}.barcode-image svg{display:block;flex:none;max-width:none;shape-rendering:crispEdges}.barcode-code{font-size:6.5pt;line-height:2.4mm;white-space:nowrap;font-variant-numeric:tabular-nums;overflow:hidden;direction:ltr}.barcode-price{min-height:0;min-width:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.barcode-price>span{display:block;font-weight:700;font-size:10pt;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:850px){.label-workspace{grid-template-columns:1fr}.label-preview-mat{min-height:165px;padding:22px 8px}.label-shortcut-help{font-size:11px}.label-workspace .split{grid-template-columns:1fr 1fr}#label-dialog{padding:14px}}
@media(max-width:420px){.ux-ready .header-actions #open-barcode-labels{font-size:11px}.label-preview-mat{max-width:100%;justify-content:start}.label-preview-mat>div{margin:auto}.label-workspace .split{grid-template-columns:1fr}}
@media print{.label-print-frame{display:none}.label-shortcut-help{display:none}}
