:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f1f3f8; --border: #e3e6ee; --text: #1b1f2a; --muted: #667085;
  --brand: #7c3aed; --brand-2: #6d28d9; --brand-soft: #f1ebfe; --ok: #12805c; --ok-soft: #e3f6ee; --warn: #b54708;
  --warn-soft: #fef3e2; --err: #c0262d; --err-soft: #fdecec; --info-soft: #e8f1fd;
  --c1: #7c3aed; --c2: #0ea5e9; --c3: #f59e0b; --c4: #10b981; --c5: #ef4444; --c6: #6366f1; --c7: #ec4899; --c8: #84cc16; --c9: #14b8a6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 12px; --side: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117; --surface: #171a22; --surface-2: #1f232d; --border: #2a2f3b; --text: #e7e9ee; --muted: #98a2b3;
    --brand: #a78bfa; --brand-2: #c4b5fd; --brand-soft: #2a2240; --ok: #4ade80; --ok-soft: #143023; --warn: #fbbf24;
    --warn-soft: #3a2a0c; --err: #f87171; --err-soft: #3b1618; --info-soft: #172537; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1117; --surface: #171a22; --surface-2: #1f232d; --border: #2a2f3b; --text: #e7e9ee; --muted: #98a2b3;
  --brand: #a78bfa; --brand-2: #c4b5fd; --brand-soft: #2a2240; --ok: #4ade80; --ok-soft: #143023; --warn: #fbbf24;
  --warn-soft: #3a2a0c; --err: #f87171; --err-soft: #3b1618; --info-soft: #172537; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---- prisijungimas ---- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 20% -10%, var(--brand-soft), transparent), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }
.login-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; }
.login-card p.muted { margin: 4px 0 18px; }

/* ---- karkasas ---- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .me { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.side .me .name { font-weight: 600; }
.side .me .links { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.main { min-width: 0; padding: 24px 28px 60px; max-width: 1400px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.topbar { display: none; }

/* ---- komponentai ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 13px; margin-top: 2px; }
.up { color: var(--ok); } .down { color: var(--err); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--err); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; height: 36px; padding: 0 10px; min-width: 0; }
textarea { height: auto; padding: 8px 10px; min-height: 90px; width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { height: 16px; width: 16px; accent-color: var(--brand); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .err { color: var(--err); font-size: 12px; }
.field.bad input, .field.bad select { border-color: var(--err); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--info-soft); font-size: 13px; }
.notice.warn { background: var(--warn-soft); }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ---- lentelės ---- */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: var(--surface); position: sticky; top: 0; z-index: 1; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tr.click { cursor: pointer; }
table.t tfoot td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; }
table.t tr.weekend td:first-child { color: var(--brand); }
table.t tr.future td { opacity: .45; }
table.t tr.missing td { background: var(--warn-soft); }
table.t td input { height: 32px; width: 100%; min-width: 72px; max-width: 110px; text-align: right; }
table.t td select { height: 32px; min-width: 120px; max-width: 170px; }
.sales-table td input.cnt { min-width: 48px; max-width: 64px; }
.diff-bad { color: var(--err); font-weight: 600; }
.diff-ok { color: var(--ok); }

/* ---- grafikai ---- */
.chart { width: 100%; height: 260px; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--border); }
.chart .bar:hover { opacity: .8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--dot); vertical-align: -1px; }
.tip { position: fixed; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 8px; font-size: 12px; z-index: 50; white-space: nowrap; }

/* ---- modalai / šoninis langas ---- */
.overlay { position: fixed; inset: 0; background: rgba(15, 17, 23, .45); z-index: 30; display: flex; justify-content: flex-end; }
.overlay.center { align-items: center; justify-content: center; padding: 16px; }
.drawer { width: min(560px, 100%); height: 100%; background: var(--surface); overflow-y: auto; padding: 22px; box-shadow: -10px 0 30px rgba(0, 0, 0, .15); }
.modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 22px; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .2s; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--err); color: #fff; }

/* ---- spausdinimas ---- */
.print-page { background: #fff; color: #000; }
.print-actions { padding: 16px; text-align: center; }
.print-sheet { max-width: 720px; margin: 0 auto; padding: 20px 28px; font-size: 13px; }
.print-sheet h1 { font-size: 20px; margin-bottom: 16px; }
.print-sheet h2 { margin-top: 22px; font-size: 14px; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { border: 1px solid #999; padding: 7px 9px; text-align: left; }
.print-table th { width: 38%; background: #f3f3f3; }
.consent { margin-top: 18px; }
.sign { margin-top: 26px; }
.rules { white-space: pre-wrap; font-size: 12px; }
@media print { .print-actions, .side, .topbar { display: none !important; } .print-sheet { padding: 0; } }

/* ---- telefonas ---- */
@media (max-width: 900px) {
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.k2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0 30% 0 0; z-index: 40; width: auto; box-shadow: 10px 0 30px rgba(0, 0, 0, .2); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
  .main { padding: 16px 16px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .kpi .value { font-size: 21px; }
  .card { padding: 14px; }
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
  .sales-table thead { display: none; }
  .sales-table, .sales-table tbody, .sales-table tr, .sales-table td { display: block; width: 100%; }
  .sales-table tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; }
  .sales-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .sales-table td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; }
  .sales-table td input, .sales-table td select { max-width: 60%; }
  .sales-table tfoot { display: block; }
  .sales-table tr.future { display: none; }
}
@media (max-width: 760px) {
  .sales-table td:first-child { justify-content: flex-start; gap: 8px; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  .sales-table td:first-child::before { display: none; }
  .sales-table td:last-child:empty { display: none; }
}
.rv-wrap { max-width: 560px; margin: 0 auto; padding: 14px 16px 40px; }
.rv-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }

/* ---- darbo grafikai ---- */
.sched-card { padding: 10px 0 12px; }
.sched-wrap { overflow-x: auto; }
table.sched { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
table.sched th, table.sched td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; text-align: center; }
table.sched th { position: sticky; top: 0; background: var(--surface); z-index: 2; font-weight: 600; color: var(--muted); padding: 4px 0; }
table.sched th.d { min-width: 44px; }
table.sched th.d small { font-weight: 500; }
table.sched .nm { position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; padding: 5px 10px; min-width: 170px; max-width: 210px; }
table.sched th.nm { z-index: 3; }
table.sched td.nm .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.sched td.nm.click { cursor: pointer; }
table.sched td.nm.click:hover .who { color: var(--brand); }
table.sched td.c { height: 38px; min-width: 44px; cursor: default; white-space: nowrap; font-variant-numeric: tabular-nums; position: relative; padding: 0 2px; }
table.sched td.c[tabindex] { cursor: pointer; }
table.sched td.c[tabindex]:hover, table.sched td.c:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
table.sched .we { background: var(--surface-2); }
table.sched .hol { background: var(--err-soft); }
table.sched td.c.sel { background: var(--brand-soft); outline: 1px solid var(--brand); outline-offset: -1px; }
table.sched td.c.chg { box-shadow: inset 0 -3px 0 var(--warn); }
table.sched td.c.away { color: var(--muted); font-style: italic; }
table.sched td.c.fact { text-decoration: underline dotted; }
table.sched td.c.code-P { color: var(--muted); }
table.sched td.c.code-A, table.sched td.c.code-NA, table.sched td.c.code-M { color: var(--ok); font-weight: 700; }
table.sched td.c.code-L, table.sched td.c.code-NS { color: var(--err); font-weight: 700; }
table.sched td.c .dot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
table.sched td.tot, table.sched th.tot { padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; min-width: 52px; }
table.sched td.tot.warn-t { color: var(--warn); }
table.sched tr.guest td { background-image: linear-gradient(var(--info-soft), var(--info-soft)); }
table.sched tr.cnt td { font-weight: 600; height: 28px; }
table.sched tr.cnt td.zero { color: var(--err); }
.sched-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; padding: 10px 18px 0; }
.sched-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--border); }
.sched-legend .lg.we::before { background: var(--surface-2); }
.sched-legend .lg.hol::before { background: var(--err-soft); }
.sched-legend .lg.chg::before { box-shadow: inset 0 -3px 0 var(--warn); }
.sched-legend .lg.away::before { background: var(--surface); }
.sched-warn { margin: 10px 0 0; padding-left: 18px; columns: 2; font-size: 13px; }
.pend { border-top: 1px solid var(--border); padding: 10px 0; }
.pend ul { margin: 6px 0 8px; padding-left: 18px; }
.steps { margin: 0; padding-left: 18px; }
.sched-print { max-width: none; }
table.sched-pt { border-collapse: collapse; font-size: 10px; width: 100%; }
table.sched-pt th, table.sched-pt td { border: 1px solid #999; padding: 2px; text-align: center; }
table.sched-pt td.nm { text-align: left; white-space: nowrap; }
table.sched-pt .we { background: #f0f0f0; } table.sched-pt .hol { background: #fde2e2; }
table.sched-pt td.sig { min-width: 70px; }
@media print { @page { size: landscape; margin: 8mm; } }
@media (max-width: 760px) {
  table.sched .nm { min-width: 112px; max-width: 120px; padding: 4px 6px; }
  table.sched td.c, table.sched th.d { min-width: 40px; }
  .sched-warn { columns: 1; }
  .sched-card { margin: 0 -16px; border-radius: 0; }
}

table.sched th.ev-akcija { box-shadow: inset 0 -3px 0 var(--c3); color: var(--warn); }
table.sched th.ev-seminaras { box-shadow: inset 0 -3px 0 var(--c2); }

.hr-step { border-top: 1px solid var(--border); padding: 10px 0; }
.hr-step:first-of-type { border-top: 0; }
.hr-step-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hr-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: inline-grid; place-items: center; font-size: 12px; }
.hr-step.done .hr-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.hr-files { margin: 4px 0; padding-left: 18px; font-size: 13px; }
table.t tr.mine td { background: var(--warn-soft); }
table.sched tr.trial td { background-image: repeating-linear-gradient(45deg, transparent 0 6px, var(--brand-soft) 6px 12px); }

.tb-bal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
.tb-b strong { font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---------- Nurašymui (brokai, REK aktai) ---------- */
.wo-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wo-title { font-weight: 700; }
.wo-big { font-size: 16px; padding: 10px 12px; width: 100%; height: auto; min-height: 46px; }
textarea.wo-big { padding: 10px 12px; }
.wo-qty { width: 120px; text-align: center; font-size: 20px; }
.wo-img { object-fit: contain; background: #fff; border-radius: 8px; flex: none; display: block; border: 1px solid var(--border); }
.wo-item { align-items: flex-start; }
.wo-grow { flex: 1; min-width: 0; }
.wo-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.wo-side input[type=checkbox] { width: 26px; height: 26px; }
.wo-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.wo-thumb { position: relative; }
.wo-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.wo-thumb .btn { position: absolute; top: 2px; right: 2px; height: 26px; padding: 0 8px; }
.wo-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.wo-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.wo-field { display: flex; flex-direction: column; gap: 4px; }
.wo-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.wo-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wo-reason { height: auto; min-height: 48px; white-space: normal; text-align: center; line-height: 1.25; padding: 8px; }
.wo-save { font-size: 18px; height: 52px; }
.wo-found { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-size: 15px; }
.wo-wrap .card + .card, .rv-wrap .card + .card { margin-top: 12px; }
.wo-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wo-print-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.wo-qr svg { width: 150px; height: 150px; }
.wo-pt td.sig { width: 70px; }
.wo-sign { margin-top: 40px; }
.wo-handed { text-align: center; margin-bottom: 12px; }
.wo-handed svg { margin: 8px auto; display: block; background: #fff; padding: 8px; border-radius: 8px; }
.wo-pt th { width: auto; }
.wo-pt th:first-child, .wo-pt td:first-child { width: 36px; }
.wo-pt td:nth-child(4) { text-align: center; }

/* šoninis meniu: daug punktų – slinktis, kad apačia (vartotojas, atsijungti) visada pasiekiama */
.side { overflow-y: auto; overscroll-behavior: contain; height: 100vh; height: 100dvh; }
.side .nav, .side .me { flex: none; }
.nav a { padding: 7px 10px; }
.nav-group { margin: 12px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- skaitmeninės kortelės: registracija /k ir kortelė telefone /k/c/… ---------- */
.dc-body { background: #fff; }
.k-seg { display: flex; width: 100%; margin: 6px 0 14px; }
.k-seg button { flex: 1; }
.k-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.k-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.k-kind strong { font-size: 18px; }
.k-kind span { font-size: 13px; color: var(--muted); }
.k-kind.on { border-color: var(--brand); background: var(--brand-soft); }
.k-kind.on strong { color: var(--brand); }
.rv-wrap .field input:not([type=checkbox]) { height: 44px; font-size: 16px; }
.k-hint { font-size: 13px; }
.k-tag { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #eaf6f2; color: #1d5c4d; font-size: 14px; line-height: 1.4; }
.k-sum { font-size: 14px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.k-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px !important; font-weight: 400 !important; color: var(--text) !important; line-height: 1.4; }
.k-check input { margin-top: 2px; flex: none; }
.k-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.k-photo-btn { width: 100%; height: 44px; margin-top: 6px; }
.k-photo img { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--border); margin-top: 6px; }
.k-go { width: 100%; height: 48px; font-size: 16px; margin-top: 4px; }
.k-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.k-row .btn { flex: 1; }
.k-h { margin: 8px 0 6px; font-size: 20px; }
.rv-wrap input.k-code { font-size: 28px; letter-spacing: 8px; text-align: center; height: 56px; }
.k-done { padding: 8px 0; }
.dc-wrap { max-width: 460px; margin: 0 auto; padding: 16px 16px 40px; }
.dc-face { display: block; width: 100%; height: auto; border-radius: 4.4% / 7%; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.dc-panel { background: #fff; color: #111; border-radius: 14px; padding: 14px 14px 12px; margin-top: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .10); border: 1px solid #e6e6e6; }
.dc-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; overflow-wrap: anywhere; text-align: center; }
.dc-logo { display: block; width: 180px; max-width: 60%; height: auto; margin: 4px 0 12px; }
.dc-code { background: #fff; padding: 4px 0; }
.dc-code svg { display: block; height: 96px; }
.dc-num { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 4px; margin-top: 6px; font-variant-numeric: tabular-nums; color: #111; }
.dc-note { background: var(--brand-soft); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-top: 14px; font-size: 14px; }
.dc-more { margin-top: 14px; }
.dc-more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.dc-qr { background: #fff; padding: 12px; border-radius: 10px; max-width: 240px; margin-top: 8px; }
.dc-qr svg { display: block; width: 100%; height: auto; }
.dc-help { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 12px 0 0; }
.dc-text { line-height: 1.5; }
.dc-text h1 { font-size: 22px; }
.dc-text h2 { font-size: 17px; margin-top: 18px; }
.dc-poster { text-align: center; padding: 12px; }
.dc-poster svg { width: 260px; height: 260px; max-width: 100%; }
.dc-poster-t { font-size: 22px; font-weight: 800; }
.dc-poster-s { color: var(--muted); margin: 4px 0 10px; }
@media print {
  body.dcqr .app > *, body.dcqr > *:not(.overlay) { display: none !important; }
  body.dcqr .overlay { position: static; background: none; }
  body.dcqr .overlay .modal > :not(.dc-qr-print) { display: none !important; }
  body.dcqr .overlay .modal { box-shadow: none; border: 0; max-width: none; }
  body.dcqr .dc-poster svg { width: 120mm; height: 120mm; }
  body.dcqr .dc-poster-t { font-size: 34pt; }
  body.dcqr .dc-poster-s { font-size: 18pt; color: #000; }
}
.k-logo { display: block; width: 170px; height: auto; margin: 2px 0 8px; }
.k-top { margin-bottom: 8px; }
.k-kind img { width: 100%; height: auto; border-radius: 4.4% / 7%; margin-bottom: 8px; }
.dc-poster-logo { width: 200px; height: auto; display: block; margin: 0 auto 10px; }
.dc-poster-cards { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.dc-poster-cards img { width: 45%; max-width: 200px; height: auto; border-radius: 4.4% / 7%; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
@media print { body.dcqr .dc-poster-cards img { width: 70mm; max-width: none; } body.dcqr .dc-poster-logo { width: 70mm; } }
.dc-save { background: #f6f7f8; border-radius: 12px; padding: 12px 14px 4px; margin-top: 14px; }
.dc-save h2 { font-size: 16px; margin: 0 0 6px; }
.dc-save ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: #333; }
.dc-save li { margin-bottom: 8px; }

/* revizijos aktas (spausdinimas) */
.ra-pt th { width: auto; }
.ra-pt td.n, .ra-pt th:nth-child(n+4) { text-align: right; }
.ra-pt tfoot td { font-weight: 600; }
.ra-decl { margin-top: 18px; }
.ra-sign { width: 100%; margin-top: 14px; border-collapse: collapse; }
.ra-sign td { width: 50%; padding: 6px 12px 6px 0; vertical-align: bottom; }
.ra-sign td.line { height: 46px; border-bottom: 1px solid #000; }
@media print { .ra-print h2 { page-break-after: avoid; } .ra-pt tr { page-break-inside: avoid; } }
/* Kompaktiškas aktas: ~200 prekių 1–2 lapuose */
.ra-print { max-width: 1000px; font-size: 11px; }
.ra-print h1 { font-size: 16px; margin-bottom: 6px; } .ra-print h2 { margin-top: 10px; font-size: 12px; }
.ra-print p { margin: 3px 0; }
.ra-print .ra-pt { font-size: 10px; } .ra-print .ra-pt th, .ra-print .ra-pt td { padding: 2px 4px; }
.ra-ok { list-style: none; padding: 0; margin: 4px 0; columns: 3; column-gap: 10px; column-rule: 1px solid #ccc; font-size: 8.5px; line-height: 1.35; }
.ra-ok li { display: flex; gap: 3px; break-inside: avoid; border-bottom: 1px dotted #ddd; white-space: nowrap; }
.ra-ok .i { color: #777; min-width: 20px; text-align: right; } .ra-ok .k { font-weight: 600; }
.ra-ok .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; } .ra-ok .q { font-weight: 700; }
@media print { .ra-print { max-width: none; } .ra-sign, .ra-decl { break-inside: avoid; } }

/* instrukcijos */
.help-btn { font-weight: 600; }
.help-float { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.help-drawer { width: min(640px, 100%); }
.help-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; position: sticky; top: -22px; background: var(--surface); padding: 8px 0; }
.help-body h2 { font-size: 17px; margin: 18px 0 8px; }
.help-body h3 { font-size: 15px; margin: 14px 0 6px; }
.help-body p { margin: 6px 0; line-height: 1.5; }
.help-body ol, .help-body ul { margin: 6px 0 6px 22px; padding: 0; line-height: 1.5; }
.help-body li { margin: 4px 0; }
.help-body .notice { margin: 8px 0; }
.help-upd { margin-top: 20px; font-size: 12px; }
.wo-figs { display: flex; flex-wrap: wrap; gap: 10px; }
.wo-fig { margin: 0; width: 220px; break-inside: avoid; }
.wo-fig img { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid #ccc; margin-bottom: 4px; }
.wo-fig figcaption { font-size: 11px; }
.wo-np-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 16px; }
.wo-np-opt input { width: 22px; height: 22px; }
/* „Mano VitrinaPro“ paskyra kortelės puslapyje (loyalty.py) */
.lo-box { background: #f6f7f8; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 15px; line-height: 1.45; color: #222; }
.lo-box h2 { font-size: 16px; margin: 0 0 6px; }
.lo-box ul { margin: 0; padding-left: 18px; }
.lo-offer { background: #e3f4ef; border: 1px solid #2d9a83; }
.lo-tier { font-size: 18px; font-weight: 700; color: #2d9a83; }
.lo-muted { color: #666; font-size: 13px; margin: 6px 0 0; }
.lo-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 10px; background: #2d9a83; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.lo-btn:disabled { background: #b8c5c1; cursor: default; }
.lo-sec { background: #fff; color: #2d9a83; border: 1px solid #2d9a83; }
.lo-link { background: none; border: 0; padding: 0; color: #666; text-decoration: underline; font-size: 13px; cursor: pointer; }
.lo-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.lo-field { display: block; margin-top: 10px; font-size: 14px; }
.lo-bd { display: flex; gap: 8px; margin-top: 4px; }
.lo-bd select { padding: 8px; font-size: 16px; border: 1px solid #ccc; border-radius: 8px; background: #fff; color: #222; }
.lo-hist { list-style: none; padding: 0 !important; }
.lo-hist li { padding: 6px 0; border-bottom: 1px solid #e4e4e4; }
.lo-wheel-wrap { position: relative; width: 190px; height: 190px; margin: 12px auto 4px; }
.lo-pointer { position: absolute; top: -6px; left: 50%; margin-left: -10px; z-index: 2; border: 10px solid transparent; border-top: 18px solid #222; }
.lo-wheel { width: 190px; height: 190px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); position: relative;
  background: conic-gradient(#2d9a83 0 25%, #f2c14e 0 50%, #6a8be4 0 75%, #e46a6a 0); transition: transform 3.2s cubic-bezier(.15, .75, .2, 1); }
.lo-wheel.vip { background: conic-gradient(#2d9a83 0 25%, #6a8be4 0 50%, #2d9a83 0 75%, #6a8be4 0); }
.lo-seg { position: absolute; left: 50%; top: 50%; width: 80px; margin-left: -40px; margin-top: -9px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.lo-seg0 { transform: rotate(45deg) translateY(-55px); }
.lo-seg1 { transform: rotate(135deg) translateY(-55px); }
.lo-seg2 { transform: rotate(225deg) translateY(-55px); }
.lo-seg3 { transform: rotate(315deg) translateY(-55px); }
@media (prefers-reduced-motion: reduce) { .lo-wheel { transition: none; } }
.lo-left { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; vertical-align: middle; }
.lo-result { text-align: center; min-height: 1.4em; margin-top: 6px; }
.lo-ref { width: 100%; margin-top: 8px; padding: 8px; font-size: 14px; border: 1px solid #ccc; border-radius: 8px; background: #fff; color: #222; }
.lo-doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0; }
.lo-door { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #c0392b; color: #fff; font-weight: 700; }
.lo-door.open { background: #e8d8b0; color: #7a5c1e; }
.lo-door.today { outline: 3px solid #2d9a83; }
.k-switch { display: block; width: 100%; margin-top: 12px; padding: 12px; white-space: normal; height: auto; line-height: 1.35; text-align: center; font-size: 16px; font-weight: 600; border: 2px solid #2d9a83; color: #2d9a83; background: #fff; border-radius: 10px; }
/* paskyra: „Jums dabar“ ir skirtukai */
.lo-nowbox { margin-top: 16px; }
.lo-nowbox h2 { font-size: 17px; margin: 0 0 8px; }
.lo-now { display: block; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; margin-top: 8px; font: inherit; color: #1d2b27; }
.lo-now-t { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lo-now-s { font-size: 13px; color: #44524e; margin-top: 4px; line-height: 1.4; }
.lo-now-offer { background: #2d9a83; color: #fff; }
.lo-now-offer .lo-now-s { color: #e6f4f0; }
.lo-now-prize { background: #fff4d6; border: 1px solid #f2c14e; }
.lo-now-go { background: #eef1ff; border: 1px solid #c9d1ff; cursor: pointer; }
.lo-tabs { display: flex; gap: 4px; margin-top: 18px; background: #eef0f2; border-radius: 12px; padding: 4px; position: sticky; top: 0; z-index: 2; }
.lo-tab { flex: 1; border: 0; background: none; padding: 10px 4px; border-radius: 9px; font-size: 15px; font-weight: 600; color: #555; cursor: pointer; position: relative; }
.lo-tab.on { background: #fff; color: #1d2b27; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lo-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; margin-left: 6px; border-radius: 9px; background: #e4572e; color: #fff; font-size: 12px; }
.lo-panel > .lo-box:first-child { margin-top: 10px; }
.lo-bar { height: 8px; background: #e2e6e5; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.lo-bar span { display: block; height: 100%; background: #2d9a83; }
.lo-ch { list-style: none; padding: 0 !important; }
.lo-ch li { padding: 6px 0; border-bottom: 1px solid #e4e4e4; display: flex; justify-content: space-between; gap: 8px; }
.lo-ch li.done { color: #2d9a83; }
.lo-h1 { display: flex; justify-content: space-between; gap: 8px; }
.lo-save-help summary { cursor: pointer; font-weight: 600; }
.lo-save-help .dc-save { background: none; padding: 8px 0 0; margin: 0; }
.dc-acct .dc-face { width: 78%; margin: 0 auto; }
.dc-acct .dc-panel { margin-top: 10px; }
.dc-acct .dc-code svg { height: 84px; }
/* paskyros priedai (perks.py): prekės, rezervacija, renginiai, pranešimai */
.lo-mini { flex: none; align-self: center; padding: 6px 10px; border: 1px solid #2d9a83; border-radius: 8px; background: #fff; color: #2d9a83; font-size: 13px; font-weight: 600; cursor: pointer; }
.lo-mini:disabled { opacity: .6; }
.lo-pct { color: #c0392b; white-space: nowrap; }
.lo-now-offer .lo-btn { background: #fff; color: #2d9a83; }
.lo-now-offer .lo-result { color: #fff; }
@media (max-width: 380px) { .lo-tab { font-size: 13px; padding: 10px 2px; } .lo-badge { margin-left: 3px; } }
.lo-ok { flex: none; align-self: center; color: #2d9a83; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lo-why { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; margin-bottom: 2px; }
.lo-now-info { background: #fff; border: 1px solid #d5dbd9; }
.lo [hidden] { display: none !important; }
/* paskyra „Atrask“ (discover.py): akcijų baneriai, prekių kortelės, patarėjas */
.lo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.lo-pc { background: #fff; border: 1px solid #e2e6e5; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lo-pc img, .lo-pc-noimg { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f6f7f8; display: block; }
.lo-pc-n { font-size: 13px; line-height: 1.3; color: #222; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lo-pc-t { font-size: 12px; color: #444; line-height: 1.3; }
.lo-pc-w { font-size: 11px; color: #2d9a83; }
.lo-pc-b { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.lo-pc-b .lo-mini { padding: 5px 7px; font-size: 12px; }
.lo-new { display: inline-block; padding: 1px 7px; border-radius: 8px; background: #6a8be4; color: #fff; font-size: 11px; font-weight: 700; }
.lo-banner { border-radius: 12px; margin-top: 8px; overflow: hidden; color: #fff; }
.lo-banner summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; }
.lo-banner summary::-webkit-details-marker { display: none; }
.lo-banner[open] summary { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.lo-banner .lo-grid { padding: 8px; background: rgba(255, 255, 255, .92); margin-top: 0; }
.lo-bn0 { background: linear-gradient(135deg, #e4572e, #f2a03d); }
.lo-bn1 { background: linear-gradient(135deg, #2d9a83, #5cc0a8); }
.lo-bn2 { background: linear-gradient(135deg, #6a4be4, #a07be8); }
.lo-bn3 { background: linear-gradient(135deg, #c0392b, #e46a8b); }
.lo-bn-txt { flex: 1; min-width: 0; }
.lo-bn-pct { font-size: 30px; font-weight: 800; line-height: 1; }
.lo-bn-t { font-size: 16px; font-weight: 700; margin-top: 2px; }
.lo-bn-s { font-size: 12px; opacity: .9; margin-top: 2px; }
.lo-bn-img { display: flex; gap: 4px; flex: none; }
.lo-bn-img img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; }
.lo-adv-row { display: flex; gap: 6px; align-items: center; }
.lo-adv-row .lo-ref { margin-top: 0; flex: 1; font-size: 16px; }
.lo-adv-a { margin: 8px 0 0; }
@media (max-width: 360px) { .lo-bn-img img:nth-child(n+3) { display: none; } }
.lo-pc img, .lo-pc-noimg { aspect-ratio: auto; height: 110px; }
.lo-pc-b { flex-wrap: nowrap; }
.lo-pc-b .lo-mini:not(.lo-heart) { flex: 1; }
.lo-heart { font-size: 16px !important; line-height: 1; padding: 4px 9px !important; color: #e4572e; border-color: #e4572e; }
/* parduotuvės ir atsiliepimai (storeinfo.py) */
.lo-shop { border-top: 1px solid #e4e4e4; padding: 8px 0; }
.lo-shop:first-of-type { border-top: 0; }
.lo-shop summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; list-style: none; }
.lo-shop summary::-webkit-details-marker { display: none; }
.lo-open { font-size: 12px; color: #a33; white-space: nowrap; }
.lo-open.on { color: #2d9a83; font-weight: 600; }
.lo-shop-b { padding-top: 6px; font-size: 14px; }
.lo-hours { color: #444; margin-top: 4px; font-size: 13px; }
.lo-shop-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lo-shop-a a { text-decoration: none; }
.lo-stars { display: flex; gap: 4px; margin-top: 6px; }
.lo-star { border: 0; background: none; font-size: 34px; line-height: 1; color: #cfd5d3; cursor: pointer; padding: 0 2px; }
.lo-star.on { color: #f2b01e; }
.lo-rev .lo-btn { margin-top: 8px; }
.lo-shop summary { display: block; }
.lo-shop summary::after { content: "›"; float: right; margin-top: -1.9em; color: #999; font-size: 18px; transition: transform .2s; }
.lo-shop[open] summary::after { transform: rotate(90deg); }
.lo-open { white-space: normal; margin-top: 2px; }
.lo-mine { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #e3f4ef; color: #2d9a83; font-size: 11px; font-weight: 700; vertical-align: middle; }
details.card > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
/* paskyros struktūra 2026-10-10: kortelė viršuje kompaktiška, skirtukai su piktogramomis */
.dc-acct .dc-face { width: 56%; }
.dc-acct .dc-help { font-size: 13px; margin-top: 8px; }
.dc-acct .dc-more { margin-top: 8px; font-size: 14px; }
.lo-tabs { gap: 2px; padding: 4px; margin-top: 14px; }
.lo-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 11px; line-height: 1.15; min-width: 0; }
.lo-tab .lo-ico { width: 22px; height: 22px; }
.lo-tab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lo-tab .lo-badge { position: absolute; top: 3px; right: 50%; margin: 0 -20px 0 0; min-width: 16px; height: 16px; line-height: 16px; font-size: 11px; }
.lo-tab.on { color: #2d9a83; }
.lo-now-toggle { display: block; margin: 8px auto 0; font-size: 14px; color: #2d9a83; }
.lo-news { background: #fff8e8; border: 1px solid #f2c14e; }
@media (max-width: 380px) { .lo-tab { font-size: 10.5px; padding: 7px 1px 6px; } }
.lo-tab-t { white-space: normal; text-align: center; overflow: visible; }
.lo-nowbox .lo-now { padding: 9px 12px; margin-top: 6px; }
.lo-nowbox .lo-now-t { font-size: 15px; }
.lo-nowbox .lo-now-s { font-size: 12px; margin-top: 2px; }
.lo-nowbox h2 { margin-bottom: 4px; }
.lo-nowbox .lo-why { font-size: 11px; margin-bottom: 1px; }
.dc-acct .dc-face { width: 46%; }
/* apatinis meniu (2026-10-10): visada matomas; daugiau punktų – slenkama į šoną */
.lo-tabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; margin: 0; border-radius: 0; gap: 0;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e2e6e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.lo-tabs::-webkit-scrollbar { display: none; }
.lo-tab { flex: 1 0 60px; max-width: 110px; border-radius: 10px; padding: 6px 2px 5px; color: #6b7472; }
.lo-tab.on { background: #e3f4ef; box-shadow: none; color: #1f7a67; }
.lo-tab .lo-badge { top: 2px; }
.dc-acct { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.lo-panel > .lo-box:first-child { margin-top: 16px; }
.lo-tabs { justify-content: safe center; }  /* kompiuteryje – per vidurį; jei netelpa – nuo kairės (slenkama) */
.dc-acct .dc-face { width: 100%; }  /* Domas 2026-10-10: kortelė tokio pat pločio kaip kodas */
/* kelios jos parduotuvės (2026-10-10) */
.lo-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 2px; padding-bottom: 2px; }
.lo-chips::-webkit-scrollbar { display: none; }
.lo-chip { flex: none; border: 1px solid #cfd8d5; background: #fff; color: #333; border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.lo-chip.on { background: #2d9a83; border-color: #2d9a83; color: #fff; font-weight: 600; }
.lo-resv { display: flex; gap: 4px; align-items: center; flex: none; }
.lo-res-wh { max-width: 110px; font-size: 13px; padding: 5px 4px; border: 1px solid #cfd8d5; border-radius: 8px; background: #fff; color: #222; }
.lo-home { display: block; margin-top: 8px; font-size: 13px; color: #2d9a83; }
/* asmeninė −50 % prekė (deals.py) */
.lo-tab-deal { color: #d6322b; font-weight: 700; }
.lo-tab-deal.on { background: #d6322b; color: #fff; }
.lo-nowbox .lo-now-deal { background: linear-gradient(135deg, #d6322b, #f05a3c); color: #fff; border: 0; }
.lo-now-deal .lo-now-s { color: #ffe7e2; }
.lo-now-deal s { opacity: .8; }
.lo-deal { position: relative; text-align: center; border: 2px solid #d6322b; background: #fff; }
.lo-deal-tag { position: absolute; top: -12px; right: 12px; background: #d6322b; color: #fff; font-weight: 800; font-size: 18px; padding: 4px 12px; border-radius: 14px; }
.lo-deal .lo-why { color: #d6322b; }
.lo-deal-img { width: 100%; max-height: 220px; object-fit: contain; margin: 6px 0; }
.lo-deal h2 { font-size: 18px; }
.lo-deal-price { font-size: 26px; margin: 4px 0; }
.lo-deal-price s { color: #888; font-size: 18px; margin-right: 6px; }
.lo-deal-price b { color: #d6322b; }
.lo-deal-until { font-weight: 600; }
.lo-deal-act { display: flex; justify-content: center; margin-top: 8px; }
.lo-deal-act .lo-mini { font-size: 15px; padding: 9px 18px; }
.lo-deal-limit { margin: 10px 0 0; font-size: 12px; color: #a33; }
.lo-deal { padding-top: 26px; margin-top: 22px; }
.lo-deal-img { display: block; height: 200px; width: 100%; }
.lo-deal-act .lo-mini { background: #d6322b; border-color: #d6322b; color: #fff; }
.lo-deal-act .lo-res-wh { font-size: 14px; padding: 8px 6px; }
/* Pranešimas po veiksmo (kortelė perkraunama – nėra naršyklės „Atnaujinti“) */
.lo-toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
  background: #1f2a37; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: opacity .6s; text-align: center; }
.lo-toast.out { opacity: 0; }
/* Poskyriai skyriaus viršuje (dviejų lygių naršymas): prilimpa viršuje, slenkami į šoną */
.lo-subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; margin: 12px -16px 0; padding: 8px 16px;
  background: #fff; box-shadow: 0 1px 0 #eef0f2; }
.lo-subs::-webkit-scrollbar { display: none; }
.lo-subt { flex: none; border: 1px solid #cfd8d5; background: #fff; color: #333; border-radius: 18px; padding: 7px 13px; font-size: 14px; font-weight: 600;
  cursor: pointer; position: relative; white-space: nowrap; }
.lo-subt.on { background: #1f7a67; border-color: #1f7a67; color: #fff; }
.lo-subt .lo-badge { margin-left: 6px; }
.lo-sub > .lo-box:first-child { margin-top: 10px; }
.lo-now-go.lo-now-prize { background: #fff4d6; border-color: #f2c14e; }
/* 7 skyriai telpa telefone (375 px): siauresni punktai, trumpesni tarpai */
.lo-tabs { padding-left: 2px; padding-right: 2px; }
.lo-tab { flex: 1 1 0; min-width: 49px; padding: 6px 1px 5px; }
@media (max-width: 400px) { .lo-tab { font-size: 9.5px; letter-spacing: -.2px; } .lo-tab .lo-ico { width: 21px; height: 21px; } }
/* prekė su parduotuvės pasirinkimu – pavadinimas visu pločiu, pasirinkimas eilutėje žemiau */
.lo-h1:has(.lo-res-wh) { flex-wrap: wrap; }
.lo-h1:has(.lo-res-wh) > span:first-child { flex: 1 1 100%; }
.lo-h1:has(.lo-res-wh) .lo-resv { margin-left: auto; }
.lo-h1:has(.lo-res-wh) .lo-res-wh { max-width: 180px; }
.lo-rev-q { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
@media (max-width: 370px) { .lo-tab { font-size: 9px; letter-spacing: -.3px; min-width: 45px; } .lo-tab .lo-ico { width: 20px; height: 20px; } }
.lo-tab-t { hyphens: manual; overflow-wrap: normal; }
/* „Atnaujinama…“ – kol serveris kuria paskyrą po veiksmo */
.lo-loading { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; background: #1f2a37; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.lo-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: lo-spin .8s linear infinite; }
@keyframes lo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lo-spin { animation-duration: 2s; } }
/* įvertinimai ir aprašymas (e. parduotuvės atsiliepimai) */
.lo-rate { display: inline-block; font-size: 12px; color: #b7791f; font-weight: 600; margin: 2px 0; }
.lo-rate span { color: #7a8582; font-weight: 400; }
.lo-rate-big { display: block; font-size: 14px; color: #44524e; font-weight: 400; margin: 4px 0 8px; text-align: center; }
.lo-rate-big .lo-stars-s { color: #e0a100; letter-spacing: 1px; font-size: 16px; }
.lo-about p { margin: 6px 0; line-height: 1.5; }
.lo-about h3 { font-size: 15px; margin: 14px 0 6px; }
.lo-quote { margin: 8px 0; padding: 8px 12px; background: #f6f7f8; border-left: 3px solid #e0a100; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.lo-more summary { cursor: pointer; color: #1f7a67; font-weight: 600; font-size: 14px; }
.lo-more p { color: #44524e; font-size: 14px; }
/* kainos kortelėse ir sąrašuose (parduotuvės kainoraštis) */
.lo-price { font-size: 14px; margin: 2px 0; color: #1d2b27; }
.lo-price s { color: #8a9491; font-size: 12px; margin-right: 2px; }
.lo-price-promo { color: #c0392b; }
.lo-hist .lo-price { font-size: 13px; margin: 2px 0 0; }
.lo-price-big { font-size: 24px; text-align: center; margin: 6px 0 2px; }
.lo-price-big s { font-size: 16px; }
[data-open] { cursor: pointer; }
.lo-pc-n[data-open]:hover, .lo-hist [data-open]:hover { text-decoration: underline; }
.lo-c { text-align: center; }
/* prekės langas */
.lo-noscroll { overflow: hidden; }
.lo-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 20, .45); display: flex; align-items: flex-end; justify-content: center; }
.lo-sheet-in { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
@media (min-width: 700px) { .lo-sheet { align-items: center; } .lo-sheet-in { border-radius: 18px; } }
.lo-sheet-x { position: sticky; top: 0; float: right; margin: -6px -6px 0 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef0f2;
  font-size: 22px; line-height: 36px; cursor: pointer; color: #333; z-index: 1; }
.lo-sheet-img { display: block; width: 62%; max-width: 260px; margin: 6px auto 10px; border-radius: 12px; }
.lo-sheet-body h2 { font-size: 19px; text-align: center; margin: 4px 30px 4px; line-height: 1.3; }
.lo-sheet-body h3 { font-size: 15px; margin: 14px 0 6px; }
.lo-sheet-body > p { line-height: 1.5; }
.lo-sheet-body .lo-why { text-align: center; }
.lo-sheet-act { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 10px 0 6px; }
.lo-sheet-act .lo-heart { min-width: 44px; }
.lo-price-wh { font-size: 12px; color: #7a8582; font-weight: 400; }
/* prekės aprašymas su struktūra (katalogo pastraipos) */
.lo-desc { font-size: 14px; line-height: 1.5; color: #33403c; }
.lo-desc h4 { font-size: 14px; margin: 12px 0 2px; color: #1d2b27; }
.lo-desc p { margin: 4px 0 8px; }
.lo-desc ul { margin: 4px 0 8px; padding-left: 20px; }
.lo-desc li { margin: 2px 0; }
/* Atidarytas skyrius – bent ekrano aukščio, kad paspaudus apačios meniu jo pradžia būtų ekrano viršuje (ne „Jums dabar“) */
.lo-panel:not([hidden]) { min-height: calc(100vh - 96px); }
@supports (height: 100svh) { .lo-panel:not([hidden]) { min-height: calc(100svh - 96px); } }
/* Akcijos (promoplan) */
.drawer.wide { width: min(1100px, 96vw); }
.warn-list { margin: 8px 0; padding-left: 20px; color: var(--warn); }
.err-text { color: var(--err); }
table.t tr.bad td { background: var(--err-soft); }
.card.idea { margin: 10px 0; }
.card.idea p { margin: 6px 0 10px; }
.check.wide { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.mpick { display: flex; flex-direction: column; gap: 6px; }
.mpick .chips:empty { display: none; }
.promo-live { min-height: 1.4em; font-weight: 600; }
.promo-groups { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.promo-groups > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t td input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; }
.promo-search { flex: 1; min-width: 220px; }
.pkg-groups { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pkg-group .toolbar { align-items: center; gap: 8px; }
.pkg-pct { width: 70px; }
.mpick-list { display: flex; flex-direction: column; gap: 2px; }
.mpick-list:empty { display: none; }
.mpick-opt { text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.mpick-opt:hover, .mpick-opt:focus { background: var(--brand-soft); }
.mpick-none { padding: 6px 2px; }
.mpick-row { display: flex; gap: 8px; align-items: center; }
.mpick-row input { flex: 1; min-width: 0; }
.mpick-all { border: 1px solid var(--border); border-radius: 10px; padding: 10px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.mpick-all[hidden] { display: none; }
.mpick-gt { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.mpick-gh { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mpick-gh .mpick-gt { background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; padding: 6px 0; cursor: pointer; text-align: left; flex: 1; }
.mpick-kids { padding: 4px 0 6px 16px; }
.mpick-all { gap: 2px; }
.promo-brands:empty { display: none; }
.promo-brands { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sp-h { font-size: 15px; margin: 18px 0 8px; }
.sp-card { padding: 0; margin-bottom: 8px; overflow: hidden; }
.sp-head { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sp-pct { flex: none; min-width: 64px; padding: 6px 8px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; text-align: center; }
.sp-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sp-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.sp-list[hidden] { display: none; }
.lo-rate .lo-st { color: inherit; letter-spacing: .04em; }

/* Parduotuvių ekranai (CRM peržiūra) */
.sc-adm-items { display: flex; flex-direction: column; gap: 4px; }
.sc-adm-it { display: flex; align-items: center; gap: 8px; }
.sc-adm-it img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; flex: none; }
