/* Мониторинг — бас ментор смотрит три центра разом.

   Тот же язык, что у «Кураторлық»: скруглённые карточки без лишних рамок,
   капительные подписи секций, цвет только смыслом (зелёный — норма,
   янтарный — присмотреться, красный — ниже порога), цифры одной ширины. */

.mt-lead { font-variant-numeric: tabular-nums; }

/* ── карточки филиалов ── */
.mt-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 8px; }
.mt-branch { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 14px; min-width: 0; }
.mt-bhead { margin-bottom: 12px; }
.mt-bhead h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mt-bhead small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }

.mt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mt-tile { padding: 9px 10px; background: var(--surface-2); border-radius: 12px; min-width: 0; }
.mt-tile b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mt-tile b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mt-tile span { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tile small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tile.ok b { color: var(--green-dark); }
.mt-tile.mid b { color: var(--mid); }
.mt-tile.low b { color: var(--low); }

/* ── секции ── */
.mt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mt-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; min-width: 0; }
.mt-sec.wide { grid-column: 1 / -1; }
.mt-sec h2 {
  margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
}

.mt-scroll { overflow-x: auto; }
.mt-tbl { width: 100%; border-collapse: collapse; }
.mt-tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px 8px; white-space: nowrap; }
.mt-tbl thead th { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; }
.mt-tbl td { padding: 8px; border-top: 1px solid var(--line-2); vertical-align: middle; min-width: 120px; }
.mt-tbl tbody th { border-top: 1px solid var(--line-2); }
.mt-tbl td b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mt-tbl td b i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.mt-tbl td small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.mt-tbl td b.ok { color: var(--green-dark); }
.mt-tbl td b.mid { color: var(--mid); }
.mt-tbl td b.low { color: var(--low); }
.mt-tbl .mt-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 0; }
.mt-tbl .mt-total th, .mt-tbl .mt-total td { border-top: 2px solid var(--line); }
.mt-cur td { min-width: 0; font-size: 13px; }
.mt-none { color: var(--ink-3); }
.mt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-two > span { min-width: 0; }
.mt-two b { font-size: 14px; }

.mt-bar { display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.mt-bar span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.mt-bar .is-mid { background: var(--mid); }
.mt-bar .is-low { background: var(--low); }

.mt-due {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface-2);
}
.mt-ok { color: var(--green-dark); font-weight: 700; }

.mt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mt-col h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.mt-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.mt-row:first-child, .mt-col .mt-row:first-of-type { border-top: 0; }
.mt-row > span:first-child { flex: 1; min-width: 0; }
.mt-row b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-row b a { color: inherit; text-decoration: none; }
.mt-row b a:hover { color: var(--green-dark); }
.mt-row small { display: block; font-size: 11px; color: var(--ink-3); }
.mt-val { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.mt-val b { font-size: 15px; font-weight: 700; }

.mt-note { margin: 8px 2px 0; font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.mt-warn { color: var(--low); font-weight: 600; }
.mt-empty { margin: 4px 0; font-size: 13px; color: var(--ink-3); }

/* Значки регистрации — те же, что на «Басқару» и «Кураторлық». */
.reg-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.reg-dot {
  display: inline-flex; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
}
.reg-dot.on { background: var(--green); border-color: var(--green); }

@media (max-width: 900px) {
  .mt-grid { grid-template-columns: 1fr; }
  .mt-tiles { grid-template-columns: repeat(2, 1fr); }
  .mt-tbl td { min-width: 110px; }
}
