/* Талабалар амалиёти мониторинги — услублар */
:root {
  --brand: #1f5f8b;
  --bg: #f3f5f8; --card: #fff; --line: #e2e7ee; --text: #1d2733; --muted: #6b7785;
  --ok: #1e8e5a; --ok-bg: #e3f4ea; --bad: #c8382f; --bad-bg: #fbe7e5; --warn: #b7791f; --warn-bg: #fdf1dc;
  --info: #2563a8; --info-bg: #e5eefa; --late: #7b4fb8; --late-bg: #efe7fa;
  --r: 12px; --sh: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: 15px/1.5 -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color: var(--text); background: var(--bg); }
body.noscroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; } h4 { font-size: 1rem; margin-top: 1em; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); } .sm { font-size: .86em; } .mono { font-family: ui-monospace, Consolas, monospace; }
.pre { white-space: pre-wrap; word-break: break-word; }
.d { display: block; } .nw { white-space: nowrap; } .grow { flex: 1; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.boot, .loading { padding: 40px; text-align: center; color: var(--muted); }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* кнопкалар */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost.danger { background: #fff; color: var(--bad); border-color: var(--line); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.sm { padding: 5px 10px; font-size: .86rem; border-radius: 7px; }
.btn.big { padding: 14px 22px; font-size: 1.1rem; border-radius: 12px; }
.btn.block { width: 100%; justify-content: center; padding: 11px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.busy::after { border-color: var(--brand); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* формалар */
label { display: block; font-size: .9rem; color: #3a4654; margin-bottom: 12px; font-weight: 500; }
.lbl { display: block; font-size: .9rem; color: #3a4654; font-weight: 500; margin-bottom: 6px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cfd6df; border-radius: 9px; font: inherit; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { resize: vertical; }
label.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
label.chk input, td input[type=checkbox], th input[type=checkbox] { width: 17px; height: 17px; margin: 0; flex: none; display: inline-block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.days { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0; }
.days label.chk { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar label { margin: 0; display: flex; align-items: center; gap: 8px; }
.toolbar label select, .toolbar select, .toolbar input { margin: 0; width: auto; min-width: 160px; }
.toolbar input.grow { flex: 1; min-width: 200px; }
.filebtn { cursor: pointer; }
[hidden] { display: none !important; }
.paste { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; white-space: pre; }

/* авторизация */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #000), color-mix(in srgb, var(--brand) 60%, #3fb3a3)); }
.authcard { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.authcard h1 { font-size: 1.3rem; text-align: center; }
.authcard > .muted { text-align: center; }
.logo { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo .ic { width: 32px; height: 32px; }
.authfoot { margin-top: 14px; text-align: center; }

/* қобиқ */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand .bi { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.brand b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; opacity: .8; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tright { display: flex; align-items: center; gap: 12px; flex: none; }
.brand > div { min-width: 0; }
.who { text-align: right; line-height: 1.2; }
.who b { display: block; font-size: .9rem; } .who small { opacity: .8; font-size: .75rem; }
.langsel { width: auto; margin: 0; padding: 5px 8px; font-size: .85rem; border-radius: 8px; }
.top .langsel { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.top .langsel option { color: var(--text); background: #fff; }
.authfoot .langsel { display: inline-block; }
.top .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.burger { display: none; background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
.burger .ic { width: 26px; height: 26px; }
.layout { display: flex; min-height: calc(100vh - 58px); }
.side { width: 236px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #34404d; font-weight: 500; margin-bottom: 2px; text-decoration: none; }
.side a:hover { background: #f1f4f8; }
.side a.on { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-weight: 600; }
main { flex: 1; min-width: 0; padding: 22px 26px 60px; }

.phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.phead h2 { margin: 0; } .phead p { margin: 2px 0 0; }
.card .phead { margin-bottom: 10px; } .card .phead h3 { margin: 0; }
.pact { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh); }
.card.narrow { max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pcard { color: inherit; text-decoration: none !important; transition: transform .15s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--brand); }
.note { padding: 11px 14px; border-radius: 10px; background: var(--info-bg); color: #1d3b5e; margin-bottom: 14px; }
.note.warn { background: var(--warn-bg); color: #6e4a10; } .note.bad { background: var(--bad-bg); color: #7c1f19; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stats.sm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none !important; box-shadow: var(--sh); }
a.stat:hover { border-color: var(--brand); }
.stat .si { width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; flex: none; }
.stat .si .ic { width: 22px; height: 22px; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.1; } .stat small { color: var(--muted); }
.stat.hl { border-color: var(--warn); background: var(--warn-bg); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; }
.info-grid.one { grid-template-columns: 1fr 1fr; }
.info-grid > div small { display: block; color: var(--muted); font-size: .8rem; }
.info-grid > div b { display: block; } .info-grid > div span, .info-grid > div a { display: block; font-size: .88rem; }

.tlist { display: grid; gap: 8px; }
.titem { display: grid; grid-template-columns: 1fr 2fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none !important; }
.titem:hover { border-color: var(--brand); background: #fafcff; }

/* жадваллар */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-weight: 600; color: #46525f; background: #f6f8fb; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: #f7faff; }
.t tr.off td { opacity: .5; } .t tr.hl td { background: #fffbe8; } .t tr.fut td { color: var(--muted); }
.t .n { text-align: right; }
.t td.fio { min-width: 210px; }
.t td.plc { min-width: 160px; max-width: 240px; font-size: .86rem; } .t .c { text-align: center; width: 36px; }
.t.sm { font-size: .82rem; } .t.sm th select { min-width: 120px; margin: 0; padding: 4px 6px; font-size: .82rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef1f5; color: #4a5562; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.info { background: var(--info-bg); color: var(--info); } .badge.late { background: var(--late-bg); color: var(--late); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: #eef2f7; color: #374351; font-size: .82rem; margin: 2px 2px 2px 0; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--bad); }
.t .chip { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pbar { position: relative; min-width: 110px; height: 20px; border-radius: 6px; background: #edf0f4; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.pbar.ok i { background: #8fd3ae; } .pbar.warn i { background: #f1c879; } .pbar.bad i { background: #f0a39d; }
.pbar b { position: relative; display: block; text-align: center; font-size: .78rem; line-height: 20px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.bulk { display: none; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 12px; margin-bottom: 10px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 9%, #fff); }
.bulk.show { display: flex; }

/* давомат */
.att { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 7px; font-weight: 700; font-size: .9rem; border: 1px solid transparent; background: #f0f2f5; color: #9aa4af; cursor: pointer; position: relative; font-family: inherit; }
.att.ok { background: var(--ok-bg); color: var(--ok); } .att.bad { background: var(--bad-bg); color: var(--bad); }
.att.warn { background: var(--warn-bg); color: var(--warn); } .att.late { background: var(--late-bg); color: var(--late); }
.att.none { background: #f4f6f8; border: 1px dashed #cdd4dc; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.legend .att { cursor: default; min-width: 22px; height: 22px; font-size: .8rem; }
.grid-wrap { max-height: 70vh; overflow: auto; }
.attgrid th, .attgrid td { padding: 4px 3px; text-align: center; }
.attgrid .sticky { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; padding: 6px 10px; min-width: 220px; max-width: 280px; white-space: normal; }
.attgrid thead th { position: sticky; top: 0; z-index: 3; }
.attgrid thead th.sticky { z-index: 4; background: #f6f8fb; }
.attgrid .dh { font-size: .74rem; line-height: 1.15; cursor: pointer; min-width: 40px; }
.attgrid .dh span { display: block; color: var(--muted); font-weight: 500; }
.attgrid .dh.today { background: color-mix(in srgb, var(--brand) 16%, #fff); }
.attgrid .dh.fut { opacity: .5; cursor: default; }
.attgrid .cell.fut { background: #fafbfc; }
.attgrid .att { width: 32px; height: 28px; }
.pin-d { position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--info); border: 2px solid #fff; }
.pop { position: fixed; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px; min-width: 200px; }
.pop .pt { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop .pt b, .pop .pt small, .pop .pt .ci { display: block; }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font: inherit; cursor: pointer; text-align: left; }
.pop button:hover { background: #f1f4f8; }
.daylist { display: grid; gap: 0; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #eef1f5; }
.drow:last-child { border-bottom: 0; }
.dn { min-width: 0; } .dn b, .dn small, .dn .ci { display: block; }
.ci { font-size: .82rem; color: var(--info); }
.dbtn { display: flex; gap: 6px; flex: none; }
.att.big { width: 64px; height: 50px; display: flex; flex-direction: column; justify-content: center; font-size: 1.15rem; line-height: 1; background: #f4f6f8; color: #8a949f; border: 1px solid #e1e6ec; }
.att.big small { font-size: .66rem; font-weight: 600; margin-top: 3px; }
.att.big.on.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.att.big.on.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.att.big.on.warn { background: var(--warn); color: #fff; border-color: var(--warn); }
.att.big.on.late { background: var(--late); color: #fff; border-color: var(--late); }
.att.big:disabled { opacity: .4; cursor: default; }

/* ҳисоботлар */
.rlist { display: grid; gap: 12px; }
.rcard { margin: 0; border-left: 4px solid var(--info); }
.rcard.st-joy_tasdiq { border-left-color: var(--warn); } .rcard.st-qabul { border-left-color: var(--ok); } .rcard.st-qaytarildi { border-left-color: var(--bad); }
.rh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rt { font-weight: 600; color: #34404d; }
.rs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ballb { font-weight: 700; color: var(--ok); }
.rb { margin: 10px 0; padding: 10px 12px; background: #f8fafc; border-radius: 8px; font-size: .94rem; }
.rb.scroll { max-height: 260px; overflow-y: auto; }
.rf { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fileb { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; font-size: .86rem; color: var(--brand); }
.fileb:hover { border-color: var(--brand); } .fileb small { color: var(--muted); }
.rz { font-size: .88rem; margin-top: 6px; padding: 6px 10px; background: #fbfbf4; border-radius: 6px; }
.rz small { color: var(--muted); }
.ra { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.tasks { display: grid; gap: 8px; }
.task { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; border-left: 4px solid #d5dbe2; }
.task.st-qabul { border-left-color: var(--ok); background: #f7fcf9; } .task.st-qaytarildi { border-left-color: var(--bad); }
.task.st-yuborildi { border-left-color: var(--info); } .task.st-joy_tasdiq { border-left-color: var(--warn); }
.tb small { display: block; } .ta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.todaycard { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.todaycard.yes { border-color: var(--ok); background: linear-gradient(135deg, #f1fbf5, #fff); }
.ciok { padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.filedrop { display: flex; align-items: center; gap: 10px; padding: 16px; border: 2px dashed #cfd6df; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 500; }
.filedrop:hover { border-color: var(--brand); color: var(--brand); }
.filedrop input { display: none; }
.flist { margin: -4px 0 10px; }
.hfil { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; }
.hgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 14px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.hgroups label.chk { margin: 0; font-size: .86rem; padding: 3px 0; }
.note.ok-n { background: var(--ok-bg); color: #145c3a; }
@media (max-width: 700px) { .hfil { grid-template-columns: 1fr 1fr; } }
.brow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.brow > label.chk { margin: 0; }
.bin { margin-top: 8px; } .bin.off { display: none; } .bin label { margin-bottom: 4px; }
.ver { color: #a0a9b4; font-size: .75rem; padding: 14px 12px 4px; }
.authfoot .ver { padding: 0 0 0 8px; }
.ss { position: relative; margin-top: 4px; }
.toolbar .ss, .hfil .ss { margin-top: 0; }
.toolbar .ss { min-width: 180px; }
.ss-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; margin: 0 !important; padding: 0 !important; }
.ss-btn { display: block; width: 100%; text-align: left; padding: 9px 34px 9px 11px; border: 1px solid #cfd6df; border-radius: 9px; font: inherit; color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 40px; }
.ss-btn:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ss-btn:disabled { background-color: #f3f5f8; color: var(--muted); cursor: default; }
.ss-pop { position: fixed; z-index: 150; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; }
.ss-pop.up { flex-direction: column-reverse; }
.ss-q { margin: 0 0 6px; }
.ss-pop.up .ss-q { margin: 6px 0 0; }
.ss-list { max-height: 300px; overflow-y: auto; }
.ss-o { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: .92rem; line-height: 1.35; }
.ss-o.act { background: #eef3fa; }
.ss-o.sel { font-weight: 600; color: var(--brand); }
.ss-o.dis { opacity: .45; cursor: default; }
.ss-none { padding: 10px; color: var(--muted); }
.ss-cnt { font-size: .75rem; color: var(--muted); text-align: right; padding: 2px 4px 0; }
.ss-cnt:empty { display: none; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 6px; }

/* модал */
.mwrap { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,32,.48); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; animation: fade .15s; }
.modal { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 760px; }
.modal h3 { padding-right: 30px; }
.mx { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.mfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.imgprev { text-align: center; } .imgprev img { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.creds { max-height: 50vh; overflow: auto; margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } }

#toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 10px; color: #fff; background: #23303d; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .4s, transform .4s; }
.toast.ok { background: #1f7a50; } .toast.err { background: #b3342b; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* мобил */
@media (max-width: 900px) {
  .burger { display: block; }
  .side { position: fixed; left: 0; top: 56px; bottom: 0; height: auto; z-index: 40; transform: translateX(-105%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  main { padding: 16px 12px 60px; }
  .who, .hide-sm { display: none; }
  .titem { grid-template-columns: 1fr auto; }
  .titem .muted { display: none; }
}
@media (max-width: 600px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .drow { flex-direction: column; align-items: stretch; }
  .dbtn { justify-content: space-between; }
  .att.big { flex: 1; width: auto; }
  .modal { padding: 18px 16px; }
  .task { flex-direction: column; } .ta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .brand small { display: none; }
  .info-grid.one { grid-template-columns: 1fr; }
  .stat b { font-size: 1.15rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; gap: 9px; }
  .stat .si { width: 34px; height: 34px; }
  .top { padding: 8px 10px; gap: 8px; }
  .brand b { font-size: .9rem; }
}

/* чоп этиш */
@media print {
  .top, .side, .pact, .toolbar, .tabs, .bulk, .ra, .btn, #toasts, .seg { display: none !important; }
  body, .layout, main { background: #fff; padding: 0; display: block; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .grid-wrap { max-height: none; overflow: visible; }
  .t th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .att, .pbar i, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
