/* static/boshqaruv/css/shell.css — yagona Boshqaruv qobig'i (2026-10-27).
   TZ/boshqaruv-qayta-qurish/TZ_BOSHQARUV_YAGONA_QOBIQ_2026_10_27.md. Faqat dizayn tokenlari (--hb-*): tun rejimi ham ishlaydi.
   Tuzilma: chap tomonda qidiruv + guruhlar; o'ngda guruh nomi, bo'lim tablari (yopishqoq EMAS) va OCHIQ bo'lim. Tor ekranda (≤900px)
   chap ustun tepaga ko'tariladi: qidiruv + gorizontal skroll qiluvchi guruhlar; bo'lim tablari ham bitta qatorda skroll qiladi. */
.bq-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
/* top:0 (12 emas): Chrome sticky `top`ni skroll konteynerining KONTENT chetidan o'lchaydi — 12px sahifa uzun bo'lganda sidebarni 12px pastga itib,
   qisqa sahifada 12px tepaga sakratardi. */
.bq-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; max-height: calc(100dvh - 96px); }
.bq-search { position: relative; }
.bq-search input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--hb-brd); border-radius: 10px;
  background: var(--hb-sfc); color: var(--hb-txt); font: inherit; }
.bq-search input:focus { outline: 2px solid color-mix(in srgb, var(--hb-acc) 40%, transparent); outline-offset: 0; }
.bq-hits { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; max-height: 60dvh; overflow-y: auto;
  padding: 6px; background: var(--hb-sfc); border: 1px solid var(--hb-brd); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.bq-hits[hidden] { display: none; }
.bq-hit { padding: 10px; border-radius: 8px; text-decoration: none; color: var(--hb-txt); display: flex; flex-direction: column; gap: 1px; }
.bq-hit small { color: var(--hb-mut); font-size: 12px; }
.bq-hit:hover, .bq-hit.is-first { background: color-mix(in srgb, var(--hb-acc) 12%, transparent); }
.bq-nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; padding-right: 2px; }
.bq-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; box-sizing: border-box; padding: 0 12px; border-radius: 10px;
  color: var(--hb-txt); text-decoration: none; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.bq-nav-item:hover { background: color-mix(in srgb, var(--hb-acc) 8%, transparent); }
.bq-nav-item.active { background: var(--hb-acc); color: var(--hb-acc-ink); }   /* aksent USTIDAGI matn = --hb-acc-ink (--hb-acc-text aksent rangli matn: yashil ustida yashil ko'rinmasdi) */
.bq-nav-n { font-size: 12px; font-weight: 700; opacity: .7; }
.bq-main { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bq-view { display: contents; }
.bq-title { margin: 0; font-size: 26px; font-weight: 800; color: var(--hb-txt); }
/* Bo'lim tablari: yopishqoq EMAS; har tab alohida bo'lim ochadi. Sig'masa bir qatorda gorizontal skroll (≤900px). */
.bq-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bq-tab { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hb-brd);
  background: var(--hb-sfc); color: var(--hb-txt); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; }
.bq-tab:hover { border-color: var(--hb-acc); }
.bq-tab.active { background: var(--hb-acc); border-color: var(--hb-acc); color: var(--hb-acc-ink); }
/* Tab yonidagi son (masalan «Javoblarni baholash» — kutilayotgan javoblar; HBBoshqaruv.setBadge). */
.bq-tab[data-bq-badge] { position: relative; padding-right: 40px; }
.bq-tab[data-bq-badge]::after { content: attr(data-bq-badge); position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: var(--hb-warn, #f59e0b); color: #fff; }
.bq-tab.active[data-bq-badge]::after { background: #fff; color: var(--hb-acc-ink); }
.bq-nav-item:focus-visible, .bq-tab:focus-visible { outline: 2px solid var(--hb-acc); outline-offset: 2px; }
/* Ochiq bo'lim: mezbon ilovaning o'z kartalari to'g'ridan-to'g'ri sahifa fonida turadi (karta ichida karta yo'q). */
.bq-sec { min-width: 0; scroll-margin-top: 12px; }
.bq-sec-body { min-height: 44px; min-width: 0; }
.bq-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0; }
/* Rekruting videolari o'z `.wrap` o'rami bilan keladi (yon bo'shlig'i bor) — qobiqdagi boshqa bo'limlar bilan bir xil chapdan boshlansin. */
.bq-sec-body > .wrap.rekruting-scope, .bq-sec-body .wrap.sset-scope { padding-left: 0; padding-right: 0; }   /* + yangilik muharriri (staff, qobiq ichida) */
/* Server sahifasi (host-cms.js) qobiqning o'zida chiziladi; yangi sahifa so'ralganda eskisi xiralashadi (yuklanguncha bosib bo'lmaydi). */
.bq-cms { transition: opacity .15s; }
.bq-cms.is-busy { opacity: .55; pointer-events: none; }
.bq-denied { padding: 40px 20px; text-align: center; color: var(--hb-mut); font-weight: 600; }

@media (max-width: 900px) {
  .bq-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bq-side { position: static; max-height: none; gap: 8px; }
  /* Guruhlar — bitta qatorda gorizontal skroll (chip), qidiruv ostida. */
  .bq-nav { flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .bq-nav::-webkit-scrollbar { display: none; }
  .bq-nav-item { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--hb-brd); border-radius: 999px; background: var(--hb-sfc);
    white-space: nowrap; scroll-snap-align: center; }
  .bq-nav-item.active { border-color: var(--hb-acc); }
  .bq-main { gap: 12px; }
  /* Guruh nomi faol chipda allaqachon ko'rinadi — joy tejash uchun vizual yashirin (ekran o'qigichlar uchun qoladi). */
  .bq-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* Bo'lim tablari — ikkinchi daraja: guruh chiplaridan farqli, ostki chiziqli matn-tab (bir qatorda skroll). */
  .bq-tabs { flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain; border-bottom: 1px solid var(--hb-brd); }
  .bq-tabs::-webkit-scrollbar { display: none; }
  .bq-tab { flex: none; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent;
    color: var(--hb-mut); scroll-snap-align: center; margin-bottom: -1px; }
  .bq-tab:hover { border-color: transparent; color: var(--hb-txt); }
  .bq-tab.active { background: transparent; border-bottom-color: var(--hb-acc); color: var(--hb-acc-text, var(--hb-txt)); font-weight: 800; }
  .bq-hits { max-height: 50dvh; }
}
