
.lb-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.lb-tabs .btn.on { background: var(--primary, #1d4ed8); color: #fff; border-color: transparent; }
.lb-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.lb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0; }
.lb-paste { width: 100%; min-height: 70px; font-family: monospace; }
.lb-prev { max-height: 60vh; overflow: auto; background: #e5e7eb; padding: 12px; border-radius: 8px; }
.lb-prev .lbl-page { margin: 0 auto 12px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
/* ---------- lembar label (layar pratinjau + cetak) ---------- */
.lbl-page { background: #fff; color: #000; box-sizing: border-box; overflow: hidden; display: grid; align-content: start; }
/* v3.6.29: hanya label cetak (selalu punya kelas sz-*). Dulu '.lbl' umum ikut menempel ke label kartu KPI Dashboard (kotak putus-putus). */
.lbl[class*="sz-"] { box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1mm; padding: 2mm; font-family: Arial, Helvetica, sans-serif; line-height: 1.15; border: .2mm dashed #bbb; }
.lbl .lb-row { display: flex; gap: 1.5mm; align-items: center; min-height: 0; }
.lbl .lb-code { flex: 0 0 auto; }
.lbl .lb-code svg { display: block; }
.lbl .lb-bc { flex: 0 0 auto; width: 100%; }
.lbl .lb-bc svg { display: block; }
.lbl.lbl-p { display: block; padding: 0; }
.lbl.lbl-p .lb-pt { position: absolute; white-space: nowrap; overflow: visible; }
.lbl.lbl-p .lb-code, .lbl.lbl-p .lb-bc { position: absolute; }
.lbl .lb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.lbl .lb-main { font-weight: 800; word-break: break-all; white-space: nowrap; line-height: 1.05; margin-bottom: .5mm; }
.lbl .lb-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbl .lb-wrap { white-space: normal; word-break: break-all; }
.lbl .lb-name { white-space: normal; max-height: 2.4em; overflow: hidden; }
.lbl .lb-strong { font-weight: 700; }
.lbl.sz-a4_3x8 .lb-main { font-size: 4.2mm; } .lbl.sz-a4_3x8 .lb-line { font-size: 2.7mm; }
.lbl.sz-a4_2x5 .lb-main { font-size: 5.5mm; } .lbl.sz-a4_2x5 .lb-line { font-size: 3.4mm; }
/* v3.13.238: roll label thermal untuk printer D4601B: 80x50, 70x50, 60x40 */
.lbl.sz-r80x50 .lb-main { font-size: 5.2mm; } .lbl.sz-r80x50 .lb-line { font-size: 3.2mm; }
.lbl.sz-r70x50 .lb-main { font-size: 4.8mm; } .lbl.sz-r70x50 .lb-line { font-size: 3mm; }
.lbl.sz-r60x40 .lb-main { font-size: 4.2mm; } .lbl.sz-r60x40 .lb-line { font-size: 2.7mm; }
.lbl.sz-a4_100x30 .lb-main { font-size: 12mm; } .lbl.sz-a4_100x30 .lb-line { font-size: 3mm; }
.lbl.sz-a4_100x30 { padding: 1.5mm 2mm; }
.lb-chk { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
@media screen { .wms-print { display: none; } }
@media print {
  body > *:not(.wms-print) { display: none !important; }
  .wms-print { display: block !important; }
  #lbl-print .lbl-page { break-after: page; page-break-after: always; }
  #lbl-print .lbl-page:last-child { break-after: auto; page-break-after: auto; }
  #lbl-print .lbl { border: none; }
}
