/* MultiBar 1.8.12 */

/* ===== Графики: чёткая сетка, смены — отдельные «плашки» (соседние клетки не сливаются) ===== */
.sch-wrap { --sch-line: color-mix(in srgb, var(--text, #1e293b) 18%, transparent); --sch-line-strong: color-mix(in srgb, var(--text, #1e293b) 34%, transparent); }
.sch-table { border-collapse: separate !important; border-spacing: 0 !important; border-left: 1px solid var(--sch-line); border-top: 1px solid var(--sch-line); }
.sch-table th, .sch-table td { border-right: 1px solid var(--sch-line) !important; border-bottom: 1px solid var(--sch-line) !important; }
.sch-table .sch-name { border-right: 2px solid var(--sch-line-strong) !important; height: 42px; line-height: 1.15; }
.sch-table .sch-name b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-table .sch-name small { display: block; font-size: 10.5px; font-weight: 700; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.sch-table .sch-head th { border-bottom: 2px solid var(--sch-line-strong) !important; }
.sch-c { background: var(--card) !important; color: var(--text) !important; padding: 0 !important; height: 42px; }
.sch-c.we { background: linear-gradient(rgba(239, 68, 68, .06), rgba(239, 68, 68, .06)), var(--card) !important; }
.sch-c .sch-v { display: flex; align-items: center; justify-content: center; height: 32px; margin: 0 3px; border-radius: 9px; font-weight: 800; font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap; }
.sch-c.w .sch-v, .sch-c.mk .sch-v { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10); }
.sch-c.w.k-g .sch-v, .sch-c.mk.k-g .sch-v { background: #BBF7D0; color: #14532D; }
.sch-c.w.k-b .sch-v, .sch-c.mk.k-b .sch-v { background: #BFDBFE; color: #1E3A8A; }
.sch-c.w.k-y .sch-v, .sch-c.mk.k-y .sch-v { background: #FDE68A; color: #78350F; }
.sch-c.w.k-o .sch-v, .sch-c.mk.k-o .sch-v { background: #FED7AA; color: #7C2D12; }
.sch-c.w.k-r .sch-v, .sch-c.mk.k-r .sch-v { background: #FECACA; color: #7F1D1D; }
.sch-c.w.k-p .sch-v, .sch-c.mk.k-p .sch-v { background: #E9D5FF; color: #581C87; }
.sch-c.w.k-k .sch-v, .sch-c.mk.k-k .sch-v { background: #FBCFE8; color: #831843; }
.sch-c.w.k-s .sch-v, .sch-c.mk.k-s .sch-v { background: #E5E7EB; color: #374151; }
.sch-c.mk .sch-v { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 4px, transparent 4px 8px) !important; }
.sch-c.today { box-shadow: inset 2px 0 0 rgba(var(--primary-rgb), .7), inset -2px 0 0 rgba(var(--primary-rgb), .7) !important; }
.sch-c.ed:active .sch-v { transform: scale(.94); }
.sch-c .sch-v { transition: transform .12s ease; }
.sch-cnt td { border-bottom: 2px solid var(--sch-line-strong) !important; }
.sch-gap td { border: 0 !important; height: 12px; }
[data-theme^="dark"] .sch-c.w .sch-v, [data-theme^="dark"] .sch-c.mk .sch-v { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* ===== Табель ===== */
.ts-total { display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 0 14px 8px; font-size: 13px; opacity: .9; }
.ts-total b { font-weight: 800; }
.ts-total:empty { display: none; }
.ts-table .ts-d { min-width: 40px !important; }
.ts-table .ts-c { min-width: 40px; }
.ts-table .ts-c .sch-v { margin: 0 2px; height: 30px; font-size: 13px; }
.ts-rate-h, .ts-sum-h { font-size: 11px; font-weight: 800; padding: 4px 6px; background: linear-gradient(rgba(241, 157, 100, .22), rgba(241, 157, 100, .22)), var(--card) !important; white-space: nowrap; }
.ts-sum-h small { font-weight: 700; opacity: .7; }
.ts-pay-h, .ts-all-h { background: linear-gradient(rgba(246, 178, 107, .34), rgba(246, 178, 107, .34)), var(--card) !important; }
.ts-rate { min-width: 56px; font-weight: 800; font-size: 12.5px; background: var(--card); white-space: nowrap; }
.ts-rate.ed { cursor: pointer; }
.ts-ph { font-weight: 600; font-size: 11px; opacity: .45; }
.ts-sum { min-width: 52px; font-weight: 800; font-size: 12.5px; background: linear-gradient(rgba(241, 157, 100, .08), rgba(241, 157, 100, .08)), var(--card) !important; white-space: nowrap; padding: 0 6px !important; }
.ts-money { min-width: 70px; }
.ts-all { min-width: 84px; line-height: 1.15; }
.ts-all b { display: block; font-size: 12.5px; }
.ts-all small { display: block; font-size: 11px; opacity: .75; font-weight: 700; }

/* ===== Плавный ползунок сегментов (подразделения заказов, «Инвентаризация / Посуда») ===== */
.has-seg-ind { position: relative !important; isolation: isolate; }
.mb-seg-ind { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 9px; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
  transition: transform .34s cubic-bezier(.32, .72, .24, 1), width .34s cubic-bezier(.32, .72, .24, 1), height .34s cubic-bezier(.32, .72, .24, 1), opacity .2s ease; will-change: transform, width; }
.has-seg-ind > button { position: relative; z-index: 1; }
.orders-location-tabs.has-seg-ind .orders-location-btn.active { background: transparent !important; box-shadow: none !important; }
.orders-location-tabs .orders-location-btn { transition: color .25s ease; }
.inv-seg.has-seg-ind .mb-seg-ind { background: var(--primary); border-radius: 11px; box-shadow: 0 2px 8px rgba(var(--primary-rgb), .35); }
.inv-seg.has-seg-ind button, .inv-seg.has-seg-ind button.on { background: transparent !important; box-shadow: none !important; transition: color .25s ease, opacity .25s ease !important; }
.inv-seg.has-seg-ind button.on { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .mb-seg-ind { transition: none; } }

/* счётчик заказов у подразделения */
.orders-location-btn { position: relative; }
.olb-n { position: absolute; top: -3px; right: -3px; z-index: 2; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--primary); color: #fff;
  font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--border); pointer-events: none; }
.olb-n[hidden] { display: none; }
.olb-n.pop { animation: olbPop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes olbPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.orders-location-tabs { overflow: visible !important; padding-top: 6px !important; }

/* плавное раскрытие и скрытие недель */
.wo-week-chevron { transition: transform .26s cubic-bezier(.3, .7, .2, 1); display: inline-flex; }
.wo-week-block.is-closing .wo-week-chevron { transform: rotate(-90deg); }
.wo-week-body.wo-anim { overflow: hidden !important; }

/* ===== Видеосообщение: вспышка (фонарик / подсветка экраном) ===== */
.mb-vrec-fl { position: absolute; top: 10px; left: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease; }
.mb-vrec-fl:active { transform: scale(.92); }
.mb-vrec-fl.on { background: #FDE047; color: #422006; box-shadow: 0 0 18px rgba(253, 224, 71, .7); }
.mb-vrec[data-state="review"] .mb-vrec-fl { display: none; }
.mb-vrec.flash-screen { background: #ffffff !important; transition: background .25s ease; }
.mb-vrec.flash-screen .mb-vrec-box { color: #111827; }
.mb-vrec.flash-screen .mb-vrec-time, .mb-vrec.flash-screen .mb-vrec-hint { color: #111827 !important; }
.mb-vrec.flash-screen .mb-vrec-time i { background: #ef4444 !important; }
.mb-vrec.flash-screen .mb-vrec-stage { box-shadow: 0 0 0 10px #fff, 0 0 60px 30px rgba(255, 255, 255, 1); }
.mb-vrec.flash-screen .mb-vrec-fl { background: #FDE047; color: #422006; }
.mb-vrec.flash-screen .mb-vrec-rb { background: rgba(17, 24, 39, .08); color: #111827; }

/* ===== Резервная копия (Настройки, владелец) ===== */
.bk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.bk-actions .settings-wide-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bk-progress { position: relative; height: 30px; border-radius: 10px; background: rgba(var(--primary-rgb), .1); overflow: hidden; margin: 8px 0; }
.bk-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(var(--primary-rgb), .3); transition: width .25s ease; }
.bk-progress span { position: relative; display: block; line-height: 30px; text-align: center; font-size: 12.5px; font-weight: 700; }
.bk-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bk-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.bk-main { flex: 1; min-width: 0; }
.bk-main b { display: block; font-size: 13.5px; }
.bk-main b em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(var(--primary-rgb), .14); color: var(--primary); margin-left: 4px; }
.bk-main small { display: block; font-size: 11.5px; opacity: .65; margin-top: 2px; }
.bk-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.bk-empty { font-size: 12.5px; opacity: .6; padding: 6px 2px; }
.bk-note { font-size: 11.5px; opacity: .6; margin: 10px 2px 0; line-height: 1.4; }

/* ===== Электронное меню (персонал) ===== */
.em-screen { display: flex; flex-direction: column; }
.em-tools { display: flex; gap: 8px; padding: 10px 14px 6px; align-items: center; }
.em-search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.em-search .mb-icon { position: absolute; left: 12px; opacity: .55; pointer-events: none; }
.em-search input { width: 100%; height: 42px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 0 12px 0 36px; box-sizing: border-box; }
.em-add { flex: 0 0 auto; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.em-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 8px; scrollbar-width: none; flex: 0 0 auto; }
.em-cats::-webkit-scrollbar { display: none; }
.em-cat { flex: 0 0 auto; height: 34px; padding: 0 13px; border-radius: 17px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.em-cat.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.em-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 14px 30px; -webkit-overflow-scrolling: touch; }
.em-sec h3 { font-size: 15px; font-weight: 800; margin: 14px 2px 8px; display: flex; align-items: center; gap: 8px; }
.em-sec h3 span { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 8px; background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.em-item { display: flex; gap: 10px; width: 100%; text-align: left; align-items: stretch; padding: 9px; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.em-item.stop { opacity: .6; }
.em-ph { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 11px; background: rgba(var(--primary-rgb), .08) center/cover no-repeat; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.em-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.em-main b { font-size: 14.5px; font-weight: 800; }
.em-main small { font-size: 12px; opacity: .65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.em-meta i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 7px; background: rgba(127, 127, 127, .12); }
.em-stop { color: #b91c1c !important; background: #fee2e2 !important; font-style: normal; padding: 1px 7px; border-radius: 7px; font-size: 11px; }
.em-price { flex: 0 0 auto; font-weight: 800; font-size: 14.5px; white-space: nowrap; align-self: center; }
.em-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.em-big { margin: -16px -16px 12px; height: 220px; border-radius: 22px 22px 0 0; background: rgba(var(--primary-rgb), .08) center/cover no-repeat; }
.em-d-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.em-d-head b { font-size: 19px; font-weight: 800; }
.em-d-head span { font-size: 18px; font-weight: 800; white-space: nowrap; }
.em-d-meta { font-size: 13px; opacity: .7; margin-top: 3px; }
.em-d-lab { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .55; margin-top: 14px; }
.em-d-desc { font-size: 14px; margin-top: 4px; line-height: 1.45; }
.em-d-act { flex-wrap: wrap; }
.em-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.em-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; opacity: .9; }
.em-form input[type="text"], .em-form textarea { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 10px 12px; font-weight: 500; }
.em-form textarea { resize: vertical; min-height: 70px; }
.em-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.em-photo-row { display: flex; gap: 12px; align-items: center; }
.em-photo-row > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.em-ph-form { width: 84px; height: 84px; }
.em-link { border: 0; background: none; color: var(--danger, #ef4444); font: inherit; font-size: 13px; font-weight: 700; padding: 2px 0; cursor: pointer; }
.em-sw { flex-direction: row !important; }
.em-qr { display: flex; justify-content: center; margin: 12px 0 8px; }
.em-qr canvas { width: min(70vw, 260px); height: auto; border-radius: 12px; image-rendering: pixelated; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.em-url { font-size: 12.5px; text-align: center; word-break: break-all; opacity: .75; padding: 0 6px; }
.em-qr-act .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; }

/* ===== Поддержка ===== */
.sp-screen { display: flex; flex-direction: column; }
.sp-link { padding: 8px 14px 0; }
.sp-link a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 12px; background: rgba(var(--primary-rgb), .1); color: var(--primary); font-weight: 800; text-decoration: none; font-size: 14px; border: 1.5px solid rgba(var(--primary-rgb), .3); }
.sp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px 16px; -webkit-overflow-scrolling: touch; }
.sp-thread { display: flex; flex-direction: column; gap: 8px; }
.sp-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 84%; }
.sp-msg.me { align-self: flex-end; align-items: flex-end; }
.sp-bub { padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: var(--card); border: 1px solid var(--border); font-size: 14.5px; line-height: 1.4; white-space: normal; word-wrap: break-word; }
.sp-msg.me .sp-bub { background: var(--primary); color: #fff; border-color: transparent; border-radius: 16px 16px 5px 16px; }
.sp-msg small { font-size: 10.5px; opacity: .55; margin: 3px 4px 0; }
.sp-compose { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card); }
.sp-compose textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; padding: 10px 12px; box-sizing: border-box; }
.sp-send { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-th { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.sp-th.unread { border-color: rgba(var(--primary-rgb), .5); background: linear-gradient(rgba(var(--primary-rgb), .06), rgba(var(--primary-rgb), .06)), var(--card); }
.sp-av { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 50%; background: rgba(var(--primary-rgb), .14); color: var(--primary); }
.sp-th-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-th-main b { font-size: 14.5px; }
.sp-th-main b em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(34, 197, 94, .16); color: #15803d; margin-left: 4px; }
.sp-th-main small { font-size: 12.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-th-t { flex: 0 0 auto; font-size: 11px; opacity: .6; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sp-th-t i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); opacity: 1; }
#btn-support-drawer { position: relative; }
.sp-badge { position: absolute; right: 38px; top: 50%; transform: translateY(-50%); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--danger, #ef4444); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.sp-badge[hidden] { display: none; }

/* ===== Печать этикеток ===== */
.lb-screen { display: flex; flex-direction: column; }
.lb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px 30px; -webkit-overflow-scrolling: touch; }
.lb-printer { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--border); background: var(--card); }
.lb-printer.ok { border-style: solid; border-color: rgba(34, 197, 94, .55); background: linear-gradient(rgba(34, 197, 94, .07), rgba(34, 197, 94, .07)), var(--card); }
.lb-printer > div { flex: 1; min-width: 0; }
.lb-printer b { display: block; font-size: 14.5px; }
.lb-printer small { display: block; font-size: 12px; opacity: .65; }
.lb-printer .btn-main { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; font-size: 13px; }
.lb-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 8px; }
.lb-head b { font-size: 15px; }
.lb-head .btn-main { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; font-size: 13px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-tpl { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); cursor: pointer; }
.lb-thumb { flex: 0 0 auto; width: 74px; height: 52px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-thumb-cv { max-width: 100%; max-height: 100%; }
.lb-tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-tmain b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tmain small { font-size: 11.5px; opacity: .6; }
.lb-print { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px; font-size: 13px; }
.lb-more { flex: 0 0 auto; width: 34px; height: 36px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.lb-note { font-size: 12px; opacity: .6; line-height: 1.45; margin: 16px 2px 0; }
.lb-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.lb-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; margin-top: 10px; }
.lb-field input { height: 42px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 0 12px; box-sizing: border-box; font-weight: 500; }
.lb-copies input { width: 110px; }
.lb-preview { margin: 12px 0 4px; padding: 10px; border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(127, 127, 127, .08) 0 6px, transparent 6px 12px); display: flex; justify-content: center; }
.lb-preview canvas { max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); border-radius: 4px; }
.lb-pact .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13.5px; }
.lb-inl { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.lb-inl input[type="number"] { width: 64px; height: 36px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; padding: 0 8px; box-sizing: border-box; }
.lb-inl select { height: 36px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 13px; padding: 0 6px; }
.lb-size { margin-top: 10px; }
.lb-el { border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin-top: 8px; background: var(--card); }
.lb-el-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lb-el-h b { font-size: 12.5px; }
.lb-el-h span { display: flex; gap: 2px; }
.lb-el-h button { width: 30px; height: 28px; border: 0; border-radius: 8px; background: rgba(127, 127, 127, .1); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-el > input[type="text"] { width: 100%; height: 38px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; padding: 0 10px; box-sizing: border-box; }
.lb-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.lb-add { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.lb-addb { height: 34px; padding: 0 10px; border-radius: 10px; border: 1.5px dashed rgba(var(--primary-rgb), .5); background: rgba(var(--primary-rgb), .06); color: var(--primary); font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.lb-proto { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; font-size: 14px; }
.lb-proto label { display: flex; gap: 8px; align-items: center; }
/* этикетки: кнопки по содержимому */
.lb-head .btn-main, .lb-print, .lb-printer .btn-main { width: auto !important; flex: 0 0 auto !important; min-width: 0 !important; white-space: nowrap !important; }
.lb-printer small { overflow-wrap: anywhere; }
.lb-tpl .lb-tmain { min-width: 60px; }
.em-add, .em-tools .btn-main { width: auto !important; flex: 0 0 auto !important; white-space: nowrap !important; }
