/* students.css — talabalar agentiga tegishli (students/templates/students/**). app.css klasslari ustiga, faqat st-* klasslar. */

/* ================= Umumiy ================= */
.st-head { margin-bottom:10px; }
.st-head .actions { align-items:center; }
.st-more-btn { width:42px; height:42px; }
.st-more-btn .ti { font-size:19px; }
.st-btn-red { background:var(--red) !important; border-color:var(--red) !important; }
.st-foot { margin-top:2px; }

/* Filtr qatori (Modme: bir qatorda ixcham 28px inputlar, o'ngda ro'yxat/katak ikonkalari) */
.st-filters { flex-wrap:nowrap; gap:6px; margin-bottom:8px; }
.st-filters select, .st-filters input:not([type=checkbox]):not([type=radio]) { min-width:0 !important; width:112px; flex:1 1 112px !important;
  border-radius:4px; color:var(--text); }
.st-filters input.st-q { flex:1.4 1 150px !important; width:150px; }
.st-filters input.st-date { flex:1 1 118px !important; width:118px; padding:0 8px !important; }
.st-filters select { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-ficon { flex:none; width:28px; height:28px; border-radius:4px; border:1px solid var(--input-border); background:var(--panel2);
  color:var(--text); display:inline-grid; place-items:center; cursor:pointer; padding:0; font-size:15px; font-family:inherit; }
.st-ficon:hover, .st-ficon.on { color:var(--accent); border-color:var(--accent); }
.st-views { display:inline-flex; gap:6px; margin-left:8px; flex:none; }
.st-views .st-ficon { width:32px; }
@media (max-width:1100px) { .st-filters { flex-wrap:wrap; } }

/* ================= Talabalar jadvali ================= */
.st-wrap { overflow-x:auto; overflow-y:visible; padding-bottom:4px; }
@media (min-width:1200px) { .st-wrap { overflow:visible; } }
.st-table th { height:65px; vertical-align:middle; }
.st-table th.st-c-dates { line-height:1.25; }
.st-table tbody td { height:60px; padding:9px 10px; }
.st-table .rownum { padding-right:2px; padding-left:14px; }
.st-table .st-c-check { width:28px; padding-left:4px; padding-right:4px; }
.st-table th.st-c-num { width:1%; }
.st-table .st-c-foto { width:56px; }
.st-table .st-c-name { min-width:170px; }
.st-table .t-name { display:block; line-height:1.25; }
.st-table .t-sub { margin-top:2px; }
.st-sort { font-size:14px; opacity:.6; margin-left:4px; }
.st-c-groups { min-width:170px; max-width:240px; font-size:12.16px; line-height:1.35; }
.st-grp { display:block; color:var(--text); }
.st-grp + .st-grp { margin-top:6px; }
.st-grp:hover { color:var(--accent); }
.st-gtag { display:inline-block; font-size:8.8px; font-weight:700; padding:1px 4px; border-radius:3px; background:var(--bg);
  color:var(--text); vertical-align:1px; margin-right:2px; white-space:nowrap; }
.st-gtag.trial { color:var(--yellow); }
.st-gtag.frozen { color:var(--blue); }
.st-c-teach, .st-c-dates { font-size:12.16px; line-height:1.3; white-space:nowrap; }
.st-c-teach > div + div, .st-c-dates > div + div { margin-top:6px; }
.st-c-teach > div { min-height:31px; white-space:normal; max-width:110px; }
.st-c-note { font-size:12px; max-width:150px; color:var(--muted); }
.st-table .st-c-act { width:1%; white-space:nowrap; text-align:right; padding-right:14px; }
.st-table td.st-c-act { text-align:center; }
.st-tags { display:flex; flex-wrap:wrap; gap:3px; margin-top:3px; }
.st-utag { font-size:9.6px; font-weight:700; padding:0 5px; border-radius:4px; border:1px solid var(--tc); color:var(--tc); line-height:1.5; }

/* jadval sarlavhasidagi dumaloq ommaviy amal tugmalari (Modme: papka / xat / savat) */
.st-bulk { display:inline-flex; gap:6px; }
.st-rbtn { width:30px; height:30px; border-radius:50%; border:1px solid var(--input-border); background:var(--panel2); color:var(--muted);
  display:inline-grid; place-items:center; cursor:pointer; padding:0; font-size:15px; }
.st-rbtn:hover:not([disabled]) { color:var(--accent); border-color:var(--accent); }
.st-rbtn[disabled] { opacity:.55; cursor:default; }

/* Katak (grid) ko'rinishi */
.st-wrap.st-grid thead { display:none; }
.st-wrap.st-grid table, .st-wrap.st-grid tbody { display:block; }
.st-wrap.st-grid tbody { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; margin-top:6px; }
.st-wrap.st-grid tr { display:flex; flex-wrap:wrap; align-items:center; background:var(--panel2); border-radius:10px; box-shadow:var(--shadow-row);
  padding:10px; position:relative; gap:4px 8px; }
.st-wrap.st-grid tbody tr:hover td { background:transparent; }
.st-wrap.st-grid tbody td { display:block; height:auto; padding:2px 4px; background:transparent; box-shadow:none; border-radius:0 !important; }
.st-wrap.st-grid td.rownum, .st-wrap.st-grid td.st-c-teach, .st-wrap.st-grid td.st-c-dates, .st-wrap.st-grid td.st-c-note:empty { display:none; }
.st-wrap.st-grid td.st-c-name { flex:1; min-width:0; }
.st-wrap.st-grid td.st-c-groups { flex-basis:100%; max-width:none; }
.st-wrap.st-grid td.st-c-act { position:absolute; top:8px; right:4px; }
.st-wrap.st-grid td.st-c-check { order:-1; }

/* ================= Qo'shish / tahrirlash drawer ================= */
.st-drawer .m-head { font-size:16px; }
.st-drawer .m-close { font-size:20px; }
.st-drawer .form-grid { gap:14px; }
.st-drawer .field label { font-weight:700; }
.st-drawer .input-prefix > span { padding:0 14px; }
.st-drawer textarea { min-height:68px; }
.st-radios { display:flex; gap:18px; align-items:center; min-height:24px; }
.st-radio { display:inline-flex !important; align-items:center; gap:7px; font-weight:600 !important; margin:0 !important; cursor:pointer; }
.st-radio input[type=radio] { width:16px; height:16px; }
.st-extra-btns { display:flex; flex-wrap:wrap; gap:6px; }
.st-xbtn { width:30px; height:30px; border-radius:50%; border:1px solid var(--accent); background:transparent; color:var(--accent);
  display:inline-grid; place-items:center; cursor:pointer; padding:0; font-size:15px; }
.st-xbtn:hover, .st-xbtn.on { background:var(--accent); color:#fff; }
.st-xfield { margin-top:10px; }
.st-xfield .field + .field { margin-top:12px; }
.st-more { display:flex; flex-direction:column; }
.st-more-link { align-self:flex-end; background:none; border:0; color:var(--text); font-size:12.16px; font-weight:700; cursor:pointer;
  padding:2px 0; font-family:inherit; }
.st-more-link:hover { color:var(--accent); }
.st-drawer .st-save-new { border-color:var(--input-border); color:var(--text); }
.st-form-back { margin-top:-4px; }

/* ================= Qarzdorlar ================= */
.st-banner { min-height:68px; padding:14px 18px; margin-bottom:12px; }
.st-banner .sb-title { font-size:21px; font-weight:500; }
.st-banner .sb-icon { font-size:26px; }
.st-fgrid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px 12px; margin:20px 0 6px; align-items:end; }
.st-fgrid[hidden] { display:none; }
.st-fgrid .st-span2 { grid-column:span 2; }
.st-fgrid .field label { font-weight:500; font-size:12px; margin-bottom:6px; }
.st-fgrid input:not([type=checkbox]):not([type=radio]), .st-fgrid select { height:32px; font-size:12px; }
.st-fgrid-btns { display:flex; gap:8px; align-items:center; }
.st-filtr { padding:7px 22px !important; }
.st-tools { display:flex; justify-content:flex-end; gap:8px; margin:6px 0 0; }
.st-tools .btn-dark { border-radius:50px; }
.st-debt .st-dname { font-size:13.5px; font-weight:600; }
.st-debt .st-dname:hover { color:var(--accent); }
.st-money { font-size:12.16px; line-height:1.3; white-space:nowrap; }
.st-debt .st-c-groups { max-width:300px; }
.st-debt .tag { font-size:8.8px; margin-right:2px; }
.st-status { white-space:nowrap; }
.st-sicon { display:inline-grid; place-items:center; width:26px; height:26px; color:var(--text); font-size:19px; vertical-align:middle; }
.st-sicon:hover { color:var(--accent); }
.st-sbtn { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#a9adb4; color:#3a3f47;
  font-size:16px; vertical-align:middle; margin-right:4px; }
.st-sbtn:hover { background:var(--accent); color:#fff; }
.st-rbtn.st-rbtn-acc { border-color:var(--accent); color:var(--accent); background:transparent; }
@media (max-width:1000px) { .st-fgrid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* ================= Arxiv / Tark etganlar ================= */
.st-btn-sq { border-radius:4px !important; padding:6px 14px !important; font-size:12px !important; font-weight:600; height:32px; }
.st-btn-ic { width:38px; padding:0 !important; }
.st-btn-ic .ti { font-size:16px; }
.st-afilters { justify-content:flex-start; }
.st-filters.st-afilters input.st-q:not([type=checkbox]) { flex:0 1 260px !important; width:260px; height:32px !important; }
.st-panel { padding:14px 16px; }
.st-panel.p0 { padding:6px 16px 10px; }
.st-arch th { background:transparent; font-size:12.16px; }
.st-arch tbody td { height:64px; }
.st-aname { display:block; font-size:12.8px; font-weight:700; line-height:1.3; }
.st-aname:hover { color:var(--accent); }
.st-asub { display:block; font-size:10.5px; color:var(--muted); line-height:1.35; }
.st-asub.money-pos { color:var(--green); }
.st-asub.money-neg { color:var(--red); }
.st-restore { background:none; border:0; color:var(--green); font-size:18px; cursor:pointer; padding:4px; }
.st-restore:hover { color:var(--accent); }
.st-lpanel { margin-bottom:8px; }
.st-lfilters { display:grid; grid-template-columns:1.3fr repeat(6,minmax(0,1fr)); gap:8px; align-items:center; }
.st-lfilters input:not([type=checkbox]), .st-lfilters select { height:35px; font-size:12px; }
.st-lbtns { grid-column:1/-1; display:flex; justify-content:center; gap:8px; }
.st-lbtns .btn-blue { padding:6px 22px !important; }
.st-lstats { display:flex; gap:12px; margin-top:14px; flex-wrap:wrap; }
.st-lstat { flex:1 1 160px; background:var(--panel2); border-radius:4px; padding:10px 14px; display:flex; justify-content:space-between;
  align-items:center; gap:10px; font-size:12.16px; font-weight:600; }
.st-lstat b { font-size:20px; font-weight:700; }
.st-yellow { color:var(--yellow); }
@media (max-width:1100px) { .st-lfilters { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* ================= Talaba profili (Modme 27/28) ================= */
.st-arch-alert { margin-bottom:16px; }
.st-profile { display:grid; grid-template-columns:390px minmax(0,1fr); gap:25px; align-items:start; }
@media (max-width:1100px) { .st-profile { grid-template-columns:1fr; } }
.st-pside { display:flex; flex-direction:column; gap:12px; }
.st-pcard { display:flex; gap:10px; padding:20px 18px 18px 20px; }
.st-pinfo { flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; }
.st-ava-lg { width:80px !important; height:80px !important; border:3px solid #fff; background:var(--avatar-bg); margin-bottom:2px; }
.st-ava-lg .ti { font-size:36px !important; }
.st-pname { font-size:22px; font-weight:500; line-height:1.2; margin-top:2px; }
.st-pid { font-size:11px; color:var(--muted); margin-top:-4px; }
.st-plbl { color:var(--muted); font-size:12px; }
.st-pbal { display:flex; align-items:center; gap:8px; margin-top:6px; }
.st-balpill { display:inline-block; background:var(--green); color:#fff; font-weight:700; font-size:11.5px; padding:3px 10px; border-radius:20px; white-space:nowrap; }
.st-balpill.neg { background:var(--red); }
.st-pcoin { display:flex; align-items:center; gap:6px; font-weight:700; }
.st-pkv { display:flex; flex-direction:column; gap:1px; margin-top:6px; }
.st-pkv > a, .st-pkv > span:last-child { font-size:12.8px; }
.st-pkv a:hover { color:var(--accent); }
.st-pline { font-size:12.16px; }
.st-pline:first-of-type { margin-top:10px; }
.st-pline b { font-weight:700; margin-left:4px; }
.st-pline .tag { margin-left:4px; }
.st-pbtns { display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between; margin-top:14px; }
.st-split { display:inline-flex; }
.st-sbtn-main, .st-sbtn-caret { display:inline-flex; align-items:center; gap:5px; height:26px; background:transparent; color:var(--text);
  border:1px solid var(--green); font-size:11.5px; font-weight:600; font-family:inherit; cursor:pointer; }
.st-sbtn-main { border-radius:20px 0 0 20px; padding:0 10px; border-right:0; }
.st-sbtn-main .ti { font-size:14px; color:var(--green); }
.st-sbtn-caret { border-radius:0 20px 20px 0; padding:0 7px; font-size:10px; }
.st-sbtn-main:hover, .st-sbtn-caret:hover { background:color-mix(in srgb,var(--green) 14%,transparent); }
.st-split .menu { left:0; right:auto; }
.st-picons { display:flex; flex-direction:column; gap:12px; align-items:center; flex:none; }
.st-picons form { margin:0; }
.st-pic { width:32px; height:32px; border-radius:50%; border:1px solid var(--muted); background:transparent; color:var(--text);
  display:inline-grid; place-items:center; cursor:pointer; padding:0; font-size:16px; flex:none; }
.st-pic.sm { width:28px; height:28px; font-size:14px; }
.st-pic.acc { border-color:var(--accent); color:var(--accent); }
.st-pic.red { border-color:var(--red); color:var(--red); }
.st-pic.red.on { background:var(--red); color:#fff; }
.st-pic.yellow { border-color:var(--yellow); color:var(--yellow); }
.st-pic.blue { border-color:var(--blue); color:var(--blue); }
.st-pic.green { border-color:var(--green); color:var(--green); }
.st-pic.teal { border-color:#17a2b8; color:#17a2b8; }
.st-pic:hover { background:color-mix(in srgb,currentColor 15%,transparent); }
.st-note { display:flex; justify-content:space-between; gap:10px; border-left:5px solid var(--blue); padding:16px 18px 16px 18px; min-height:88px; }
.st-note-text { white-space:pre-line; margin-top:6px; font-size:12.8px; }
.st-pmain { min-width:0; }
.st-ptabs { border-bottom:0; gap:22px; margin-bottom:14px; margin-top:-2px; }
.st-ptabs a { font-size:12.8px; }

/* Guruh kartasi */
.st-gcards { display:flex; flex-wrap:wrap; gap:17px; align-items:flex-start; }
.st-gcard { width:390px; max-width:100%; padding:16px 20px 14px; }
.st-gcard.left { opacity:.7; }
.st-gtop { display:flex; justify-content:space-between; gap:10px; }
.st-gtop .tag { font-size:9.6px; padding:3px 10px; }
.st-gmeta { text-align:right; font-size:10.5px; line-height:1.4; color:var(--muted); }
.st-gmeta > div:first-child { color:var(--text); }
.st-gstatus { color:var(--accent); font-weight:600; }
.st-gstatus.trial { color:var(--yellow); }
.st-gstatus.frozen { color:#17a2b8; }
.st-gstatus.left { color:var(--red); }
.st-gcourse { display:block; font-size:16px; font-weight:700; margin-top:-6px; }
.st-gcourse:hover { color:var(--accent); }
.st-gteacher { font-size:11.5px; color:var(--muted); }
.st-gkv { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; display:flex; flex-direction:column; gap:9px; font-size:12.16px; }
.st-gkv > div { display:flex; justify-content:space-between; gap:12px; }
.st-gkv span { color:var(--muted); }
.st-gkv b { font-weight:600; text-align:right; }
.st-gatt { display:flex; align-items:center; justify-content:space-around; gap:20px; margin:22px 0 14px; }
.st-pie { width:84px; height:84px; border-radius:50%; flex:none;
  background:conic-gradient(var(--green) 0 var(--p), var(--red) var(--p) 100%); }
.st-pie.empty { background:var(--panel2); box-shadow:inset 0 0 0 2px var(--input-border); }
.st-legend { display:flex; flex-direction:column; gap:7px; font-size:11.5px; min-width:120px; }
.st-legend > div { display:flex; justify-content:space-between; gap:20px; }
.st-legend span { color:var(--muted); display:inline-flex; align-items:center; gap:6px; }
.st-legend b { font-weight:700; }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--muted); }
.dot.green { background:var(--green); }
.dot.red { background:var(--red); }
.st-gfoot { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:12.16px; min-height:34px; }
.st-gbtns { display:flex; gap:8px; }
.st-gbtns form { margin:0; }

/* Oylik balans va To'lovlar */
.st-h2 { font-size:22px; font-weight:500; margin:26px 0 12px; }
.st-mcard { display:flex; flex-wrap:wrap; gap:12px; padding:22px 22px; }
.st-mbox { width:112px; height:62px; border:1px solid var(--yellow); border-radius:4px; padding:5px 6px; display:flex; flex-direction:column; }
.st-mlabel { font-size:9.6px; color:var(--yellow); }
.st-mval { flex:1; display:grid; place-items:center; font-size:16px; color:var(--yellow); font-weight:500; }
.st-mval.neg { color:var(--red); }
.st-mval.pos { color:var(--green); }
.st-tcard { padding:12px 20px 20px; }
.st-tcard .table-wrap { overflow-x:auto; }
table.st-ptable { border-spacing:0; }
.st-ptable th { background:transparent; font-size:12.8px; padding:14px 10px; }
.st-ptable td { background:transparent; box-shadow:none; vertical-align:top; padding:12px 10px; }
.st-ptable tbody td { height:auto; }
.st-ptable tbody tr:hover td { background:var(--panel2); }
.st-tbadge { display:inline-block; font-size:10.5px; font-weight:600; padding:2px 6px; border-radius:3px; background:#8b929c; color:#fff; white-space:nowrap; }
.st-tbadge.badge-green { background:#3cb532; }
.st-tbadge.badge-red { background:var(--red); }
.st-tbadge.badge-blue { background:var(--blue); }
.st-tbadge.badge-yellow { background:#8b929c; }
.st-amount { font-size:14px; }
.st-amount small { font-size:11px; }
.st-pnote { max-width:260px; }
.st-pnote .tag { margin-right:3px; }
.st-psub { font-size:11.5px; color:var(--muted); }
.st-print { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 12px; border:1px solid #17a2b8; border-radius:20px;
  font-size:11.5px; font-weight:600; white-space:nowrap; }
.st-print:hover { background:color-mix(in srgb,#17a2b8 15%,transparent); }
.st-tbar { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.st-tbar .st-h2 { margin:0; }
.st-coin-now { font-size:20px; }
.st-astats { display:flex; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.st-cform { margin-bottom:12px; }
.st-comment { margin-bottom:10px; padding:14px 18px; }
.st-comment-head { display:flex; align-items:center; gap:10px; }
.st-comment-text { white-space:pre-line; margin-top:8px; }
.st-empty { text-align:center; color:var(--muted); padding:30px; }

/* ro'yxatda guruh / o'qituvchi / sana qatorlari bir xil balandlikda (har guruh — bitta qator) */
.st-table .st-grp, .st-table .st-c-teach > div, .st-table .st-c-dates > div { min-height:34px; display:flex; flex-direction:column; justify-content:center; }
.st-table .st-grp { display:block; padding:1px 0; }
.st-table .st-c-teach > div { min-height:34px; }
