/* ===== Soliq ochiq ma'lumotlari — ilova dizayni (app.css) =====
   Sayt ranglari (to'q ko'k + oltin) saqlangan, lekin "ilova" uslubida: yon panel, kartochkalar, tungi rejim.
   Barcha ranglar o'zgaruvchilarda (CSS variables): tungi rejim faqat ularni almashtiradi. */
:root {
  --bg: #F4F6FA;          /* sahifa foni */
  --surface: #FFFFFF;     /* kartochka, panel */
  --surface-2: #F8F9FC;   /* jadval sarlavhasi, hover */
  --ink: #141B2D;         /* asosiy matn */
  --muted: #5B6476;       /* ikkinchi darajali matn */
  --line: #E3E6EC;
  --navy: #1B2A4A;
  --navy-deep: #111C33;
  --gold: #D9A43B;
  --gold-ink: #8A6417;    /* oltin rangli matn (oq fonda o'qiladigan) */
  --gold-soft: #F6EBD3;
  --primary: #1B2A4A;     /* asosiy tugma */
  --primary-ink: #FFFFFF;
  --bar: #2F4A7F;         /* diagramma ustunlari */
  --focus: #D9A43B;
  --shadow: 0 1px 2px rgba(17,28,51,.05), 0 8px 24px rgba(17,28,51,.06);
  --radius: 14px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}
/* Tungi rejim: tizim sozlamasi bo'yicha (agar foydalanuvchi o'zi "kunduzgi"ni tanlamagan bo'lsa) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1220; --surface: #141C2E; --surface-2: #1A2338; --ink: #E7EBF3; --muted: #9AA4B8; --line: #263049;
    --gold-ink: #E3B65A; --gold-soft: #3A2F18; --primary: #D9A43B; --primary-ink: #111C33; --bar: #7E9BD6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
/* Tungi rejim: foydalanuvchi tugma bilan tanlaganda */
:root[data-theme="dark"] {
  --bg: #0C1220; --surface: #141C2E; --surface-2: #1A2338; --ink: #E7EBF3; --muted: #9AA4B8; --line: #263049;
  --gold-ink: #E3B65A; --gold-soft: #3A2F18; --primary: #D9A43B; --primary-ink: #111C33; --bar: #7E9BD6;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.2; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* --- Tugmalar --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* --- 1. Yuqori panel --- */
.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 20px;
  background: var(--navy-deep); color: #fff; }
.appbar .icon-btn { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.brand-mark { width: 26px; height: 32px; stroke: none; }
.brand b { display: block; font: 600 18px/1.1 var(--serif); white-space: nowrap; }
.brand small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .32em; color: var(--gold); }
.app-search { flex: 1 1 auto; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #C9D0DD; }
.app-search:focus-within { background: rgba(255,255,255,.14); border-color: var(--gold); }
.app-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 500 15px var(--sans); }
.app-search input::placeholder { color: #9AA4B8; }
kbd { font: 700 12px var(--sans); color: #9AA4B8; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 1px 6px; }
.appbar-end { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.08); }
.seg button { border: 0; background: none; color: #9AA4B8; font: 800 12px var(--sans); letter-spacing: .05em; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }
.appbar .btn-primary { background: var(--gold); color: var(--navy-deep); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* --- 2. Yon panel --- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.side-tabs { display: flex; gap: 4px; padding: 14px 14px 10px; }
.side-tabs button { flex: 1; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 700 13.5px var(--sans); cursor: pointer; }
.side-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-list { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.side-group { margin: 14px 8px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-item { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); padding: 9px 10px; border-radius: 8px;
  font: 600 14px/1.35 var(--sans); cursor: pointer; text-decoration: none; }
.side-item:hover { background: var(--surface-2); }
.side-item[aria-current="true"] { background: var(--gold-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.side-item small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.side-empty { padding: 12px 10px; color: var(--muted); font-size: 14px; }
.side-foot { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.scrim { position: fixed; inset: 64px 0 0; background: rgba(8,12,22,.5); z-index: 29; }

/* --- 3. Asosiy qism --- */
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 0; display: flex; flex-direction: column; }
.view { flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; }

.home-hero { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(28px, 4vw, 48px); color: #fff;
  background: radial-gradient(ellipse 60% 80% at 90% 0%, rgba(217,164,59,.28), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.kicker { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.home-hero h1 { font: 600 clamp(28px, 3.6vw, 44px)/1.12 var(--serif); max-width: 20em; text-wrap: balance; }
.sub { margin: 14px 0 0; max-width: 46em; color: #C9D0DD; font-size: 16.5px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; }
.hero-stats b { display: block; font: 600 26px/1.1 var(--serif); }
.hero-stats span { font-size: 13.5px; color: #AEB7C8; }

.block-title { font: 600 22px/1.25 var(--serif); margin: 36px 0 16px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.block-head .block-title { margin-bottom: 16px; }

/* Asosiy datasetlar plitkalari */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; text-align: left; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.tile-ico svg { width: 22px; height: 22px; }
.tile b { font-size: 16px; line-height: 1.3; }
.tile span:last-child { color: var(--muted); font-size: 13.5px; }

/* Barcha datasetlar kartochkalari */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--muted); box-shadow: var(--shadow); }
.card b { font-size: 15.5px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card small { margin-top: auto; color: var(--muted); font-size: 12.5px; }
.card mark, .side-item mark, .grid mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.notice { margin: 14px 0; padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); font-size: 14.5px; }

/* --- 4. Dataset ekrani --- */
.ds-head { margin-bottom: 20px; }
.ds-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 10px; }
.ds-title-row h1 { font: 600 clamp(24px, 2.8vw, 34px)/1.2 var(--serif); flex: 1 1 380px; text-wrap: balance; }
.ds-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#favBtn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
#favBtn[aria-pressed="true"] svg { fill: currentColor; }
.ds-desc { margin: 10px 0 0; color: var(--muted); max-width: 70em; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kpi b { display: block; margin-top: 4px; font: 600 24px/1.2 var(--serif); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tb-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.tb-search:focus-within { border-color: var(--gold); }
.tb-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 500 15px var(--sans); }
.tb-filters { display: contents; }
.tb-filters select, .cols-pop select { height: 40px; max-width: 240px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface); color: var(--ink); font: 600 14px var(--sans); }
.sort-sel { display: none; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 14px var(--sans); }
.tb-filters select.is-set { border-color: var(--gold); background-color: var(--gold-soft); }
.cols-menu { position: relative; }
.cols-menu summary { list-style: none; }
.cols-menu summary::-webkit-details-marker { display: none; }
.cols-pop { position: absolute; right: 0; top: 46px; z-index: 20; width: 280px; max-height: 340px; overflow-y: auto; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cols-pop label { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.cols-pop label:hover { background: var(--surface-2); }
.cols-pop input { accent-color: var(--gold); width: 16px; height: 16px; }

.view-tabs { display: flex; gap: 4px; margin: 18px 0 12px; border-bottom: 1px solid var(--line); }
.view-tabs button { border: 0; background: none; padding: 10px 14px; font: 700 14.5px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--gold); }

/* Jadval: sarlavha qotib turadi (sticky), keng jadval faqat o'z ichida suriladi */
.table-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: opacity .2s; }
.is-loading .table-card, .is-loading .charts { opacity: .45; }
.table-scroll { overflow: auto; max-height: min(70vh, 760px); }
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; border-bottom: 1px solid var(--line); padding: 0; }
.grid th button { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 120px; padding: 11px 14px; background: none; border: 0; font: 800 12.5px/1.3 var(--sans); color: var(--muted); text-align: left; cursor: pointer; }
.grid th button::after { content: "↕"; opacity: .4; }
.grid th[aria-sort="ascending"] button, .grid th[aria-sort="descending"] button { color: var(--ink); }
.grid th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--gold-ink); }
.grid th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--gold-ink); }
.grid td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 380px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover td { background: var(--surface-2); }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid td.num { text-align: right; }
.grid td.is-empty { color: var(--muted); }
.skeleton td::after { content: ""; display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--surface-2), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); }
.pager > div { display: flex; gap: 8px; }

/* Tahlil: gorizontal ustunli diagrammalar (bar chart) */
.chart-note { margin: 0 0 14px; font-size: 14px; }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.chart { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chart h3 { margin: 0 0 14px; font-size: 15px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; align-items: center; padding: 3px 4px; border: 0; background: none; border-radius: 6px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.bar:hover { background: var(--surface-2); }
.bar-label { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-fill { height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--bar); }
.bar.is-active .bar-fill { background: var(--gold); }
.bar-val { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars-more { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.app-foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; max-width: 1280px; width: 100%; margin: 40px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* --- STIR bo'yicha tekshirish --- */
.tin-form { margin-top: 24px; max-width: 560px; }
.tin-form label { display: block; margin-bottom: 8px; font-weight: 700; color: #fff; }
.tin-row { display: flex; gap: 8px; }
.tin-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
  color: #fff; font: 700 18px var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tin-row input::placeholder { color: #8892A6; }
.tin-row input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.16); }
.tin-row .btn { height: 48px; padding: 0 22px; background: var(--gold); color: var(--navy-deep); }
.co-search { display: flex; gap: 8px; max-width: 480px; margin: 14px 0 20px; }
.co-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16px var(--sans); letter-spacing: .05em; }
.co-search input:focus { outline: none; border-color: var(--gold); }
.co-search .btn { height: 44px; }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.co-head h1 { font: 600 clamp(22px, 2.6vw, 32px)/1.2 var(--serif); }
.kicker-dark { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font: 800 12.5px var(--sans); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.is-good::before { background: #1F9D55; }
.badge.is-bad::before { background: #D64545; }
.co-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.co-sec { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.co-sec.is-wide { grid-column: 1 / -1; }
.co-sec h2 { font-size: 15px; margin: 0 0 8px; }
.co-sec dl { margin: 0; }
.co-sec dl > div { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.co-sec dl > div:first-child { border-top: 0; }
.co-sec dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.co-sec dd { margin: 0; overflow-wrap: anywhere; }
.co-sec dd small { display: block; color: var(--muted); font-size: 13px; }
.co-sec .co-item { padding: 10px 12px; margin-top: 8px; border-radius: 10px; background: var(--surface-2); }
.co-src { margin-top: 14px; font-size: 13px; }

/* --- 5. Tafsilotlar oynasi (o'ngdan chiqadigan "sheet") --- */
.sheet { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); padding: 0; border: 0; background: var(--surface); color: var(--ink);
  display: none; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.sheet[open] { display: flex; animation: slide .2s ease-out; }
.sheet::backdrop { background: rgba(8,12,22,.5); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 600 20px var(--serif); }
.fields { flex: 1; overflow-y: auto; margin: 0; padding: 8px 20px; }
.fields div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fields dt { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fields dd { margin: 0; overflow-wrap: anywhere; }
.fields .copy { align-self: start; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 7px; padding: 3px 9px; font: 700 12px var(--sans); cursor: pointer; }
.fields .copy:hover { color: var(--ink); border-color: var(--muted); }
.sheet-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.sheet-foot .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: 10px; background: var(--navy-deep); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }

/* ===== MOSLASHUVCHAN DIZAYN (responsive) ===== */
.only-sm { display: none; }
@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .only-sm { display: inline-grid; }
  .layout { grid-template-columns: 1fr; }
  /* Yon panel chapdan chiqadigan "tortma"ga (drawer) aylanadi */
  .sidebar { position: fixed; left: 0; top: 64px; bottom: 0; z-index: 30; width: min(320px, 86vw); transform: translateX(-100%); transition: transform .2s; }
  .sidebar.is-open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none !important; }
  .appbar { gap: 10px; padding: 0 12px; }
  .brand span { display: none; }
  .app-search { margin: 0; flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .app-search svg { display: none; }
  .appbar-end { gap: 6px; }
  .seg button { padding: 7px 5px; font-size: 11px; }
  .main { padding-top: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .ds-actions { width: 100%; }
  .ds-actions .btn { flex: 1 1 auto; }
  .sort-sel { display: block; }
  .tb-filters select, .tb-search, .cols-menu, .toolbar .btn, .sort-sel { flex: 1 1 100%; max-width: none; width: 100%; }
  .cols-pop { left: 0; right: auto; width: 100%; }
  .bar { grid-template-columns: 40% 1fr; }
  .co-sections { grid-template-columns: 1fr; }
  .co-sec dl > div { grid-template-columns: 1fr; gap: 2px; }
  .tin-row .btn { padding: 0 14px; }
  /* Telefonda jadval kartochkalarga aylanadi */
  .table-scroll { max-height: none; }
  .grid thead { display: none; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; }
  .grid tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .grid td { border: 0; padding: 4px 0; max-width: none; text-align: left !important; }
  .grid td.is-empty { display: none; }
  .grid td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
