/* Ranglar va o'lchamlar lib/core/theme.dart (AppColors, AppTheme) va lib/widgets/common.dart dan olingan. */
:root {
  --primary: #2b6cff;
  --primary-dark: #1e4ed8;
  --primary-soft: #e8efff;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e8edf4;
  --success: #16a34a;
  --danger: #e11d48;
  --warning: #f59e0b;
  --orange: #ea580c;
  --purple: #7c3aed;
  --teal: #0d9488;
  --billiard: #0f172a;
  --ps: #6366f1;
  --tennis: #f59e0b;
  --shadow: 0 8px 18px rgba(0, 0, 0, .05);
  --nav-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --primary-soft: rgba(43, 108, 255, .18);
  --bg: #0b1220;
  --surface: #151c2c;
  --card: #1c2436;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #263044;
  --billiard: #64748b;
  --shadow: 0 8px 18px rgba(0, 0, 0, .25);
  --nav-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 12px; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.small { font-size: 12px; }
.b { font-weight: 800; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spacer { flex: 1; }

/* Material Symbols — mobil Icons.*_rounded bilan bir xil nomlar */
.i {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; vertical-align: middle; flex: none;
  font-variation-settings: "FILL" 1, "wght" 500, "opsz" 24;
  -webkit-font-smoothing: antialiased;
  width: 1em; overflow: hidden;
}
.c-primary { color: var(--primary); } .c-orange { color: var(--orange); } .c-teal { color: var(--teal); }
.c-purple { color: var(--purple); } .c-warning { color: var(--warning); } .c-muted { color: var(--muted); }
.c-success { color: var(--success); } .c-danger { color: var(--danger); } .c-ps { color: var(--ps); } .c-playstation { color: var(--ps); } .c-tennis { color: var(--tennis); }

/* 8-shar (EightBall) */
.ball {
  width: 28px; height: 28px; border-radius: 50%; background: #111827; flex: none;
  display: inline-grid; place-items: center;
}
.ball::before {
  content: "8"; width: 42%; height: 42%; border-radius: 50%; background: #fff; color: #111827;
  display: grid; place-items: center; font-weight: 900; font-size: 10px; line-height: 1;
}
.ball.sm { width: 18px; height: 18px; }
.ball.sm::before { font-size: 7px; }

/* ── Karkas: drawer (mobil _Menu) + topbar (_TopBar) + tabbar (bottom nav) ── */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.drawer {
  background: var(--card); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 8px; font-size: 18px; font-weight: 800; color: var(--text); }
.drawer .club { display: flex; align-items: center; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.drawer .club b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.drawer nav a {
  display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 14px;
  color: var(--text); font-weight: 700;
}
.drawer nav a:hover { background: var(--bg); }
.drawer nav a.on { background: var(--primary-soft); color: var(--primary); }
.drawer nav a .badge { margin-left: auto; }
.drawer .foot { padding: 8px 20px 16px; }
.drawer .foot .who { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.badge {
  background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 800;
  padding: 2px 7px; line-height: 1.3;
}

.page { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--card); display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
}
.topbar .title { min-width: 0; flex: 1; }
.topbar .title h1 { font-size: 18px; letter-spacing: -.3px; margin: 0; }
.topbar .title .sub { color: var(--muted); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .clock { font-weight: 700; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--bg); }
.menu-btn { display: none; }
.prefs { display: flex; align-items: center; gap: 6px; }
.prefs form { margin: 0; }
.lang { display: flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: 12px;
  padding: 6px 10px; border-radius: 9px; cursor: pointer; min-height: 0;
}
.lang button.on { background: var(--primary); color: #fff; }

main { padding: 16px 20px 32px; width: 100%; max-width: 1240px; }
.tabbar { display: none; }
.scrim { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .drawer {
    position: fixed; inset: 0 auto 0 0; width: 300px; max-width: 86vw; z-index: 30;
    transform: translateX(-102%); transition: transform .22s ease; border-right: 0;
  }
  #nav:checked ~ .app .drawer { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  #nav:checked ~ .app .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .topbar { padding: 8px 12px 8px 16px; border-bottom: 0; }
  .topbar .clock { display: none; }
  main { padding: 8px 16px calc(92px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 4px 10px calc(10px + env(safe-area-inset-bottom));
  }
  .tabbar .in { display: flex; height: 52px; padding: 3px; background: var(--bg); border-radius: 16px; }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative;
  }
  .tabbar a.on { background: var(--card); color: var(--primary); font-weight: 800; box-shadow: var(--nav-shadow); }
  .tabbar .badge { position: absolute; top: 3px; left: calc(50% + 6px); font-size: 9px; padding: 1px 4px; }
}

/* ── Kartalar (SoftCard, KpiCard, Pill, MoneyRow) ── */
.card {
  background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  margin-bottom: 14px; position: relative; overflow: hidden;
}
.card.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-c); }
.card.flat { box-shadow: none; }
a.card { display: block; color: inherit; }
a.card:hover, .card.link:hover { filter: brightness(.985); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3, .card-head h2 { margin: 0; }

.kpis { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi .ic {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); margin-bottom: 12px;
}
.kpi .ic .i { font-size: 20px; }
.kpi .k { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .s { color: var(--muted); font-size: 11px; }

.pill {
  display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; white-space: nowrap;
  color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 12%, transparent);
}
.money-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.money-row .i { font-size: 20px; }
.money-row .l { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.money-row .l .muted { font-size: 11.5px; font-weight: 400; display: block; }
.money-row .a { font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-row.bold .l { font-weight: 800; font-size: 14.5px; }
.money-row.bold .a { font-size: 15px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.alert {
  display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 800;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cols.wide { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); }
.cols > div > .card:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .cols, .cols.wide { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.section-head h3 { flex: 1; }

/* Segment (PeriodChips, zal tanlash) */
.seg { display: flex; background: var(--card); border-radius: 14px; padding: 3px; margin-bottom: 14px; overflow-x: auto; }
.seg a {
  flex: 1; text-align: center; padding: 10px 14px; border-radius: 11px; color: var(--text);
  font-weight: 800; font-size: 12.5px; white-space: nowrap;
}
.seg a.on { background: var(--primary); color: #fff; }
.seg.fit a { flex: none; }

/* Ro'yxat qatorlari (ListTile uslubi) */
.list .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .grow .muted { font-size: 12.5px; }

/* Jadvallar */
.table-wrap { overflow-x: auto; margin: -4px -4px 0; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; letter-spacing: .4px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline; }

/* Formalar (InputDecorationTheme) */
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; font-weight: 700; letter-spacing: .4px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.4px solid transparent;
  background: var(--bg); color: var(--text); font: inherit; outline: none;
}
input:focus, select:focus { border-color: var(--primary); }
input::placeholder { color: var(--muted); font-weight: 500; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); padding: 0; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .f { flex: 1; min-width: 120px; }
.mt { margin-top: 16px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; min-height: 48px; padding: 0 20px; font: inherit; font-weight: 800; font-size: 15px;
  background: var(--primary); color: #fff; cursor: pointer;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.btn.block, button.block { width: 100%; min-height: 52px; font-size: 16px; }
.btn.sm, button.sm { min-height: 38px; border-radius: 12px; padding: 0 14px; font-size: 13px; }
.btn.ghost, button.ghost { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.btn.ghost:hover, button.ghost:hover { background: color-mix(in srgb, var(--text) 11%, transparent); }
button.danger { background: transparent; color: var(--danger); min-height: 36px; padding: 0 10px; font-size: 13px; }
button.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
button.link { background: none; color: var(--primary); padding: 0; min-height: 0; font-weight: 700; }

.flash { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; }
.flash.ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.flash.err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .i { font-size: 40px; display: block; margin: 0 auto 8px; opacity: .6; }

/* Ustunli diagramma (RevenueBars) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; gap: 4px; }
.bars .v { font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bars .fill { width: 100%; max-width: 34px; background: var(--primary); border-radius: 8px 8px 4px 4px; min-height: 3px; }
.bars .b.today .fill { background: var(--primary); }
.bars .b:not(.today) .fill { background: color-mix(in srgb, var(--primary) 55%, transparent); }
.bars .d { font-size: 11px; color: var(--muted); font-weight: 700; }

/* Yo'nalishlar doirasi (DirectionPie) */
.pie-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie { width: 148px; height: 148px; border-radius: 50%; position: relative; flex: none; }
.pie::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: var(--card); }
.legend { flex: 1; min-width: 200px; }
.legend .li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.legend .li span:nth-child(2) { flex: 1; }
.legend .li b { font-variant-numeric: tabular-nums; }

/* Zal: stol plitkalari (_TableTile) */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.tile {
  background: var(--card); border-radius: 18px; padding: 12px 12px 12px 16px; box-shadow: var(--shadow);
  min-height: 150px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--success); }
.tile.busy::before { background: var(--danger); }
.tile .top { display: flex; align-items: center; justify-content: space-between; }
.tile .name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .type { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.tile .timer { font-weight: 900; font-size: 15px; color: var(--danger); font-variant-numeric: tabular-nums; }
.tile .timer.warn { color: var(--warning); }
.tile .sum { font-weight: 800; font-size: 12px; }

/* Kirish / to'lov sahifalari */
.auth { max-width: 440px; margin: 0 auto; padding: 6vh 16px 40px; }
.auth .top-prefs { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.auth .card { padding: 24px; }
.auth .logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.big { font-size: 34px; font-weight: 900; letter-spacing: 3px; }
ol.steps { padding-left: 20px; margin: 10px 0 0; }
ol.steps li { margin-bottom: 6px; }
.stack > * + * { margin-top: 8px; }
.lang button:hover { background: var(--line); }
.lang button.on:hover { background: var(--primary-dark); }
.icon-btn:hover { background: var(--bg); }
a.tile { color: inherit; transition: transform .12s ease; }
a.tile:hover { transform: translateY(-2px); }
.chip { margin: 0; letter-spacing: 0; text-transform: none; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 14px; border-radius: 11px; font-weight: 800; font-size: 13px; color: var(--text);
}
.chip input:checked + span { background: var(--primary); color: #fff; }

/* Logotip: tun-kun rejimiga qarab oq yoki qora fon varianti */
.logo-img { display: block; height: 30px; width: auto; }
.logo-img.on-dark, [data-theme=dark] .logo-img.on-light { display: none; }
[data-theme=dark] .logo-img.on-dark { display: block; }
.drawer .brand { padding: 20px 20px 10px; }
.auth .logo .logo-img { height: 40px; }
.auth .logo-sub { font-size: 18px; font-weight: 800; margin: -2px 0 8px; }
.auth .logo .mark { width: 32px; height: 32px; }

/* Menyu bo'limlari: Asosiy · Moliya · Boshqaruv */
.drawer nav { gap: 1px; }
.drawer nav a { padding: 9px 14px; gap: 14px; font-size: 14px; }
.drawer .nav-h {
  font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 14px 14px 6px;
}
.drawer .nav-h:first-child { padding-top: 6px; }
.drawer .cta { margin: 14px 16px 4px; width: auto; min-height: 46px; font-size: 15px; justify-content: flex-start; gap: 10px; }
.drawer .cta .cta-n {
  margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .22);
  padding: 2px 8px; border-radius: 99px;
}
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Partiya: o'yinchilarni belgilash */
.party-form .checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.party-form .check {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: var(--bg); font-weight: 700; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0;
}
.party-form .check input { width: auto; margin: 0; }

/* Snek-bar: stoldagi mahsulotlar va buyurtma oynasi (mobil SessionOrderSheet kabi) */
.bar .avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--orange-soft, #fff7ed); color: var(--orange); font-weight: 900;
}
.bar .qty { display: flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 12px; padding: 2px; }
.bar .qty form { margin: 0; }
.bar .qty button { min-height: 30px; width: 30px; padding: 0; border-radius: 10px; }
.bar .qty b { min-width: 22px; text-align: center; }
.bar .item .total { min-width: 82px; text-align: right; }
.empty-bar {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px;
  background: var(--bg); color: var(--text); border: 1px dashed var(--line); border-radius: 14px; min-height: 0;
}
.empty-bar .i { font-size: 30px; }
dialog.sheet {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 22px;
  background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog.sheet::backdrop { background: rgba(15, 23, 42, .5); }
dialog.sheet form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.sheet-head { display: flex; gap: 10px; align-items: flex-start; padding: 18px 18px 10px; }
.sheet-head h3 { margin: 0 0 2px; }
.bar-search { margin: 0 18px 10px; width: auto; }
.bar-cats { margin: 0 18px 10px; }
.grid-p {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
  padding: 4px 18px 12px; overflow-y: auto; flex: 1;
}
.ptile { position: relative; }
.ptile[hidden] { display: none; }
.ptile .add {
  width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left;
  padding: 10px; border-radius: 16px; background: var(--bg); color: var(--text); border: 2px solid transparent;
}
.ptile.picked .add { border-color: var(--primary); }
.ptile.out .add { opacity: .5; }
.ptile .ph {
  height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; font-weight: 900;
  background: var(--card); color: var(--orange); margin-bottom: 4px;
}
.ptile .nm { font-weight: 800; line-height: 1.2; }
.ptile .pr { font-weight: 900; color: var(--primary); }
.ptile .n { position: absolute; top: 8px; right: 8px; }
.ptile .minus {
  position: absolute; top: 8px; left: 8px; min-height: 0; width: 28px; height: 28px; padding: 0; border-radius: 99px;
  background: var(--danger); color: #fff;
}
.ptile .minus .i { font-size: 18px; }
.sheet-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.ptile .n { background: var(--primary); }
[hidden] { display: none !important; }

/* Parol bilan kirish */
.auth .username { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; width: 40px; padding: 0; }
.check.remember {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 0; text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.check.remember input { width: auto; margin: 0; }

/* Buyurtma olish (Zal): POS uslubidagi stollar taxtasi — band ko'k, pauza sariq, bo'sh kulrang */
:root { --pos-busy: #2f45c8; --pos-free: #4b5563; --pos-paused: #d97706; --pos-bg-dot: rgba(15, 23, 42, .07); }
[data-theme=dark] { --pos-busy: #3b55e6; --pos-free: #2b3446; --pos-paused: #b45309; --pos-bg-dot: rgba(255, 255, 255, .05); }
.pos {
  background-image: radial-gradient(var(--pos-bg-dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px; margin: -8px; padding: 8px; border-radius: 18px; min-height: 60vh;
}
.pos-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pos-tabs {
  display: flex; gap: 6px; overflow-x: auto; flex: 1 1 320px; padding: 4px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow, 0 1px 2px rgba(0, 0, 0, .06)); scrollbar-width: none;
}
.pos-tabs::-webkit-scrollbar { display: none; }
.pos-tabs button {
  min-height: 38px; padding: 0 16px; border-radius: 10px; white-space: nowrap; flex: none;
  background: transparent; color: var(--text); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; font-size: 13px;
}
.pos-tabs button.on { background: var(--primary); color: #fff; }
.pos-tabs .cnt {
  margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--danger); color: #fff;
}
.pos-search {
  display: flex; align-items: center; gap: 6px; flex: 0 1 260px; background: var(--card); border-radius: 14px;
  padding: 0 12px; margin: 0; min-height: 46px; text-transform: none; letter-spacing: 0;
  box-shadow: var(--shadow, 0 1px 2px rgba(0, 0, 0, .06));
}
.pos-search .i { color: var(--muted); }
.pos-search input { border: 0; background: transparent; padding: 10px 0; box-shadow: none; outline: none; }
.pos-btn {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--card); color: var(--text); box-shadow: var(--shadow, 0 1px 2px rgba(0, 0, 0, .06));
}
.pos-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pos-tile {
  aspect-ratio: 1 / .86; border-radius: 16px; padding: 12px 10px; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative;
  background: var(--pos-free); box-shadow: 0 6px 16px rgba(15, 23, 42, .16); transition: transform .12s, filter .12s;
}
.pos-tile:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pos-tile.busy { background: var(--pos-busy); }
.pos-tile.paused { background: var(--pos-paused); }
.pos-tile .ic { font-size: 26px; opacity: .95; }
.pos-tile .nm {
  font-size: 18px; font-weight: 900; letter-spacing: .2px; line-height: 1.15; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pos-tile.free .nm { font-size: 19px; }
.pos-tile .ln { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; opacity: .95; max-width: 100%; }
.pos-tile .ln .i { font-size: 15px; }
.pos-tile .ln.b { font-size: 13px; font-weight: 900; }
.pos-tile .tag {
  position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 99px;
  background: rgba(255, 255, 255, .25);
}
.pos-tile[hidden] { display: none; }
@media (max-width: 560px) {
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
  .pos-tile { aspect-ratio: 1 / 1.05; padding: 8px 6px; border-radius: 14px; }
  .pos-tile .ic { font-size: 22px; }
  .pos-tile .nm, .pos-tile.free .nm { font-size: 14px; }
  .pos-tile .ln { font-size: 10.5px; }
  .pos-tile .ln .i { font-size: 13px; }
  .pos-tile .ln.b { font-size: 11.5px; }
  .pos-search { flex: 1 1 auto; }
}

/* Raqam klaviaturasi (POS): katta tugmalar, ⌫ va 🗑 to'q rangda */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button {
  min-height: 54px; border-radius: 12px; font-size: 22px; font-weight: 800; padding: 0;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.numpad button:active { transform: scale(.97); }
.numpad button.np-dark { background: #1f2430; color: #fff; border-color: #1f2430; }
[data-theme=dark] .numpad button.np-dark { background: #0b1220; border-color: #0b1220; }
.np-display {
  text-align: center; font-size: 34px; font-weight: 900; letter-spacing: 1px; font-variant-numeric: tabular-nums;
  padding: 6px 0 2px; min-height: 52px;
}
.np-sub { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; min-height: 18px; margin-bottom: 10px; }

/* Bar oynasi: chapda mahsulotlar, o'ngda tanlangan mahsulot soni uchun klaviatura */
dialog.sheet { width: min(1000px, calc(100vw - 24px)); }
.bar-body { display: grid; grid-template-columns: 1fr 280px; gap: 0; flex: 1; min-height: 0; }
.bar-body .grid-p { align-content: start; }
.bar-pad { padding: 4px 18px 12px 6px; display: flex; flex-direction: column; }
.bar-pad .np-name { text-align: center; font-weight: 800; font-size: 14px; min-height: 36px; display: grid; place-items: center; }
.ptile.sel .add { border-color: var(--warning); box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
@media (max-width: 720px) {
  .bar-body { grid-template-columns: 1fr; overflow-y: auto; }
  .bar-body .grid-p { overflow: visible; max-height: none; }
  .bar-pad { padding: 4px 18px 10px; position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); }
  .bar-pad .numpad button { min-height: 42px; font-size: 18px; }
  .bar-pad .np-display { font-size: 26px; min-height: 36px; }
}

/* Tasdiqlash oynasi (confirm o'rniga) va qisqa xabar (toast) */
dialog.confirm {
  width: min(400px, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 24px 22px 18px;
  background: var(--card); color: var(--text); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog.confirm[open] { animation: cf-in .16s ease-out; }
dialog.confirm::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
@keyframes cf-in { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-ic {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.cf-ic .i { font-size: 30px; }
dialog.confirm.danger .cf-ic { background: rgba(225, 29, 72, .12); color: var(--danger); }
dialog.confirm h3 { margin: 0 0 6px; font-size: 19px; }
dialog.confirm p { margin: 4px 0 0; }
.cf-rows { margin: 14px 0 0; background: var(--bg); border-radius: 14px; padding: 6px 14px; text-align: left; }
.cf-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-weight: 600; }
.cf-row + .cf-row { border-top: 1px dashed var(--line); }
.cf-row.cf-total { font-size: 17px; }
.cf-row.cf-total b { color: var(--primary); }
.cf-note { color: var(--warning); font-weight: 700; font-size: 13px; }
.cf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cf-btns button { min-height: 48px; }
button.danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 1000;
  padding: 12px 18px; border-radius: 14px; font-weight: 700; color: #fff; background: #1f2430;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: all .25s; max-width: calc(100vw - 32px);
}
.toast.warn { background: #b45309; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Seans sahifasi: Pauza + Yopish yonma-yon, ixcham mijozlar/partiyalar kartasi, kichik oynalar */
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act-row form { margin: 0; }
.gp-card .card-head { margin-bottom: 8px; }
.party-now {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px;
  background: var(--bg); font-size: 14px;
}
.party-now .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.sheet.small { width: min(540px, calc(100vw - 24px)); }
dialog.sheet .sheet-body { padding: 0 18px 8px; overflow-y: auto; }
dialog.sheet:not(:has(form#bar-form)) { max-height: calc(100vh - 40px); }
#gp-dialog[open] { display: flex; flex-direction: column; }
.close-sum { margin: 6px 0 4px; }
.gp-card .card-head { gap: 6px; }
.party-form { border-radius: 14px; padding: 10px 12px; background: var(--bg); transition: box-shadow .3s; outline: none; }
.party-form.flash-focus { box-shadow: 0 0 0 3px var(--primary); }

/* Seans ochish (yangi dizayn): qadamlar + o'ng tomonda xulosa */
.ns-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ns-top h2 { margin: 0; font-size: 24px; letter-spacing: -.3px; }
.ns-back {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.ns-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--pos-busy); color: #fff;
}
.ns-ic .i { font-size: 28px; }
.ns-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ns-main { display: flex; flex-direction: column; gap: 14px; }
.ns-main .card { margin: 0; }
.ns-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; }
.ns-h .muted { margin-left: auto; }
.ns-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: var(--primary); color: #fff;
}
.ns-tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ns-tariff {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 0; cursor: pointer;
  border-radius: 16px; border: 2px solid var(--line); background: var(--bg); text-transform: none; letter-spacing: 0;
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.ns-tariff input { position: absolute; opacity: 0; pointer-events: none; }
.ns-tf-name { font-weight: 800; font-size: 15px; }
.ns-tf-price b { font-size: 20px; font-weight: 900; color: var(--primary); }
.ns-tf-price small { color: var(--muted); font-weight: 700; }
.ns-check { position: absolute; top: 10px; right: 10px; color: var(--primary); opacity: 0; transition: opacity .15s; }
.ns-tariff:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--card); }
.ns-tariff:has(input:checked) .ns-check { opacity: 1; }
.ns-guests { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.ns-stepper {
  display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 16px; padding: 4px;
}
.ns-stepper button { width: 48px; min-height: 52px; padding: 0; border-radius: 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.ns-count { display: flex; flex-direction: column; align-items: center; width: 64px; }
.ns-count input {
  width: 100%; border: 0; background: transparent; text-align: center; font-size: 26px; font-weight: 900; padding: 0;
  box-shadow: none; -moz-appearance: textfield;
}
.ns-count input::-webkit-inner-spin-button, .ns-count input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ns-count small { color: var(--muted); font-weight: 700; font-size: 11px; margin-top: -4px; }
.ns-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ns-people .pill { display: inline-flex; align-items: center; gap: 3px; }
.ns-people .pill .i { font-size: 14px; }
.ns-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ns-time {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; min-height: 92px; margin: 0;
  border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 600;
}
.ns-time .i { color: var(--muted); font-size: 22px; }
.ns-time b { font-size: 16px; font-weight: 900; }
.ns-time small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ns-time.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.ns-time.on .i, .ns-time.on small { color: rgba(255, 255, 255, .85); }
.ns-custom input {
  width: 100%; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 900; padding: 2px 0;
  box-shadow: none; color: inherit;
}
.ns-custom.on input::placeholder { color: rgba(255, 255, 255, .7); }
.ns-sum { position: sticky; top: 16px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ns-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ns-total { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 12px; }
.ns-total b { font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -.3px; }
.ns-go { min-height: 56px; font-size: 17px; }
.ns-classic { text-align: center; margin-top: 10px; text-decoration: underline; }
@media (max-width: 900px) {
  .ns-grid { grid-template-columns: 1fr; }
  .ns-sum { position: static; }
  .ns-guests { grid-template-columns: 1fr; }
  .ns-stepper { justify-self: start; }
}

/* Ochiq seans (yangi dizayn): holat rangidagi sarlavha, hisob kartochkalari, amallar paneli */
.sv { --sv-c: var(--pos-busy); }
.sv.paused { --sv-c: var(--pos-paused); }
.sv.closed { --sv-c: var(--success); }
.sv-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; margin-bottom: 14px;
  background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--sv-c);
}
.sv-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--sv-c); color: #fff; }
.sv-ic .i { font-size: 28px; }
.sv-title { flex: 1; min-width: 0; }
.sv-title h2 { margin: 0; font-size: 24px; letter-spacing: -.3px; }
.sv-status {
  padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
  background: var(--sv-c); color: #fff;
}
.sv-timer { text-align: right; min-width: 170px; }
.sv-timer .num { font-size: 38px; font-weight: 900; letter-spacing: -.5px; color: var(--sv-c); line-height: 1.05; font-variant-numeric: tabular-nums; }
.sv-timer small { font-weight: 700; }
.sv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.sv-kpi {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
}
.sv-kpi .i {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg); color: var(--muted);
}
.sv-kpi small { color: var(--muted); font-weight: 700; font-size: 12px; }
.sv-kpi b { font-size: 19px; font-weight: 900; }
.sv-kpi.total { background: var(--primary); color: #fff; }
.sv-kpi.total small { color: rgba(255, 255, 255, .8); }
.sv-kpi.total .i { background: rgba(255, 255, 255, .18); color: #fff; }
.sv-kpi.total b { font-size: 22px; }
.sv-actions { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 10px; margin-bottom: 16px; }
.sv-actions form { margin: 0; }
.sv-act {
  width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 16px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 800; font-size: 13px;
}
.sv-act .i { font-size: 24px; color: var(--primary); }
.sv-act.resume .i { color: var(--success); }
.sv-act.close { background: var(--success); border-color: var(--success); color: #fff; font-size: 15px; }
.sv-act.close .i { color: #fff; }
.sv-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sv-cols .card { margin-top: 0; }
.sv-classic { text-align: center; margin-top: 18px; }
.sv-classic a { text-decoration: underline; }
@media (max-width: 900px) {
  .sv-head { flex-wrap: wrap; }
  .sv-timer { min-width: 0; width: 100%; text-align: left; }
  .sv-kpis { grid-template-columns: repeat(2, 1fr); }
  .sv-actions { grid-template-columns: repeat(4, 1fr); }
  .sv-actions .close { grid-column: 1 / -1; }
  .sv-cols { grid-template-columns: 1fr; }
}

/* Dashboard — Jonli zal markazi (A) */
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.db-kpi {
  display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow); color: var(--text); position: relative;
}
.db-kpi > .i {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 22px;
}
.db-kpi small { color: var(--muted); font-weight: 700; font-size: 12px; }
.db-kpi b { font-size: 24px; font-weight: 900; letter-spacing: -.4px; margin: 2px 0; }
.db-delta { font-size: 12px; font-weight: 700; color: var(--muted); }
.db-delta.up { color: var(--success); }
.db-delta.down { color: var(--danger); }
.db-bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 4px 0 2px; }
.db-bar span { display: block; height: 100%; background: var(--pos-busy); border-radius: 99px; }
.db-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.db-cols .card { margin: 0; }
.db-bottom { margin-top: 14px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.db-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 10px; }
.db-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--pos-free); }
.db-leg i.busy { background: var(--pos-busy); }
.db-leg i.paused { background: var(--pos-paused); }
.db-now { display: flex; gap: 6px; align-items: baseline; margin: -4px 0 10px; font-weight: 700; color: var(--muted); }
.db-now b { color: var(--pos-busy); font-size: 16px; }
.db-hall + .db-hall { margin-top: 12px; }
.db-hall-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.db-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.db-t {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px;
  border-radius: 12px; padding: 6px; color: #fff; background: var(--pos-free); text-align: center; transition: filter .12s;
}
.db-t:hover { filter: brightness(1.1); }
.db-t.busy { background: var(--pos-busy); }
.db-t.paused { background: var(--pos-paused); }
.db-t b { font-size: 13px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-t small { font-size: 11px; font-weight: 700; opacity: .9; }
.db-ok { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.db-alert {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--bg);
  color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 8px;
}
.db-alert > .i:first-child { color: var(--muted); }
.db-alert.warning > .i:first-child { color: var(--warning); }
.db-alert.danger > .i:first-child { color: var(--danger); }
.db-alert .grow { flex: 1; min-width: 0; }
.db-hours { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 6px; }
.db-h { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.db-h .col { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.db-h .col span { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--primary-soft); min-height: 0; }
.db-h:hover .col span { background: var(--primary); }
.db-h.now .col span { background: var(--primary); }
.db-h small { font-size: 10px; color: var(--muted); font-weight: 700; }
.db-h.now small { color: var(--primary); }
@media (max-width: 900px) {
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-cols, .db-bottom { grid-template-columns: 1fr; }
  .db-kpi b { font-size: 20px; }
}
