/* Shriftlar lokal (CSP: faqat 'self'). OFL litsenziya: fonts/Onest-OFL.txt, fonts/Unbounded-OFL.txt (manba: fonts/MANBA.md).
   Unbounded'da qozoq harflari (ә ғ қ ң ө ұ ү һ) yo'q — kk tilida sarlavhalar Onest bilan (pastda html[lang="kk"]). */
@font-face { font-family: "Onest"; src: url("fonts/Onest.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/Unbounded.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

/* Savdo — yangi dizayn (TAKLIF, 2026-11-17, Dizayner). public/app.css o'rniga qo'yiladi, Shuxrat yo'nalishni tanlagach.
   Klass nomlari hozirgi app.js bilan bir xil (layout, side, nav, main, page, head, card, kpi, pos, tiles, tile, cart, ci, qty, cart-f, paybtn, modal-box ...).
   Ikki yo'nalish bitta faylda:
     A "Vitrina" (yorug') — standart, :root.
     B "Tun" (to'q)       — <html data-theme="tun">.
     B "Tun" oq (yorug')  — <html data-theme="tun-oq">  (Shuxrat tanlovi, 2026-11-17). Tuzilma B bilan bir xil,
                            yorug'/to'q almashtirgich faqat data-theme ni "tun-oq" <-> "tun" qiladi.
   Shriftlar (index.html <link> almashtiriladi):
     A: https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Fira+Mono:wght@400;500&display=swap
     B: https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Unbounded:wght@400;500;600&display=swap
   Ikkala to'plam ham ʻ (U+02BB), kirill va qozoq harflarini (ә ғ қ ң ө ұ ү һ і) to'liq chiqaradi (tekshirildi).
   Qoida: --accent faqat pul va asosiy harakat (jami summa, To'lov tugmasi, grafikdagi faol nuqta). Qolgan hamma narsa neytral. */

:root {
  /* ramka va menyu */
  --frame: #16181B; --frame2: #212429; --frame-text: #9EA3AA; --frame-dim: #5F646B;
  /* ish maydoni */
  --bg: #F2F3F1; --panel: #FFFFFF; --panel2: #F7F8F6; --line: #E5E7E3; --line2: #D3D6D1; --line-input: #8A9097;
  --text: #121417; --text2: #3A3F45; --muted: #6A7077; --faint: #A2A7AD;
  /* harakat: neytral asosiy (ink) va pul urg'usi (accent) */
  --ink: #121417; --ink-hover: #2A2E33; --ink-text: #FFFFFF;
  --accent: #FF5A1F; --accent-hover: #EC4B12; --accent-soft: #FFF0E8; --accent-ink: #FFFFFF; --accent-t: #FF5A1F; /* urg'u rangidagi matn/ikonka/chegara */
  /* ma'no ranglari */
  --ok: #16804F; --ok-bg: #E6F4EC; --sun: #E0A43A; --sun-ink: #8A5A0F; --sun-bg: #FCF3DF;
  --danger: #C8322B; --danger-bg: #FCEBE9; --blue: #2F5BD3; --blue-bg: #EAF0FD;
  --focus: #121417;
  /* shrift */
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-d: "Inter Tight", system-ui, sans-serif;    /* katta raqam: 300 og'irlikda */
  --font-num: "Fira Mono", ui-monospace, monospace;  /* summa, SKU, chek */
  --num-w: 300;
  /* o'lcham */
  --r-sm: 8px; --r-btn: 11px; --r: 16px; --r-xl: 22px;
  --sh1: 0 1px 0 rgba(18,20,23,.04), 0 1px 2px rgba(18,20,23,.06);
  --shadow: 0 1px 2px rgba(18,20,23,.05), 0 8px 24px -6px rgba(18,20,23,.10);
  --sh3: 0 24px 60px -12px rgba(18,20,23,.35), 0 2px 6px rgba(18,20,23,.08);
  --pay-glow: 0 10px 24px -8px rgba(255,90,31,.6);
  --sheet-gap: 10px; /* varaq ramkadan qancha ichkarida */
}
html[data-theme^="tun"] {
  --frame: #0B0C0E; --frame2: #1B1E22; --frame-text: #8B9199; --frame-dim: #5C626A;
  --bg: #0B0C0E; --panel: #141619; --panel2: #1B1E22; --line: #24282D; --line2: #33383F; --line-input: #4A5058;
  --text: #F1F2EE; --text2: #C9CCD1; --muted: #8B9199; --faint: #5C626A;
  --ink: #F1F2EE; --ink-hover: #FFFFFF; --ink-text: #0B0C0E;
  --accent: #C8F54A; --accent-hover: #D6FA6E; --accent-soft: rgba(200,245,74,.12); --accent-ink: #0B0C0E; --accent-t: #C8F54A;
  --ok: #C8F54A; --ok-bg: rgba(200,245,74,.12); --sun: #F5B544; --sun-ink: #F5B544; --sun-bg: rgba(245,181,68,.13);
  --danger: #FF6B5E; --danger-bg: rgba(255,107,94,.13); --blue: #7FB2FF; --blue-bg: rgba(127,178,255,.13);
  --focus: #C8F54A;
  --font: "Onest", system-ui, sans-serif; --font-d: "Unbounded", "Onest", sans-serif; --font-num: "Unbounded", "Onest", sans-serif;
  --num-w: 500;
  --r: 20px; --r-xl: 0px;
  --sh1: none; --shadow: none; --sh3: 0 40px 100px rgba(0,0,0,.6);
  --pay-glow: 0 0 0 1px rgba(200,245,74,.4), 0 14px 40px -12px rgba(200,245,74,.55);
  --sheet-gap: 0px;
}
/* B "Tun" — OQ (yorug') mavzu: tuzilma B bilan bir xil (data-theme^="tun" qoidalari), faqat tokenlar.
   Limon #C8F54A oq fonda 1.26:1 — faqat FON (To'lov, tanlangan holat, grafik urg'usi), ustida to'q matn 15:1.
   Matn/ikonka/chegarada zaytun-yashil --accent-t #4A7000 (oqda 5.8:1, #F4F5F2 da 5.3:1). Hamma matn WCAG AA dan o'tdi. */
html[data-theme="tun-oq"] {
  --frame: #FFFFFF; --frame2: #F3F4F1; --frame-text: #5C6269; --frame-dim: #646A71;
  --bg: #F4F5F2; --panel: #FFFFFF; --panel2: #F3F4F1; --line: #E4E6E1; --line2: #D5D8D2; --line-input: #B7BBB4;
  --text: #0E1012; --text2: #3B4046; --muted: #5C6269; --faint: #646A71;
  --ink: #0E1012; --ink-hover: #2A2E33; --ink-text: #FFFFFF;
  --accent: #C8F54A; --accent-hover: #BDEB36; --accent-soft: #EFF8D6; --accent-ink: #0E1012; --accent-t: #4A7000;
  --ok: #4A7000; --ok-bg: #EFF8D6; --sun: #9A6200; --sun-ink: #9A6200; --sun-bg: #FCF1DA;
  --danger: #C8322B; --danger-bg: #FCEBE9; --blue: #2F5BD3; --blue-bg: #EAF0FD;
  --focus: #4A7000;
  --sh1: 0 1px 2px rgba(14,16,18,.04); --shadow: 0 1px 2px rgba(14,16,18,.04), 0 6px 20px -8px rgba(14,16,18,.10);
  --sh3: 0 24px 60px -12px rgba(14,16,18,.22), 0 2px 6px rgba(14,16,18,.06);
  --pay-glow: 0 1px 0 rgba(14,16,18,.06), 0 10px 28px -10px rgba(122,170,0,.55), inset 0 0 0 1px rgba(74,112,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--frame); color: var(--text); font: 400 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); }
h1 { font: 600 24px/1.15 var(--font-d); margin: 0; letter-spacing: -.025em; }
html[data-theme^="tun"] h1 { font-weight: 500; font-size: 20px; letter-spacing: -.03em; }
h2 { font: 600 18px/1.3 var(--font); margin: 0 0 12px; letter-spacing: -.015em; }
h3 { font-size: 14.5px; margin: 0 0 10px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .xs { font-size: 12px; }
.n, td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.side :focus-visible, .mnav :focus-visible { outline-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; } .grow { flex: 1; min-width: 0; } .hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tugmalar: oddiy = oq; primary = ink (neytral asosiy); ok = pul urg'usi (to'lov) */
.btn, a.btn { text-decoration: none; color: inherit; }
a.btn.primary { color: var(--ink-text); }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-btn); min-height: 40px; padding: 0 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; justify-content: center; box-shadow: var(--sh1); }
.btn:hover { border-color: var(--line2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary:hover { background: var(--ink-hover); }
.btn.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* chip = filtr / segment / tab */
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; min-height: 34px; padding: 0 13px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--text2); }
html[data-theme^="tun"] .chip { border-radius: 10px; }
a.chip { text-decoration: none; color: var(--text2); display: inline-flex; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
input, select, textarea { border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r-btn); min-height: 42px; padding: 9px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
textarea { resize: vertical; min-height: 80px; }
label.f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
label.cb { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.form { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 0; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
html[data-theme^="tun"] .card { border: 1px solid var(--line); }
.empty { color: var(--muted); text-align: center; padding: 32px 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--panel2); color: var(--text2); white-space: nowrap; }
.pill.red { background: var(--danger-bg); color: var(--danger); }
.pill.amber { background: var(--sun-bg); color: var(--sun-ink); }
.pill.green { background: var(--ok-bg); color: var(--ok); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }

/* maket: A — grafit ramka + suzuvchi varaq; B — ikon-rels (yorliq ostida) */
.layout { display: grid; grid-template-columns: 228px 1fr; height: 100vh; height: 100dvh; background: var(--frame); }
.side { background: var(--frame); color: var(--frame-text); display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 2px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; font: 600 17px var(--font); letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.side a.nav { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 10px; color: var(--frame-text); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.side a.nav:hover { background: var(--frame2); color: #fff; }
.side a.nav.on { background: var(--frame2); color: #fff; }
.side a.nav.on svg { color: var(--accent-t); }
.side .sep { height: 1px; background: var(--frame2); margin: 10px 8px; }
.side .who { margin-top: auto; padding: 10px; font-size: 12.5px; color: var(--frame-text); background: var(--frame2); border-radius: 12px; }
.main { overflow-y: auto; min-width: 0; background: var(--bg); margin: var(--sheet-gap) var(--sheet-gap) var(--sheet-gap) 0; border-radius: var(--r-xl); }
.page { padding: 20px 26px 40px; max-width: 1440px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: inline-flex; gap: 2px; overflow-x: auto; margin-bottom: 16px; padding: 3px; scrollbar-width: none; background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 12px; }
.tabs .chip { flex: none; border: 0; background: transparent; box-shadow: none; border-radius: 9px; color: var(--muted); }
.tabs .chip.on { background: var(--panel); color: var(--text); box-shadow: var(--sh1); }
html[data-theme^="tun"] .tabs { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 14px; display: flex; }
html[data-theme^="tun"] .tabs .chip { border-radius: 0; padding: 0 2px; border-bottom: 2px solid transparent; }
html[data-theme^="tun"] .tabs .chip.on { background: transparent; box-shadow: none; border-bottom-color: var(--accent-t); }
.net { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.net.on { background: var(--ok-bg); color: var(--ok); } .net.off { background: var(--sun-bg); color: var(--sun-ink); }
.net::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }

html[data-theme^="tun"] .layout { grid-template-columns: 84px 1fr; }
html[data-theme^="tun"] .side { align-items: center; padding: 16px 0 14px; border-right: 1px solid var(--line); }
html[data-theme^="tun"] .brand { font-size: 0; padding: 0 0 14px; }
html[data-theme^="tun"] .side a.nav { flex-direction: column; width: 68px; gap: 5px; padding: 9px 0 8px; font-size: 10.5px; text-align: center; line-height: 1.1; border-radius: 14px; }
html[data-theme^="tun"] .side .who { font-size: 0; background: none; padding: 0; }

/* jadval */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
html[data-theme^="tun"] .tbl-wrap { border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; position: sticky; top: 0; }
td { padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel2); }
/* KPI: yorliq oddiy yozuv (katta harf emas), raqam katta va ingichka */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
html[data-theme^="tun"] .kpi { border: 1px solid var(--line); }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .v { font: var(--num-w) 34px/1.1 var(--font-d); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.kpi .d { font-size: 12px; font-weight: 600; margin-top: 4px; }
.kpi.hero { background: var(--frame); color: #fff; }
html[data-theme^="tun"] .kpi.hero { background: radial-gradient(600px 260px at 80% 0%, rgba(200,245,74,.10), transparent 70%), var(--panel); color: var(--text); }
.kpi.hero .l { color: var(--frame-text); }
.kpi.sig { cursor: pointer; } .kpi.sig:hover { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow); }
.kpi.warn .v { color: var(--sun-ink); } .kpi.bad .v { color: var(--danger); }
.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
/* ustunli grafik: kulrang ustunlar, faqat bugungi/faol ustun urg'u rangida */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; background: color-mix(in srgb, var(--text) 10%, transparent); border-radius: 7px; min-height: 3px; }
.bars .b.today i { background: var(--accent); }
.bars .b span { font-size: 10.5px; color: var(--faint); }
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(14px, 1fr)); gap: 4px; font-size: 11px; }
.heat div { aspect-ratio: 1; border-radius: 5px; }
.heat .lb { aspect-ratio: auto; color: var(--muted); display: flex; align-items: center; }
pre.msg { white-space: pre-wrap; background: var(--panel2); border: 1px dashed var(--line2); border-radius: 12px; padding: 12px; font: 13px/1.5 var(--font-num); margin: 0; }

/* kassa: chap menyu kassada rels bo'ladi (app.js: .layout ga .pos-mode klass qo'shish kifoya) */
.layout.pos-mode { grid-template-columns: 76px 1fr; }
.layout.pos-mode .side a.nav { font-size: 0; justify-content: center; gap: 0; }
.layout.pos-mode .brand { font-size: 0; justify-content: center; }
.layout.pos-mode .who { display: none; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 412px; height: 100%; }
.pos-left { display: flex; flex-direction: column; min-width: 0; padding: 16px 20px 0 22px; gap: 14px; overflow: hidden; }
.pos-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.scan { position: relative; flex: 1; min-width: 220px; }
.scan input { min-height: 58px; padding: 0 64px 0 48px; font-size: 17px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
html[data-theme^="tun"] .scan input { border: 1px solid var(--line2); box-shadow: 0 0 0 4px rgba(200,245,74,.06); }
.scan > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; overflow-y: auto; align-content: start; padding-bottom: 20px; }
.tile { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; box-shadow: var(--sh1); position: relative; }
.tile:hover { border-color: var(--line2); }
.tile b { font-weight: 600; font-size: 14px; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .p { font: var(--num-w) 13px var(--font-num); margin-top: auto; font-variant-numeric: tabular-nums; }
html[data-theme^="tun"] .tile .p { font-weight: 500; }
.tile .q { font-size: 11.5px; color: var(--muted); }
.tile.fav { border-color: var(--line); background: var(--panel); }           /* "tez tugma" belgisi endi rang emas, yulduzcha */
.tile.fav::after { content: '★'; position: absolute; top: 10px; right: 12px; font-size: 12px; color: var(--faint); }
.tile.in { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow); }                /* savatda bor: qalin chegara + soni */
html[data-theme^="tun"] .tile.in { box-shadow: 0 0 0 1px var(--accent-t); background: linear-gradient(180deg, rgba(200,245,74,.07), transparent 60%), var(--panel); }
.cart { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-h { padding: 18px 18px 14px; display: flex; gap: 8px; align-items: center; }
.cart-h h3 { font: 600 19px var(--font-d); letter-spacing: -.02em; }
html[data-theme^="tun"] .cart-h h3 { font-weight: 500; font-size: 18px; letter-spacing: -.03em; }
.cart-list { flex: 1; overflow-y: auto; padding: 0 10px; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ci .nm { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.ci .sum { font: 500 13.5px var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; background: var(--panel2); border-radius: 11px; padding: 2px; gap: 2px; }
.qty button { border: 0; background: transparent; width: 44px; height: 40px; border-radius: 9px; font-size: 18px; font-weight: 600; color: var(--text2); }
.qty button:last-child { background: var(--panel); box-shadow: var(--sh1); }
.qty input { border: 0; width: 64px; min-height: 0; text-align: center; padding: 4px; background: transparent; font-weight: 600; box-shadow: none; }
.cart-f { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--panel); }
.tot { display: flex; justify-content: space-between; align-items: flex-end; }
.tot .big { font: 500 34px/1 var(--font-num); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
html[data-theme^="tun"] .tot .big { color: var(--accent-t); font-size: 36px; }
.paybtn { min-height: 62px; font-size: 18.7px; padding: 0 20px; border-radius: 16px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); justify-content: space-between; box-shadow: var(--pay-glow); }
.paybtn:hover { background: var(--accent-hover); }
.paybtn[disabled] { opacity: 1; background: var(--panel2); border-color: var(--line); color: var(--faint); box-shadow: none; }
/* to'lov turlari (Naqd F5 / Karta F6 / Nasiya F7 / Aralash F8): segment, tanlangani ink */
.paygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.paygrid .btn { flex-direction: column; min-height: 58px; gap: 3px; border-radius: 12px; font-size: 12px; box-shadow: none; }
.paygrid .btn.on, .paygrid .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
html[data-theme^="tun"] .paygrid { grid-template-columns: 1fr 1fr; gap: 8px; }
html[data-theme^="tun"] .paygrid .btn { flex-direction: row; min-height: 48px; justify-content: flex-start; }
html[data-theme^="tun"] .paygrid .btn.on, html[data-theme^="tun"] .paygrid .btn.primary { background: var(--panel2); color: var(--text); border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); }
.change { font: 500 30px var(--font-num); color: var(--ok); letter-spacing: -.03em; }
.mcart { display: none; }

/* oyna: A — markazda; B — o'ngdan chiqadigan panel */
.modal-bg { position: fixed; inset: 0; background: rgba(18,20,23,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--panel); border-radius: 24px; padding: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: var(--sh3); }
.modal-box.wide { max-width: 880px; }
html[data-theme^="tun"] .modal-bg { background: rgba(5,6,7,.66); backdrop-filter: none; justify-content: flex-end; padding: 10px; }
html[data-theme^="tun"] .modal-box { border: 1px solid var(--line2); height: 100%; max-height: none; max-width: 520px; }
.foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--frame); color: #fff; padding: 12px 18px; border-radius: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 80; max-width: 90vw; box-shadow: var(--sh3); font-weight: 500; }
html[data-theme^="tun"] #toast { background: var(--panel2); border: 1px solid var(--line2); color: var(--text); }
#toast.on { opacity: 1; transform: translateX(-50%); } #toast.err { background: var(--danger); color: #fff; }
.lines td input { padding: 6px 8px; min-height: 36px; }
.pick { position: relative; }
.pick .drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh3); max-height: 280px; overflow-y: auto; padding: 4px; }
.pick .drop button { display: flex; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; gap: 8px; border-radius: 8px; }
.pick .drop button:hover, .pick .drop button:focus { background: var(--panel2); }
.perm-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 14px; }
/* kirish: A — chap grafit panel + o'ng forma; B — panjarali qora fon, markazda PIN klaviatura */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(900px 500px at 15% 110%, rgba(255,90,31,.30), transparent 60%), var(--frame); }
html[data-theme^="tun"] .auth { background: radial-gradient(700px 420px at 50% 38%, rgba(200,245,74,.13), transparent 70%),
  linear-gradient(#16191C 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, #16191C 1px, transparent 1px) 0 0/48px 48px, var(--bg); }
.auth .card { width: 100%; max-width: 420px; padding: 28px; border-radius: 24px; }
.video { width: 100%; border-radius: 14px; background: #000; aspect-ratio: 4/3; object-fit: cover; }

/* chop etish: o'zgarishsiz (chek monoshriftda) */
#print { display: none; }
@media print {
  body { overflow: visible; background: #fff; }
  #app, #modal, #toast { display: none !important; }
  #print { display: block; }
  .rcpt { font: 12px/1.35 "Fira Mono", "Courier New", monospace; color: #000; padding: 0 2mm; }
  .rcpt.w58 { width: 54mm; } .rcpt.w80 { width: 76mm; }
  .rcpt .c { text-align: center; } .rcpt .r { display: flex; justify-content: space-between; gap: 6px; } .rcpt hr { border: 0; border-top: 1px dashed #000; }
  .labels { display: flex; flex-wrap: wrap; gap: 2mm; }
  .label { width: 58mm; height: 40mm; border: 1px dashed #999; padding: 2mm; display: flex; flex-direction: column; justify-content: space-between; page-break-inside: avoid; font-family: Arial, sans-serif; }
  .label .nm { font-size: 10pt; font-weight: 700; line-height: 1.15; max-height: 2.4em; overflow: hidden; } .label .pr { font-size: 16pt; font-weight: 800; }
  .label svg { width: 100%; height: 14mm; }
  @page { margin: 4mm; }
}

/* telefon */
.mnav { display: none; }
@media (max-width: 860px) {
  .layout, html[data-theme^="tun"] .layout { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .side { display: none !important; }
  .main { margin: 0; border-radius: 0; padding-bottom: 96px; }
  /* A: suzuvchi to'q kapsula; B: shaffof pastki panel */
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 64px; align-items: center; background: var(--frame); border-radius: 22px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); z-index: 30; }
  html[data-theme^="tun"] .mnav { left: 0; right: 0; bottom: 0; height: auto; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-radius: 0; background: rgba(11,12,14,.92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--frame-text); text-decoration: none; padding: 4px 0; }
  .mnav a.on { color: #fff; } .mnav a.on svg { color: var(--accent-t); }
  html[data-theme^="tun"] .mnav a.on { color: var(--accent-t); }
  .mnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .page { padding: 12px 16px 30px; }
  .cols, .grid2, .grid3 { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .pos-left { padding: 8px 16px; overflow: visible; }
  .scan input { min-height: 52px; font-size: 15px; border-radius: 15px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 10px; }
  .cart { position: fixed; inset: 0; z-index: 40; transform: translateY(100%); transition: transform .22s; border: 0; border-radius: 26px 26px 0 0; top: 48px; }
  .cart.open { transform: none; }
  /* savat paneli: urg'u rangida, menyu ustida suzadi */
  .mcart { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); min-height: 62px; padding: 8px 8px 8px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 18px; gap: 12px; align-items: center; z-index: 25; box-shadow: var(--pay-glow); }
  html[data-theme^="tun"] .mcart { bottom: calc(96px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .mcart .btn { background: var(--accent-ink); color: var(--accent); border: 0; min-height: 46px; margin-left: auto; }
  html[data-theme^="tun"] .mcart .btn { background: var(--bg); color: var(--accent); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 26px; }
  .kpi.hero { grid-column: 1 / -1; }
  h1 { font-size: 20px; }
  .hide-m { display: none; }
  .modal-bg, html[data-theme^="tun"] .modal-bg { align-items: flex-end; justify-content: center; padding: 0; }
  .modal-box, html[data-theme^="tun"] .modal-box { border-radius: 26px 26px 0 0; max-height: 94vh; height: auto; max-width: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===================== Dasturchi qo'shimchalari (2026-11-17): B "Tun" tuzilmasi app.js bilan ===================== */
/* kk: Unbounded'da qozoq harflari yo'q — sarlavha va katta raqamlar Montserrat 700 (keng, geometrik; solishtirish: dizayn-tahlil/qollangan/shrift-taqqoslash-kk.png). */
html[lang="kk"][data-theme^="tun"] { --font-d: "Montserrat", "Onest", system-ui, sans-serif; --font-num: "Montserrat", "Onest", system-ui, sans-serif; --num-w: 700; }
html[lang="kk"] h1, html[lang="kk"] h2.disp, html[lang="kk"] .top h1, html[lang="kk"] .hello h2, html[lang="kk"] .big-v, html[lang="kk"] .mid-v, html[lang="kk"] .tot .big, html[lang="kk"] .due b,
html[lang="kk"] .chg b, html[lang="kk"] .kpi .v, html[lang="kk"] .disp, html[lang="kk"] .ring .rc b, html[lang="kk"] .pay-h h2, html[lang="kk"] .cart-h h3, html[lang="kk"] .auth .card h1 { font-weight: 700; letter-spacing: -.03em; }
.disp { font-family: var(--font-d); font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
kbd, .kbd { display: inline-flex; align-items: center; gap: 3px; font: 600 11px/1 var(--font); color: var(--muted); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; white-space: nowrap; }
.btn kbd { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-m { display: none !important; }

/* rels: logo, ikon + yorliq, pastda sozlama va avatar */
@media (min-width: 861px) { html[data-theme^="tun"] .layout.pos-mode { grid-template-columns: 84px 1fr; } }
html[data-theme^="tun"] .layout.pos-mode .side a.nav { font-size: 10.5px; gap: 5px; }
html[data-theme^="tun"] .layout.pos-mode .brand { font-size: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
html[data-theme^="tun"] .side { gap: 4px; }
html[data-theme^="tun"] .side a.nav svg { width: 22px; height: 22px; }
html[data-theme^="tun"] .side a.nav span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .grow-y { flex: 1; }
.ava { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: 600 13px var(--font); display: inline-grid; place-items: center; flex: none; padding: 0; }
.ava:hover { border-color: var(--accent-t); }
.side .ava { margin-top: 10px; }

/* ish maydoni: yuqori panel + kontent */
html[data-theme^="tun"] .main { display: flex; flex-direction: column; overflow: hidden; margin: 0; border-radius: 0; }
.content { flex: 1; min-height: 0; overflow-y: auto; }
.top { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
html[data-theme="tun"] .top { background: var(--bg); }
.top-t { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.top h1 { font: 500 22px/1.15 var(--font-d); letter-spacing: -.035em; margin: 0; white-space: nowrap; }
.top-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.top-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-acts .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
html[data-theme="tun-oq"] .top-acts .btn.primary { box-shadow: inset 0 0 0 1px rgba(74,112,0,.35); }
.top-acts .btn.danger { color: var(--danger); }
.cmdk { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; width: min(360px, 32vw); padding: 0 8px 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 13.5px; box-shadow: var(--sh1); }
.cmdk svg { width: 18px; height: 18px; }
.cmdk span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel) !important; color: var(--text) !important; box-shadow: var(--sh1); font-size: 13px; font-weight: 500; }
.net.on::before { background: #7DB800; } .net.off::before { background: var(--sun); }
html[data-theme="tun"] .net.on::before { background: var(--accent); }
.top .ava { display: none; }
.page { padding: 20px 24px 40px; max-width: none; }
.page > .head:empty { display: none; }

/* foydalanuvchi menyusi va ⌘K */
.pop { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--sh3); padding: 10px; width: 280px; }
.pop .who-b { padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pop .who-b b { display: block; font-size: 14.5px; }
.pop a, .pop button.it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; text-align: left; }
.pop a:hover, .pop button.it:hover { background: var(--panel2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; border-radius: 9px; min-height: 36px; font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--sh1), inset 0 0 0 1px var(--accent-t); }
html[data-theme="tun"] .seg button.on { background: var(--frame2); }
.seg-l { font-size: 12px; color: var(--muted); font-weight: 500; margin: 6px 4px 6px; }
.cmdk-bg { position: fixed; inset: 0; z-index: 75; background: rgba(14,16,18,.30); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
html[data-theme="tun"] .cmdk-bg { background: rgba(5,6,7,.66); }
.cmdk-box { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--sh3); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in input { border: 0; box-shadow: none !important; min-height: 58px; font-size: 16px; padding: 0; background: transparent; }
.cmdk-l { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-l button { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 44px; border: 0; background: none; border-radius: 10px; padding: 0 10px; text-align: left; color: var(--text); }
.cmdk-l button .muted { margin-left: auto; font-size: 12px; }
.cmdk-l button.on { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent-t); }
.cmdk-l .gh { font-size: 11.5px; color: var(--muted); padding: 10px 10px 4px; font-weight: 500; }

/* ikonka qutisi (tovar belgisi) */
.gbox { width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; flex: none; color: var(--text2); }
.gbox svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gbox.sm { width: 38px; height: 38px; border-radius: 11px; } .gbox.sm svg { width: 22px; height: 22px; }
.gbox.ok { background: var(--accent-soft); color: var(--accent-t); } .gbox.red { background: var(--danger-bg); color: var(--danger); }
.gbox.amber { background: var(--sun-bg); color: var(--sun-ink); } .gbox.blue { background: var(--blue-bg); color: var(--blue); }
.pill.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.meter { display: inline-block; width: 120px; max-width: 100%; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--text); }
.meter.low i { background: var(--danger); }
.pname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pname .sku { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* kassa: kategoriyalar | plitkalar | chek */
.pos { grid-template-columns: 196px minmax(0, 1fr) 424px; }
.pcats { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 18px 12px 12px; gap: 4px; background: var(--bg); }
.pcats-h { font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 0 10px 8px; }
.pcats-l { flex: 1; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.pcats-l button { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; border-radius: 12px; padding: 0 10px; font-weight: 600; font-size: 14px; color: var(--text); text-align: left; }
.pcats-l button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcats-l button small { font-size: 12px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pcats-l button:hover { background: var(--panel2); }
.pcats-l button.on { background: var(--accent); color: var(--accent-ink); }
.pcats-l button.on small { color: var(--accent-ink); }
.shiftc { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 12px; display: grid; gap: 2px; font-size: 13px; box-shadow: var(--shadow); }
.shiftc b { font-size: 14.5px; } .shiftc .btn { margin-top: 8px; }
.pos-left { padding: 16px 20px 0; gap: 12px; background: var(--bg); }
.pos-left > .scan { flex: none; min-width: 0; display: flex; align-items: center; }
.pos-left > .tiles { flex: 1; min-height: 0; }
.tile .t-mid { display: grid; gap: 6px; width: 100%; margin-top: auto; min-width: 0; }
.tile .gbox { margin-bottom: 0; }
.scan input { padding-right: 140px; }
html[data-theme^="tun"] .scan input { border-color: var(--line2); }
html[data-theme="tun-oq"] .scan input { box-shadow: 0 0 0 4px rgba(200,245,74,.25), var(--sh1); }
.scan .in-r { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; align-items: center; }
.scan .in-r .btn { min-height: 42px; width: 46px; padding: 0; border-radius: 12px; background: var(--panel2); box-shadow: none; }
.pos-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pos-acts .btn { box-shadow: var(--sh1); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.tile { min-height: 148px; padding: 12px 14px; }
.tile .t-top { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.tile .t-f { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.tile .t-f .q { white-space: nowrap; }
.tile .p { margin-top: 0; font-size: 14px; font-weight: 600; font-family: var(--font); }
.tile .q { font-size: 12px; }
.tile .cnt { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 15px/30px var(--font-d); text-align: center; }
.tile.fav::after { content: none; }
.tile.out { opacity: .72; }
html[data-theme="tun-oq"] .tile.in { box-shadow: 0 0 0 1.5px var(--accent-t), var(--shadow); }
.cart-h h3 { margin: 0; }
.cart-h .pill { font-size: 12px; }
.cust { margin: 0 18px 12px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1.5px dashed var(--line2); border-radius: 14px; background: none; color: var(--muted); font-weight: 500; width: calc(100% - 36px); text-align: left; }
.cust.on { border-style: solid; border-color: var(--accent-t); color: var(--text); background: var(--accent-soft); }
.cust span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-list { border-top: 1px solid var(--line); padding: 0; }
.ci { padding: 14px 18px; grid-template-columns: 1fr auto; }
.ci .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ci .sum { font-weight: 600; font-family: var(--font); font-size: 14.5px; }
.ci .qty { justify-self: start; }
.ci .acts { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.ci .acts .btn { min-height: 34px; padding: 0 9px; }
.qty { border: 1px solid var(--line2); background: var(--panel2); }
.qty button:last-child { background: transparent; box-shadow: none; }
.qty input { width: 70px; }
.cart-f { gap: 10px; }
.tot.sm { font-size: 13.5px; color: var(--muted); }
.tot.sm b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tot.sm .neg { color: var(--accent-t); }
.tot .big { font: 500 36px/1 var(--font-d); color: var(--accent-t); }
.paygrid .btn kbd { font-size: 10.5px; }
html[data-theme^="tun"] .paygrid .btn { gap: 10px; padding: 0 12px; font-size: 14px; }
.paybtn kbd { background: rgba(14,16,18,.08); border-color: rgba(14,16,18,.12); color: var(--accent-ink); }
.paybtn[disabled] kbd { opacity: .6; color: var(--faint); }
.cart .empty { padding: 40px 18px; }

/* to'lov paneli (o'ngdan) */
.pay { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.pay-h { display: flex; align-items: flex-start; gap: 10px; }
.pay-h h2 { font: 500 26px/1.1 var(--font-d); letter-spacing: -.04em; margin: 2px 0 0; }
.due { border: 1px solid var(--line); background: var(--panel2); border-radius: 18px; padding: 14px 18px; }
.due b { display: block; font: 500 40px/1.15 var(--font-d); letter-spacing: -.04em; color: var(--accent-t); margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ptypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ptypes button { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2); font-weight: 600; font-size: 13px; color: var(--text); }
.ptypes button.on { border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); background: var(--panel); }
.prow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 8px 0 10px; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); font-weight: 600; }
.prow:focus-within { border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); }
.prow input { border: 0; box-shadow: none !important; text-align: right; font: 600 20px var(--font); padding: 0 6px; min-height: 52px; background: transparent; flex: 1; min-width: 60px; }
.prow input[type=date] { font-size: 14px; flex: 0 0 150px; }
.prow .lbl { flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow.hidden { display: none; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick .btn { min-height: 36px; font-variant-numeric: tabular-nums; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button { min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); font: 500 22px var(--font-d); color: var(--text); }
.numpad button:active { background: var(--accent-soft); }
.chg { display: flex; justify-content: space-between; align-items: center; border-radius: 16px; padding: 14px 18px; background: var(--accent-soft); color: var(--accent-t); font-weight: 600; }
.chg b { font: 500 32px var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay > form { flex: 1; display: flex; flex-direction: column; }
.pay-f { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: auto; padding-top: 6px; }
.pay-f .paybtn { min-height: 64px; }
.modal-box .pay { min-height: calc(100% - 4px); }
@media (max-height: 980px) and (min-width: 861px) {
  .pay { gap: 10px; } .due { padding: 10px 16px; } .due b { font-size: 34px; } .ptypes button { min-height: 56px; }
  .prow { min-height: 52px; } .prow input { min-height: 46px; } .numpad { gap: 6px; } .numpad button { min-height: 48px; } .chg { padding: 10px 16px; } .chg b { font-size: 28px; } .pay-f .paybtn { min-height: 58px; }
}

/* bosh sahifa: bento */
.hello { margin-bottom: 16px; }
.hello .muted { font-size: 13.5px; }
.hello h2 { font: 500 34px/1.15 var(--font-d); letter-spacing: -.045em; margin: 4px 0 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bento > .card { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.b-rev { grid-column: span 6; } .b-mix { grid-column: span 3; } .b-chk { grid-column: span 3; }
.b-sig { grid-column: span 4; } .b-top { grid-column: span 4; } .b-hour { grid-column: span 4; }
.ch { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ch h3 { margin: 0; font-size: 15px; }
.ch .right { color: var(--muted); }
.big-v { font: 500 52px/1.05 var(--font-d); letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mid-v { font: 500 38px/1.05 var(--font-d); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.delta { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-t); white-space: nowrap; }
.delta.down { background: var(--danger-bg); color: var(--danger); }
.lchart { width: 100%; height: 190px; margin-top: auto; display: block; overflow: visible; }
.lchart .ln { fill: none; stroke: var(--accent-t); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lchart .ar { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.lchart .gr { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lchart .pt { fill: var(--panel); stroke: var(--accent-t); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.xax { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 170px; height: 170px; margin: 12px auto 6px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring .bg { stroke: color-mix(in srgb, var(--text) 8%, transparent); }
.ring .c1 { stroke: var(--accent); } .ring .c2 { stroke: var(--text); } .ring .c3 { stroke: var(--sun); }
html[data-theme="tun-oq"] .ring .c1 { stroke: #A9DB2A; }
.ring .rc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .rc b { font: 500 34px/1 var(--font-d); letter-spacing: -.04em; }
.legend { display: grid; gap: 6px; font-size: 12.5px; margin-top: 8px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend span { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.mbars { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin: 10px 0 14px; }
.mbars i { flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); min-height: 4px; }
.mbars i.on { background: var(--accent); }
html[data-theme="tun-oq"] .mbars i.on, html[data-theme="tun-oq"] .hbars .b.on i { box-shadow: inset 0 0 0 1.5px var(--accent-t); }
.kv { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.kv .l { font-size: 12.5px; color: var(--muted); }
.sigl { display: grid; }
.sigl button { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--text); width: 100%; }
.sigl button:last-child { border-bottom: 0; }
.sigl .t { flex: 1; min-width: 0; } .sigl .t b { display: block; font-size: 14px; } .sigl .t span { font-size: 12.5px; color: var(--muted); }
.sigl .n { font-weight: 700; font-size: 14px; white-space: nowrap; }
.topl { display: grid; }
.topl > div { display: grid; grid-template-columns: 28px 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.topl > div:last-child { border-bottom: 0; }
.topl .no { font: 500 14px var(--font-d); color: var(--muted); }
.topl b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topl .meter { width: 100%; margin-top: 6px; display: block; }
.topl > div:first-child .meter i { background: var(--accent); }
.topl .q { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 10px; }
.hbars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.hbars .b i { display: block; width: 100%; border-radius: 6px; min-height: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.hbars .b.on i { background: var(--accent); }
.hbars .b span { font-size: 10.5px; color: var(--faint); height: 13px; }
.tip { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel2); }
.tip .t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); } .tip .t b { display: block; color: var(--text); font-size: 13.5px; }
.tip .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* kirish */
.auth { position: relative; display: flex; flex-direction: column; padding: 24px 32px; place-items: initial; }
.auth-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.abrand { display: flex; align-items: center; gap: 12px; }
.abrand img { width: 44px; height: 44px; border-radius: 13px; }
.abrand b { display: block; font: 500 20px var(--font-d); letter-spacing: -.035em; }
.abrand span { font-size: 12.5px; color: var(--muted); }
.auth-mid { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.auth .card { max-width: 460px; padding: 30px; border-radius: 28px; box-shadow: var(--sh3); }
.auth .card h1 { font: 500 28px/1.1 var(--font-d); letter-spacing: -.045em; text-align: center; }
.auth .card .lead { text-align: center; color: var(--muted); margin: 8px 0 22px; }
.auth .card .btn.primary { min-height: 52px; font-size: 15px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--pay-glow); border-radius: 14px; }
.auth .card input, .auth .card select { min-height: 48px; border-radius: 12px; }
.auth-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.auth-foot .right { font-variant-numeric: tabular-nums; }

/* sozlamalar: mavzu tanlash kartochkalari */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.themes button { border: 1px solid var(--line2); border-radius: 16px; background: var(--panel2); padding: 10px; text-align: left; display: grid; gap: 8px; font-weight: 600; color: var(--text); }
.themes button.on { border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); background: var(--panel); }
.themes .sw { height: 54px; border-radius: 10px; border: 1px solid var(--line); display: flex; gap: 6px; padding: 8px; }
.themes .sw i { border-radius: 4px; flex: 1; }
.themes .sw.l { background: #F4F5F2; } .themes .sw.l i { background: #FFFFFF; } .themes .sw.l i:last-child { background: #C8F54A; flex: .5; }
.themes .sw.d { background: #0B0C0E; border-color: #24282D; } .themes .sw.d i { background: #1B1E22; } .themes .sw.d i:last-child { background: #C8F54A; flex: .5; }
.themes .sw.s { background: linear-gradient(135deg, #F4F5F2 50%, #0B0C0E 50%); }
.themes .sw.s i { background: transparent; }

/* hisobot issiqlik xaritasi */
.heat .c { background: var(--panel2); }

@media (max-width: 1280px) {
  .pos { grid-template-columns: 168px minmax(0, 1fr) 380px; }
  .b-rev { grid-column: span 12; } .b-mix, .b-chk { grid-column: span 6; } .b-sig, .b-top { grid-column: span 6; } .b-hour { grid-column: span 12; }
  .cmdk { width: 220px; }
}
@media (max-width: 1060px) and (min-width: 861px) {
  .pos { grid-template-columns: minmax(0, 1fr) 360px; } .pcats { display: none; } .pchips.show-m { display: flex !important; }
}
@media (max-width: 860px) {
  .show-m { display: revert !important; }
  .hide-m { display: none !important; }
  html[data-theme^="tun"] .main { display: block; overflow-y: auto; padding-bottom: 96px; }
  .content { overflow: visible; }
  .top { padding: 10px 16px; min-height: 60px; gap: 8px; position: sticky; top: 0; z-index: 20; }
  .top h1 { font-size: 20px; }
  .top-t { flex: 1; flex-direction: column; gap: 0; align-items: flex-start; }
  .top-sub { max-width: 60vw; font-size: 12px; }
  .top .right { display: none; }
  .cmdk { display: none; }
  .net { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .top .ava { display: inline-grid; width: 36px; height: 36px; }
  .top-acts { order: 5; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .top-acts .btn { flex: none; }
  .page { padding: 14px 16px 30px; }
  .pos { grid-template-columns: 1fr; }
  .pcats { display: none; }
  .pos-left { padding: 12px 16px; background: transparent; }
  .scan input { padding-right: 70px; }
  .scan .in-r kbd { display: none; }
  .scan .in-r .btn { background: var(--accent); color: var(--accent-ink); width: 52px; }
  .pchips { display: flex !important; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .pchips .chip { flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
  .pchips .chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
  .pos-acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .pos-acts .btn { flex: none; }
  /* telefonda plitka -> qator */
  .tiles { grid-template-columns: 1fr; gap: 6px; padding-bottom: 90px; }
  .tile { min-height: 0; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; }
  .tile .gbox { width: 48px; height: 48px; }
  .tile .t-top { position: static; margin: 0; order: 3; }
  .tile .t-mid { flex: 1; min-width: 0; display: grid; gap: 2px; order: 2; }
  .tile .t-f { justify-content: flex-start; margin: 0; }
  .tile .t-f .q::before { content: '· '; }
  .tile .t-top .pill { display: none; }
  .tile .t-top .cnt { min-width: 44px; height: 40px; line-height: 40px; border-radius: 12px; }
  .tile:not(.in) .t-top::after { content: '+'; width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; color: var(--text2); background: var(--panel); box-shadow: var(--sh1); }
  .tile .t-top .gbox { display: none; }
  .mcart { bottom: calc(84px + env(safe-area-inset-bottom)); }
  html[data-theme^="tun"] .mcart { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mcart .grow { cursor: pointer; }
  .mcart .mc-l { font-size: 12.5px; font-weight: 600; opacity: .75; }
  .mcart .mc-v { font: 500 21px/1.2 var(--font-d); letter-spacing: -.03em; }
  .mcart .btn { min-height: 48px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
  html[data-theme="tun-oq"] .mnav { border-top: 1px solid var(--line); }
  .cart { top: 40px; }
  .cust { margin: 0 16px 10px; width: calc(100% - 32px); }
  .ci { padding: 12px 16px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento > .card { grid-column: 1 / -1; padding: 16px; }
  .bento > .b-mix, .bento > .b-chk { grid-column: span 1; }
  .b-mix .ring { width: 120px; height: 120px; } .b-mix .legend { display: none; }
  .big-v { font-size: 38px; } .mid-v { font-size: 30px; }
  .hello h2 { font-size: 26px; }
  .lchart { height: 140px; }
  .hbars { height: 130px; gap: 3px; }
  .auth { padding: 16px; }
  .auth .card { padding: 22px; border-radius: 24px; }
  .auth-top .row { width: 100%; }
  .auth-foot .right { margin-left: 0; }
  .themes { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .modal-box .pay { min-height: 0; }
  .due b { font-size: 32px; }
  .numpad button { min-height: 50px; }
  .pay-f { position: sticky; bottom: -22px; background: var(--panel); padding-bottom: 10px; }
  .pop { left: 12px !important; right: 12px; width: auto; top: 64px !important; }
}
@media print { html, body { background: #fff !important; color: #000 !important; } }

/* B oq: yorug' tuzatishlar oxirida turadi — html[data-theme^="tun"] qoidalaridan keyin (bir xil aniqlik, tartib hal qiladi). */
html[data-theme="tun-oq"], html[data-theme="tun-oq"] body { background: var(--bg); }
html[data-theme="tun-oq"] .side { background: #FFFFFF; }
html[data-theme="tun-oq"] .side a.nav:hover, html[data-theme="tun-oq"] .side a.nav.on { color: var(--text); }
html[data-theme="tun-oq"] .brand { color: var(--text); }
html[data-theme="tun-oq"] .card, html[data-theme="tun-oq"] .kpi, html[data-theme="tun-oq"] .tbl-wrap, html[data-theme="tun-oq"] .tile { box-shadow: var(--shadow); }
html[data-theme="tun-oq"] .kpi.hero { background: radial-gradient(600px 260px at 80% 0%, rgba(200,245,74,.18), transparent 70%), var(--panel); }
html[data-theme="tun-oq"] .tile.in { background: linear-gradient(180deg, #F6FCE6, #FFFFFF 65%); }
html[data-theme="tun-oq"] .bars .b.today i { box-shadow: inset 0 0 0 1.5px var(--accent-t); } /* limon ustun oq fonda ko'rinsin (3:1) */
html[data-theme="tun-oq"] .modal-bg { background: rgba(14,16,18,.30); }
html[data-theme="tun-oq"] #toast { background: var(--text); color: #fff; border: 0; }
html[data-theme="tun-oq"] .auth { background: radial-gradient(700px 420px at 50% 38%, rgba(200,245,74,.22), transparent 70%),
  linear-gradient(#E6E8E3 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, #E6E8E3 1px, transparent 1px) 0 0/48px 48px, var(--bg); }
html[data-theme="tun-oq"] .net.on::before { background: #7DB800; }
@media (max-width: 860px) {
  html[data-theme="tun-oq"] .mnav { background: rgba(255,255,255,.94); }
  html[data-theme="tun-oq"] .mnav a.on { color: var(--accent-t); }
  html[data-theme="tun-oq"] .mcart .btn { background: var(--text); color: var(--accent); }
}
html[data-theme="tun"] { --faint: #8B9199; } /* WCAG AA: #5C626A panelda 2.9:1 edi */
.pcats-l { grid-template-columns: minmax(0, 1fr); }
.prow input::-webkit-inner-spin-button, .prow input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.prow input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.kpi .v { font-size: clamp(22px, 2.1vw, 32px); overflow-wrap: anywhere; }
@media (max-width: 860px) { .kpi .v { font-size: 22px; } .b-mix .ring .rc b { font-size: 22px; } }

/* ===== 2026-11-17 (2): PIN kirish, bildirishnoma, tovar paneli, sozlamalar, telefon to'lov ===== */
.pinbox { max-width: 470px !important; text-align: center; }
.staff { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.staff button { border: 0; background: none; display: grid; justify-items: center; gap: 8px; padding: 6px; border-radius: 16px; color: var(--muted); font-weight: 600; font-size: 13.5px; min-width: 76px; }
.staff .ava { width: 56px; height: 56px; font-size: 16px; }
.staff button.on { color: var(--text); }
.staff button.on .ava { border: 2.5px solid var(--accent-t); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 35%, transparent); background: var(--panel); }
.dots { display: flex; justify-content: center; gap: 14px; margin: 4px 0 18px; min-height: 18px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-input); }
.dots i.on { background: var(--accent); border-color: var(--accent-t); }
.pinpad { gap: 10px; } .pinpad button { min-height: 62px; font-size: 24px; }
.pinpad .ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.pinpad .ok[disabled] { background: var(--panel2); border-color: var(--line); color: var(--faint); }
.pinpad .ok svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; padding: 0; box-shadow: var(--sh1); flex: none; }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bdot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--font); box-shadow: 0 0 0 2px var(--panel), inset 0 0 0 1px var(--accent-t); }
.pop a b { margin-left: auto; }
.tabs .chip .tn { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.ppanel { position: sticky; top: 0; padding: 20px; display: grid; gap: 12px; }
.pp-h { display: flex; gap: 14px; align-items: center; }
.pp-h h2 { font-size: 21px; margin: 0; letter-spacing: -.035em; line-height: 1.15; }
.pp-h .gbox { width: 56px; height: 56px; border-radius: 16px; } .pp-h .btn { margin-left: auto; align-self: flex-start; }
.pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-stats > div { background: var(--panel2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.pp-stats span { font-size: 12.5px; color: var(--muted); }
.pp-stats b { font: 500 21px/1.15 var(--font-d); letter-spacing: -.035em; overflow-wrap: anywhere; }
.pp-stats b.warn { color: var(--sun-ink); } .pp-stats b.bad { color: var(--danger); }
.ppanel h3 { margin: 6px 0 0; }
.pp-st { display: grid; gap: 10px; }
.pp-st > div { display: grid; grid-template-columns: minmax(0, 1fr) 1.4fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.pp-st .meter { width: 100%; }
.lchart.sm { height: 110px; }
tr.sel-row td { background: var(--panel2); } tr.sel-row td:first-child { box-shadow: inset 3px 0 0 var(--accent-t); }
.sgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.sgrid.has-side { grid-template-columns: 300px minmax(0, 1fr) 340px; }
.snav { padding: 10px; display: grid; gap: 2px; position: sticky; top: 0; }
.snav a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--text); }
.snav a:hover { background: var(--panel2); }
.snav a.on { background: var(--panel2); box-shadow: inset 3px 0 0 var(--accent-t); }
.snav a b { display: block; font-size: 14px; font-weight: 600; } .snav a span span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav a > span:last-child { min-width: 0; }
.srow { padding: 10px 0; border-bottom: 1px solid var(--line); } .srow:last-of-type { border-bottom: 0; }
.lcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lcard { border: 1px solid var(--line2); border-radius: 18px; background: var(--panel2); padding: 4px 4px 12px; display: grid; gap: 8px; }
.lcard .row { padding: 0 14px; }
.lcard.on { border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); background: var(--panel); }
.lpick { border: 0; background: none; text-align: left; padding: 12px 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; color: var(--text); }
.lpick .lc { font: 600 26px/1 var(--font-d); letter-spacing: -.03em; } .lcard.on .lc { color: var(--accent-t); }
.lpick b, .lpick .muted { grid-column: 1 / -1; } .lpick b { font-size: 15px; }
.fontcheck { display: grid; gap: 8px; }
.fc1 { font-size: 30px; line-height: 1.12; } .fc2 { font-size: 16px; color: var(--text2); letter-spacing: .04em; } .fc3 { font-size: 34px; color: var(--accent-t); }
@media (max-width: 1280px) { .sgrid.has-side { grid-template-columns: 260px minmax(0, 1fr); } .sgrid.has-side > :last-child { grid-column: 2; } .pgrid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sgrid, .sgrid.has-side { grid-template-columns: 1fr; } .sgrid.has-side > :last-child { grid-column: auto; }
  .snav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 4px; }
  .snav a { flex: none; padding: 8px 12px 8px 8px; } .snav a span span { display: none; } .snav a.on { box-shadow: inset 0 -3px 0 var(--accent-t); }
  .lcards { grid-template-columns: 1fr; }
  .bell { width: 36px; height: 36px; }
  .staff .ava { width: 48px; height: 48px; } .pinpad button { min-height: 56px; }
  /* to'lov paneli: qaytim raqamli klaviaturadan oldin, aylantirmasdan ko'rinsin */
  .pay { gap: 10px; } .pay-h h2 { font-size: 22px; } .due { padding: 10px 14px; text-align: center; } .due b { font-size: 30px; }
  .ptypes button { min-height: 52px; font-size: 12.5px; } .prow { min-height: 50px; } .prow input { min-height: 44px; font-size: 18px; }
  .pay > form .quick { display: none; }
  .pay > form .chg { order: 1; padding: 10px 14px; } .pay > form #payerr { order: 1; min-height: 0 !important; }
  .pay > form .numpad { order: 2; gap: 6px; } .pay > form .numpad button { min-height: 46px; font-size: 20px; }
  .pay > form .pay-f { order: 3; position: static; padding: 0; }
  .pay.mix > form .numpad { display: none; }
  .chg b { font-size: 26px; }
}
.kkf { font-family: "Montserrat", "Onest", sans-serif; font-weight: 700; letter-spacing: -.03em; }

/* ===== Dashbord (Shuxrat namunasi, 2026-11-17): 3 qavat — KPI, trend, batafsil ===== */
.dhead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dper { min-width: 280px; } .dper button { min-height: 38px; font-size: 13px; }
.dsec { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.dsec h2 { font: 500 18px var(--font-d); letter-spacing: -.03em; margin: 0; white-space: nowrap; }
.dsec span { white-space: nowrap; } .dsec i { flex: 1; height: 1px; background: var(--line); }
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kc { padding: 18px 18px 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.kc-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kc-v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kc-v b { font: 500 30px/1.15 var(--font-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spark { width: calc(100% + 36px); margin: 8px -18px 0; height: 56px; display: block; color: var(--accent-t); }
html[data-theme="tun"] .spark { color: var(--accent); }
.spark.bad { color: var(--danger); }
.spark .sl { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .sd { fill: var(--panel); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.kc:not(:has(.spark)) { padding-bottom: 18px; }
.tgrid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
.tgrid > .card, .dgrid > .card { min-width: 0; }
.lchart.tr2 { height: 220px; margin-top: 10px; }
.lchart .ln2 { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.lchart .pt.sm { stroke-width: 2; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: 12px; }
.lg i { width: 18px; height: 3px; border-radius: 2px; background: var(--accent-t); } .lg i.l2 { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
html[data-theme="tun"] .lg i.l1 { background: var(--accent); }
.gv { font: 500 46px/1.05 var(--font-d); letter-spacing: -.05em; color: var(--accent-t); margin: 6px 0 2px; } .gv.down { color: var(--danger); }
.gbars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 16px; }
.gbars i { flex: 1; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--text) 12%, transparent); min-height: 4px; }
.gbars i.on { background: var(--accent); } html[data-theme="tun-oq"] .gbars i.on { box-shadow: inset 0 0 0 1.5px var(--accent-t); }
.donut { position: relative; width: 150px; height: 150px; margin: 4px auto 10px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); } .donut circle { fill: none; stroke-width: 20; }
.donut .bg { stroke: color-mix(in srgb, var(--text) 7%, transparent); }
.donut .rc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut .rc b { font: 500 26px/1 var(--font-d); }
.m1 { stroke: var(--accent); background: var(--accent); } .m2 { stroke: var(--text); background: var(--text); } .m3 { stroke: var(--sun); background: var(--sun); }
.m4 { stroke: var(--blue); background: var(--blue); } .m5 { stroke: var(--danger); background: var(--danger); } .m6 { stroke: var(--muted); background: var(--muted); }
html[data-theme="tun-oq"] .m1 { stroke: #A9DB2A; background: #A9DB2A; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }

.sbars { display: flex; align-items: flex-end; gap: 10px; height: 190px; margin-top: 8px; }
.sbars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.sbars .b i { width: 100%; max-width: 56px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.sbars .b.on i { background: var(--accent); } html[data-theme="tun-oq"] .sbars .b.on i { box-shadow: inset 0 0 0 1.5px var(--accent-t); }
.sbars .bv { font-size: 11px; color: var(--text2); font-variant-numeric: tabular-nums; } .sbars .bn { font-size: 11.5px; color: var(--muted); max-width: 100%; }
.meter.big { width: 100%; height: 10px; } .meter.big i { background: var(--accent); } html[data-theme="tun-oq"] .meter.big i { box-shadow: inset 0 0 0 1px var(--accent-t); }
.gp { font: 500 26px var(--font-d); color: var(--accent-t); }
.topl .ava { width: 38px; height: 38px; font-size: 12px; }
.prow2 { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.prow2 .meter { width: 100%; display: block; margin-top: 6px; }
@media (max-width: 1280px) { .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tgrid { grid-template-columns: 1fr 1fr; } .tgrid > :first-child { grid-column: 1 / -1; }
  .dgrid { grid-template-columns: 1fr 1fr; } .d-prod { grid-column: 1 / -1; } }
@media (max-width: 860px) { .kgrid, .tgrid, .dgrid { grid-template-columns: 1fr; gap: 10px; } .tgrid > :first-child, .d-prod { grid-column: auto; }
  .kc-v b { font-size: 26px; } .dper { min-width: 0; width: 100%; } .dsec span { display: none; } .lchart.tr2 { height: 170px; } .gv { font-size: 38px; } }

/* ===== AI agentlar (2026-11-17): yuqori panel tugmasi, o'ngdan chat paneli, AI jamoangiz, sozlamalar ===== */
.ai-ava { position: relative; flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--ink); color: var(--accent); }
html[data-theme="tun"] .ai-ava { background: var(--frame2); }
.ai-ava svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-ava.big { width: 44px; height: 44px; border-radius: 14px; } .ai-ava.big svg { width: 22px; height: 22px; }
.ai-ava i { position: absolute; right: -5px; bottom: -4px; font: 700 9px/1 var(--font); font-style: normal; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 4px; box-shadow: 0 0 0 2px var(--panel); }
.ai-top { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); color: var(--text); text-align: left; box-shadow: var(--sh1); }
.ai-top .ai-ava { width: 32px; height: 32px; border-radius: 9px; }
.ai-top-t { display: grid; line-height: 1.15; } .ai-top-t b { font-size: 13px; white-space: nowrap; } .ai-top-t span { font-size: 11px; color: var(--muted); }
.ai-top:hover { border-color: var(--accent-t); }
.ai-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14,16,18,.22); }
html[data-theme="tun"] .ai-scrim { background: rgba(5,6,7,.55); }
.ai-drawer { position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(480px, calc(100vw - 20px)); background: var(--panel); border: 1px solid var(--line2); border-radius: 24px; box-shadow: var(--sh3); display: flex; flex-direction: column; overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.ai-title { font: 500 18px var(--font-d); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ai-fact { background: var(--panel2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.ai-fact span { font-size: 12px; color: var(--muted); } .ai-fact b { font: 500 17px var(--font-d); letter-spacing: -.03em; overflow-wrap: anywhere; }
.ai-fact.ok b { color: var(--accent-t); } .ai-fact.danger b { color: var(--danger); } .ai-fact.sun b { color: var(--sun-ink); }
.ai-warn, .ai-disc, .ai-team-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sun-bg); color: var(--sun-ink); font-size: 13px; margin: 0; }
.ai-disc { background: var(--blue-bg); color: var(--blue); }
.ai-warn svg, .ai-disc svg, .ai-team-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-warn a { color: inherit; font-weight: 700; }
.ai-sub { margin-bottom: 6px; }
.ai-prop { border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; background: var(--panel); margin-bottom: 8px; }
.ai-prop.kutilmoqda { border-color: var(--accent-t); box-shadow: inset 3px 0 0 var(--accent-t); }
.ai-pp { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 12.5px; }
.ai-msgs { display: flex; flex-direction: column; gap: 10px; }
.ai-msg { position: relative; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-msg.me { align-self: flex-end; background: var(--ink); color: var(--ink-text); border-bottom-right-radius: 6px; }
.ai-msg.bot { align-self: flex-start; background: var(--panel2); border-bottom-left-radius: 6px; padding-right: 34px; }
.ai-msg .ai-p { display: block; } .ai-msg .ai-gap { display: block; height: 6px; }
.ai-msg .ai-li { display: block; padding-left: 14px; position: relative; } .ai-msg .ai-li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-t); }
.ai-copy { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 8px; }
.ai-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-msg.typing { display: flex; gap: 4px; padding: 14px; } .ai-msg.typing > span:not(.sr) { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite; }
.ai-msg.typing > span:nth-child(2) { animation-delay: .15s; } .ai-msg.typing > span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ai-hello { background: var(--accent-soft); border-radius: 16px; padding: 14px; font-size: 14px; }
.ai-foot { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 10px; background: var(--panel); }
.ai-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .ai-quick .chip { flex: none; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea { min-height: 46px; max-height: 140px; resize: none; border-radius: 14px; padding: 12px 14px; }
.ai-form .paybtn { min-height: 46px; width: 50px; padding: 0; justify-content: center; border-radius: 14px; flex: none; }
.ai-form .paybtn svg { width: 20px; height: 20px; }
.ai-usage { text-align: right; }
.ai-team { margin-top: 4px; } .ai-team:empty { display: none; }
.ai-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ai-agent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.ai-agent b { display: block; font-size: 14px; } .ai-agent .small { display: block; }
.ai-agent > svg { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-agent:hover { border-color: var(--accent-t); } .ai-agent.off { opacity: .6; }
.ai-team-note { margin-bottom: 10px; }
.ai-team-props { margin-top: 10px; padding: 6px 14px; }
.sigl-b { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--text); }
.sigl-b:last-child { border-bottom: 0; }
.ai-ulim { display: inline-flex; align-items: center; gap: 6px; } .ai-ulim input { width: 110px; min-height: 34px; padding: 4px 8px; }
@media (max-width: 860px) {
  .ai-top { padding: 0 4px; } .ai-top-t { display: none; }
  .ai-drawer { inset: 0; width: auto; border-radius: 0; border: 0; }
  .ai-pp { grid-template-columns: 1fr; gap: 2px; }
}
/* yuqori panel bir qatorda: tugmalar ko'p bo'lsa gorizontal aylanadi, qidiruv qisqaradi */
@media (min-width: 861px) {
  .top { flex-wrap: nowrap; }
  .top-t { flex-shrink: 0; }
  .top-acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex-shrink: 1; }
  .top-acts > * { flex: none; }
  .cmdk { flex-shrink: 1; min-width: 44px; }
  .ai-top, .net, .bell { flex: none; }
}
@media (min-width: 861px) and (max-width: 1500px) { .cmdk span, .cmdk kbd { display: none; } .cmdk { width: 44px; padding: 0; justify-content: center; } .ai-top-t span { display: none; } }
.ai-hello .muted { color: var(--text2); }
.ptgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 10px; }
.tsship { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; } .tsship:first-of-type { border-top: 0; }
.tsdocs { display: grid; gap: 4px; padding-left: 50px; } .tsdocs .cb { font-size: 13.5px; }
@media (max-width: 860px) { .tsdocs { padding-left: 0; } .ptgrid { grid-template-columns: 1fr; } }
