/* ==========================================================================
   FastFood CRM — dizayn tizimi (yorug' va qorong'i mavzu)
   ========================================================================== */
:root {
  --bg: #f4f3f1;
  --bg-2: #ebe9e5;
  --panel: #ffffff;
  --panel-2: #faf9f7;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e7e5e1;
  --line-2: #d6d3cd;
  --accent: #ea580c;
  --accent-2: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e7;
  --ok: #16a34a;  --ok-soft: #e8f7ee;
  --warn: #d97706; --warn-soft: #fef5e4;
  --bad: #dc2626; --bad-soft: #fdecec;
  --info: #2563eb; --info-soft: #eaf1fe;
  --violet: #7c3aed; --violet-soft: #f2ecfe;
  --side: #17171a;
  --side-2: #232327;
  --side-ink: #a1a1aa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .05);
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 6px 24px rgba(16, 16, 20, .05);
  --shadow-lg: 0 24px 64px rgba(16, 16, 20, .22);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --c1: #ea580c; --c2: #2563eb; --c3: #16a34a; --c4: #9333ea; --c5: #0891b2; --c6: #db2777; --c7: #ca8a04; --c8: #475569;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0f12; --bg-2: #18181c; --panel: #17171b; --panel-2: #1d1d22; --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #9b9ba4;
  --line: #2a2a31; --line-2: #3a3a42; --accent: #f97316; --accent-2: #fb923c; --accent-soft: #3a1f0f;
  --ok-soft: #10301d; --warn-soft: #36270b; --bad-soft: #3b1414; --info-soft: #132545; --violet-soft: #2a1a47;
  --side: #0b0b0d; --side-2: #1a1a1f; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 650; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }
.ico.xl { width: 40px; height: 40px; stroke-width: 1.6; }

/* ---------- Shell ---------- */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 14px 10px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #fb923c, #ea580c); display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px rgba(234,88,12,.35); }
.brand .logo svg { width: 20px; height: 20px; stroke: #fff; }
.brand small { display: block; font-weight: 500; color: var(--side-ink); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5d5d66; padding: 12px 10px 4px; font-weight: 600; }
.nav a { color: var(--side-ink); padding: 8px 10px; border-radius: 9px; display: flex; gap: 11px; align-items: center; font-weight: 500; position: relative; }
@media (hover: hover) { .nav a:hover { background: var(--side-2); color: #e4e4e7; } }
.nav a.active { background: var(--side-2); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav a .cnt { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-user { border-top: 1px solid #26262b; padding: 12px 6px 2px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--c8); flex: none; }
.side-user .who { flex: 1; min-width: 0; color: #e4e4e7; font-weight: 600; font-size: 13px; }
.side-user .who small { display: block; color: var(--side-ink); font-weight: 500; font-size: 11.5px; }
.side-user button { background: none; border: 0; color: var(--side-ink); padding: 6px; border-radius: 8px; cursor: pointer; display: grid; }
@media (hover: hover) { .side-user button:hover { background: var(--side-2); color: #fff; } }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 650; font-size: 15px; margin-right: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .title .back { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 4px 11px 4px 9px; font-size: 12.5px; font-weight: 550; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
@media (hover: hover) { .chip:hover { border-color: var(--line-2); } }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.chip.bad .dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.chip.warn .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
@media (hover: hover) { .icon-btn:hover { border-color: var(--line-2); color: var(--ink); } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button { border: 0; background: var(--panel); padding: 0 10px; height: 34px; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--muted); }
.lang button.on { background: var(--ink); color: var(--panel); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live-dot.off { background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.page { padding: 22px 24px 40px; flex: 1; }
.page.full { padding: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bottom-nav { display: none; }

/* ---------- Kartalar, grid ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }

.kpi { padding: 16px 18px; }
.kpi .k { color: var(--muted); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.kpi .k .ico { width: 15px; height: 15px; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { font-weight: 650; font-size: 12px; padding: 1px 7px; border-radius: 99px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: var(--bg-2); }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 0 14px; height: 38px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
@media (hover: hover) { .btn:hover { border-color: var(--line-2); background: var(--panel-2); } }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); } }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
@media (hover: hover) { .btn.ghost:hover { background: var(--bg-2); } }
.btn.sm { height: 31px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .badge-n { background: rgba(255,255,255,.25); border-radius: 99px; padding: 0 7px; font-size: 12px; line-height: 19px; }

.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; display: inline-flex; background: var(--bg-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 13px; height: 32px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.block { display: flex; width: 100%; }
.seg.block button { flex: 1; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }

/* ---------- Formalar ---------- */
input, select, textarea { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 0 12px; height: 40px; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { padding: 9px 12px; height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); padding: 0; }
label.lbl, .lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 550; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 9px; align-items: center; cursor: pointer; font-weight: 500; }
.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 36px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .5; cursor: default; }

/* ---------- Jadval ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2); }
.tbl th:first-child { border-top-left-radius: 10px; } .tbl th:last-child { border-top-right-radius: 10px; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .right { text-align: right; }
.tbl tbody tr.click { cursor: pointer; }
@media (hover: hover) { .tbl tbody tr.click:hover td { background: var(--panel-2); } }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
.tbl.compact td { padding: 7px 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); line-height: 20px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.dark { background: var(--ink); color: var(--panel); }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty .ico { width: 38px; height: 38px; stroke-width: 1.5; margin-bottom: 8px; opacity: .6; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert .grow { flex: 1; }
.alert > .ico { color: var(--warn); }
.alert.bad > .ico { color: var(--bad); }
.alert.info > .ico { color: var(--info); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(120% 90% at 10% 10%, #fb923c 0%, #ea580c 45%, #9a3412 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.03em; max-width: 420px; }
.login-art p { opacity: .85; max-width: 380px; font-size: 15px; }
.login-art .feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.login-art .feat div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.login-art .blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); right: -200px; bottom: -220px; }
.login-form { display: grid; place-items: center; padding: 32px; background: var(--panel); }
.login-form form { width: 100%; max-width: 360px; }
.login-form h2 { font-size: 24px; margin-bottom: 4px; letter-spacing: -.02em; }
/* PIN bilan kirish: xodimlar ro'yxati va raqamli klaviatura */
.pin-box { width: 100%; max-width: 440px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; max-height: calc(100vh - 300px); overflow-y: auto; padding: 2px; margin-top: 6px; }
.staff-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 14px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 18px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, transform .12s, box-shadow .15s; }
@media (hover: hover) { .staff-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); } }
.staff-tile:active { transform: scale(.97); }
.staff-tile .avatar { margin-bottom: 4px; box-shadow: 0 0 0 4px var(--panel); }
.staff-tile b { font-size: 14px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.staff-tile > span:last-child { font-size: 12px; color: var(--muted); }
.pin-view { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 340px; margin: 0 auto; }
.pin-who { display: flex; flex-direction: column; align-items: center; }
.pin-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: 600 14px var(--font); cursor: pointer; padding: 6px 2px; margin-bottom: 4px; }
@media (hover: hover) { .pin-back:hover { color: var(--ink); } }
.pin-who h2 { margin: 12px 0 2px; }
.pin-dots { display: flex; gap: 20px; margin: 26px 0 6px; }
.pin-dots i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ink-2); transition: background .12s, transform .12s; }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.08); }
.pin-box.ok .pin-dots i { background: var(--ok); border-color: var(--ok); }
.pin-dots.shake { animation: pin-shake .42s cubic-bezier(.36, .07, .19, .97); }
.pin-dots.shake i { border-color: var(--bad); }
@keyframes pin-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }
.pin-msg { min-height: 20px; color: var(--bad); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 24px; justify-content: center; user-select: none; -webkit-user-select: none; }
.keypad button { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink); font: 400 32px/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: background .12s, transform .08s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: hover) { .keypad button:hover { background: var(--line-2); } }
.keypad button:active { transform: scale(.92); background: var(--line-2); }
.keypad .kp-del { background: transparent; }
:root[data-theme="dark"] .keypad button:not(.kp-del) { background: var(--line); }
:root[data-theme="dark"] .keypad button:not(.kp-del):hover, :root[data-theme="dark"] .keypad button:not(.kp-del):active { background: var(--line-2); }
.keypad .kp-del .ico { width: 26px; height: 26px; }
.keypad.locked { opacity: .35; pointer-events: none; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: grid; }

/* ---------- Modal / sheet / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 12, 16, .5); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .12s ease-out; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal { background: var(--panel); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; border: 1px solid var(--line); }
.modal.wide { max-width: 780px; } .modal.xl { max-width: 1040px; } .modal.sm { max-width: 400px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; gap: 12px; }
.modal-h h2 { margin: 0; font-size: 17px; }
.modal-b { padding: 16px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-f .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.x { border: 0; background: var(--bg-2); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex: none; }
@media (hover: hover) { .x:hover { color: var(--ink); } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: calc(100vw - 36px); }
.toast { background: var(--ink); color: var(--panel); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 550; animation: pop .16s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok .ico { color: #4ade80; }
.toast.big { font-size: 16px; padding: 14px 18px; background: var(--ok); color: #fff; }

/* ---------- Zal xaritasi (stollar) ---------- */
.floor-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tbl-card { position: relative; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; min-height: 124px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .08s, box-shadow .12s, border-color .12s; text-align: left; }
@media (hover: hover) { .tbl-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); } }
.tbl-card:active { transform: scale(.985); }
.tbl-card .tn { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.tbl-card .seats { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tbl-card.free .tn { color: var(--ink-2); }
.tbl-card.free { border-style: dashed; background: var(--panel-2); }
.tbl-card.busy { border-color: var(--wc, var(--accent)); box-shadow: inset 4px 0 0 var(--wc, var(--accent)); }
.tbl-card.mine { background: color-mix(in srgb, var(--wc, var(--accent)) 6%, var(--panel)); }
.tbl-card .tt { margin-top: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl-card .tw { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-card .flags { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; flex-direction: column; align-items: flex-end; }
.tbl-card .flags .badge { font-size: 11px; padding: 0 7px; line-height: 18px; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Buyurtma muharriri ---------- */
.order-ed { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 58px); height: calc(100dvh - 58px); overflow: hidden; }
.menu-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.menu-top { padding: 14px 18px 10px; display: flex; flex-direction: column; gap: 10px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { border: 1px solid var(--line); background: var(--panel); padding: 0 14px; height: 36px; border-radius: 99px; cursor: pointer; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.cats button.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.prods { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 18px; display: grid; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.prod { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 104px; transition: border-color .1s, transform .06s, box-shadow .1s; overflow: hidden; }
.prod::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pc, var(--accent)); opacity: .85; }
@media (hover: hover) { .prod:hover { border-color: var(--line-2); box-shadow: var(--shadow); } }
.prod:active { transform: scale(.97); }
.prod .pn { font-weight: 650; line-height: 1.25; }
.prod .pp { margin-top: auto; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.prod .q { position: absolute; top: 9px; right: 9px; background: var(--accent); color: #fff; border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-weight: 750; font-size: 12.5px; padding: 0 6px; box-shadow: 0 2px 8px rgba(234,88,12,.35); }
.ticket-pane { display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.tp-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.tp-head .big { font-size: 20px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.tp-body { flex: 1; overflow-y: auto; padding: 6px 0; }
.tp-sec { padding: 10px 16px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; }
.line.unsent { background: var(--accent-soft); border-left: 3px solid var(--accent); padding-left: 13px; }
.line .ln { font-weight: 600; line-height: 1.25; }
.line .lp { font-size: 12px; color: var(--muted); }
.line .lnote { font-size: 12px; color: var(--warn); font-weight: 600; }
.line.cancelled .ln, .line.cancelled .ls { text-decoration: line-through; color: var(--muted); }
.line .ls { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.qty button { border: 0; background: var(--bg-2); width: 30px; height: 30px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
@media (hover: hover) { .qty button:hover { background: var(--line); } }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-foot { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); }
.sumrow { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sumrow.total { font-size: 20px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.sumrow.due { color: var(--accent); font-weight: 700; }
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.act-grid .btn { height: 44px; flex-direction: column; gap: 2px; font-size: 12px; padding: 0 6px; }
.act-grid .btn .ico { width: 17px; height: 17px; }
.mob-bar { display: none; }

/* ---------- To'lov ---------- */
.pay-due { text-align: center; padding: 6px 0 14px; }
.pay-due .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.methods button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; height: 54px; cursor: pointer; font-weight: 650; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.methods button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.methods button:disabled { opacity: .4; cursor: not-allowed; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 9px; height: 34px; padding: 0 12px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-lines { display: flex; flex-direction: column; gap: 6px; }
.pay-line { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.change { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; }

/* ---------- Oshxona ---------- */
.kboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.kcol { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.kticket { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.kticket .kt-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; background: var(--panel-2); border-bottom: 1px solid var(--line); gap: 8px; }
.kticket .kt-h b { font-size: 17px; }
.kticket .kt-b { padding: 8px 13px; }
.kticket .kt-i { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 600; }
.kticket .kt-i:last-child { border-bottom: 0; }
.kticket .kt-i .q { min-width: 30px; font-weight: 800; color: var(--accent); }
.kticket .kt-i .n { font-size: 12.5px; color: var(--warn); font-weight: 600; }
.kticket .kt-i.cx { text-decoration: line-through; color: var(--muted); }
.kticket .kt-f { padding: 0 13px 12px; }
.timer { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.timer.mid { background: var(--warn-soft); color: var(--warn); }
.timer.late { background: var(--bad-soft); color: var(--bad); }

/* ---------- Grafiklar ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--accent); }
@media (hover: hover) { .chart .bar:hover { opacity: .8; } }
.chart .line-a { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.chart .line-b { fill: none; stroke: var(--info); stroke-width: 2; stroke-dasharray: 4 4; }
.chart .area { fill: url(#gArea); }
.chart .pt { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.chart-tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--panel); padding: 7px 10px; border-radius: 9px; font-size: 12px; z-index: 90; box-shadow: var(--shadow-lg); white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-wrap svg { width: 132px; height: 132px; flex: none; }
.lg-list { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.lg-list div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lg-list i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lg-list span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.hbar .track { background: var(--bg-2); border-radius: 6px; height: 9px; overflow: hidden; }
.hbar .fill { background: var(--accent); height: 100%; border-radius: 6px; }
.hbar .lbl2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--muted); }
.heat div { aspect-ratio: 1.5; border-radius: 3px; }
.heat .hl { aspect-ratio: auto; display: flex; align-items: center; }
.heat .hh { aspect-ratio: auto; text-align: center; }
.abc { font-weight: 800; width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11.5px; }
.abc.A { background: var(--ok-soft); color: var(--ok); } .abc.B { background: var(--warn-soft); color: var(--warn); } .abc.C { background: var(--bad-soft); color: var(--bad); }

/* ---------- Smena ---------- */
.shift-hero { display: flex; align-items: center; gap: 18px; padding: 22px; }
.shift-hero .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.shift-hero .ic.ok { background: var(--ok-soft); color: var(--ok); }
.shift-hero .ic .ico { width: 28px; height: 28px; }
.shift-hero .t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.stat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-list > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.stat-list .k { font-size: 12px; color: var(--muted); font-weight: 550; }
.stat-list .v { font-size: 17px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.gate { max-width: 520px; margin: 40px auto; text-align: center; }
.gate .ic { width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.gate .ic .ico { width: 34px; height: 34px; }
.gate h1 { margin-bottom: 8px; }

/* ---------- Ruxsatlar ---------- */
.perm-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.perm-group h3 { margin: 0; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: 0; }
.color-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.color-pick button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-pick button.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--panel); }

/* ---------- Chek dizayneri ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.paper { background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 6px, var(--bg) 6px, var(--bg) 12px); border-radius: 12px; padding: 18px 0; display: flex; justify-content: center; align-items: flex-start; max-height: 74vh; overflow: auto; }
.receipt-preview { border: 0; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.14); width: 80mm; min-height: 120px; flex: none; display: block; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.logo-box { width: 160px; height: 72px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; font-size: 12px; color: #888; }
.logo-box img { max-width: 100%; max-height: 100%; }
.dim { opacity: .45; pointer-events: none; }
.lan-item { display: flex; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.lan-item img { width: 96px; height: 96px; border-radius: 6px; background: #fff; }

/* ---------- Moslashuv ---------- */
@media (max-width: 1280px) {
  .order-ed { grid-template-columns: minmax(0, 1fr) 360px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 14px 8px; }
  .brand > div:last-child, .nav a span.t, .nav .sec, .side-user .who, .side-user button.hide-c { display: none; }
  .brand { justify-content: center; padding: 4px 0 14px; }
  .nav a { justify-content: center; padding: 10px; }
  .nav a .cnt { position: absolute; top: 2px; right: 2px; padding: 0 5px; font-size: 10px; line-height: 15px; }
  .side-user { flex-direction: column; padding: 10px 0 0; }
  .designer, .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .kboard { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 12px; height: 54px; gap: 8px; }
  .topbar .title .back { display: grid; }
  .topbar .hide-m { display: none; }
  .page { padding: 14px 12px 96px; }
  .page.full { padding-bottom: 0; }
  .g2, .g3, .g4, .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .grid.g4.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px; } .kpi .v { font-size: 19px; }
  .card { padding: 14px; border-radius: 14px; }
  h1 { font-size: 20px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-radius: 10px; min-width: 56px; position: relative; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav a .cnt { position: absolute; top: 0; right: 10px; background: var(--accent); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; line-height: 15px; }
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
  .tbl-card { min-height: 104px; padding: 11px; border-radius: 14px; }
  .tbl-card .tn { font-size: 19px; }
  .order-ed { grid-template-columns: 1fr; height: calc(100vh - 54px); height: calc(100dvh - 54px); }
  .menu-pane { border-right: 0; }
  .menu-top { padding: 10px 12px 8px; }
  .prods { padding: 2px 12px 90px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prod { min-height: 92px; padding: 11px; }
  .ticket-pane { position: fixed; inset: 54px 0 0 0; z-index: 30; transform: translateY(100%); transition: transform .22s ease; }
  .ticket-pane.open { transform: none; }
  .mob-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; background: var(--ink); color: var(--panel); border-radius: 16px; padding: 0 16px; height: 56px; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); cursor: pointer; font-weight: 650; }
  .mob-bar .n { background: var(--accent); color: #fff; border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; font-size: 13px; padding: 0 7px; }
  .mob-bar .s { margin-left: auto; font-variant-numeric: tabular-nums; }
  .kboard { grid-template-columns: 1fr; overflow: visible; }
  .modal-bg { padding: 0; align-items: end; }
  .modal { max-width: 100% !important; min-width: 0; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh; }
  .modal-b { min-width: 0; }
  .info3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .info3 .stat-list > div { padding: 8px 10px; }
  .info3 .v { font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-f .btn { flex: 1; }
  .modal-f .left { width: 100%; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; min-height: auto; }
  .login-art h1 { font-size: 28px; }
  .login-art .feat, .login-art p { display: none; }
  .login-form.pin-mode { padding: 20px 16px 32px; align-items: start; }
  .login:has(.pin-mode) .login-art { padding: 16px 20px; }
  .login:has(.pin-mode) .login-art > div:not(.brand), .login:has(.pin-mode) .login-art .blob { display: none; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .keypad { grid-template-columns: repeat(3, 74px); gap: 14px 22px; }
  .keypad button { width: 74px; height: 74px; }
  .toasts { left: 12px; right: 12px; bottom: 84px; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .hide-mobile { display: none !important; }
  .page-head .toolbar { width: 100%; }
  .page-head .toolbar > * { flex: 1 1 auto; }
  .heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 1px; font-size: 8.5px; }
  .donut-wrap { flex-direction: column; align-items: stretch; } .donut-wrap svg { margin: 0 auto; }
  .hbar { grid-template-columns: minmax(70px, 110px) 1fr auto; }
  .shift-hero { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .shift-hero .ic { width: 48px; height: 48px; }
  .shift-hero .toolbar { width: 100%; }
  .shift-hero .toolbar > .btn { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  body { --bnav: calc(64px + env(safe-area-inset-bottom)); }
  body.no-bnav { --bnav: 0px; }
  body.no-bnav .bottom-nav { display: none; }
  .order-ed { height: calc(100vh - 54px - var(--bnav)); height: calc(100dvh - 54px - var(--bnav)); }
  .mob-bar { bottom: calc(12px + var(--bnav)); }
  .ticket-pane { inset: 54px 0 var(--bnav) 0; }
  .page.full { overflow: hidden; }
}
@media (min-width: 761px) { .only-mobile { display: none !important; } }

/* Chop etish (brauzer) */
@media print { body > *:not(#print-frame) { display: none !important; } }
.lt { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Stol band vaqti (jonli) */
.lt.occ { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 12px; }
.lt.occ::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; animation: occ-blink 2s infinite; }
.lt.occ.mid { background: var(--warn-soft); color: var(--warn); } .lt.occ.mid::before { background: var(--warn); }
.lt.occ.late { background: var(--bad-soft); color: var(--bad); } .lt.occ.late::before { background: var(--bad); }
@keyframes occ-blink { 50% { opacity: .25; } }
.timer.big-timer { font-size: 14px; padding: 4px 10px; }
/* Hisobni bo'lish */
.sumrow.split { color: var(--accent); font-weight: 700; }
.split-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 2px; text-align: center; }
.split-step { display: flex; align-items: center; gap: 22px; }
.split-step .btn { width: 56px; height: 56px; border-radius: 50%; padding: 0; justify-content: center; }
.split-step .v { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.split-res { background: var(--accent-soft); border-radius: 16px; padding: 14px 26px; min-width: 220px; }
.split-res .v { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }

/* Atmen */
.cx-btn { color: var(--bad); }
.cx-row-cooked { color: var(--bad); }
.cx-kind { font-size: 11px; }
.cx-users { display: grid; gap: 8px; }
.cx-user { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cx-user:last-child { border-bottom: 0; }
.cx-user .grow { flex: 1; min-width: 0; }
.cx-user .grow b { display: block; font-size: 13.5px; }
.cx-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.cx-bar i { display: block; height: 100%; background: var(--bad); border-radius: 3px; }
tr.cx-new td { animation: cxflash 2.4s ease-out; }
@keyframes cxflash { from { background: color-mix(in srgb, var(--bad) 18%, transparent); } to { background: transparent; } }


/* ---------- Telefon: silliqlik va barqarorlik ---------- */
html, body { overscroll-behavior-y: none; overscroll-behavior-x: none; }   /* tasodifiy "tortib yangilash" va chetdan surib orqaga ketish yo'q */
a, button, .btn, .prod, .tbl-card, .staff-tile, [data-id], label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cats, .seg, .tbl-wrap, .kboard, .tabs, .quick { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.prods, .tp-body, .modal-b, .staff-grid { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Oyna ochiq: orqa sahifa surilmasin (overflow:hidden ishlatmaymiz — u sahifani tepaga sakratadi) */
.modal-bg { overflow-y: auto; overscroll-behavior: contain; }
.btn:active, .cats button:active, .seg button:active { transform: scale(.97); }
.prod:active, .tbl-card:active, .staff-tile:active { transform: scale(.975); }
.btn, .cats button, .seg button, .prod, .tbl-card, .staff-tile { transition: transform .08s ease, background .12s, border-color .12s, box-shadow .12s; }
@media (max-width: 760px) {
  /* iPhone: 16px dan kichik maydonga bosilganda ekran kattalashib qolib ketadi */
  input, select, textarea { font-size: 16px; }
  .modal-bg { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 12, 16, .55); }
  .modal { animation: sheet-up .2s cubic-bezier(.2, .8, .2, 1); }
  .modal-b { padding: 14px 16px; }
  .modal-f { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toasts { top: calc(60px + env(safe-area-inset-top)); bottom: auto; left: 12px; right: 12px; max-width: none; }
  .toast { animation: none; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
  .topbar { position: sticky; top: 0; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  .ticket-pane { will-change: transform; contain: layout paint; }
}
@media (max-width: 760px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head h2 { min-width: 0; }
  .stat-list .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Printer sozlamalari */
.pm-opts { display: grid; gap: 10px; }
.pm-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--panel); transition: border-color .12s, background .12s; }
.pm-opt input { display: none; }
.pm-opt .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.pm-opt .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-opt .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.pm-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.pm-opt.on .ic { background: var(--accent); color: #fff; }
.pm-opt.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- 2.8: menyu turlari, modifikatorlar, stop-list, printerlar ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; background: var(--bg-2); padding: 4px; border-radius: 13px; }
.types button { border: 0; background: transparent; height: 38px; border-radius: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.types button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.prod.stopped { opacity: .55; filter: grayscale(.8); cursor: not-allowed; }
.prod.stopped .pn { text-decoration: line-through; }
.prod .stop-tag { position: absolute; top: 9px; right: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; border-radius: 6px; padding: 2px 6px; }
.prod.stopped .q { display: none; }
.prod .pm { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; vertical-align: 1px; margin-left: 2px; }
.line .lmods, .kticket .kt-i .m { font-size: 12px; color: var(--accent); font-weight: 600; line-height: 1.3; margin-top: 1px; }
.kticket .kt-i .m { font-size: 13.5px; }
.mod-pick { display: flex; flex-direction: column; gap: 16px; }
.mod-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mod-opt { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; color: var(--ink); font-weight: 600; transition: border-color .1s, background .1s; }
.mod-opt .mk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.mod-opt .mk.r { border-radius: 50%; }
.mod-opt .mn { flex: 1; min-width: 0; line-height: 1.2; }
.mod-opt .mp { color: var(--accent); font-weight: 750; font-variant-numeric: tabular-nums; font-size: 13px; }
.mod-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.mod-opt.on .mk { background: var(--accent); border-color: var(--accent); }
.mod-opt.on .mk::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #fff; }
.mod-opt.on .mk.r::after { border-radius: 50%; }
.stop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.stop-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; font-weight: 600; color: var(--ink); }
.stop-item.on { border-color: var(--bad); background: var(--bad-soft); }
.stop-item.on span:first-child { text-decoration: line-through; color: var(--muted); }
.chips-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sel { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--panel); }
.chip-sel:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chip-sel input { width: 15px; height: 15px; }
.mod-rows { display: flex; flex-direction: column; gap: 6px; }
.mod-row { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr 1.5fr .7fr auto; gap: 6px; align-items: center; }
.mod-row input:disabled { opacity: .45; }
@media (max-width: 760px) { .mod-row { grid-template-columns: 1fr 1fr; } .mod-row .x { justify-self: end; } }
.pr-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pr-card:first-of-type { border-top: 0; }
.pr-card.off { opacity: .55; }
.pr-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--ink-2); }
.pr-ic.r-kitchen { background: var(--accent-soft); color: var(--accent); }
.pr-ic.r-bar { background: var(--violet-soft); color: var(--violet); }
.pr-ic.r-receipt { background: var(--info-soft); color: var(--info); }
.km-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .km-opts { grid-template-columns: 1fr; } .pr-card { flex-wrap: wrap; } }
.alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert.ok > .ico { color: var(--ok); }
.pr-card > .toolbar { flex-wrap: nowrap; flex: none; }

/* ---------- 2.9: kirish ekrani soati ---------- */
.lclock { position: relative; z-index: 1; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.lc-ana { position: relative; width: 230px; height: 230px; flex: none; animation: lcIn .9s cubic-bezier(.2,.9,.25,1.15) both; }
/* Soya — filter emas, statik qatlam: soat har kadrda qayta chiziladi, filter ba'zi Windows/GPU'larda miltillatadi */
.lc-ana::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 24px 40px rgba(80,20,0,.35); pointer-events: none; }
.lc-ana svg { width: 100%; height: 100%; overflow: visible; }
.lc-ana .face { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.lc-ana .arc { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 553; transform: rotate(-90deg); transform-origin: 100px 100px; opacity: .55; }
.lc-ana .tk { stroke: rgba(255,255,255,.45); stroke-width: 1.4; stroke-linecap: round; } .lc-ana .tk.b { stroke: #fff; stroke-width: 3; }
.lc-ana .nm { fill: #fff; font: 800 15px var(--font); text-anchor: middle; opacity: .9; }
.lc-ana .hh { stroke: #fff; stroke-width: 7; stroke-linecap: round; } .lc-ana .mh { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; opacity: .95; }
.lc-ana .sh { stroke: #ffd43b; stroke-width: 2; stroke-linecap: round; } .lc-ana .sd { fill: #ffd43b; }
.lc-ana .ct { fill: #ffd43b; } .lc-ana .ci { fill: #9a3412; }
.lc-right { min-width: 0; animation: lcIn .9s .15s cubic-bezier(.2,.9,.25,1.15) both; }
@keyframes lcIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.lc-dig { display: flex; align-items: baseline; font: 800 76px/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lc-dig .dg { display: inline-block; overflow: hidden; height: 1em; } .lc-dig .dg i { display: inline-block; font-style: normal; animation: dgIn .5s cubic-bezier(.2,.9,.25,1.2); }
@keyframes dgIn { from { transform: translateY(-100%); opacity: 0; } }
.lc-dig .col { margin: 0 2px; transition: opacity .25s; transform: translateY(-.06em); } .lc-dig.blink .col { opacity: .35; }
.lc-dig small { font-size: 26px; margin-left: 10px; opacity: .7; font-weight: 700; letter-spacing: 0; }
.lc-date { font-size: 19px; font-weight: 700; opacity: .92; margin-top: 6px; }
.lc-greet { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-size: 14px; line-height: 1.35; max-width: 340px; }
.lc-greet .em { font-size: 28px; animation: lcBob 3s ease-in-out infinite; } @keyframes lcBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.lc-day { display: flex; align-items: center; gap: 10px; margin-top: 16px; max-width: 340px; }
.lc-bar { flex: 1; position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.lc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #ffe066, #fff); transition: width 1s; }
.lc-bar b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.25), 0 0 18px #ffe066; transition: left 1s; }
@media (max-width: 1100px) { .lc-ana { width: 180px; height: 180px; } .lc-dig { font-size: 60px; } }
@media (max-width: 760px) {
  .lclock { gap: 16px; margin: 14px 0 4px; } .lc-ana { width: 92px; height: 92px; } .lc-dig { font-size: 42px; } .lc-dig small { font-size: 16px; }
  .lc-date { font-size: 14px; } .lc-greet, .lc-day { display: none; }
  .login:has(.pin-mode) .login-art .lclock { display: flex; }
}

/* ---------- 2.9: online menyu sozlamalari ---------- */
.om-hero { display: flex; gap: 34px; align-items: center; padding: 30px; flex-wrap: wrap; }
.om-art { position: relative; width: 230px; height: 300px; flex: none; margin: 0 auto; }
.om-phone { position: absolute; left: 30px; top: 0; width: 160px; height: 290px; border-radius: 28px; background: #17171a; padding: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.25); transform: rotate(-6deg); animation: omFloat 5s ease-in-out infinite; }
.om-scr { width: 100%; height: 100%; border-radius: 21px; background: var(--bg); overflow: hidden; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 58px; gap: 6px; }
.om-h { grid-column: 1 / -1; height: 70px; border-radius: 12px; background: linear-gradient(135deg, #ff8f3f, #ea580c); }
.om-c { border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); animation: omPop 2.4s ease-in-out infinite; }
@keyframes omPop { 50% { transform: scale(.94); } }
@keyframes omFloat { 50% { transform: rotate(-3deg) translateY(-8px); } }
.om-qr { position: absolute; right: 0; bottom: 6px; width: 92px; height: 92px; border-radius: 22px; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.25); transform: rotate(8deg); }
.om-qr svg { width: 56px; height: 56px; }
.om-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; } .om-list li { display: flex; gap: 8px; align-items: center; font-weight: 600; } .om-list .ico { color: var(--ok); }
.om-qrcard { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.om-qrbox { width: 210px; height: 210px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); flex: none; border: 1px solid var(--line); }
.om-qrbox svg { width: 100%; height: 100%; display: block; }
.om-url { font: 700 15px var(--font); word-break: break-all; color: var(--accent); margin-bottom: 4px; }
.om-acc { display: flex; gap: 10px; margin: 4px 0 6px; } .om-acc button { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--line); cursor: pointer; transition: transform .2s; }
.om-acc button.on { box-shadow: 0 0 0 3px var(--c); transform: scale(1.1); }
.om-prev { position: sticky; top: 76px; }
.om-device { margin: 14px auto 0; width: 375px; max-width: 100%; height: 720px; border-radius: 40px; border: 10px solid #17171a; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.25); background: #000; }
.om-device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ph-up { display: flex; gap: 14px; align-items: center; }
.ph-prev { width: 96px; height: 82px; border-radius: 16px; overflow: hidden; background: linear-gradient(140deg, #ffd2ac, #ff8a4c); display: grid; place-items: center; font-size: 40px; flex: none; }
.ph-prev img { width: 100%; height: 100%; object-fit: cover; }
.om-hours { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; } .om-hours .field { margin-bottom: 8px; } .om-hours input { width: 150px; font-size: 18px; font-weight: 700; } .om-dash { padding-bottom: 20px; font-weight: 800; color: var(--muted); } .om-hours .btn { margin-bottom: 10px; }

/* Taom kartochkasida rasm (kassa / ofitsiant) — online menyudagi kabi */
.prod.has-img { padding: 0 0 11px; gap: 4px; min-height: 0; }
.prod.has-img::before { display: none; }
.prod.has-img .pn, .prod.has-img .pp { padding: 0 12px; }
.prod.has-img .pn { margin-top: 6px; }
.prod .pimg { position: relative; display: block; height: 104px; width: 100%; overflow: hidden; background: color-mix(in srgb, var(--pc, var(--accent)) 16%, var(--panel)); border-bottom: 3px solid var(--pc, var(--accent)); }
.prod .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod .pimg.empty { display: grid; place-items: center; }
.prod .pimg.empty i { font-style: normal; font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.prod .pbadge { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.prod.has-img .q, .prod.has-img .stop-tag { z-index: 1; }
@media (max-width: 760px) { .prod .pimg { height: 96px; } .prod .pimg.empty i { font-size: 34px; } .prod.has-img { padding-bottom: 10px; } .prod.has-img .pn, .prod.has-img .pp { padding: 0 10px; } }
