/* NPUU LMS — yagona uslublar fayli (login.css alohida).
   Tartib: asos → komponentlar → sahifaga xos → sidebar va dashboard. */

/* ==================== Asos: tokenlar, reset, elementlar, ilova qobig‘i ==================== */
/* ==========================================================
   FOUNDATION: tokens, reset, bare elements, app shell,
   form controls and tables inside .content
   ========================================================== */
:root{
  --ui-ink:#0b1f3a;--ui-ink-2:#132b4d;--ui-accent:#2f6fed;--ui-accent-hi:#4a84f7;--ui-accent-soft:#eaf1fe;
  --ui-text:#13233a;--ui-muted:#5d6b80;--ui-line:#e3e8ef;--ui-bg:#f4f6f9;--ui-card:#fff;
  --ui-good:#16875a;--ui-warn:#c98a14;
  --ui-field:#fff;--ui-soft:#fafbfd;--ui-hover:#f7f9fc;--ui-track:#edf1f6;--ui-accent-soft-2:#dde8fd;
  --ui-line-soft:#eef1f5;--ui-line-strong:#d5dde8;--ui-text-2:#3d4b60;--ui-icon:#9fb0c7;
  --ui-good-soft:#e3f4ec;--ui-good-line:#c5e8d6;--ui-good-text:#0f6b46;
  --ui-bad:#a1283b;--ui-bad-soft:#fdecee;--ui-bad-line:#f6ccd3;
  --ui-warn-soft:#fff8e8;--ui-warn-line:#f1d49a;--ui-warn-text:#8a5f0a;--ui-warn-strong:#523805;
  --ui-font:'Onest',system-ui,-apple-system,'Segoe UI',sans-serif;
  --ui-radius:14px;--ui-side:252px;
}

*{box-sizing:border-box}
body{margin:0;background:var(--ui-bg);color:var(--ui-text);font:400 14.5px/1.5 var(--ui-font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
/* Base control look (hidden inputs keep it); visible controls in .content are restyled below. */
input,select{background:var(--ui-field);border:1px solid var(--ui-line-strong);border-radius:9px;padding:10px 12px;color:var(--ui-text);outline:none;min-width:0}
input[type=number]{width:112px}

/* ---------- app shell ---------- */
.app{display:grid;grid-template-columns:var(--ui-side) minmax(0,1fr);min-height:100vh}
.main{min-width:0}
.content{max-width:1680px;margin:0 auto;padding:32px clamp(20px,2.4vw,48px) 56px}
.content.content-wide{max-width:none}
.messages{display:grid;gap:8px;max-width:1680px;margin:0;padding:24px 40px 0}

/* ---------- content typography ---------- */
.content h1,.content h2,.content h3{font-family:var(--ui-font);letter-spacing:-.01em;color:var(--ui-text)}
.content label{color:var(--ui-text-2);font-size:13px;font-weight:500}

/* ---------- form controls ---------- */
/* The :not() chain is kept on purpose: (0,4,1) must keep beating
   .allocation-table td input[type=number] (0,2,2), exactly as today. */
.content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.content select{height:40px;padding:0 12px;border:1px solid var(--ui-line-strong);border-radius:10px;background:var(--ui-field);color:var(--ui-text);font:400 14px var(--ui-font);box-shadow:none}
/* Same reach as today: the ring shows on focused selects; focused text inputs
   keep their resting border (the rule above out-ranks this one) and get outline:none. */
.content input:focus,
.content select:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18);outline:none}

/* ---------- tables ---------- */
.content table{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.content th{padding:11px 12px;background:var(--ui-hover);color:var(--ui-muted);font:600 12px/1.35 var(--ui-font);letter-spacing:0;text-align:left;white-space:nowrap;border-bottom:1px solid var(--ui-line)}
.content td{padding:11px 12px;border-bottom:1px solid var(--ui-line-soft);color:var(--ui-text);font-size:13px;vertical-align:middle;font-variant-numeric:tabular-nums}
.content tbody tr:last-child td{border-bottom:0}
td strong{color:var(--ui-text)}
td small{display:block;margin-top:3px;color:var(--ui-muted);font-size:11px}
td input{max-width:120px}
td select{max-width:270px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .app{display:block}
  .content{padding:20px 16px 40px}
  .messages{padding:16px 16px 0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* ==================== Umumiy komponentlar: sarlavhalar, kartalar, ko‘rsatkichlar, tablar, formalar, tugmalar ==================== */
/* ===================== components ===================== */

/* ---- page heading ---- */
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 24px}
.page-heading h1{margin:2px 0 4px;font:600 26px/1.25 var(--ui-font)}
.page-heading p{margin:0;color:var(--ui-muted);font-size:13px}
.heading-actions{display:flex;align-items:center;gap:10px}
.eyebrow{display:block;margin:0 0 2px;color:var(--ui-muted);font:500 12.5px/1.4 var(--ui-font);letter-spacing:0}
.page-heading .eyebrow,.section-heading .eyebrow{display:none}
.back{display:inline-block;margin-bottom:8px;color:var(--ui-accent);font-size:13.5px;font-weight:500;text-decoration:none}
.back:hover{text-decoration:underline}

/* ---- section headings ---- */
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
/* loose h2 in a card (action card, teacher_form password block); section-heading h2 below overrides it */
.card h2{margin:0 0 5px;font:800 17px var(--ui-font)}
.section-heading h2{margin:0;font:600 16px/1.35 var(--ui-font)}
.section-heading p{margin:3px 0 0;color:var(--ui-muted);font-size:13px}
.section-intro{display:flex;align-items:center;gap:12px;margin:8px 0 14px}
.section-intro h2{margin:0;font:600 18px/1.3 var(--ui-font)}
.section-intro p{margin:2px 0 0;color:var(--ui-muted);font-size:13px}
.section-number{display:none}

/* ---- section tabs ---- */
.section-tabs{display:flex;flex-wrap:wrap;gap:4px;width:fit-content;max-width:100%;margin:0 0 20px;padding:4px;overflow:auto;scrollbar-width:thin;background:var(--ui-track);border-bottom:1px solid var(--ui-line-strong);border-radius:12px}
.section-tabs a{padding:8px 16px;border-radius:9px;color:var(--ui-text-2);font:500 13.5px var(--ui-font);text-align:center;white-space:nowrap;transition:background-color .15s,color .15s}
.section-tabs a:hover{background:rgba(255,255,255,.6);color:var(--ui-text)}
/* (0,3,1): must outrank the (0,3,0) focus rule below, which clears box-shadow */
.content .section-tabs a.active{background:var(--ui-card);color:var(--ui-text);box-shadow:0 1px 3px rgba(11,31,58,.12)}

/* ---- cards ---- */
.card{margin-bottom:16px;padding:20px 22px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
.card.narrow{max-width:850px}

/* ---- stats ---- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:0 0 16px}
.stat{position:relative;overflow:hidden;min-height:0;padding:18px 20px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
/* department cards keep their padding on phones (it outranks the <=560px rule below) */
.department-stats .stat{padding:18px 20px;transition:border-color .15s}
.stat span,.stat small{display:block;color:var(--ui-muted)}
.stat span{font-size:13px;font-weight:500}
.stat small{font-size:12.5px}
.stat strong{display:block;margin:6px 0 2px;color:var(--ui-text);font:600 28px/1.2 var(--ui-font);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.stat .status-text{font-size:22px}
.stat .metric-art{display:none}
.stat.accent{background:linear-gradient(135deg,var(--ui-ink),#163763);border-color:transparent}
.stat.accent span,.stat.accent small{color:#a9bad2}
.stat.accent strong{color:#fff}
/* current look: the dark department card shows the light line colour as a border on hover */
.department-stats .stat.accent:hover{border-color:var(--ui-line)}

/* ---- filters ---- */
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}
.filters label{display:grid;gap:5px}
.filters input{flex:1 1 260px}

/* ---- tables ---- */
.table-scroll{overflow:auto;border:1px solid var(--ui-line);border-radius:12px}
.table-scroll table{min-width:760px}
/* (0,3,3): row hover must also repaint the sticky first cell of .summary-matrix */
.content .table-scroll tbody tr:hover td{background:var(--ui-hover)}

/* ---- forms ---- */
.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.inline-form.compact{flex-wrap:nowrap}
.inline-form.compact input{min-width:150px}
.grid-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.grid-form label{display:grid;gap:7px}
/* .content keeps this above the base input[type=number] width */
.content .grid-form input,.content .grid-form select{width:100%}
.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:7px}

/* ---- buttons ---- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-card);color:var(--ui-text);font:500 14px var(--ui-font);white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.button:hover:not(:disabled){background:var(--ui-hover);border-color:var(--ui-line-strong)}
.button:disabled{opacity:.5}
.button.primary{background:var(--ui-accent);border-color:var(--ui-accent);color:#fff}
.button.primary:hover:not(:disabled){background:var(--ui-accent-hi);border-color:var(--ui-accent-hi)}
.button.small{height:32px;padding:0 12px;border-radius:8px;font-size:13px}
/* (0,3,0): outline + no shadow on focused links/buttons in content, as today; also neutralises any leftover ring rule */
.content :is(a,.button):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px;box-shadow:none}
/* today inputs/selects keep outline-offset:2px on focus (their outline itself is removed by the foundation focus rule) */
.content input:focus-visible,.content select:focus-visible{outline-offset:2px}

/* ---- pills ---- */
.pill{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:99px;background:var(--ui-track);color:var(--ui-text-2);font:600 12px var(--ui-font);letter-spacing:0}
.pill.good{background:var(--ui-good-soft);color:var(--ui-good)}
.pill.warn{background:var(--ui-warn-soft);color:var(--ui-warn-text)}
.compare-strip span:not(.pill){color:var(--ui-muted);font-size:12px}

/* ---- empty state ---- */
.empty{padding:36px;border:1px dashed var(--ui-line-strong);border-radius:var(--ui-radius);background:var(--ui-card);color:var(--ui-muted);text-align:center}

/* ---- flash messages ---- */
.messages{display:grid;gap:8px;max-width:1680px;padding:24px 40px 0}
.message{padding:12px 16px;border:1px solid var(--ui-good-line);border-radius:10px;background:var(--ui-good-soft);color:var(--ui-good-text);font-size:14px}
.message+.message{margin-top:8px}
.message.error{background:var(--ui-bad-soft);border-color:var(--ui-bad-line);color:var(--ui-bad)}

/* ---- responsive ---- */
@media (max-width:1000px){
  .grid-form{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .page-heading{flex-direction:column;align-items:flex-start}
  .section-tabs{width:auto;flex-wrap:nowrap}
  .messages{padding:16px 16px 0}
}
@media (max-width:640px){
  .page-heading>:last-child:not(.filters){margin-top:14px}
  .heading-actions{flex-wrap:wrap}
  .filters input{width:100%}
  .grid-form{grid-template-columns:1fr}
  .section-tabs{border-bottom:0}
}
@media (max-width:560px){
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:14px}
  .stat strong{font-size:22px}
  .card{padding:16px}
}
@media (prefers-reduced-motion:reduce){
  .button,.section-tabs a,.department-stats .stat{transition:none}
}


/* ==================== Sahifaga xos bloklar: katalog, o‘qituvchi kartalari, kabinet, hisobot jadvallari ==================== */
/* ==========================================================================
   PAGE-SPECIFIC BLOCKS
   directory, pagination, teacher cards, action card, compare strip,
   detail list / KPI line / progress, chips, notes, summary + allocation tables
   ========================================================================== */

/* ---------- Kafedralar katalogi ---------- */
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.directory-card{display:flex;flex-direction:column;min-height:177px;padding:18px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius);transition:border-color .15s,box-shadow .15s}
.directory-card:hover,.teacher-card:hover{border-color:var(--ui-line-strong);box-shadow:0 8px 20px -14px rgba(11,31,58,.4)}
.directory-card-head{display:flex;justify-content:space-between;align-items:center}
.directory-icon{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:18px}
.directory-card h2{margin:15px 0 5px;font:800 15px/1.3 var(--ui-font)}
.directory-card p{margin:0;color:var(--ui-muted);font-size:11px}
.directory-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:11px;border-top:1px solid var(--ui-line);font-size:12px}
.directory-card-foot b{color:var(--ui-accent);font-weight:500}

.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;color:var(--ui-muted);font-size:12px}
.pagination>div{display:flex;gap:8px}

/* ---------- O'qituvchilar ---------- */
.teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.teacher-card{display:flex;align-items:center;gap:11px;padding:13px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius);transition:border-color .15s,box-shadow .15s}
.teacher-avatar{flex:none;width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent);font-weight:800;text-transform:uppercase}
.teacher-card h3{margin:0 0 4px;font:800 12px var(--ui-font)}
.teacher-card p,.teacher-card small{margin:0;color:var(--ui-muted);font-size:11px}
.teacher-card>div:nth-child(2){flex:1;min-width:0}
.teacher-actions{flex:none;display:flex;align-items:center;gap:4px;margin-left:auto}
.teacher-open{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid var(--ui-line);border-radius:8px;color:var(--ui-accent);font-size:13px;font-weight:500;transition:background .15s,border-color .15s}
.teacher-open:hover{background:var(--ui-accent-soft);border-color:var(--ui-accent)}
.teacher-edit{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:var(--ui-muted);transition:background .15s,color .15s}
.teacher-edit:hover{background:var(--ui-hover);color:var(--ui-accent)}
.teacher-edit svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Yakuniy qadam kartasi (always also .card) ---------- */
.action-card{display:flex;justify-content:space-between;align-items:center;gap:20px}
.action-card h2{margin:0 0 5px;font:800 17px var(--ui-font)}
.action-card p{margin:0;color:var(--ui-muted)}

/* ---------- Reja va manba 5-shakl solishtiruvi ---------- */
.compare-strip{display:flex;align-items:center;gap:24px;margin-bottom:16px;padding:19px 24px;background:var(--ui-good-soft);border:1px solid var(--ui-good-line);border-radius:15px}
.compare-strip div{display:flex;align-items:baseline;gap:7px}
.compare-strip span:not(.pill){color:var(--ui-muted);font-size:12px}
.compare-strip strong{font:800 20px var(--ui-font)}
.compare-strip small{color:var(--ui-muted)}
.compare-strip>span.compare-arrow{color:#0c9b82;font-size:22px}

/* ---------- Kabinet: yuklama ro'yxati va KPI ---------- */
.two-column{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.detail-list{display:grid;gap:9px}
.detail-list>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--ui-line)}
.detail-list span{color:var(--ui-muted)}
.kpi-line{display:flex;justify-content:space-between;margin:18px 0 7px}
.progress{height:9px;border-radius:99px;background:var(--ui-track);overflow:hidden}
.progress span{display:block;height:100%;border-radius:99px;background:var(--ui-accent)}

/* ---------- Lavozim chiplari ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.chip{padding:8px 11px;background:var(--ui-accent-soft);border:1px solid var(--ui-line-strong);border-radius:9px;color:var(--ui-text-2)}
.chip strong{margin-left:8px;color:var(--ui-accent)}

/* ---------- Izohlar ---------- */
.source-note,.notice{margin:12px 0 0;color:var(--ui-muted);font-size:13px}
.source-note{line-height:1.6}
.notice{border-radius:11px}

/* ---------- Jadval ichidagi havola ---------- */
.text-link{color:var(--ui-text);font-weight:800;font-size:12px}
.text-link:hover strong{color:var(--ui-accent)}

/* ---------- Umumiy jadval (summary-matrix) ---------- */
.summary-matrix{font-variant-numeric:tabular-nums}
.summary-matrix td{white-space:nowrap;text-align:right}
.summary-matrix td:first-child,.summary-matrix td:nth-child(2){text-align:left}
.summary-matrix thead tr:first-child th{text-align:center}
.summary-matrix th:first-child,.summary-matrix td:first-child{position:sticky;left:0;z-index:1;min-width:230px}
.summary-matrix thead th:first-child{z-index:2}
.summary-matrix td:first-child{background:var(--ui-card)}
.summary-matrix tbody tr:hover td:first-child{background:var(--ui-hover)}
.table-scroll .summary-matrix tfoot th{background:var(--ui-hover);color:var(--ui-text);font-size:13px;border-top:1px solid var(--ui-line-strong);border-bottom:0}
.table-scroll .summary-matrix tfoot th{white-space:nowrap;text-align:right}
.table-scroll .summary-matrix tfoot th:first-child,.table-scroll .summary-matrix tfoot th:nth-child(2){text-align:left}

/* ---------- Soat taqsimoti (allocation-table) ---------- */
.allocation-table th:first-child,.allocation-table td:first-child{min-width:225px}
.allocation-table td input[type=number]{width:81px}

/* ---------- moslashuvchan ---------- */
@media (max-width:1100px){
  .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .directory-grid,.teacher-grid,.two-column{grid-template-columns:1fr}
  .directory-card{min-height:146px}
  .compare-strip{flex-wrap:wrap;gap:9px;padding:16px}
  .compare-strip div{display:grid;gap:1px}
  .action-card{display:block}
  .action-card form{margin-top:16px}
}
@media (prefers-reduced-motion:reduce){
  .directory-card,.teacher-card{transition:none}
}


/* ==================== Sidebar va bosh sahifa (dashboard) ==================== */
/* ==========================================================================
   Sidebar + dashboard
   ========================================================================== */

/* ---------- sidebar ---------- */
.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--ui-ink);color:#c6d2e3;padding:22px 14px 16px}
.side-brand{display:flex;align-items:center;gap:11px;padding:4px 10px 22px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;text-decoration:none}
.side-brand img{width:34px;height:34px;object-fit:contain}
.side-brand strong{display:block;font-size:15px;font-weight:600;letter-spacing:.01em}
.side-brand small{display:block;font-size:12px;color:#8798b0}
.side-nav{display:flex;flex-direction:column;gap:2px;padding-top:6px}
.side-link{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:#b7c4d6;text-decoration:none;font-size:14px;font-weight:500;transition:background .15s,color .15s}
.side-link svg,.side-logout svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.side-link:hover{background:rgba(255,255,255,.06);color:#fff}
.side-link.active{background:rgba(47,111,237,.2);color:#fff}
.side-link.active::before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--ui-accent-hi)}
.side-link:focus-visible,.side-logout:focus-visible,.side-brand:focus-visible{outline:2px solid var(--ui-accent-hi);outline-offset:2px}
.side-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 8px 2px;border-top:1px solid rgba(255,255,255,.08)}
.side-avatar{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--ui-ink-2);color:#fff;font-weight:600;font-size:14px}
.side-who{min-width:0;flex:1}
.side-who strong{display:block;color:#fff;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-who small{display:block;color:#8798b0;font-size:12px}
.side-user form{margin:0}
.side-logout{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#8798b0;cursor:pointer}
.side-logout:hover{background:rgba(255,255,255,.07);color:#fff}

/* ---------- page head, buttons, links ---------- */
.pg-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.pg-head h1{margin:0;font-size:26px;font-weight:600;letter-spacing:-.01em;color:var(--ui-text)}
.pg-head p{margin:4px 0 0;color:var(--ui-muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--ui-line);background:var(--ui-card);color:var(--ui-text);font-weight:500;font-size:14px;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.btn:hover{border-color:var(--ui-line-strong)}
.btn-primary{background:var(--ui-accent);border-color:var(--ui-accent);color:#fff}
.btn-primary:hover{background:var(--ui-accent-hi);border-color:var(--ui-accent-hi)}
.link{color:var(--ui-accent);font-weight:500;font-size:13.5px;text-decoration:none}
.link:hover{text-decoration:underline}
/* All four are anchors inside .content: today the generic content-link focus ring wins over .ov-item's own rule. */
.btn:focus-visible,.link:focus-visible,.rank a:focus-visible,.ov-item:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.muted{color:var(--ui-muted);font-size:13px}

/* ---------- overview band ---------- */
.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px;border-radius:18px;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0%,rgba(47,111,237,.38) 0%,rgba(47,111,237,0) 55%),linear-gradient(135deg,var(--ui-ink) 0%,#132f57 100%);
  box-shadow:0 18px 40px -24px rgba(11,31,58,.6)}
.ov-item{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:14px;padding:24px 26px;color:#fff;text-decoration:none;transition:background .15s}
.ov-item+.ov-item::before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:1px;background:rgba(255,255,255,.12)}
.ov-item:hover{background:rgba(255,255,255,.05)}
.ov-icon{grid-row:1/4;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#bcd2ff}
.ov-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ov-label{color:#a9bad2;font-size:13px;font-weight:500}
.ov-value{font-size:32px;font-weight:600;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums;margin:4px 0 2px}
.ov-sub{color:#8ea3c0;font-size:12.5px}

/* ---------- panels ---------- */
.panel{background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius);padding:20px 22px;margin-bottom:16px}
.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.panel-head h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em;color:var(--ui-text)}
.db-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px}
.db-grid>.panel{margin-bottom:0}
.empty-note{color:var(--ui-muted);margin:4px 0;list-style:none}

/* activity mix + bar rows */
.mix{display:flex;gap:3px;height:12px;margin:0 0 14px;border-radius:99px;overflow:hidden}
.mix i{min-width:4px}
.swatch{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:10px;vertical-align:1px}
.bar-row{display:grid;grid-template-columns:minmax(120px,190px) minmax(0,1fr) auto;align-items:center;gap:14px;padding:9px 0}
.bar-row+.bar-row{border-top:1px solid var(--ui-line-soft)}
.bar-label,.rank-name{font-size:14px;color:var(--ui-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{height:8px;border-radius:99px;background:var(--ui-track);overflow:hidden}
.bar-track i{display:block;height:100%;border-radius:inherit;background:var(--ui-accent)}
.bar-value{font-variant-numeric:tabular-nums;font-weight:600;font-size:14px;text-align:right;min-width:92px}
.bar-value small{margin-left:6px;font-weight:400;color:var(--ui-muted);font-size:12.5px}

/* plan status ring */
.panel-status{display:flex;flex-direction:column}
.status{flex:1;display:flex;align-items:center;justify-content:center;gap:clamp(24px,4vw,56px);padding:8px 0}
.ring{--a:0;--b:0;width:156px;height:156px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(closest-side,var(--ui-card) 74%,transparent 75%),
    conic-gradient(var(--ui-good) 0 calc(var(--a)*1%),#8fa3c0 0 calc(var(--b)*1%),var(--ui-track) 0)}
.ring span{text-align:center;line-height:1.15}
.ring strong{display:block;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.ring small{color:var(--ui-muted);font-size:12px}
.ring .ring-of{font-size:15px;font-weight:500;margin-left:1px}
.status-list{margin:0;display:grid;gap:12px;flex:0 1 240px}
.status-list div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.status-list dt{display:flex;align-items:center;gap:9px;color:var(--ui-muted);font-size:14px}
.status-list dd{margin:0;font-weight:600;font-size:16px;font-variant-numeric:tabular-nums}
.dot{width:9px;height:9px;border-radius:50%}
.dot-done{background:var(--ui-good)}
.dot-draft{background:#8fa3c0}
.dot-none{background:var(--ui-track);border:1px solid var(--ui-line-strong)}

/* department ranking */
.rank{list-style:none;margin:0;padding:0}
.rank li+li{border-top:1px solid var(--ui-line-soft)}
.rank a{display:grid;grid-template-columns:26px minmax(120px,280px) minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px 6px;margin:0 -6px;border-radius:8px;color:inherit;text-decoration:none}
.rank a:hover{background:var(--ui-hover)}
.rank a:hover .rank-name{color:var(--ui-accent)}
.rank-no{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent);font-weight:600;font-size:12.5px}

/* system readiness */
.ready{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.ready li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:8px;align-items:center;padding:10px 0}
.ready li+li{border-top:1px solid var(--ui-line-soft)}
.ready .bar-track{grid-column:2/4;height:6px}
.ready-mark{width:20px;height:20px;border-radius:50%;border:2px solid var(--ui-line-strong);grid-row:1}
.is-done .ready-mark{border-color:var(--ui-good);background:var(--ui-good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat}
.is-part .ready-mark{border-color:var(--ui-accent);background:conic-gradient(var(--ui-accent) 50%,transparent 0)}
.is-todo .ready-mark{border-color:var(--ui-warn)}
.is-done .bar-track i{background:var(--ui-good)}
.is-todo .bar-track i{background:var(--ui-warn)}
.ready-text strong{display:block;font-size:14px;font-weight:500}
.ready-text small{display:block;color:var(--ui-muted);font-size:12.5px}
.ready-count{font-weight:600;font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}
.ready-count small{color:var(--ui-muted);font-weight:400}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ov-item:nth-child(3)::before{display:none}
  .ov-item:nth-child(n+3){border-top:1px solid rgba(255,255,255,.12)}
  .db-grid{grid-template-columns:1fr}
}
@media (max-width:900px){
  .side{z-index:20;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 16px}
  .side-brand{padding:0;margin:0;border:0}
  .side-brand small{display:none}
  .side-nav{order:3;flex:1 1 100%;flex-direction:row;overflow-x:auto;padding:4px 0 0;gap:4px}
  .side-link{padding:8px 12px;white-space:nowrap}
  .side-link.active::before{display:none}
  .side-user{margin:0 0 0 auto;padding:0;border:0}
  .side-who{display:none}
  .pg-head{flex-direction:column;align-items:flex-start}
}
@media (max-width:560px){
  .overview{grid-template-columns:1fr}
  .ov-item{padding:18px 20px}
  .ov-item+.ov-item{border-top:1px solid rgba(255,255,255,.12)}
  .ov-item+.ov-item::before{display:none}
  .ov-value{font-size:26px}
  .bar-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .bar-row .bar-track{grid-column:1/-1;grid-row:2}
  .rank a{grid-template-columns:26px minmax(0,1fr) auto;gap:6px 12px}
  .rank a .bar-track{grid-column:2/-1;grid-row:2}
  .status{flex-direction:column;align-items:stretch}
  .ring{margin:0 auto}
}
@media (prefers-reduced-motion:reduce){
  .side-link,.btn{transition:none}
}

/* Klaviatura fokusi va hover bir vaqtda: katalog kartasi soyasi saqlanadi. */
.content a.directory-card:hover{box-shadow:0 8px 20px -14px rgba(11,31,58,.4)}
/* ==================== O‘qituvchi sahifalari: kabinet, KPI reyting, shaxsiy reja ==================== */
.side-caption{display:block;margin:14px 12px 4px;color:#6f84a3;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.side-dot{width:8px;height:8px;border-radius:50%;background:#f3b13c;margin-left:auto;box-shadow:0 0 0 3px rgba(243,177,60,.2)}

.alert-bar{display:flex;align-items:center;gap:14px;margin:20px auto 0;max-width:1680px;padding:12px 16px;border:1px solid var(--ui-warn-line);border-radius:12px;background:var(--ui-warn-soft);color:var(--ui-warn-text);box-sizing:border-box;width:calc(100% - 2*clamp(20px,2.4vw,48px))}
.alert-bar svg{width:20px;height:20px;flex:none;fill:none;stroke:#c98a14;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.alert-bar span{flex:1;font-size:14px}
.alert-bar strong{color:var(--ui-warn-strong)}
.alert-bar .btn{height:36px;flex:none}

.btn-ghost{height:30px;padding:0 10px;border-color:transparent;background:transparent;color:var(--ui-muted);font-size:13px}
.btn-ghost:hover{background:var(--ui-hover);color:var(--ui-text)}
.btn[disabled]{opacity:.5;cursor:not-allowed}

.code-chip{display:inline-grid;place-items:center;min-width:38px;height:24px;padding:0 7px;border-radius:7px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;flex:none}
.pill.bad{background:var(--ui-bad-soft);color:var(--ui-bad)}

/* KPI gauge */
.gauge{--p:0;--track:rgba(255,255,255,.14);--fill:#4a84f7;width:168px;height:168px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(closest-side,var(--gauge-bg,#0f2747) 78%,transparent 79%),conic-gradient(var(--fill) calc(var(--p)*1%),var(--track) 0)}
.gauge.is-pass{--fill:#34c38f}
.gauge span{text-align:center;line-height:1.1}
.gauge strong{display:block;font-size:34px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.gauge small{font-size:13px;opacity:.75}
.gauge-sm{--track:var(--ui-track);--fill:var(--ui-accent);--gauge-bg:var(--ui-card);width:112px;height:112px;color:var(--ui-text)}
.gauge-sm.is-pass{--fill:var(--ui-good)}
.gauge-sm strong{font-size:24px}

.hb-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:6px;align-items:center}
.hb-label{font-size:13.5px;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-value{font-weight:600;font-variant-numeric:tabular-nums;font-size:14px}
.hb-value small{font-weight:400;opacity:.7}
.hb-track{grid-column:1/-1;height:8px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden}
.hb-track-light{background:var(--ui-track)}
.hb-track i{display:block;height:100%;border-radius:inherit;min-width:0}
/* blok rangi blok kodiga bog‘langan (tartibga emas): katalog o‘zgarsa ham rang siljimaydi */
.hb-teaching{background:#4a84f7}.hb-research{background:#8b8cf8}.hb-upbringing{background:#2dd4bf}.hb-international{background:#38bdf8}
.kpi-mini{display:grid;gap:14px;max-width:760px}

/* kabinet: yuklama va reja */
.load-compare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.load-compare div{padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.load-compare span{display:block;color:var(--ui-muted);font-size:12.5px}
.load-compare strong{display:block;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:2px}
.load-compare small{color:var(--ui-muted);font-size:12px}
.progress-lg{height:10px;border-radius:99px;background:var(--ui-track);overflow:hidden;margin-bottom:10px}
.progress-lg i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f6fed,#4a84f7)}
.dot-review{background:#f3b13c}
.ring-plan{background:radial-gradient(closest-side,var(--ui-card) 74%,transparent 75%),conic-gradient(var(--ui-good) 0 calc(var(--a)*1%),#f3b13c 0 calc(var(--b)*1%),var(--ui-track) 0)}

.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:28px 20px;border:1px dashed var(--ui-line-strong);border-radius:12px;background:var(--ui-soft);color:var(--ui-muted)}
.empty-state svg{width:34px;height:34px;fill:none;stroke:var(--ui-icon);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.empty-state strong{color:var(--ui-text);font-size:15px;font-weight:600}
.empty-state span{max-width:46ch;font-size:13.5px}
.empty-state .btn{margin-top:8px}
.empty-state.is-warn{border-color:var(--ui-warn-line);background:var(--ui-warn-soft)}
.empty-state.is-warn svg{stroke:#c98a14}

.activity{list-style:none;margin:0;padding:0}
.activity li{display:flex;align-items:center;gap:12px;padding:10px 0}
.activity li+li{border-top:1px solid var(--ui-line-soft)}
.activity-text{flex:1;min-width:0;font-size:14px}
.activity-text small{display:block;color:var(--ui-muted);font-size:12.5px;margin-top:2px}

/* KPI sahifasi */
.kpi-summary{display:flex;align-items:center;gap:24px;margin-bottom:14px;padding:20px 22px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
.kpi-summary-text{flex:1;display:flex;flex-direction:column;gap:4px}
.kpi-summary-text strong{font-size:18px;font-weight:600}
.kpi-summary-text span{color:var(--ui-muted);font-size:13.5px;max-width:62ch}
.kpi-summary-text .kpi-archived{font-size:12.5px}
.kpi-counts{display:flex;gap:10px;margin:0}
.kpi-counts div{min-width:96px;padding:10px 14px;border-radius:12px;background:var(--ui-soft);text-align:center}
.kpi-counts dt{color:var(--ui-muted);font-size:12.5px}
.kpi-counts dd{margin:2px 0 0;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.block-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.block-nav a{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-card);font-size:13.5px;color:var(--ui-text);text-decoration:none}
.block-nav a:hover{border-color:var(--ui-line-strong)}
.block-nav b{font-weight:600;color:var(--ui-muted);font-variant-numeric:tabular-nums}
.hb-dot{width:10px;height:10px;border-radius:3px;flex:none}
.kpi-block{scroll-margin-top:16px}
.kpi-block-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.kpi-block-head h2{margin:0 0 3px;font-size:17px;font-weight:600}
.kpi-block-score{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.kpi-block-score small{font-size:15px;color:var(--ui-muted);font-weight:500}
.criteria{list-style:none;margin:14px 0 0;padding:0}
.criteria-group{margin:14px 0 2px;color:var(--ui-muted);font-size:12.5px;font-weight:600}
.criterion{padding:12px 0;border-top:1px solid var(--ui-line-soft);scroll-margin-top:16px}
.criterion:target{background:linear-gradient(90deg,rgba(47,111,237,.06),transparent);border-radius:8px}
.criterion-main{display:flex;align-items:flex-start;gap:12px}
.criterion-text{flex:1;min-width:0}
.criterion-text strong{display:block;font-size:14px;font-weight:500;line-height:1.45}
.criterion-text small{display:block;color:var(--ui-muted);font-size:12.5px;margin-top:3px}
.criterion-points{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.criterion-points b{font-size:16px;font-weight:600}
.criterion-points small{color:var(--ui-muted);margin-left:3px}
.sub-list{list-style:none;margin:10px 0 0 50px;padding:0;display:grid;gap:6px}
.sub-list li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 10px;border-radius:10px;background:var(--ui-hover);font-size:13.5px}
.sub-list form{margin:0 0 0 auto}
.sub-text{flex:1;min-width:200px}
.sub-text small{display:block;color:var(--ui-bad);font-size:12.5px;margin-top:2px}
.submit-box{margin:10px 0 0 50px}
.submit-box summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--ui-accent);font-size:13.5px;font-weight:500;list-style:none}
.submit-box summary::-webkit-details-marker{display:none}
.submit-box summary::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:6px;background:var(--ui-accent-soft);font-weight:600}
.submit-box[open] summary::before{content:"−"}
.submit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:10px;padding:14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.submit-form label{display:flex;flex-direction:column;gap:5px;color:var(--ui-text-2);font-size:13px;font-weight:500}
.submit-form .wide{grid-column:1/-1}
.submit-form .btn{justify-self:start}
.content textarea{width:100%;padding:10px 12px;border:1px solid var(--ui-line-strong);border-radius:10px;background:var(--ui-field);color:var(--ui-text);font:400 14px/1.5 var(--ui-font);resize:vertical}
.content textarea:focus,.submit-form input:focus,.submit-form select:focus,.plan-form input:focus,.plan-form select:focus,.review-form input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18);outline:none}
.submit-form input:not([type=hidden]),.submit-form select{width:100%}

/* shaxsiy reja */
.notice-box{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;padding:14px 16px;border-radius:12px;border:1px solid var(--ui-warn-line);background:var(--ui-warn-soft);color:var(--ui-warn-text)}
.notice-box svg{width:22px;height:22px;flex:none;fill:none;stroke:#c98a14;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice-box strong{display:block;color:var(--ui-warn-strong)}
.notice-box span{font-size:13.5px}
.plan-stats{display:grid;gap:12px;margin-bottom:16px;padding:18px 20px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
.plan-bar{display:flex;gap:3px;height:14px;border-radius:99px;overflow:hidden;background:var(--ui-track)}
.seg-done{background:var(--ui-good)}.seg-review{background:#f3b13c}.seg-open{background:#b8c3d3}
.plan-legend{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0}
.plan-legend div{display:flex;align-items:center;gap:10px}
.plan-legend dt{display:flex;align-items:center;gap:8px;color:var(--ui-muted);font-size:13.5px}
.plan-legend dd{margin:0;font-weight:600}
.plan-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.plan-form label{display:flex;flex-direction:column;gap:5px;color:var(--ui-text-2);font-size:13px;font-weight:500}
.plan-form select,.plan-form input:not([type=hidden]){width:100%}

/* kafedra: KPI tekshiruvi */
.tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:99px;background:#f3b13c;color:#3b2a05;font-size:11.5px;font-weight:700}
.review-list{display:grid;gap:10px}
.review-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.review-who strong{font-size:14.5px}
.review-who span{display:block;color:var(--ui-muted);font-size:12.5px}
.review-what{margin:8px 0 4px;font-size:14px}
.review-note{margin:0 0 6px;color:var(--ui-text-2);font-size:13.5px;white-space:pre-line}
.review-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:260px}
.review-form{display:flex;align-items:flex-end;gap:8px}
.review-form label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--ui-muted)}
.review-form input[type=number]{width:96px}
.review-form input[name=comment]{flex:1;min-width:0}
.score-list{display:grid;gap:4px}
.score-row{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:8px 0;border-bottom:1px solid var(--ui-line-soft)}
.score-row:last-child{border-bottom:0}
.score-name{color:var(--ui-text);text-decoration:none;font-size:14px}
.score-name:hover{color:var(--ui-accent)}
.score-name small{display:block;color:var(--ui-muted);font-size:12px}
.score-row .bar-track i{background:var(--ui-accent)}
.score-row .bar-track i.is-pass{background:var(--ui-good)}
.score-value{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.score-value small{color:var(--ui-muted);font-weight:400}

@media (max-width:900px){
  .alert-bar{flex-wrap:wrap;width:calc(100% - 32px);margin-top:16px}
  .kpi-summary{flex-wrap:wrap}
  .kpi-counts{width:100%}
  .kpi-counts div{flex:1;min-width:0}
  .plan-form{grid-template-columns:1fr 1fr}
  .plan-form label:first-of-type{grid-column:1/-1}
  .review-item{grid-template-columns:1fr}
  .review-actions{min-width:0}
  .score-row{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .score-row .bar-track{grid-column:1/-1;grid-row:2}
}
@media (max-width:560px){
  .load-compare{grid-template-columns:1fr 1fr}
  .load-compare div:last-child{grid-column:1/-1}
  .sub-list,.submit-box{margin-left:0}
  .submit-form{grid-template-columns:1fr}
  .criterion-main{flex-wrap:wrap}
  .plan-form{grid-template-columns:1fr}
}
/* ---------- bosqichlar (stepper) ---------- */
.steps{list-style:none;margin:0;padding:0;display:flex}
.steps li{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;padding-right:10px}
.steps li:not(:last-child)::after{content:"";position:absolute;top:13px;left:36px;right:8px;height:2px;border-radius:2px;background:var(--ui-track)}
.steps li.is-done:not(:last-child)::after{background:var(--ui-good)}
.step-dot{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;box-sizing:border-box;border:2px solid var(--ui-line-strong);background:var(--ui-card);color:var(--ui-muted);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
.step-dot svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.is-done .step-dot{background:var(--ui-good);border-color:var(--ui-good);color:#fff}
.is-current .step-dot{border-color:var(--ui-accent);color:var(--ui-accent);box-shadow:0 0 0 4px rgba(47,111,237,.15)}
.is-bad .step-dot{background:#d9485f;border-color:#d9485f;color:#fff}
.step-text{min-width:0}
.step-text b{display:block;font-size:13px;font-weight:600;line-height:1.3;color:var(--ui-text)}
.step-text small{display:block;margin-top:2px;color:var(--ui-muted);font-size:12px;line-height:1.35}
.is-current .step-text b{color:var(--ui-accent)}
.is-todo .step-text b{color:var(--ui-muted);font-weight:500}
.is-bad .step-text b{color:var(--ui-bad)}
.process-card .steps{padding:4px 0 2px}

.steps-compact{flex-wrap:wrap;gap:4px 0}
.steps-compact li{flex:0 1 auto;flex-direction:row;align-items:center;gap:6px;padding-right:22px}
.steps-compact li:not(:last-child)::after{top:50%;left:auto;right:6px;width:10px;height:2px;margin-top:-1px}
.steps-compact .step-dot{width:20px;height:20px;border-width:1.5px;font-size:10.5px}
.steps-compact .step-dot svg{width:11px;height:11px;stroke-width:3}
.steps-compact .is-current .step-dot{box-shadow:0 0 0 3px rgba(47,111,237,.14)}
.steps-compact .step-text{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.steps-compact .step-text b{font-size:12.5px}
.steps-compact .step-text small{margin:0;font-size:11.5px;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.sub-list .steps{flex-basis:100%;order:5;margin-top:2px}
.panel .steps-compact{margin:-4px 0 14px}
td .steps-compact{min-width:330px}

@media (max-width:560px){
  .steps:not(.steps-compact){flex-direction:column;gap:14px}
  .steps:not(.steps-compact) li{flex-direction:row;align-items:center;gap:12px}
  .steps:not(.steps-compact) li:not(:last-child)::after{top:30px;left:13px;right:auto;width:2px;height:16px}
  .steps-compact .step-text small{display:none}
}.hb-label{grid-column:1;grid-row:1}
.hb-value{grid-column:2;grid-row:1;text-align:right}
.hb-track{grid-row:2}
@media (max-width:900px){.side-caption{display:none}}

/* Klaviatura foydalanuvchilari uchun: barcha matn maydonlarida ko‘rinadigan fokus halqasi. */
.content input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18);outline:none}

/* ---------- KPI: fayl, bosqichli tekshiruv, bo‘limlar ---------- */
.review-item.is-readonly{background:var(--ui-card);border-style:dashed}
.review-main{min-width:0}
.stage-badge{align-self:flex-start;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:99px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:12.5px;font-weight:600}
.stage-badge.is-waiting{background:var(--ui-warn-soft);color:var(--ui-warn-text)}
.review-item .steps-compact{margin-top:4px}
.file-drop small,.submit-form label small{color:var(--ui-muted);font-weight:400;font-size:12px}
.file-drop input[type=file]{padding:10px;border:1px dashed var(--ui-line-strong);border-radius:10px;background:var(--ui-card);height:auto;font-size:13.5px}

.pipeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}
.pipe-step{position:relative;display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-card);color:inherit;text-decoration:none}
.pipe-step:hover{border-color:var(--ui-line-strong)}
.pipe-step span{color:var(--ui-muted);font-size:13px;font-weight:500}
.pipe-step strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}
.pipe-step small{color:var(--ui-muted);font-size:12px}
.pipe-step:not(:last-child):not(.is-done)::after{content:"→";position:absolute;right:-12px;top:50%;transform:translateY(-50%);color:#b8c3d3;font-size:14px}
.pipe-step.is-done strong{color:var(--ui-good)}
.pipe-step.is-bad strong{color:var(--ui-bad)}
.division-grid{display:flex;flex-wrap:wrap;gap:10px}
.division-grid>.division-card{flex:1 1 0;min-width:min(100%,240px)}
.division-card{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;color:inherit;text-decoration:none}
.division-card:hover{border-color:var(--ui-line-strong)}
.division-card>div{flex:1;min-width:0}
.division-card strong{display:block;font-size:14px}
.division-card small{display:block;color:var(--ui-muted);font-size:12.5px}
.division-card>b{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.division-card .hb-dot{margin-top:5px}
.warn-text{color:var(--ui-warn-text);font-style:normal}

.division-admin{display:grid;gap:10px;margin-bottom:16px}
.division-admin-row{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:16px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px}
.division-admin-head{display:flex;gap:10px;align-items:flex-start}
.division-admin-head .hb-dot{margin-top:5px}
.division-admin-row.is-stranded{border-style:dashed;background:var(--ui-soft)}
.is-stranded .inline-form.compact{flex-wrap:wrap}.is-stranded select{width:17em;max-width:100%;min-width:0}
.hb-off{background:var(--ui-line-strong)}
.division-admin-head strong{display:block}
.division-admin-head small{display:block;color:var(--ui-muted);font-size:12.5px}
.reviewer-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.reviewer-list li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reviewer-list li>span{flex:1;min-width:160px}
.reviewer-list strong{display:block;font-size:14px}
.reviewer-list small{color:var(--ui-muted);font-size:12px}
.reviewer-list form{margin:0}
.reviewer-list input[type=password]{width:150px}
.reviewer-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.reviewer-form label{display:flex;flex-direction:column;gap:5px}

@media (max-width:1180px){.pipeline{grid-template-columns:repeat(3,minmax(0,1fr))}.pipe-step::after{display:none}}
@media (max-width:900px){.division-admin-row,.reviewer-form{grid-template-columns:1fr}}
@media (max-width:560px){.pipeline{grid-template-columns:1fr 1fr}}
/* ---------- KPI: fayl yuklash formasi ---------- */
.submit-box summary{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border:1px solid var(--ui-line-strong);border-radius:9px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:13.5px;font-weight:600;cursor:pointer;list-style:none;transition:background .15s,border-color .15s}
.submit-box summary::before{content:none}
.submit-box summary:hover{background:var(--ui-accent-soft-2);border-color:var(--ui-line-strong)}
.submit-box summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.submit-box[open] summary{background:var(--ui-card);border-color:var(--ui-line);color:var(--ui-muted)}
.upload-form{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"fields drop" "actions actions";gap:14px 18px;max-width:980px;margin-top:10px;padding:16px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-soft)}
.upload-fields{grid-area:fields;display:grid;gap:12px;align-content:start}
.uf-field{display:flex;flex-direction:column;gap:6px;color:var(--ui-text-2);font-size:13px;font-weight:500}
.uf-hint{color:var(--ui-muted);font-weight:400;font-size:12px}
.uf-field textarea{min-height:84px}
.upload-form input[type=url],.upload-form input[type=number],.upload-form select,.upload-form textarea{width:100%}
.dropzone{grid-area:drop;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:170px;padding:18px;border:1.5px dashed var(--ui-line-strong);border-radius:14px;background:var(--ui-card);text-align:center;color:var(--ui-muted);font-size:13.5px;cursor:pointer;transition:border-color .15s,background .15s}
.dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0}
.dropzone:hover,.dropzone.is-over{border-color:var(--ui-accent);background:var(--ui-hover)}
.dropzone:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18)}
.dz-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent)}
.dz-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dropzone strong{color:var(--ui-accent);font-weight:600}
.dropzone small{display:block;margin-top:4px;color:var(--ui-muted);font-size:12px}
.dz-chosen{display:none}
.dropzone.has-file{border-style:solid;border-color:var(--ui-good-line);background:var(--ui-good-soft)}
.dropzone.has-file .dz-empty{display:none}
.dropzone.has-file .dz-chosen{display:block}
.dropzone.has-file .dz-icon{background:var(--ui-good-soft);color:var(--ui-good)}
.dropzone.has-file .dz-name{display:block;color:var(--ui-text);word-break:break-all}
.dropzone.is-too-big{border-color:var(--ui-bad-line);background:var(--ui-bad-soft)}
.dropzone.is-too-big .dz-size{color:var(--ui-bad)}
.upload-actions{grid-area:actions;display:flex;justify-content:flex-end;gap:8px;padding-top:4px;border-top:1px solid var(--ui-line)}
.upload-actions .btn{margin-top:10px}
@media (max-width:760px){.upload-form{grid-template-columns:1fr;grid-template-areas:"fields" "drop" "actions"}.dropzone{min-height:140px}}
/* ---------- KPI: blok tablari va ixcham mezon qatorlari ---------- */
/* bloklar soni katalogdan keladi (hozir 3): teng ustunlar, tor ekranda o‘ralib, bo‘sh katak qolmaydi */
.block-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;scroll-margin-top:12px}
.block-tabs>a{flex:1 1 0;min-width:min(100%,230px)}
.block-tabs a{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:6px 10px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-card);color:var(--ui-text);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.block-tabs a:hover{border-color:var(--ui-line-strong)}
.block-tabs a.active{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.12)}
.block-tabs .hb-dot{margin-top:4px}
.bt-text{min-width:0}
.bt-title{display:block;font-size:13.5px;font-weight:600;line-height:1.3}
.bt-score{display:block;color:var(--ui-muted);font-size:12.5px;margin-top:2px}
.bt-score b{color:var(--ui-text);font-weight:600}
.bt-bar{grid-column:1/-1;height:5px;border-radius:99px;background:var(--ui-track);overflow:hidden}
.bt-bar i{display:block;height:100%;border-radius:inherit}
.kpi-tabs-on .kpi-block:not(.is-active){display:none}

.criterion{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:16px;padding:14px 0}
.criterion>.criterion-main{grid-column:1}
.criterion>.submit-box{grid-column:2;grid-row:1;margin:0;align-self:center}
.criterion>.submit-box[open]{grid-column:1/-1;grid-row:3;margin:12px 0 0 50px}
.criterion>.submit-box[open] summary{display:none}
.criterion>.sub-list{grid-column:1/-1;margin:10px 0 0 50px}
.criterion-main{align-items:center}
.criterion-text small{margin-top:2px}
.criterion-points{min-width:64px}
@media (max-width:640px){
  .block-tabs>a{flex-basis:100%}
  .criterion{grid-template-columns:1fr}
  .criterion>.submit-box{grid-column:1;grid-row:auto;margin:10px 0 0}
  .criterion>.submit-box[open],.criterion>.sub-list{margin-left:0}
}
/* ---------- Tipografiya va hover: aralashib ketmasligi uchun ---------- */
.content>.alert-bar{width:100%;margin:0 0 22px}

.kpi-block-head h2{font-size:18px}
.kpi-block .hb-track{margin-bottom:6px}
.criteria{margin-top:10px}
.criteria-group{margin:20px 0 6px;padding:8px 12px;border-left:3px solid var(--ui-line-strong);border-radius:0 8px 8px 0;background:var(--ui-soft);color:var(--ui-text-2);font-size:12.5px;font-weight:600;line-height:1.4}
.criteria-group:first-child{margin-top:4px}
.criterion{margin:0 -12px;padding:12px;border-top:0;border-radius:12px;transition:background-color .15s}
.criterion+.criterion{box-shadow:0 -1px 0 var(--ui-line-soft)}
.criterion:hover{background:var(--ui-hover);box-shadow:none}
.criterion:hover+.criterion{box-shadow:none}
.criterion-main{gap:14px}
.criterion .code-chip{min-width:44px;height:26px;font-size:12.5px}
.criterion-text strong{font-size:14.5px;font-weight:500;line-height:1.5;color:var(--ui-text)}
.criterion-text small{margin-top:3px;font-size:12.5px;color:var(--ui-text-2)}
.criterion-points{display:inline-flex;align-items:baseline;gap:3px;padding:5px 10px;border-radius:9px;background:var(--ui-hover);min-width:0}
.criterion-points b{font-size:15px}
.criterion-points small{margin:0;font-size:12.5px}
.criterion-points.has-points{background:var(--ui-good-soft)}
.criterion-points.has-points b{color:var(--ui-good)}
.criterion>.submit-box{align-self:center}

/* hover: kartalar, tablar, tugmalar */
.block-tabs a{transition:border-color .15s,box-shadow .15s,transform .15s}
.block-tabs a:hover{box-shadow:0 8px 20px -14px rgba(11,31,58,.45);transform:translateY(-1px)}
.block-tabs a.active:hover{transform:none}
.kpi-summary,.panel,.plan-stats{transition:box-shadow .2s}
.review-item{transition:border-color .15s,box-shadow .15s}
.review-item:hover{border-color:var(--ui-line-strong);box-shadow:0 8px 20px -16px rgba(11,31,58,.4)}
.pipe-step,.division-card,.block-nav a{transition:border-color .15s,box-shadow .15s,transform .15s}
.pipe-step:hover,.division-card:hover{box-shadow:0 8px 20px -14px rgba(11,31,58,.4);transform:translateY(-1px)}
.kpi-counts div{transition:background-color .15s}
.kpi-counts div:hover{background:var(--ui-hover)}
.activity li{margin:0 -8px;padding:10px 8px;border-radius:10px;transition:background-color .15s}
.activity li:hover{background:var(--ui-hover)}
.score-row{transition:background-color .15s}
.score-row:hover{background:var(--ui-hover)}
.btn,.button{transition:background-color .15s,border-color .15s,box-shadow .15s,transform .1s}
.btn:active,.button:active,.submit-box summary:active{transform:scale(.98)}
.btn-primary:hover{box-shadow:0 6px 14px -8px rgba(47,111,237,.7)}
.submit-box summary:hover{box-shadow:0 4px 12px -8px rgba(47,111,237,.6)}
@media (prefers-reduced-motion:reduce){.block-tabs a:hover,.pipe-step:hover,.division-card:hover{transform:none}.btn:active,.button:active{transform:none}}
/* ---------- ochilgan mezon: alohida karta, forma to‘liq kenglikda ---------- */
.criterion:has(> .submit-box[open]){margin:6px -12px;padding:14px 12px;background:var(--ui-soft);box-shadow:inset 0 0 0 1px var(--ui-line-strong)}
.criterion:has(> .submit-box[open]):hover{background:var(--ui-soft)}
.criterion:has(> .submit-box[open]) + .criterion{box-shadow:none}
.criterion>.submit-box[open]{margin:14px 0 0 58px}
.upload-form{max-width:none;margin-top:0;background:var(--ui-card);border-color:var(--ui-line-strong)}
.upload-form{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}
.uf-label{display:flex;align-items:baseline;gap:8px}
.uf-label .uf-hint{font-size:12px}
.dropzone{min-height:190px}
@media (max-width:640px){.criterion>.submit-box[open]{margin-left:0}}
/* Ctrl+V bilan qo‘yilgan fayl */
.dropzone kbd{display:inline-block;min-width:20px;padding:1px 6px;border:1px solid var(--ui-line-strong);border-bottom-width:2px;border-radius:5px;background:var(--ui-hover);color:var(--ui-text);font:600 11.5px/1.5 var(--ui-font)}
.dropzone.is-pasted{border-color:var(--ui-good);box-shadow:0 0 0 4px rgba(22,135,90,.15)}
/* ---------- Kabinet: KPI sahifasi komponentlari asosida ---------- */
.kpi-summary-label{color:var(--ui-muted);font-size:12.5px;font-weight:500}
.kpi-summary{flex-wrap:wrap}
.kpi-summary-text{min-width:220px}
.kpi-summary-cta{flex:none}
.kpi-summary-cta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.panel .kpi-block-head{margin-bottom:14px}
.panel .kpi-block-head .muted{display:block;margin-top:1px}
.empty-state.is-compact{gap:4px;padding:20px 18px}
.empty-state.is-compact svg{width:28px;height:28px}
.sub-list-flush{margin:0}
.sub-list-flush li{transition:box-shadow .15s}
.sub-list-flush li:hover{box-shadow:inset 0 0 0 1px var(--ui-line-strong)}
@media (max-width:900px){.kpi-summary-cta{width:100%}}

/* ---------- KPI: bir nechta dalil fayli (har biri: fayl + izoh + havola) ---------- */
.upload-form{grid-template-columns:minmax(0,1fr);grid-template-areas:"fields" "files" "actions"}
.upload-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.upload-fields .uf-wide{grid-column:1/-1}
.upload-fields textarea{min-height:64px}
.ev-rows{grid-area:files;display:grid;gap:10px}
.ev-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;color:var(--ui-text-2);font-size:13px}
.ev-head strong{font-weight:600}
.ev-row{position:relative;display:grid;grid-template-columns:28px minmax(220px,300px) minmax(0,1fr) 32px;gap:12px;align-items:stretch;padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.ev-no{align-self:start;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:12.5px;font-weight:600}
.ev-row .dropzone{grid-area:auto;min-height:118px;padding:12px;gap:6px;font-size:13px}
.ev-row .dz-icon{width:36px;height:36px;border-radius:11px}
.ev-row .dz-icon svg{width:19px;height:19px}
.ev-meta{display:grid;gap:10px;align-content:start}
.ev-meta input{width:100%}
.ev-remove{align-self:start;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer;transition:background .15s,color .15s}
.ev-remove:hover{background:var(--ui-bad-soft);color:var(--ui-bad)}
.ev-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ev-add{justify-self:start;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px dashed var(--ui-line-strong);border-radius:9px;background:transparent;color:var(--ui-accent);font:500 13.5px var(--ui-font);cursor:pointer;transition:background .15s,border-color .15s}
.ev-add:hover{background:var(--ui-accent-soft);border-color:var(--ui-accent)}
.ev-add svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ev-add[hidden],.ev-remove[hidden]{display:none}
@media (max-width:760px){
  .upload-fields{grid-template-columns:1fr}
  .ev-row{grid-template-columns:26px minmax(0,1fr) 30px}
  .ev-row .dropzone{grid-column:2;grid-row:1}
  .ev-meta{grid-column:2}
  .ev-remove{grid-column:3;grid-row:1}
}

/* ---------- KPI: yuborilgan ariza kartasi va dalil fayllari ---------- */
.sub-cards{grid-column:1/-1;list-style:none;margin:12px 0 0 58px;padding:0;display:grid;gap:10px}
.sub-card{display:grid;gap:12px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-card);box-shadow:0 1px 2px rgba(11,31,58,.04)}
.sub-card-head{display:flex;align-items:flex-start;gap:12px}
.sub-card-head .pill{flex:none;margin-top:1px}
.sub-card-text{flex:1;min-width:0;margin:0;color:var(--ui-text);font-size:14px;line-height:1.5}
.sub-card-text b{font-weight:600}
.sub-card-head form{flex:none;margin:0}
.sub-card-cancel{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);font:500 12.5px var(--ui-font);cursor:pointer;transition:background .15s,color .15s}
.sub-card-cancel:hover{background:var(--ui-bad-soft);color:var(--ui-bad)}
.sub-card-cancel svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.sub-card-steps{padding-bottom:12px;border-bottom:1px solid var(--ui-line-soft)}
.ev-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.ev-tile{position:relative;display:flex;min-width:0}
.ev-file{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:9px 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-soft);color:var(--ui-text);text-decoration:none;transition:border-color .15s,background .15s,box-shadow .15s}
.ev-file:hover{border-color:var(--ui-accent);background:var(--ui-card);box-shadow:0 6px 16px -12px rgba(11,31,58,.45)}
.ev-tile:has(.ev-link) .ev-file{padding-right:44px}
.ev-ico{flex:none;width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent);font:700 10px/1 var(--ui-font);letter-spacing:.03em}
.ev-ico.is-pdf{background:rgba(217,72,95,.12);color:#d9485f}
.ev-ico.is-img{background:rgba(139,140,248,.16);color:#6d6ee8}
.ev-ico.is-xls{background:rgba(22,135,90,.12);color:#1f9d68}
.ev-ico.is-ppt{background:rgba(230,126,34,.14);color:#d9731f}
.ev-ico.is-zip,.ev-ico.is-other{background:var(--ui-track);color:var(--ui-muted)}
.ev-ico svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ev-body{min-width:0;display:flex;flex-direction:column;gap:1px}
.ev-body b{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-body small{color:var(--ui-muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-link{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;border-radius:7px;color:var(--ui-muted);transition:background .15s,color .15s}
.ev-link:hover{background:var(--ui-accent-soft);color:var(--ui-accent)}
.ev-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.review-main .ev-grid{margin:6px 0 12px}
@media (max-width:640px){
  .sub-cards{margin-left:0}
  .sub-card{padding:12px}
  .sub-card-head{flex-wrap:wrap}
  .sub-card-text{flex-basis:100%;order:3}
  .sub-card-head form{margin-left:auto}
  .ev-grid{grid-template-columns:1fr}
}

/* ---------- KPI: qaytarilgan ariza va tuzatib qayta yuborish ---------- */
.sub-card.is-rejected{border-color:var(--ui-bad-line)}
.return-box{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--ui-bad-line);border-radius:10px;background:var(--ui-bad-soft)}
.return-box>svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--ui-bad);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.return-box b{display:block;color:var(--ui-bad);font-size:14px;font-weight:600}
.return-box small{display:block;margin-top:1px;color:var(--ui-muted);font-size:12.5px}
.return-box p{margin:6px 0 0;color:var(--ui-text);font-size:14px;line-height:1.5;white-space:pre-line}
.sub-card>.resubmit-box{margin:0;min-width:0}
.resubmit-box summary{background:var(--ui-accent);border-color:var(--ui-accent);color:#fff}
.resubmit-box summary:hover{background:var(--ui-accent-hi);border-color:var(--ui-accent-hi)}
.resubmit-box[open] summary{display:none}
.resubmit-box .upload-form{margin-top:0}
.keep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.keep-tile{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-card);cursor:pointer;transition:border-color .15s,opacity .15s}
.keep-tile:hover{border-color:var(--ui-accent)}
.keep-tile input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--ui-accent)}
.keep-tile:has(input:not(:checked)){opacity:.55}
.keep-tile:has(input:not(:checked)) b{text-decoration:line-through}
.prev-return{margin:0 0 8px;padding:8px 12px;border-radius:9px;background:var(--ui-warn-soft);color:var(--ui-warn-text);font-size:13px}
.prev-return b{font-weight:600}
.resent-mark{color:var(--ui-warn-text);font-weight:600}

/* mezon qulfi: tekshiruvdagi yoki tasdiqlangan ariza bor */
.crit-lock{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;background:var(--ui-warn-soft);color:var(--ui-warn-text);font-size:13px;font-weight:600;white-space:nowrap;cursor:default}
.crit-lock svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.crit-lock.is-approved{background:var(--ui-good-soft);color:var(--ui-good)}
.criterion>.crit-lock{grid-column:2;grid-row:1;align-self:center}
@media (max-width:640px){.criterion>.crit-lock{grid-column:1;grid-row:auto;justify-self:start;margin-top:10px}}

/* ---------- KPI tekshiruvi: ariza kartasi (mudir va dekan tasdiqlaydi, bo‘lim ball qo‘yadi) ---------- */
.review-item.ri{display:block;padding:16px 18px;background:var(--ui-card)}
.review-item.ri.is-readonly{background:var(--ui-soft);border-style:solid}
.ri-head{display:flex;align-items:center;gap:12px}
.ri-head .teacher-avatar{width:38px;height:38px;border-radius:11px;font-size:15px}
.ri-who{flex:1;min-width:0}
.ri-who strong{display:block;font-size:14.5px;font-weight:600}
.ri-who span{display:block;color:var(--ui-muted);font-size:12.5px}
.ri-claim{flex:none;color:var(--ui-text);font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.ri-claim small{color:var(--ui-muted);font-size:12.5px;font-weight:500}
.ri-what{display:flex;align-items:flex-start;gap:10px;margin:14px 0 6px;font-size:14px;font-weight:500;line-height:1.45}
.ri-what .code-chip{margin-top:-1px}
.ri-note{margin:0 0 12px;color:var(--ui-text-2);font-size:14px;line-height:1.5;white-space:pre-line}
.ri .ev-grid{margin:0}
.ri-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-line-soft)}
.ri-steps{min-width:0}
.ri-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.ri-actions .btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ri-as{color:var(--ui-muted);font-size:12.5px}
.ri-approve{display:flex;align-items:center;gap:8px;margin:0}
.ri-points{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 12px;border:1px solid var(--ui-line-strong);border-radius:10px;background:var(--ui-field);color:var(--ui-muted);font-size:13px;font-weight:500}
.content .ri-points input[type=number]{width:64px;height:30px;padding:0 6px;border:0;background:transparent;font-size:15px;font-weight:600;text-align:right;box-shadow:none}
.ri-points:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18)}
.ri-points small{color:var(--ui-muted);font-size:12.5px;white-space:nowrap}
.ri-return{order:-1}
.ri-return summary{list-style:none}
.ri-return summary::-webkit-details-marker{display:none}
.ri-return[open]{flex-basis:100%;order:10}
.ri-return[open] summary{display:none}
.ri-return-form{display:flex;gap:8px;margin:0}
.content .ri-return-form input[name=comment]{flex:1;min-width:0}
.btn-danger{background:var(--ui-bad);border-color:var(--ui-bad);color:#fff}
.btn-danger:hover{filter:brightness(1.08)}
[data-theme=dark] .btn-danger{color:#2a0b10}
@media (max-width:640px){
  .ri-head{flex-wrap:wrap}
  .ri-claim{order:3;flex-basis:100%;font-size:16px}
  .ri-actions{margin-left:0;justify-content:flex-start;width:100%}
  .ri-approve{flex-wrap:wrap}
}

/* tasdiqlash paneli: izoh (bo‘limda ball ham) so‘raladi, keyin o‘tadi */
.ri-decide summary{list-style:none}
.ri-decide summary::-webkit-details-marker{display:none}
.ri-decide[open]{flex-basis:100%;order:11}
.ri-decide[open] summary{display:none}
.ri-decide[open] .ri-approve{width:100%}
.content .ri-approve input[name=comment]{flex:1;min-width:0}
.ri-actions:has(details[open]) .ri-as{display:none}
.ri-actions:has(details[open])>details:not([open]){display:none}
.review-notes{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.review-notes li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:8px 12px;border-radius:9px;background:var(--ui-good-soft);font-size:13.5px}
.review-notes b{color:var(--ui-good);font-weight:600}
.review-notes small{color:var(--ui-muted);font-size:12px}
.review-notes span{flex-basis:100%;color:var(--ui-text)}
@media (max-width:640px){.ri-approve{flex-wrap:wrap}.content .ri-approve input[name=comment]{flex-basis:100%}}

/* ---------- KPI monitoring: o‘qituvchi uchun sanalar yo‘lagi ---------- */
.monitor{margin-bottom:16px;padding:14px 18px;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
.monitor-track{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(170px,1fr);gap:12px;overflow-x:auto;scrollbar-width:thin}
.mon{position:relative;display:flex;align-items:flex-start;gap:10px;min-width:0}
.mon:not(:last-child)::after{content:"";position:absolute;left:36px;right:-4px;top:13px;height:2px;border-radius:2px;background:var(--ui-line)}
.mon.is-met:not(:last-child)::after{background:var(--ui-good)}
.mon-dot{position:relative;z-index:1;flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--ui-line-strong);background:var(--ui-card);color:var(--ui-muted);font-size:12.5px;font-weight:600}
.mon-dot svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.mon.is-met .mon-dot,.mon.is-next.is-ok .mon-dot{border-color:var(--ui-good);background:var(--ui-good);color:#fff}
.mon.is-missed .mon-dot{border-color:var(--ui-bad);background:var(--ui-bad);color:#fff}
.mon.is-next:not(.is-ok) .mon-dot{border-color:var(--ui-warn);color:var(--ui-warn);box-shadow:0 0 0 4px var(--ui-warn-soft)}
.mon-text{position:relative;z-index:1;min-width:0;padding-right:8px;background:var(--ui-card)}
.mon-text b{display:block;font-size:13.5px;font-weight:600;line-height:1.3}
.mon-text small{display:block;color:var(--ui-muted);font-size:12px}
.mon-need{display:block;margin-top:3px;font-size:12.5px;font-weight:600;color:var(--ui-muted)}
.mon.is-met .mon-need,.mon.is-ok .mon-need{color:var(--ui-good)}
.mon.is-missed .mon-need{color:var(--ui-bad)}
.mon.is-next:not(.is-ok) .mon-need{color:var(--ui-warn-text)}

/* sozlamalar: monitoring sanalari */
.checkpoint-form{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(150px,1fr) repeat(2,minmax(150px,1fr)) auto;gap:12px;align-items:end;margin-bottom:16px}
.checkpoint-form label{display:flex;flex-direction:column;gap:5px}
.checkpoint-form label small{color:var(--ui-muted);font-weight:400;font-size:11.5px}
.content .checkpoint-form input{width:100%}
.checkpoint-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.checkpoint-list li{display:grid;grid-template-columns:64px minmax(0,1fr) 96px 96px 34px;align-items:center;gap:14px;padding:10px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-card)}
.checkpoint-list li.is-past{background:var(--ui-soft);opacity:.75}
.cp-date{display:grid;place-items:center;padding:6px 0;border-radius:10px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:11.5px;font-weight:500;line-height:1.2;text-align:center}
.cp-date b{font-size:20px;font-weight:600}
.cp-body strong{display:block;font-size:14.5px}
.cp-body small{color:var(--ui-muted);font-size:12.5px}
.cp-min{display:flex;flex-direction:column;align-items:flex-end}
.cp-min small{color:var(--ui-muted);font-size:11.5px}
.cp-min b{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.checkpoint-list form{margin:0}
.checkpoint-list .teacher-edit:hover{background:var(--ui-bad-soft);color:var(--ui-bad)}

/* kafedra: o‘qituvchilar jadvali */
.staff-scroll{border:1px solid var(--ui-line);border-radius:12px}
.staff-table{min-width:1080px}
.content .staff-table th{position:sticky;top:0;background:var(--ui-soft)}
.content .staff-table th.num,.content .staff-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.content .staff-table td{padding:10px 12px}
.content .staff-table tbody tr{transition:background-color .15s}
.content .staff-table tbody tr:hover td{background:var(--ui-hover)}
.staff-table .st-name{min-width:260px}
.st-person{display:flex;align-items:center;gap:10px;min-width:0}
.st-person .teacher-avatar{width:34px;height:34px;border-radius:10px;font-size:13px}
.st-person strong{display:block;font-size:13px;font-weight:600;line-height:1.3}
.st-person small{display:block;margin-top:1px;color:var(--ui-muted);font-size:12px}
.staff-table td.is-zero{color:var(--ui-muted);opacity:.55}
.staff-table td.st-total{font-weight:600}
.st-kpi{min-width:130px}
.st-kpi-line{display:flex;align-items:baseline;gap:4px}
.st-kpi-line b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.st-kpi-line small{color:var(--ui-muted);font-size:12px}
.st-wait{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:99px;display:inline-grid;place-items:center;background:var(--ui-warn-soft);color:var(--ui-warn-text);font-size:11.5px;font-weight:700}
.st-bar{display:block;height:5px;margin-top:5px;border-radius:99px;background:var(--ui-track);overflow:hidden}
.st-bar i{display:block;height:100%;border-radius:inherit;background:var(--ui-accent)}
.st-bar i.is-pass{background:var(--ui-good)}
.st-badge{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.st-badge.is-ok{background:var(--ui-good-soft);color:var(--ui-good)}
.st-badge.is-risk{background:var(--ui-warn-soft);color:var(--ui-warn-text)}
.st-badge.is-muted{background:var(--ui-track);color:var(--ui-muted)}
.st-plan{font-size:13px;color:var(--ui-muted);white-space:nowrap}
.st-plan b{color:var(--ui-text)}
.staff-table .st-actions{width:1%}
@media (max-width:1000px){.checkpoint-form{grid-template-columns:1fr 1fr}.checkpoint-form .button{grid-column:1/-1}}
@media (max-width:640px){.checkpoint-list li{grid-template-columns:56px minmax(0,1fr) 34px}.cp-min{display:none}}

/* ==================== Shtatlar jadvali: kafedra kartasi, /shtat/ matritsasi, «kim o‘tirgani» popoveri ==================== */
/* kafedra kartasi: yig‘ma ko‘rsatkichlar */
.staffing-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.staffing-facts>div{padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.staffing-facts dt{color:var(--ui-muted);font-size:12.5px;font-weight:500}
.staffing-facts dd{margin:4px 0 0}
.staffing-facts strong{display:block;color:var(--ui-text);font:600 22px/1.2 var(--ui-font);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.staffing-facts small{display:block;margin-top:2px;color:var(--ui-muted);font-size:12px}
.staffing-facts .is-warn{background:var(--ui-warn-soft);border-color:var(--ui-warn-line)}
.staffing-facts .is-warn strong{color:var(--ui-warn-text)}
.staffing-facts .is-bad{background:var(--ui-bad-soft);border-color:var(--ui-bad-line)}
.staffing-facts .is-bad strong{color:var(--ui-bad)}
.staffing-facts .is-good{background:var(--ui-good-soft);border-color:var(--ui-good-line)}
.staffing-facts .is-good strong{color:var(--ui-good)}

/* kafedra kartasi: lavozimlar jadvali */
.table-scroll .staffing-table{min-width:470px}
.content .staffing-table :is(th,td){padding:9px 14px}
.content .staffing-table :is(th,td).num{text-align:right}
.content .staffing-table tbody th{background:transparent;color:var(--ui-text);font:500 13.5px/1.4 var(--ui-font);border-bottom:1px solid var(--ui-line-soft)}
.content .staffing-table tbody tr:last-child th{border-bottom:0}
.content .table-scroll .staffing-table tbody tr:hover th{background:var(--ui-hover)}
.content .staffing-table tfoot th{background:var(--ui-hover);color:var(--ui-text);font-size:13px;border-top:1px solid var(--ui-line-strong);border-bottom:0}
.content .staffing-table tfoot th:nth-child(3){padding-right:42px}
.content .staffing-table:has(.quota-input) tfoot th:nth-child(2){padding-right:24px}
.staffing-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:12px}
.staffing-foot .source-note{margin:0;max-width:820px}
.staffing-save{flex:none;margin:0}
.staffing-notice{margin:0 0 14px}
.message.info{background:var(--ui-soft);border-color:var(--ui-line);color:var(--ui-text-2)}

/* shtat katagi (input) */
.content .quota-input.quota-input:not([type=checkbox]):not([type=radio]){width:80px;height:34px;padding:0 9px;border-radius:8px;text-align:right;font-variant-numeric:tabular-nums}
.content .quota-input.quota-input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(47,111,237,.18)}
.content .quota-input.quota-input.is-dirty:not([type=checkbox]):not([type=radio]){border-color:var(--ui-warn);background:var(--ui-warn-soft)}
.content .quota-input.quota-input:is([aria-invalid=true],:user-invalid):not([type=checkbox]):not([type=radio]){border-color:var(--ui-bad)}

/* band stavka tugmasi va farq */
.band-btn{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 8px 0 9px;border:1px solid transparent;border-radius:8px;background:var(--ui-accent-soft);color:var(--ui-accent);font:600 13.5px var(--ui-font);font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s}
/* ikonalar CSS niqobida: har bir katakda inline SVG takrorlanmasin (sahifa ~200 popover) */
.band-btn::after{content:"";width:14px;height:14px;flex:none;background:currentColor;opacity:.75;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.2A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.2A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E") center/contain no-repeat}
.band-btn:hover{background:var(--ui-accent-soft-2);border-color:var(--ui-accent)}
.band-btn:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.band-zero{display:inline-flex;align-items:center;min-height:28px;padding:0 28px 0 9px;color:var(--ui-muted)}
.diff{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.diff.is-free{color:var(--ui-good)}
.diff.is-over{color:var(--ui-bad)}
.diff.is-even{color:var(--ui-text-2)}
.diff.is-none{color:var(--ui-muted);font-weight:400}
.lock-pill svg{width:12px;height:12px;margin-right:5px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* «kim o‘tirgani» popoveri (HTML popover API, JS'siz) */
.people-pop{position:fixed;inset:0;width:min(480px,calc(100vw - 32px));height:fit-content;max-height:min(620px,calc(100dvh - 48px));margin:auto;padding:0;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-card);color:var(--ui-text);box-shadow:0 30px 70px -24px rgba(11,31,58,.5);overflow:hidden;font:400 13.5px/1.45 var(--ui-font);text-align:left;white-space:normal}
.people-pop:popover-open{display:flex;flex-direction:column}
.people-pop::backdrop{background:rgba(11,31,58,.32)}
.pp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px 18px;border-bottom:1px solid var(--ui-line)}
.pp-head strong{display:block;font:600 16px/1.3 var(--ui-font)}
.pp-head span{display:block;margin-top:2px;color:var(--ui-muted);font-size:12.5px}
.pp-close{flex:none;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer}
.pp-close:hover{background:var(--ui-hover);color:var(--ui-text)}
.pp-close:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.pp-close::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.pp-cols{display:flex;justify-content:space-between;gap:12px;padding:7px 18px;border-bottom:1px solid var(--ui-line-soft);background:var(--ui-soft);color:var(--ui-muted);font-size:11.5px;font-weight:600}
.pp-list{flex:1;min-height:0;margin:0;padding:2px 0;overflow:auto;list-style:none}
.pp-list li{display:flex;align-items:center;gap:12px;padding:9px 18px}
.pp-list li+li{border-top:1px solid var(--ui-line-soft)}
.pp-who{flex:1;min-width:0}
.pp-who b{display:block;color:var(--ui-text);font-size:13.5px;font-weight:500}
.people-pop .pp-who small{display:block;margin-top:2px;color:var(--ui-muted);font-size:12px}
.pp-tag{display:inline-flex;align-items:center;height:18px;margin-left:4px;padding:0 6px;border-radius:99px;font-size:11px;font-weight:600;vertical-align:1px;white-space:nowrap}
.pp-tag.is-acting{background:var(--ui-accent-soft);color:var(--ui-accent)}
.pp-tag.is-multi{background:var(--ui-warn-soft);color:var(--ui-warn-text)}
.pp-fte{flex:none;min-width:40px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.pp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--ui-line);background:var(--ui-soft);color:var(--ui-muted);font-size:12.5px}
.pp-foot b{color:var(--ui-text);font-weight:600;white-space:nowrap}

/* /shtat/ matritsasi (.summary-matrix ustiga) */
.content .staffing-matrix th{padding:10px 8px;white-space:normal}
.content .staffing-matrix th small{display:block;margin-top:1px;color:var(--ui-muted);font-size:11px;font-weight:500;white-space:nowrap}
.staffing-matrix th:first-child,.staffing-matrix td:first-child{min-width:210px}
.content .staffing-matrix thead tr th:first-child{padding-left:12px;text-align:left}
.staffing-matrix td.sm-dept{white-space:normal}
.sm-dept .text-link strong{font-size:13px}
.sm-dept small .pill{height:18px;margin-right:6px;padding:0 7px;font-size:11px;vertical-align:1px}
.staffing-matrix td.sm-cell{min-width:86px;padding:8px 6px;text-align:center}
.content .staffing-matrix .quota-input.quota-input:not([type=checkbox]):not([type=radio]){width:70px;text-align:center}
.staffing-matrix .band-btn{padding:0 6px 0 7px}
.staffing-matrix .band-zero{padding:0 9px}
.sm-quota{display:flex;justify-content:center}
.sm-plan{font-size:14px;font-weight:600}
.sm-band{display:flex;justify-content:center;margin-top:6px}
.staffing-matrix td.sm-total{min-width:78px}
.staffing-matrix-card .section-heading .pill{flex:none;white-space:nowrap}
.sm-total b{display:block;font-size:14px;font-weight:600}
.sm-total.is-match b{color:var(--ui-good)}
.sm-total.is-short b{color:var(--ui-warn-text)}
.sm-total.is-over b{color:var(--ui-bad)}
.staffing-matrix tr.has-error td.sm-dept{box-shadow:inset 3px 0 0 var(--ui-bad)}
.row-error{display:block;max-width:320px;margin-top:6px;padding:6px 8px;border-radius:8px;background:var(--ui-bad-soft);color:var(--ui-bad);font-size:12px;line-height:1.4}
.table-scroll .staffing-matrix tfoot th:nth-child(n+2){text-align:center}
.table-scroll .staffing-matrix tfoot th:nth-last-child(-n+3){text-align:right}
.sm-foot-plan,.sm-foot-band{display:block}
.sm-foot-band{color:var(--ui-muted);font-size:12px;font-weight:500}
.staffing-alert{margin-bottom:16px}
.staffing-alert a{color:inherit;font-weight:600;text-decoration:underline}
.staffing-savebar{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px -22px -20px;padding:14px 22px;border-top:1px solid var(--ui-line);border-radius:0 0 var(--ui-radius) var(--ui-radius);background:var(--ui-card);box-shadow:0 -12px 24px -20px rgba(11,31,58,.45)}
.staffing-savebar p{margin:0;color:var(--ui-muted);font-size:13px}
.staffing-savebar .button{flex:none}
.staffing-card,.staffing-matrix tbody tr{scroll-margin-top:16px}
html:has(.staffing-savebar){scroll-padding-bottom:84px}

@media (max-width:900px){
  .staffing-card,.staffing-matrix tbody tr{scroll-margin-top:116px}
}
@media (max-width:760px){
  .staffing-facts{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .table-scroll .staffing-table{min-width:0}
  .content .staffing-table :is(th,td){padding:9px 6px;white-space:normal}
  .content .staffing-table :is(th,td):first-child{padding-left:10px}
  .content .staffing-table :is(th,td):nth-last-child(2){padding-right:10px}
  .staffing-card .band-btn::after{display:none}
  .staffing-card .band-zero{padding-right:9px}
  .content .staffing-table .col-contracts{display:none}
  .content .staffing-table tfoot th:nth-child(3){padding-right:15px}
  .content .staffing-table:has(.quota-input) tfoot th:nth-child(2){padding-right:16px}
  .content .staffing-card .quota-input.quota-input:not([type=checkbox]):not([type=radio]){width:62px}
  .staffing-foot{flex-direction:column;align-items:stretch}
  .staffing-save .button{width:100%}
  .staffing-matrix th:first-child,.staffing-matrix td:first-child{min-width:150px;max-width:170px}
  .staffing-matrix td.sm-dept{min-width:150px}
  .pp-list li,.pp-cols,.pp-foot{padding-left:14px;padding-right:14px}
  .pp-foot{flex-wrap:wrap}
}
@media (max-width:560px){
  .staffing-facts strong{font-size:19px}
  .staffing-savebar{margin:16px -16px -16px;padding:12px 16px}
  .staffing-savebar p{font-size:12px}
  .staffing-savebar .sb-more{display:none}
}
@media (prefers-reduced-motion:reduce){
  .band-btn{transition:none}
}

/* ==================== Tungi rejim (login oynasi palitrasi) ==================== */
:root[data-theme=dark]{color-scheme:dark;
  --ui-ink:#06142a;--ui-ink-2:#163058;--ui-accent:#4a84f7;--ui-accent-hi:#6d9cff;--ui-accent-soft:rgba(74,132,247,.16);--ui-accent-soft-2:rgba(74,132,247,.26);
  --ui-text:#e6edf6;--ui-text-2:#c3d0e2;--ui-muted:#93a5bf;--ui-icon:#6f829b;
  --ui-bg:#081a31;--ui-card:#0e2442;--ui-field:#0a1d37;--ui-soft:#11294b;--ui-hover:#143056;--ui-track:#1c3558;
  --ui-line:#1d3659;--ui-line-soft:#182f50;--ui-line-strong:#2a4a75;
  --ui-good:#34c38f;--ui-good-soft:rgba(52,195,143,.13);--ui-good-line:rgba(52,195,143,.38);--ui-good-text:#7fe0b8;
  --ui-bad:#ff9b8f;--ui-bad-soft:rgba(255,120,105,.12);--ui-bad-line:rgba(255,155,143,.35);
  --ui-warn:#f3b13c;--ui-warn-soft:rgba(243,177,60,.11);--ui-warn-line:rgba(243,177,60,.34);--ui-warn-text:#f3c969;--ui-warn-strong:#ffe2a3}
[data-theme=dark] .side{border-right:1px solid var(--ui-line)}
[data-theme=dark] .overview{box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 18px 40px -24px rgba(0,0,0,.6)}
[data-theme=dark] .stat.accent{background:linear-gradient(135deg,#0f2a4e,#163763);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
[data-theme=dark] :is(.directory-card,.teacher-card,.block-tabs a,.pipe-step,.division-card,.review-item,.ev-file):hover{box-shadow:0 10px 24px -16px rgba(0,0,0,.8)}
[data-theme=dark] .compare-strip>span.compare-arrow{color:var(--ui-good)}
[data-theme=dark] .dot-none{background:var(--ui-track);border-color:var(--ui-line-strong)}
[data-theme=dark] .pipe-step:not(:last-child):not(.is-done)::after{color:var(--ui-muted)}
[data-theme=dark] .seg-open{background:#3a5476}
[data-theme=dark] .sub-card{box-shadow:none}
[data-theme=dark] .ev-ico.is-pdf{color:#ff8a9b}
[data-theme=dark] .ev-ico.is-img{color:#a9aaff}
[data-theme=dark] .ev-ico.is-xls{color:#5fd6a3}
[data-theme=dark] .ev-ico.is-ppt{color:#f5a25d}
[data-theme=dark] .content input::placeholder,[data-theme=dark] .content textarea::placeholder{color:#6f829b}
[data-theme=dark] .content input:-webkit-autofill{-webkit-text-fill-color:var(--ui-text);-webkit-box-shadow:0 0 0 40px var(--ui-field) inset}
[data-theme=dark] .criterion:has(> .submit-box[open]){box-shadow:inset 0 0 0 1px var(--ui-line-strong)}
[data-theme=dark] .pill.good{color:var(--ui-good-text)}
[data-theme=dark] .is-done .step-dot{background:var(--ui-good);color:#06231a}
[data-theme=dark] .table-scroll{scrollbar-color:var(--ui-line-strong) transparent}
[data-theme=dark] .people-pop{box-shadow:0 30px 70px -20px rgba(0,0,0,.85),inset 0 0 0 1px rgba(255,255,255,.04)}
[data-theme=dark] .people-pop::backdrop{background:rgba(2,8,20,.62)}
[data-theme=dark] .staffing-savebar{box-shadow:0 -12px 24px -18px rgba(0,0,0,.8)}

/* rejim o‘tkazgichi (sidebar pastida) */
.theme-toggle{width:34px;height:34px;flex:none;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#8798b0;cursor:pointer;transition:background .15s,color .15s}
.theme-toggle:hover{background:rgba(255,255,255,.07);color:#fff}
.theme-toggle:focus-visible{outline:2px solid var(--ui-accent-hi);outline-offset:2px}
.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .i-sun,[data-theme=dark] .theme-toggle .i-moon{display:none}
[data-theme=dark] .theme-toggle .i-sun{display:block}
