/* EDU PRO CRM — Modme ish oqimiga mos interfeys */

:root {
  --green: #1e5b3f;
  --orange: #f5923e;
  --blue: #3b82f6;
  --blue-soft: #4a9df8;
  --olive: #3d5a45;
  --olive-menu: #576a3d;
  --ink: #2b3945;
  --ink-2: #6b7a89;
  --ink-3: #9aa7b3;
  --line: #e6eaee;
  --line-2: #eef1f4;
  --bg: #f4f6f8;
  --white: #fff;
  --pink: #f7a8bd;
  --mint: #7fdcb0;
  --red: #e2574c;
  --ok: #21a366;
  --sidebar-w: 124px;
  --header-h: 72px;
  --font: "Nunito", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Matn ichidagi ikonalar — grafiklar o'z o'lchamini style bilan beradi */
svg:not([style]) { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ------------------------------------------------------------ layout */

#app { min-height: 100%; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--white); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 30;
}
.logo {
  width: 66px; height: 66px; margin: 3px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; flex: none; background: var(--green);
}
a.logo:hover { filter: brightness(1.08); }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo svg { width: 40px; height: 40px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 0 20px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: #dfe4e9; border-radius: 4px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 6px; color: var(--ink-2); font-size: 12.5px; text-align: center;
  border-bottom: 1px solid var(--line-2); line-height: 1.25;
}
.nav a svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav a:hover { color: var(--olive-menu); }
.nav a.active { color: var(--olive-menu); }
.nav a.active svg { stroke: var(--olive-menu); }

.nav-sec {
  display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%;
  padding: 14px 6px; color: var(--ink-2); font-size: 12.5px; background: none; border: 0;
  border-bottom: 1px solid var(--line-2); line-height: 1.25; position: relative;
}
.nav-sec svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav-sec:hover, .nav-sec.active { color: var(--olive-menu); }
.nav-sec.active svg { stroke: var(--olive-menu); }
.nav-sec.active::after, .nav a.active::after {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 6px;
  background: var(--olive-menu); border-radius: 0 10px 10px 0;
}
.nav a { position: relative; }

/* Ikkinchi (surilib chiquvchi) panel — Modme uslubi */
.sub-menu {
  position: fixed; top: 0; bottom: 0; left: var(--sidebar-w); width: 230px; background: #fff;
  border-right: 1px solid var(--line); z-index: 25; overflow-y: auto; padding: 18px 0;
  transform: translateX(-260px); transition: transform .18s ease; visibility: hidden;
}
.sub-menu.open { transform: none; visibility: visible; }
.sub-menu .sub-title {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 20px 12px;
}
.sub-menu a, .sub-menu .sub-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 20px; font-size: 13.5px;
  color: var(--ink-2); background: none; border: 0; width: 100%; text-align: left;
}
.sub-menu a:hover, .sub-menu .sub-head:hover { color: var(--olive-menu); }
.sub-menu a.active { color: var(--olive-menu); font-weight: 600; }
.sub-menu svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.sub-group .sub-head { font-weight: 600; color: var(--ink); }
.sub-group .sub-head svg { margin-left: auto; transition: transform .15s; }
.sub-group.open .sub-head svg { transform: rotate(180deg); }
.sub-group .sub-kids { display: none; }
.sub-group.open .sub-kids { display: block; }
.sub-group .sub-kids a { padding-left: 36px; }
body.submenu-open .content, body.submenu-open .footer-bar { margin-left: calc(var(--sidebar-w) + 230px); }
body.submenu-open .header { left: calc(var(--sidebar-w) + 230px); }

.header {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h);
  background: var(--white); display: flex; align-items: center; gap: 14px;
  padding: 0 22px 0 18px; z-index: 20;
}
.branch-btn {
  display: flex; align-items: center; gap: 7px; background: none; border: 0;
  font-size: 19px; font-weight: 700; color: var(--ink); padding: 4px 2px;
}
.branch-btn svg { width: 14px; height: 14px; stroke: var(--ink-2); }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink-3);
  background: none; display: grid; place-items: center; color: var(--ink-2); flex: none;
}
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn.plain { border: 0; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }

.search-wrap { flex: 1; display: flex; justify-content: center; position: relative; }
.search {
  width: 305px; height: 38px; border-radius: 20px; border: 0; background: #f1f3f5;
  padding: 0 40px 0 18px; font-size: 14px;
}
.search::placeholder { color: var(--ink-3); }
.search-wrap .s-ico { position: absolute; right: calc(50% - 152px + 14px); top: 11px; width: 17px; height: 17px; stroke: var(--ink-2); fill: none; }
.search-results {
  position: absolute; top: 44px; width: 340px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 28px rgba(20,40,60,.14); padding: 6px; z-index: 40; max-height: 380px; overflow: auto;
}
.search-results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 10px 4px; }
.search-results a { display: block; padding: 7px 10px; border-radius: 5px; font-size: 14px; }
.search-results a:hover { background: #f4f6f8; }

.header-right { display: flex; align-items: center; gap: 13px; }
.lang { border: 1.5px solid var(--ink-3); border-radius: 5px; padding: 2px 8px; font-size: 12px; color: var(--ink-2); background: none; text-transform: lowercase; }
.user-name { font-size: 15px; color: var(--ink); white-space: nowrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #dfe4e9; display: grid; place-items: center; color: #98a4b0; }
.avatar svg { width: 19px; height: 19px; }

.content { margin-left: var(--sidebar-w); padding: calc(var(--header-h) + 18px) 22px 60px; }

.footer-bar {
  margin-left: var(--sidebar-w); padding: 16px 26px 26px; display: flex; align-items: center;
  gap: 26px; color: var(--ink-2); font-size: 13.5px; border-top: 1px solid var(--line);
}
.footer-bar .modme { margin-left: auto; font-weight: 800; color: var(--ink-3); letter-spacing: -.5px; }

/* --------------------------------------------------------- primitives */

.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.pad { padding: 18px 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono-num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.mt { margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.btn {
  height: 38px; padding: 0 18px; border-radius: 5px; border: 0; background: var(--orange);
  color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { filter: brightness(1.06); }
.btn.olive { background: var(--olive); }
.btn.blue { background: var(--blue-soft); }
.btn.ghost { background: none; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--orange); border-color: var(--orange); }
.btn.red { background: var(--red); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13.5px; color: var(--ink-2); }
.field > label .req { color: var(--red); }
.inp, select.inp, textarea.inp {
  height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px;
  background: #fff; width: 100%; font-size: 14px;
}
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; }
.inp:focus { border-color: var(--blue); outline: none; }
.inp::placeholder { color: var(--ink-3); }

.chip {
  display: inline-block; background: #eef1f4; color: var(--ink-2); border-radius: 4px;
  padding: 2px 7px; font-size: 11.5px; line-height: 1.5; white-space: nowrap;
}
.chip.green { background: #dff5e9; color: #1b7a4d; }
.chip.red { background: #fde8e6; color: #b23a30; }
.chip.orange { background: #fdeedd; color: #a35f13; }
.chip.blue { background: #e3eefe; color: #2a5fa8; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.g { background: var(--ok); }
.dot.r { background: var(--red); }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; padding: 12px 2px; font-size: 14.5px; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

.subtabs { display: flex; gap: 22px; }
.subtabs button { background: none; border: 0; padding: 8px 2px; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subtabs button.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ------------------------------------------------------------- table */

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--ink); font-size: 14px;
  padding: 16px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff;
}
table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl tbody tr:hover { background: #fafbfc; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.idx { color: var(--ink-3); font-size: 12.5px; width: 34px; }
.phone { color: var(--blue); white-space: nowrap; }
.bal-pos { color: var(--ok); font-weight: 600; }
.bal-neg { color: var(--red); font-weight: 600; }
.rowmenu { background: none; border: 0; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 2px 6px; }
.rowmenu:hover { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .inp, .filters select.inp { height: 38px; min-width: 150px; width: auto; }
.filters .field { min-width: 150px; }

.pager { display: flex; align-items: center; gap: 8px; padding: 14px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 4px; min-width: 32px; height: 32px; color: var(--ink-2); }
.pager button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ----------------------------------------------------------- kpi/dash */

.kpi-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 10px 20px;
  text-align: center; display: block;
}
.kpi:hover { border-color: var(--orange); }
.kpi .l { color: var(--ink-2); font-size: 13px; line-height: 1.3; min-height: 34px; }
.kpi .v { font-size: 31px; font-weight: 600; margin-top: 6px; }

.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 10px 6px; }

.sched { border-collapse: collapse; width: 100%; font-size: 12px; }
.sched th { padding: 8px 4px; text-align: center; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sched th.hour { color: var(--ink); }
.sched td { border: 1px solid var(--line-2); height: 68px; padding: 2px; vertical-align: top; }
.sched td.room { background: #f7f8f9; font-size: 13px; color: var(--ink); padding: 10px; width: 150px; vertical-align: top; border-left: 0; }
.les {
  border-radius: 4px; padding: 4px 6px; font-size: 10.5px; line-height: 1.3; height: 100%;
  overflow: hidden; color: #23343f;
}
.les.pink { background: var(--pink); }
.les.mint { background: var(--mint); }
.les .t { background: rgba(255,255,255,.55); border-radius: 3px; padding: 0 3px; display: inline-block; }
.les .cnt { background: #fff; border-radius: 3px; padding: 0 3px; float: right; }

/* ------------------------------------------------------------ kanban */

.kanban { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { min-width: 372px; width: 372px; flex: none; border-right: 1px solid var(--line); padding: 0 12px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 14px; }
.kcol-head .t { font-weight: 700; font-size: 14.5px; letter-spacing: .01em; }
.klist { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; }
.klist-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; }
.klist-head .grow { line-height: 1.35; }
.klist-count { background: #eef1f4; text-align: center; padding: 7px; font-size: 14px; color: var(--ink-2); border-radius: 0 0 4px 4px; }
.klist-body { padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 8px; }
.klist-body.over { background: #eef6ff; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; cursor: grab; }
.lead-card:hover { border-color: var(--blue); }
.lead-card .n { font-size: 14px; }
.lead-card .p { color: var(--blue); font-size: 13px; }
.kadd { background: var(--blue-soft); border: 0; border-radius: 4px; width: 100%; height: 38px; display: grid; place-items: center; color: #fff; margin-bottom: 8px; }
.kadd svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

/* --------------------------------------------------------- attendance */

.att-grid { overflow-x: auto; }
table.att { border-collapse: collapse; font-size: 13px; }
table.att th { padding: 10px 8px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: 12.5px; }
table.att td { padding: 5px 6px; text-align: center; }
table.att td.name { text-align: left; white-space: nowrap; min-width: 210px; }
.att-btn { border: 1px solid var(--line); background: #fff; border-radius: 4px; height: 26px; min-width: 62px; font-size: 11.5px; color: var(--ink-3); }
.att-btn.present { background: #37b98f; border-color: #37b98f; color: #fff; }
.att-btn.absent { background: #f0857c; border-color: #f0857c; color: #fff; }
.att-circle { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav button { border: 1px solid #cfe0f5; background: #eff5fd; color: var(--blue); border-radius: 4px; height: 30px; min-width: 34px; }
.month-nav .lbl { padding: 0 10px; color: var(--ink-2); }

/* ------------------------------------------------------------ profile */

.profile { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; position: relative; }
.pcard .photo { width: 96px; height: 96px; border-radius: 50%; background: #eef1f4; display: grid; place-items: center; color: #b6c0c9; }
.pcard .acts { position: absolute; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; }
.round-act { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid; background: #fff; display: grid; place-items: center; }
.round-act svg { width: 15px; height: 15px; fill: none; stroke-width: 1.8; }
.round-act.b { border-color: var(--blue); color: var(--blue); }
.round-act.o { border-color: var(--orange); color: var(--orange); }
.round-act.r { border-color: var(--red); color: var(--red); }
.round-act svg { stroke: currentColor; }
.kv { display: flex; gap: 8px; font-size: 14px; padding: 5px 0; }
.kv .k { color: var(--ink-2); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.split-btn { display: flex; }
.split-btn .m { border: 1px solid var(--orange); color: var(--orange); background: #fff; border-radius: 5px 0 0 5px; height: 36px; padding: 0 14px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.split-btn .d { border: 1px solid var(--orange); border-left: 0; color: var(--orange); background: #fff; border-radius: 0 5px 5px 0; width: 28px; height: 36px; }
.split-btn.g .m, .split-btn.g .d { border-color: var(--ok); color: var(--ok); }
.note-box { border-left: 4px solid var(--blue); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; padding: 16px; }

.gcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 66px 16px 16px; position: relative; }
.gcard .side { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------- modal */

.modal-bg { position: fixed; inset: 0; background: rgba(20,32,44,.42); display: grid; place-items: center; z-index: 60; padding: 20px; }
.modal { background: #fff; border-radius: 8px; width: 560px; max-width: 100%; max-height: 88vh; overflow: auto; }
.modal.wide { width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.x { background: none; border: 0; font-size: 22px; color: var(--ink-3); line-height: 1; }

/* ------------------------------------------------------------ drawer */

.sched-tab {
  position: fixed; right: 0; top: 45%; background: #fff; border: 1px solid var(--line); border-right: 0;
  border-radius: 6px 0 0 6px; padding: 10px 8px; z-index: 25; color: var(--green);
}
.sched-tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(1180px, 82vw); background: #fff; z-index: 70; box-shadow: -8px 0 30px rgba(20,40,60,.18); overflow: auto; padding: 20px 24px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(20,32,44,.3); z-index: 65; }

/* -------------------------------------------------------------- login */

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.login-box { width: 420px; background: #fff; border-radius: 10px; padding: 34px; box-shadow: 0 10px 40px rgba(20,40,60,.1); }
.login-box .logo { margin: 0 auto 20px; }
.login-box h1 { font-size: 21px; margin: 0 0 4px; text-align: center; }
.login-box p.sub { text-align: center; color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.err { background: #fde8e6; color: #b23a30; border-radius: 5px; padding: 9px 12px; font-size: 13.5px; }

/* ------------------------------------------------------------- misc */

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.teacher-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.course-card .top { height: 130px; display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center; padding: 12px; }
.course-card .bot { padding: 16px; }

.rem-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rem-col h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 400; margin: 0 0 12px; }
.rem-col h3 .n { border: 2px solid; border-radius: 4px; min-width: 40px; text-align: center; font-size: 22px; padding: 2px 6px; }
.rem-col.overdue h3 .n { color: var(--red); border-color: var(--red); }
.rem-col.today h3 .n { color: var(--blue); border-color: var(--blue); }
.rem-col.future h3 .n { color: var(--ink-3); border-color: var(--line); }
.rem-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-bottom: 10px; }
.rem-empty { text-align: center; color: var(--ok); font-size: 13.5px; padding: 10px; border-top: 1px solid var(--line); }

.stat-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; padding: 20px 22px; }
.stat-card .t { font-size: 21px; }
.stat-card .t b { font-size: 25px; }
.stat-card .d { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }

.settings-wrap { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 6px; min-height: 520px; }
.settings-nav { background: #f7f9fb; border-right: 1px solid var(--line); padding: 14px 0; }
.settings-nav button { display: block; width: 100%; text-align: right; background: none; border: 0; padding: 11px 18px; font-size: 14px; color: var(--ink-2); }
.settings-nav button.active { color: var(--blue); background: #fff; }
.settings-body { padding: 26px 30px; }
.settings-body h2 { font-size: 22px; font-weight: 400; margin: 0 0 22px; }

.toggle { width: 42px; height: 22px; border-radius: 11px; background: #dfe4e9; border: 0; position: relative; }
.toggle.on { background: var(--blue); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on::after { left: 23px; }

.empty { text-align: center; color: var(--ink-3); padding: 40px; }
.loading { text-align: center; color: var(--ink-3); padding: 40px; }

.toast { position: fixed; right: 22px; bottom: 22px; background: #2b3945; color: #fff; padding: 12px 18px; border-radius: 6px; z-index: 90; font-size: 14px; }

@media (max-width: 1400px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } .profile { grid-template-columns: 1fr; } .rem-cols { grid-template-columns: 1fr; } }
