/* ============================================================
   YANGI MODULLAR USLUBLARI (2026-09)
   vazifalar, qo'ng'iroqlar, kassa, audit, SMS, o'quvchi hisob-kitobi

   style.css dagi mavjud dizayn tizimi o'zgartirilmagan —
   bu fayl faqat yangi komponentlarni qo'shadi va o'sha
   CSS o'zgaruvchilaridan (--blue-500, --ink-400, ...) foydalanadi.
   ============================================================ */

/* ---- Umumiy yordamchi elementlar ---- */
.cell-sub { font-size: 11.5px; color: var(--ink-400); margin-top: 3px; line-height: 1.4; }
.cell-sub.ok { color: var(--green); }
.cell-sub.bad { color: var(--red); }
tr.row-late > td { background: #fff8f8; }

.table-note {
  padding: 12px 16px; font-size: 12px; color: var(--ink-400);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.55;
  border-top: 1px solid var(--line);
}
.table-note .icn { flex-shrink: 0; margin-top: 1px; }

.modal-note { font-size: 11.5px; color: var(--ink-400); margin-top: 7px; line-height: 1.55; }
.modal-note code { background: #eef0f6; border-radius: 4px; padding: 1px 5px; font-size: 11px; }

.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .modal-row { grid-template-columns: 1fr; } }

.json-box {
  background: #f7f9fd; border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  font-size: 11.5px; line-height: 1.55; max-height: 300px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.pill-blue { background: var(--blue-050); color: var(--blue-700); }
.pill-violet { background: #f1eaff; color: #7a4fd9; }

/* Qidiruvli tanlov (combo) — .field tashqarisida ham to'g'ri ko'rinsin */
.combo-sub { display: block; font-size: 11.5px; color: var(--ink-400); margin-top: 2px; }
.combo > input[type=text] {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #f7f9fd; color: var(--ink-900);
  font-size: 14px; outline: none; transition: .15s all;
}
.combo > input[type=text]:focus {
  border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.toolbar .combo > input[type=text] { height: 40px; font-size: 13px; background: #fbfbfd; border-radius: 10px; }

/* Ogohlantirish chizig'i */
.alert-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px;
  background: var(--amber-050); border: 1px solid var(--amber-400); border-radius: 10px;
  font-size: 13px; color: #7a4712;
}
.alert-bar .icn { flex-shrink: 0; color: var(--amber-500); }
.alert-bar span { flex: 1; }

/* ---- Bildirishnoma qo'ng'irog'i ---- */
.bell-wrap { position: relative; }
.bell-btn {
  position: relative; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-600);
  display: flex; align-items: center; justify-content: center; transition: .16s all;
}
.bell-btn:hover { background: #f2f6ff; color: var(--blue-600); border-color: var(--blue-400); }
.bell-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.popover {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 70; display: none; max-height: 420px; overflow-y: auto;
}
.popover.open { display: block; }
.pop-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-900);
}
.pop-empty { padding: 26px 16px; text-align: center; font-size: 13px; color: var(--ink-400); }
.pop-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pop-item:last-child { border-bottom: none; }
.pop-title { font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.pop-meta { font-size: 11.5px; color: var(--ink-400); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.pop-actions { display: flex; gap: 7px; margin-top: 9px; }

/* ---- Davom etayotgan qo'ng'iroq paneli ---- */
.qongiroq-bar {
  display: none; align-items: center; gap: 12px; padding: 11px 20px;
  background: linear-gradient(135deg, #e9f9f0, #f4fbf7); border-bottom: 1px solid #bfe6d2;
}
.qongiroq-bar.open { display: flex; }
.qb-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; animation: qbPulse 1.4s ease-in-out infinite;
}
@keyframes qbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.qb-info { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.qb-info b { font-size: 13.5px; color: #16663f; }
.qb-info span { font-size: 12px; color: var(--ink-600); font-variant-numeric: tabular-nums; }

/* ---- Bosh sahifadagi eslatma bloklari ---- */
.dash-vazifa { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.dv-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--blue-500); border-radius: 11px; box-shadow: var(--shadow);
}
.dv-item.late { border-left-color: var(--red); background: #fff8f8; }
.dv-item > .icn { color: var(--blue-600); flex-shrink: 0; }
.dv-item.late > .icn { color: var(--red); }
.dv-item > div { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.dv-item b { font-size: 13.5px; }
.dv-item span { font-size: 12px; color: var(--ink-400); }

/* ---- Kassa (kunlik tushum) ---- */
.kassa-today {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.kt-left { display: flex; align-items: center; gap: 13px; }
.kt-left > .icn { color: var(--amber-500); flex-shrink: 0; }
.kt-left > div { display: flex; flex-direction: column; line-height: 1.45; }
.kt-left b { font-size: 15px; font-family: 'Sora', sans-serif; }
.kt-left span { font-size: 12.5px; color: var(--ink-400); }
.kt-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tolov-smena {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 14px;
  max-width: 520px; background: var(--blue-050); border: 1px solid var(--blue-400);
  border-radius: 10px; font-size: 12.5px; color: var(--blue-700);
}
.tolov-smena.closed { background: #fdecec; border-color: #f0b4b4; color: #8c2f2f; }
.tolov-smena span { flex: 1; }

/* ---- O'quvchi hisob-kitobi ---- */
.hk-oquvchi {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hk-oquvchi > div { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.hk-oquvchi b { font-size: 15.5px; font-family: 'Sora', sans-serif; }
.hk-oquvchi span { font-size: 12.5px; color: var(--ink-400); }

.hk-block { margin-bottom: 14px; }
.hk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.hk-head b { font-size: 15px; font-family: 'Sora', sans-serif; margin-right: 8px; }
.hk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.hk-cell {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 13px;
  background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px;
}
.hk-cell span { font-size: 11.5px; color: var(--ink-400); font-weight: 600; }
.hk-cell b { font-size: 15px; font-family: 'Sora', sans-serif; }
.hk-cell i { font-size: 11px; color: var(--ink-400); font-style: normal; }
.hk-note {
  display: flex; align-items: flex-start; gap: 8px; padding: 11px 14px; margin-bottom: 14px;
  background: var(--amber-050); border: 1px solid var(--amber-400); border-radius: 10px;
  font-size: 12.5px; color: #7a4712; line-height: 1.6;
}
.hk-note .icn { flex-shrink: 0; margin-top: 2px; color: var(--amber-500); }
.hk-tolovlar { margin-bottom: 14px; }
.hk-empty { padding: 16px; text-align: center; font-size: 12.5px; color: var(--ink-400); background: #f7f9fd; border-radius: 10px; }
.hk-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- SMS ---- */
.sms-matn { font-size: 12.5px; color: var(--ink-600); line-height: 1.55; white-space: pre-wrap; max-width: 420px; }

/* ---- Sozlamalar qulfi ---- */
.soz-lock {
  display: flex; align-items: center; gap: 11px; padding: 16px; background: #f7f9fd;
  border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-600);
}
.soz-lock .icn { color: var(--ink-400); flex-shrink: 0; }

/* ---- Foydalanish qulayligi (a11y) ---- */
.btn:focus-visible,
.vt-btn:focus-visible,
.seg-btn:focus-visible,
.bell-btn:focus-visible,
.nav-item:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }

.combo-item, .nav-item, .og-card, .og-group-head { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   ALFA ADMIN — MARKAZLARNI BOSHQARISH
   ============================================================ */

/* ---- Yon menyudagi markaz belgisi ---- */
.markaz-badge { padding: 0 16px 12px; }
.mb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  width: 100%; padding: 8px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  color: #dfe3f0; font-size: 12.2px; font-weight: 600; letter-spacing: .01em;
}
.mb-chip .icn { color: var(--amber-400); flex-shrink: 0; }
.mb-chip b { color: #fff; font-weight: 800; margin-left: auto; }
.mb-alfa {
  background: linear-gradient(135deg, rgba(224, 153, 62, .22), rgba(224, 153, 62, .08));
  border-color: rgba(224, 153, 62, .35); color: var(--amber-400);
}

/* ---- Markaz raqami ---- */
.markaz-nomer {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0 9px;
  border-radius: 8px; background: var(--amber-050); border: 1px solid #f1dcc0;
  color: #9a6320; font-weight: 800; font-size: 13px;
}

/* ---- Statistika kartasidagi izoh qatori ---- */
.stat-card .sc-sub { margin-top: 3px; font-size: 11.4px; color: var(--ink-400); font-weight: 600; }

/* ---- Telefon havolasi ---- */
.tel-link { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.tel-link:hover { text-decoration: underline; }

/* ---- Modal ichidagi izoh bloklari ---- */
.alfa-modal-note {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; margin-bottom: 14px;
  background: #f6f8fd; border: 1px solid #e3e9f6; border-radius: 10px;
  font-size: 12.7px; line-height: 1.55; color: var(--ink-600);
}
.alfa-modal-note .icn { color: var(--blue-500); flex-shrink: 0; margin-top: 1px; }
.alfa-modal-note b { color: var(--ink-900); }
.alfa-modal-note-amber { background: var(--amber-050); border-color: #f1dcc0; }
.alfa-modal-note-amber .icn { color: var(--amber-500); }
.alfa-modal-note-red { background: #fdf0f0; border-color: #f4d4d4; }
.alfa-modal-note-red .icn { color: var(--red); }

/* ---- Modal ichidagi bo'lim ajratkichi ---- */
.alfa-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px; color: var(--ink-400);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
}
.alfa-sep span { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.alfa-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- Parol maydoni + yangilash tugmasi ---- */
.parol-input { display: flex; gap: 6px; align-items: stretch; }
.parol-input input { flex: 1; min-width: 0; }
.parol-input .btn { flex-shrink: 0; padding: 0 11px; }

/* ---- Yaratilgan hisob ma'lumoti ---- */
.hisob-ok {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 15px; margin-bottom: 14px; border-radius: 11px;
  background: linear-gradient(135deg, #eaf7f1, #f5fbf8); border: 1px solid #cfe9dc;
}
.hisob-ok b { font-size: 15px; font-family: 'Sora', sans-serif; }
.hisob-ok-ic {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
}
.hisob-ok-neutral { background: linear-gradient(135deg, #eef3fd, #f7faff); border-color: #dbe5f7; }
.hisob-ok-neutral .hisob-ok-ic { background: var(--blue-600); }

.hisob-box { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.hisob-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfbfd;
}
.hisob-row:last-child { border-bottom: none; }
.hisob-label {
  width: 78px; flex-shrink: 0;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-400);
}
.hisob-val { font-size: 14px; font-weight: 700; color: var(--ink-900); word-break: break-all; }
.hisob-kod {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 15.5px; letter-spacing: .04em;
  background: #fff; border: 1px dashed #c9d2e6; border-radius: 7px; padding: 4px 10px;
  user-select: all;
}

/* ---- Markazni o'chirish oynasi ---- */
.ochir-stat { display: flex; gap: 10px; margin-bottom: 14px; }
.ochir-stat > div {
  flex: 1; text-align: center; padding: 12px 8px;
  background: #fbfbfd; border: 1px solid var(--line); border-radius: 10px;
}
.ochir-stat b { display: block; font-size: 22px; font-family: 'Sora', sans-serif; color: var(--red); }
.ochir-stat span { font-size: 11.5px; color: var(--ink-600); font-weight: 600; }

/* ---- Markaz xodimlari ro'yxati ---- */
.xodim-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.xodim-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff;
}
.xodim-row:last-child { border-bottom: none; }
.xodim-av {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: #fff; font-weight: 800; font-size: 14px;
}
.xodim-info { flex: 1; min-width: 0; }
.xodim-info b { font-size: 13.6px; }
.xodim-info code {
  font-family: ui-monospace, Consolas, monospace;
  background: #f1f3f9; border-radius: 5px; padding: 1px 5px; font-size: 11.8px;
}
.xodim-rol { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.xodim-bosh { padding: 22px; text-align: center; color: var(--ink-400); font-size: 13px; }

/* ---- Alfa rejimda yon menyu urg'usi ---- */
.alfa-rejim .sidebar { background: linear-gradient(180deg, var(--navy-950), #0a0f1c); }
.alfa-rejim .user-chip .info span { color: var(--amber-400); font-weight: 700; }

/* ---- Kichik ekran ---- */
@media (max-width: 760px) {
  .hisob-label { width: 62px; font-size: 10.5px; }
  .hisob-kod { font-size: 14px; }
  .ochir-stat { flex-direction: column; }
  .xodim-rol { align-items: flex-start; }
}

/* ---- To'liq qizil tugma (xavfli amalni tasdiqlash) ---- */
.btn-danger { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-danger:hover { background: #c94f4f; border-color: #c94f4f; }

/* ============================================================
   QABUL VA QABUL HISOBOTI BO'LIMLARI (TEKIS VA BIR XIL DIZAYN)
   ============================================================ */

/* 5 ta statistika kartasi — har doim teng tekis taqsimlanadi */
.qabul-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.qabul-stats .stat-card {
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .15s all;
  min-height: 108px;
}
.qabul-stats .stat-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-2px);
}
.qabul-stats .stat-card.active-filter {
  border-color: var(--blue-600);
  background: var(--blue-050);
  box-shadow: 0 0 0 2px var(--blue-500);
}

@media (max-width: 1200px) {
  .qabul-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .qabul-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .qabul-stats { grid-template-columns: 1fr; }
}

/* Qabul hisoboti statistikasi — 6 ta kartochka teng tekis */
#qhStats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1360px) {
  #qhStats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  #qhStats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #qhStats { grid-template-columns: 1fr; }
}

/* Qabul toolbar — barcha boshqaruv elementlari tekislangan */
.qabul-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.qabul-toolbar .search-box {
  flex: 1.5;
  min-width: 230px;
}
.qabul-toolbar .filter-select {
  flex: 1;
  min-width: 160px;
}
.qabul-toolbar .filter-select select,
.qabul-toolbar .filter-select input {
  width: 100%;
}

/* Qabul jadvali — aniq ustunlar va bir xil balandlikdagi qatorlar */
.qabul-tbl {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}
.qabul-tbl th,
.qabul-tbl td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 13.5px;
  box-sizing: border-box;
}
.qabul-tbl thead th {
  white-space: nowrap;
}
.qabul-tbl tbody tr {
  height: 60px;
}
.qabul-tbl tbody tr:hover {
  background: #fbfbfe;
}

.cell-fio {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fio-name {
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
}
.manba-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tag-blue {
  background: var(--blue-050);
  color: var(--blue-700);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cell-izoh {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-600);
  font-size: 12.5px;
}
.cell-holat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

/* Qabul jadvali amallar bloki — vertikal va gorizontal 100% tekis */
.qabul-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.btn-reg {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.reg-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e7f7ef;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}
.icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.btn-icon-only {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.btn-icon-placeholder {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-block;
}
