:root {
  --bg: #0B1424; --rail: #0F1828;
  --glass: rgba(255,255,255,.045); --glass-b: rgba(255,255,255,.09);
  --field: rgba(255,255,255,.055); --field-b: rgba(255,255,255,.12); --hair: rgba(255,255,255,.07);
  --t1: #EDF1F7; --t2: #A8B3C6; --t3: #8491A8; --ph: #7F8BA2;
  --paper: #FAFAF6; --ink: #0B1424; --laser: #FF2D46;
  --g-bg: rgba(67,211,158,.12); --g: #6BE3B5;
  --a-bg: rgba(255,181,71,.12); --a: #FFC56B;
  --b-bg: rgba(122,184,255,.12); --b: #9CCBFF;
  --r-bg: rgba(255,122,133,.12); --r: #FF9AA4;
  --n-bg: rgba(255,255,255,.06); --n: #C5CEDB;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--t1); font: 400 14px/1.45 var(--ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--ph); }
:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; }
.hide { display: none !important; }
/* Ikonka o'lchami berilmagan joylar uchun (aniq qoidalar ustun turadi) */
:where(svg[aria-hidden="true"]:not([width])) { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--t2); } .dim { color: var(--t3); }
.small { font-size: 12.5px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.display { font-family: var(--display); letter-spacing: -.01em; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; } .spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }

/* Layout */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); border-right: 1px solid var(--hair); display: flex; flex-direction: column; padding: 20px 14px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 700 13px var(--display); overflow: hidden; flex-shrink: 0; position: relative; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-mark::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--laser); }
.brand-mark.has-img::after { display: none; }
.brand b { display: block; font: 600 14px var(--display); line-height: 1.2; }
.brand span { font-size: 12px; color: var(--t3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav hr { border: 0; border-top: 1px solid var(--hair); margin: 8px 8px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--t2); font-weight: 500; }
.nav a:hover { background: var(--glass); color: var(--t1); }
.nav a.on { background: rgba(250,250,246,.1); color: var(--paper); font-weight: 600; }
.nav svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav .badge { margin-left: auto; font-size: 11.5px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--a-bg); color: var(--a); display: grid; place-items: center; font-weight: 600; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.rate-box { border: 1px solid var(--glass-b); background: var(--glass); border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; }
.rate-box b { font-weight: 600; } .rate-box.warn { border-color: rgba(255,181,71,.35); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--n-bg); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--n); flex-shrink: 0; }
.main { min-width: 0; padding: 28px 32px 48px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }
.page-head .sub { color: var(--t2); margin-top: 6px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.card { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 20px; padding: 20px; min-width: 0; }
.card.tight { padding: 14px 16px; }
.card h2, .card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer + * { flex-shrink: 0; }
.kpi .v { font: 600 26px/1.1 var(--display); letter-spacing: -.02em; }
.kpi .v small { font: 500 13px var(--ui); color: var(--t2); margin-left: 6px; letter-spacing: 0; }
.kpi .l { color: var(--t2); margin-top: 8px; }
.kpi .d { font-size: 12.5px; margin-top: 4px; color: var(--t3); }
.up { color: var(--g); } .down { color: var(--r); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,181,71,.3); background: var(--a-bg); color: var(--a); margin-bottom: 18px; }
.banner.info { border-color: rgba(122,184,255,.3); background: var(--b-bg); color: var(--b); }
.banner > svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.btn { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--field-b); background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: rgba(255,255,255,.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--t2); }
.btn-ghost:hover { background: var(--glass); color: var(--t1); }
.btn-danger { color: var(--r); border-color: rgba(255,122,133,.3); background: var(--r-bg); }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn-lg { height: 52px; padding: 0 22px; border-radius: 14px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 0; background: transparent; color: var(--t3); display: inline-grid; place-items: center; cursor: pointer; }
.btn-icon:hover { background: var(--glass); color: var(--t1); }
.btn-icon svg { width: 18px; height: 18px; }
kbd { font: 600 11px var(--ui); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--field-b); color: var(--t2); }
.btn-primary kbd { border-color: rgba(11,20,36,.25); color: rgba(11,20,36,.7); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; color: var(--t2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--t3); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--field-b); outline: none; font-size: 14.5px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(250,250,246,.55); background: rgba(255,255,255,.07); }
.input.num, .input.money { font-weight: 600; text-align: right; }
.input.sm, .select.sm { height: 36px; border-radius: 10px; font-size: 13.5px; padding: 0 10px; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A8B3C6' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: #14203A; color: var(--t1); }
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input-wrap { position: relative; display: flex; align-items: center; height: 44px; border-radius: 12px; background: var(--field); border: 1px solid var(--field-b); padding: 0 12px; gap: 8px; }
.input-wrap:focus-within { border-color: rgba(250,250,246,.55); }
.input-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14.5px; }
.input-wrap .pre, .input-wrap .suf { color: var(--t3); flex-shrink: 0; }
.input-wrap svg { width: 18px; height: 18px; color: var(--t3); flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--paper); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--field); border: 1px solid var(--field-b); gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--t2); font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--paper); color: var(--ink); font-weight: 600; }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.switch { width: 48px; height: 30px; padding: 3px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); display: flex; cursor: pointer; flex-shrink: 0; }
.switch::after { content: ''; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--paper); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--ink); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.toggle-row .grow b { display: block; font-weight: 600; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--n-bg); color: var(--n); }
.pill.green { background: var(--g-bg); color: var(--g); } .pill.amber { background: var(--a-bg); color: var(--a); }
.pill.blue { background: var(--b-bg); color: var(--b); } .pill.red { background: var(--r-bg); color: var(--r); }
.pill.paper { background: var(--paper); color: var(--ink); }
.chip { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--field-b); background: transparent; color: var(--t2); cursor: pointer; font-weight: 500; }
.chip.on { border-color: var(--paper); color: var(--paper); background: rgba(250,250,246,.1); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--t3); font-size: 12.5px; padding: 0 12px 10px; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid var(--hair); vertical-align: middle; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: rgba(255,255,255,.025); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .sub { color: var(--t3); font-size: 12.5px; margin-top: 2px; }
.table tr.group td { background: rgba(255,255,255,.02); }
.table tr.subrow td { background: rgba(0,0,0,.12); }
.table tfoot td { font-weight: 600; }
.empty { text-align: center; color: var(--t2); padding: 36px 16px; }
.empty b { display: block; color: var(--t1); font-size: 15px; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { height: 42px; padding: 0 14px; border: 0; background: transparent; color: var(--t2); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.tabs button.on { color: var(--paper); border-bottom-color: var(--paper); font-weight: 600; }
.tabs .count { font-size: 12px; color: var(--t3); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input-wrap { width: 320px; max-width: 100%; }
.filters .select { width: auto; min-width: 150px; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; color: var(--t2); }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(4,9,18,.66); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; z-index: 50; overflow-y: auto; }
.modal { width: 560px; max-width: 100%; background: #111C30; border: 1px solid var(--glass-b); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.modal.wide { width: 880px; } .modal.narrow { width: 420px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.modal-head h2 { margin: 0; font: 600 18px var(--display); letter-spacing: -.01em; }
.modal-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 20px 20px; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 14px; background: #1A2740; border: 1px solid var(--glass-b); box-shadow: 0 12px 30px rgba(0,0,0,.35); display: flex; gap: 10px; align-items: flex-start; }
.toast.err { border-color: rgba(255,122,133,.4); } .toast.err::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--r); margin-top: 6px; flex-shrink: 0; }
.toast.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--g); margin-top: 6px; flex-shrink: 0; }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.dl dt { color: var(--t3); } .dl dd { margin: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); }
.list-row:first-child { border-top: 0; }
.list-row .grow b { font-weight: 600; display: block; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline div { padding-left: 14px; border-left: 2px solid var(--hair); }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: rgba(250,250,246,.22); min-height: 2px; }
.bars .b.today .bar { background: var(--paper); }
.bars .b span { font-size: 11.5px; color: var(--t3); }
.bars .b em { font-style: normal; font-size: 11px; color: var(--t2); white-space: nowrap; visibility: hidden; }
.bars .b.today em, .bars .b.peak em, .bars .b:hover em { visibility: visible; }

/* Kassa */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.scan { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--field); border: 1.5px solid var(--field-b); position: relative; }
.scan:focus-within { border-color: var(--paper); }
.scan input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; }
.scan svg { width: 22px; height: 22px; color: var(--t2); }
.dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #15213A; border: 1px solid var(--glass-b); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.45); z-index: 20; max-height: 420px; overflow-y: auto; padding: 6px; }
.dropdown button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.dropdown button:hover, .dropdown button.on { background: rgba(255,255,255,.06); }
.dropdown .grow b { display: block; font-weight: 600; }
.cart td { padding: 14px 10px; }
.cart .qty { display: inline-flex; align-items: center; border: 1px solid var(--field-b); border-radius: 10px; height: 36px; }
.cart .qty button { width: 32px; height: 34px; border: 0; background: transparent; cursor: pointer; color: var(--t2); font-size: 16px; }
.cart .qty span { min-width: 26px; text-align: center; font-weight: 600; }
.cart .disc { width: 120px; height: 36px; border-radius: 10px; text-align: right; padding: 0 10px; background: var(--field); border: 1px solid var(--field-b); font-weight: 600; outline: none; }
.line-note { font-size: 12.5px; color: var(--a); margin-top: 4px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.quick button { height: 64px; padding: 0 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-b); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer; }
.quick button:hover { border-color: rgba(255,255,255,.2); }
.quick button b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.quick button span { font-size: 12.5px; color: var(--t2); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--t2); }
.sum-row b { color: var(--t1); font-weight: 600; }
.total-big { font: 600 32px/1.1 var(--display); letter-spacing: -.02em; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-methods button { height: 52px; padding: 0 14px; text-align: left; line-height: 1.2; border-radius: 14px; background: var(--glass); border: 1px solid var(--field-b); color: var(--n); display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.pay-methods button[aria-pressed="true"] { background: rgba(250,250,246,.1); border: 1.5px solid var(--paper); color: var(--t1); font-weight: 600; }
.pay-methods svg { width: 19px; height: 19px; }
.pay-line { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.pay-line .input { height: 48px; font-size: 16px; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.board .colm { background: rgba(255,255,255,.025); border: 1px solid var(--hair); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.board .colm h3 { margin: 2px 4px 4px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; }
.board .colm h3 span { color: var(--t3); font-weight: 500; }
.ticket { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 14px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ticket:hover { border-color: rgba(255,255,255,.2); }
.ticket b { font-weight: 600; }
.ticket .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t3); }

/* Kirim, misc */
.block { border: 1px solid var(--glass-b); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.02); }
.imei-list { display: flex; flex-direction: column; }
.imei-list .r { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) 170px 90px 110px 36px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair); }
.imei-list .r.head { border-top: 0; color: var(--t3); font-size: 12.5px; padding-top: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-grid label, .photo-grid img { aspect-ratio: 3/4; border-radius: 14px; border: 1.5px dashed var(--field-b); display: grid; place-items: center; color: var(--t3); cursor: pointer; object-fit: cover; width: 100%; font-size: 12.5px; text-align: center; padding: 6px; }
.grade-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair); }
.sms-phone { background: #0E1626; border: 1px solid var(--glass-b); border-radius: 26px; padding: 18px; }
.sms-bubble { background: #26344F; border-radius: 18px 18px 18px 6px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-chips button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--field-b); background: transparent; color: var(--b); cursor: pointer; font-size: 12.5px; }
.loading { padding: 40px; text-align: center; color: var(--t3); }


/* Qo'shimchalar */
svg.ic-s { width: 14px; height: 14px; flex-shrink: 0; }
.line-note svg, .table .sub svg { width: 13px; height: 13px; vertical-align: -2px; }
.dd-anchor { position: relative; }
.input[readonly] { color: var(--t2); }
.rate-box:disabled { cursor: default; }
.photo-grid a { display: block; }
.ticket { width: 100%; color: inherit; }
label.btn { position: relative; }
.list-row.check { cursor: pointer; }
.table td .input.sm { min-width: 140px; }
.timeline b { font-weight: 600; }
.kpi .v.down { color: var(--r); }

@media (max-width: 1180px) {
  .pos { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .rail .nav { flex-direction: row; flex-wrap: wrap; } .rail .nav hr, .rail-foot .me span { display: none; }
  .main { padding: 18px 14px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .imei-list .r { grid-template-columns: 26px minmax(0, 1fr) 36px; } .imei-list .r > :nth-child(3), .imei-list .r > :nth-child(4), .imei-list .r > :nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Faza 2: smena, xarajat, elektron chek, bo'lib to'lash ---- */
.center { text-align: center; }
.receipt-qr { background: #fff; border-radius: 16px; padding: 12px; width: 210px; max-width: 100%; margin: 0 auto; }
.receipt-qr svg { display: block; width: 100%; height: auto; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; }
.shift-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.shift-grid .total-big { margin: 2px 0 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tiles button { min-height: 58px; padding: 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--t1); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; font: inherit; }
.tiles button:hover { border-color: rgba(255,255,255,.2); }
.tiles button.on { border-color: var(--paper); background: rgba(250,250,246,.08); box-shadow: inset 0 0 0 1px var(--paper); }
.tiles button b { font-weight: 600; font-size: 13.5px; }
.tiles button span { font-size: 12px; color: var(--t3); }
.inst { border: 1px solid var(--glass-b); border-radius: 14px; padding: 12px; margin-top: 12px; }
.inst-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.inst-cell { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--t1); font: inherit; text-align: left; cursor: pointer; }
.inst-cell:hover { border-color: var(--paper); }
.inst-cell b { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.term-row { gap: 8px; margin-bottom: 8px; }
.table tr.deleted td, .list-row.deleted { opacity: .55; }
.table tr.deleted td b, .list-row.deleted b { text-decoration: line-through; }
@media (max-width: 760px) {
  .done-grid, .shift-grid { grid-template-columns: 1fr; }
}

/* Majburiy maydon belgisi */
label.req::after, .label.req::after { content: ' *'; color: var(--r); font-weight: 700; }

/* Filial tanlash */
.branch-box { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-b); margin-bottom: 8px; }
.branch-box select { background: transparent; border: 0; color: var(--t1); font: 600 14px var(--ui); padding: 0; outline: none; cursor: pointer; }
.branch-box select option { background: #111C30; }

/* Kassa: mos aksessuar takliflari */
.suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.suggest .chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-b); background: var(--glass); color: var(--t1); font: 500 13px var(--ui); cursor: pointer; }
.suggest .chip:hover { border-color: var(--paper); }
.suggest .chip b { font-weight: 600; color: var(--t2); }
.suggest .chip svg { width: 14px; height: 14px; }
