/* Водий Савдо — интерфейс. Ташқи шрифт ва кутубхона йўқ (интернетсиз ишлайди). */
:root {
  color-scheme: light;
  --ink: #16222a; --ink2: #43525c; --mute: #66757f;
  --paper: #f2f4f5; --panel: #ffffff; --line: #d6dde1; --line2: #e7ecef;
  --brand: #0d6573; --brand-hover: #0a525e; --brand-soft: #dbecef;
  --sig: #f0a500;
  --ok: #17784a; --ok-soft: #dcf1e5;
  --warn: #8f5a00; --warn-soft: #fcefcc;
  --bad: #b3261e; --bad-soft: #fbe2df;
  --off: #5f6d76; --off-soft: #e7ebee;
  --side: #15242c; --side-ink: #c9d6dc; --side-mute: #8197a2;
  --r: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 15px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .6em; }
a { color: var(--brand); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--mute); }
.small { font-size: .86rem; }
.pos { color: var(--ok); } .neg { color: var(--bad); font-weight: 600; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 1px; }

/* ---------- каркас ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.brand { padding: 18px 18px 14px; border-bottom: 1px solid #243741; position: relative; }
.brand::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--sig) 0 6px, transparent 6px 10px); opacity: .9; }
.brand b { display: block; color: #fff; font-size: 1.12rem; letter-spacing: -.01em; margin-top: 6px; }
.brand span { font-size: .8rem; color: var(--side-mute); }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav .grp { font-size: .78rem; color: var(--side-mute); padding: 14px 10px 4px; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; flex: none; border-radius: var(--r); color: var(--side-ink); text-decoration: none; font-size: .96rem; }
.nav a:hover { background: #1e323c; color: #fff; }
.nav a[aria-current="page"] { background: #f2f4f5; color: var(--ink); font-weight: 600; }
.nav .badge { background: var(--sig); color: #2b1d00; border-radius: 999px; min-width: 22px; padding: 0 7px; font-size: .8rem; font-weight: 700; text-align: center; }
.who { padding: 12px 14px 16px; border-top: 1px solid #243741; font-size: .88rem; }
.who b { color: #fff; display: block; }
.who .role { color: var(--side-mute); }
.who .links { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.who button { background: none; border: 0; padding: 0; color: var(--side-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.who button:hover { color: #fff; }
/* валюта курси (ёнбош панель) */
.fx { display: block; width: auto; margin: 2px 10px 8px; padding: 7px 10px; text-align: left; background: #1b2e37; border: 1px solid #2a414c; border-radius: var(--r); color: var(--side-ink); font: inherit; font-size: .86rem; cursor: pointer; }
.fx:hover { border-color: #4a6572; background: #20363f; }
.fx:focus-visible, .fx-top:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.fx .fxh { color: var(--side-mute); font-size: .76rem; margin-bottom: 2px; }
.fx .fxr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 6px; padding: 1px 0; }
.fx .fxr b { color: #fff; font-size: 1rem; font-variant-numeric: tabular-nums; }
.fx .fxs { color: var(--side-mute); font-size: .74rem; margin-top: 2px; }
.fx .fxs.stale, .fx-top.stale { color: var(--sig); }
.fx .fxe { color: var(--side-ink); }
.fxd { font-size: .74rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx .fxd.up { color: #8fd6a9; } .fx .fxd.dn { color: #f3a39b; }
.fxbig .fxd.up { color: var(--ok); } .fxbig .fxd.dn { color: var(--bad); }
.fx-top { display: none; }
/* ҳисоблагич ойнаси */
.fxbig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fxbig > div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fxbig b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stale { color: var(--warn); }
.fxout { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fxres { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; background: var(--paper); border-radius: var(--r); }
.fxres b { font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 600px) { .fxbig { grid-template-columns: 1fr; } }
.main { padding: 24px 30px 60px; min-width: 0; }
.page { max-width: 1260px; margin: 0 auto; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph p { margin: 4px 0 0; color: var(--mute); }
.topbar { display: none; }
.netbar { background: var(--bad); color: #fff; padding: 8px 14px; text-align: center; font-weight: 600; position: sticky; top: 0; z-index: 50; }

/* ---------- блоклар ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; }
.panel > h2, .panel > h3 { margin-bottom: 10px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.span2 { grid-column: span 2; } @media (max-width: 600px) { .span2 { grid-column: auto; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 18px; overflow: hidden; }
.stat { padding: 14px 18px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); margin: 0 -1px -1px 0; }
.stat .l { color: var(--mute); font-size: .86rem; }
.stat .v { font-size: 1.55rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }
.stat .v small { font-size: .8rem; font-weight: 500; color: var(--mute); }
.stat .s { font-size: .84rem; color: var(--mute); margin-top: 2px; }
.stat.bad .v { color: var(--bad); } .stat.good .v { color: var(--ok); }

/* ---------- формалар ---------- */
label.f { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--ink2); font-weight: 550; }
label.f .hint { font-weight: 400; color: var(--mute); font-size: .82rem; }
label.f.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c4ca; border-radius: var(--r); padding: 8px 10px; min-height: 38px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
textarea { resize: vertical; min-height: 70px; }
input:hover, select:hover, textarea:hover { border-color: #8fa0a9; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 25%, white); outline-offset: 0; }
input[disabled], select[disabled] { background: #f0f3f4; color: var(--mute); }
.btn { font: inherit; font-weight: 600; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--r); padding: 8px 16px; min-height: 38px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: #fff; color: var(--brand); border-color: #9fb9bf; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e1a7a2; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.solid-danger { background: var(--bad); border-color: var(--bad); } .btn.solid-danger:hover { background: #8f1d17; }
.btn.ok { background: var(--ok); border-color: var(--ok); } .btn.ok:hover { background: #115e39; }
.btn.small { padding: 4px 10px; min-height: 30px; font-size: .88rem; }
.btn.big { padding: 12px 24px; font-size: 1.05rem; min-height: 46px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid #9fb2b9; border-radius: var(--r); overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { font: inherit; background: #fff; border: 0; border-right: 1px solid #c9d4d9; padding: 8px 16px; min-height: 38px; cursor: pointer; color: var(--ink2); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--brand-soft); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.seg.big button { padding: 12px 22px; font-size: 1.02rem; }
.msg { padding: 10px 12px; border-radius: var(--r); font-size: .93rem; margin: 10px 0; }
.msg.err { background: var(--bad-soft); color: #7d1a14; border: 1px solid #efb8b3; }
.msg.okk { background: var(--ok-soft); color: #0f5232; border: 1px solid #a9d9bd; }
.msg.warn { background: var(--warn-soft); color: #6c4400; border: 1px solid #ecce85; }
.msg.info { background: var(--brand-soft); color: #0a4a55; border: 1px solid #aacfd5; }

/* ---------- жадваллар ---------- */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th { text-align: left; font-weight: 600; color: var(--ink2); font-size: .84rem; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f8fafb; white-space: nowrap; }
th.num { text-align: right; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tbody tr:hover > td { background: #f8fbfb; }
tr.click { cursor: pointer; }
tr.detail > td { background: #f6f9fa !important; padding: 14px 18px 18px; border-bottom: 1px solid var(--line); }
tr.total td { font-weight: 650; background: #f1f5f6; border-top: 1px solid var(--line); }
tr.gh td { background: #eef3f4; font-weight: 650; color: var(--ink2); padding: 6px 12px; font-size: .86rem; }
td .sub { color: var(--mute); font-size: .84rem; display: block; }
td.act { white-space: nowrap; text-align: right; }
.empty { padding: 28px 18px; text-align: center; color: var(--mute); }
.empty b { display: block; color: var(--ink2); font-size: 1.05rem; margin-bottom: 4px; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip.pending { background: var(--warn-soft); color: var(--warn); }
.chip.confirmed { background: var(--ok-soft); color: var(--ok); }
.chip.cancelled { background: var(--off-soft); color: var(--off); text-decoration: line-through; }
.chip.loss { background: var(--bad-soft); color: var(--bad); }
.chip.role { background: var(--brand-soft); color: var(--brand); }
.chip.off { background: var(--off-soft); color: var(--off); }
.chip.new { background: var(--sig); color: #2b1d00; }

/* ---------- омбор: қолдиқ катаклари ---------- */
.sc { min-width: 118px; }
.sc .big { font-size: 1.3rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sc .big.zero { color: var(--mute); font-weight: 500; }
.sc .big.low { color: var(--bad); }
.sc .line { font-size: .8rem; color: var(--mute); margin-top: 2px; white-space: nowrap; }
.bar { height: 6px; background: var(--line2); border-radius: 3px; margin-top: 5px; display: flex; overflow: hidden; max-width: 140px; }
.bar i { display: block; height: 100%; }
.bar .a { background: var(--ok); } .bar .r { background: var(--sig); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink2); align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- савдо шакли ---------- */
.steps { display: grid; gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.step > h2 { padding: 12px 18px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 10px; }
.step > h2 .n { background: var(--ink); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .85rem; }
.step > .body { padding: 16px 18px; }
.sline { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr 80px 1.1fr 1.1fr 36px; gap: 8px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sline:last-child { border-bottom: 0; }
.sline .lbl { font-size: .78rem; color: var(--mute); margin-bottom: 2px; display: block; }
.sline .x { align-self: end; }
.linfo { grid-column: 1 / -1; font-size: .88rem; color: var(--ink2); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.linfo .w { color: #7a4d00; background: var(--warn-soft); padding: 1px 8px; border-radius: 4px; }
.linfo .l { color: var(--bad); background: var(--bad-soft); padding: 1px 8px; border-radius: 4px; font-weight: 600; }
.linfo .p { color: var(--ok); font-weight: 600; }
.sumbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--line); border-top: 3px solid var(--sig); background: var(--panel); border-radius: var(--r); }
.sumbar .t { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .sline { grid-template-columns: 1fr 1fr; } .sline .x { justify-self: end; } }

/* ---------- диалог ---------- */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(10, 25, 32, .35); color: var(--ink); }
dialog.wide { width: min(920px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(14, 26, 32, .55); }
dialog > form, dialog > .dlg { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dlg-h { padding: 16px 20px 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-h button { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--mute); padding: 0 4px; }
.dlg-b { padding: 4px 20px 16px; overflow-y: auto; display: grid; gap: 12px; }
.dlg-f { padding: 12px 20px 16px; border-top: 1px solid var(--line2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: #fafbfc; border-radius: 0 0 10px 10px; }

/* ---------- кириш ойнаси ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, var(--side) 0 220px, var(--paper) 220px); }
.auth .card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px 28px; box-shadow: 0 16px 40px rgba(10, 25, 32, .18); position: relative; }
.auth .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, var(--sig) 0 6px, transparent 6px 10px); }
.auth h1 { margin: 6px 0 4px; }
.auth form { display: grid; gap: 12px; margin-top: 16px; }
.auth.setup .card { width: min(600px, 100%); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: .94rem; }
.toast.err { background: var(--bad); } .toast.ok { background: var(--ok); }

.news { border-left: 4px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 18px; }
.news.new { border-left-color: var(--sig); }
.news h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news .body { white-space: pre-wrap; margin: 6px 0; }
.help h2 { margin: 22px 0 8px; } .help ol, .help ul { padding-left: 1.3em; margin: 6px 0 12px; } .help li { margin: 4px 0; max-width: 78ch; }
.help code, code.k { background: #eef2f4; padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
details.fold { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 10px; }
details.fold > summary { padding: 11px 16px; cursor: pointer; font-weight: 600; }
details.fold > .in { padding: 0 18px 14px; }
.hbar { display: grid; grid-template-columns: 100px minmax(0, 1fr) 230px; gap: 10px; align-items: center; font-size: .9rem; padding: 3px 0; }
.hbar > span:last-child { white-space: nowrap; text-align: right; }
@media (max-width: 700px) { .hbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; padding: 6px 0; } .hbar .b { grid-column: 1 / -1; order: 3; } }
.hbar .b { height: 12px; background: var(--line2); border-radius: 2px; overflow: hidden; } .hbar .b i { display: block; height: 100%; background: var(--brand); }
.hbar .b i.neg { background: var(--bad); }

/* ---------- кичик экранлар ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .18s; }
  body.menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 20, 26, .5); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 1px solid #3a5260; color: #fff; border-radius: var(--r); padding: 6px 12px; font: inherit; white-space: nowrap; flex: none; }
  .topbar > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .fx-top { display: block; margin-left: auto; flex: none; padding: 5px 9px; font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .topbar .fx-top b { color: var(--sig); }
  .main { padding: 16px 14px 50px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .side, .topbar, .btn, .seg, .toasts { display: none !important; } .app { display: block; } .main { padding: 0; } .panel { border: 0; }
  body.printing > *:not(#print-area), body.printing dialog { display: none !important; }
  body.printing #print-area { display: block !important; }
  body.printing { background: #fff; }
}
/* накладная ва кафолат талони (фақат чоп этишда кўринади) */
#print-area { display: none; color: #000; font-size: 11pt; }
#print-area h1 { font-size: 16pt; margin: 0 0 2mm; } #print-area h2 { font-size: 13pt; margin: 0 0 3mm; }
#print-area .pa-head { display: flex; justify-content: space-between; gap: 10mm; border-bottom: 1.5pt solid #000; padding-bottom: 3mm; margin-bottom: 4mm; }
#print-area table { width: 100%; border-collapse: collapse; margin: 3mm 0; }
#print-area th, #print-area td { border: .6pt solid #000; padding: 1.6mm 2mm; text-align: left; vertical-align: top; }
#print-area td.n, #print-area th.n { text-align: right; white-space: nowrap; }
#print-area .pa-total { text-align: right; font-size: 13pt; font-weight: 700; margin: 2mm 0 4mm; }
#print-area .pa-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 10mm; }
#print-area .pa-sign div { border-top: .6pt solid #000; padding-top: 1mm; font-size: 9.5pt; }
#print-area .pa-note { border: 1.5pt solid #000; padding: 2mm 3mm; margin: 3mm 0; font-weight: 700; }
#print-area .pa-card { break-before: page; page-break-before: always; border: 1.2pt dashed #000; padding: 6mm; margin-top: 6mm; }
#print-area .pa-card + .pa-card { break-before: auto; page-break-before: auto; }
#print-area .pa-row { display: grid; grid-template-columns: 45mm minmax(0, 1fr); gap: 3mm; padding: 1.2mm 0; border-bottom: .4pt dotted #555; }
#print-area .pa-small { font-size: 9pt; }


/* ---------- 1.2.0 ---------- */
.usd { display: block; font-size: .78rem; color: var(--mute); font-weight: 400; }
.bcfield { display: flex; gap: 8px; align-items: center; }
.bcfield input { flex: 1; min-width: 0; }
.bcprev { margin-top: 8px; max-width: 260px; } .bcprev svg.bc { width: 100%; height: 46px; fill: #000; background: #fff; display: block; }
.lbl-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.lbl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.lbl-row:last-child { border-bottom: 0; }
form.ro .btn.danger.small { display: none; }
#print-area.labels { font-size: 9pt; }
#print-area .lbl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
#print-area .lbl { border: .4pt dashed #888; padding: 2.5mm 3mm; break-inside: avoid; page-break-inside: avoid; text-align: center; }
#print-area .lbl-co { font-size: 7pt; color: #444; }
#print-area .lbl-n { font-weight: 700; font-size: 9pt; line-height: 1.2; margin: 1mm 0; min-height: 2.4em; }
#print-area .lbl-p { font-size: 12pt; font-weight: 700; }
#print-area .lbl svg.bc { width: 100%; height: 13mm; fill: #000; display: block; margin-top: 1mm; }
#print-area .lbl-c { font-size: 8pt; letter-spacing: .08em; }
.tgcode { text-align: center; margin: 10px 0; } .tgcode .big { font-size: 2.2rem; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; margin: 4px 0 10px; } .tgcode ol { text-align: left; }
/* 1.3.0: тўрт хил тўлов ва онлайн/офлайн */
.chanbox { margin-top: 14px; display: grid; gap: 6px; max-width: 680px; }
.chanbox > .f { font-weight: 600; color: var(--ink2); }
.chanbox .seg { justify-self: start; }
@media (max-width: 700px) { .seg.pay4 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .seg.pay4 button { border-bottom: 1px solid #c9d4d9; padding: 12px 10px; }
  .seg.pay4 button:nth-child(2n) { border-right: 0; } .seg.pay4 button:nth-last-child(-n+2) { border-bottom: 0; } }
