/* ============================================================
   Sistem OBE — tema akademik bersih (putih–biru)
   ============================================================ */
:root {
  --blue-900: #172554;
  --blue-800: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e3eaf3;
  --line-2: #cfd9e6;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px -22px rgba(15, 23, 42, .35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 15.5px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--blue-50); padding: 1px 5px; border-radius: 5px; color: var(--blue-800); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.small-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- Icons ---------- */
.ico { width: 17px; height: 17px; flex: none; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 244px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 20px 18px 18px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-800));
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  display: grid; place-items: center; box-shadow: 0 6px 14px -8px rgba(29, 78, 216, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14px; }
.brand-text span { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; border-left: 3px solid transparent;
}
.nav-link:hover { background: #f5f8fd; text-decoration: none; color: var(--blue-800); }
.nav-link.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; border-left-color: var(--blue-700); }
.nav-link-mini { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800); font-weight: 700; font-size: 13px;
}
.who-text { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.who-text strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text span { font-size: 11px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumb-strong { color: var(--ink); font-weight: 600; }
.crumb .sep { color: var(--line-2); }
.topbar-right { margin-left: auto; }
.topbar-meta { font-size: 12px; color: var(--muted); }
.content { padding: 26px 28px 56px; max-width: 1300px; width: 100%; }
.only-mobile { display: none; }

/* ---------- Page header ---------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.page-head .subtitle { color: var(--muted); font-size: 13.5px; margin: 5px 0 0; max-width: 80ch; }
.page-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); font: inherit; font-weight: 550; font-size: 13px;
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: #f7fafd; border-color: #b8c6d8; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--blue-600), var(--blue-800));
  border-color: var(--blue-800); color: #fff;
  box-shadow: 0 8px 18px -12px rgba(29, 78, 216, .95);
}
.btn-primary:hover { background: linear-gradient(160deg, #1e56d8, var(--blue-900)); color: #fff; }
.btn-ghost { border-color: transparent; background: #f4f7fb; color: var(--muted); }
.btn-ghost:hover { background: #eaf1fa; color: var(--blue-800); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-danger-ghost { color: var(--bad); border-color: #f3c9c9; background: #fef7f7; }
.btn-danger-ghost:hover { background: var(--bad-bg); border-color: #eaa; color: var(--bad); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.icon-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 15px; cursor: pointer; }

/* ---------- Alerts ---------- */
.alert { border-radius: 11px; padding: 12px 15px; font-size: 13px; margin-bottom: 18px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert li { margin: 2px 0; }
.alert-ok { background: var(--ok-bg); border-color: #bbf7d0; color: #065f46; }
.alert-err { background: var(--bad-bg); border-color: #fecaca; color: #991b1b; }
.alert-warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.alert-inline { margin: 16px 0 0; }
.alert .btn { margin-top: 8px; }

/* ---------- Cards & grid ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head .hint { font-size: 12px; color: var(--muted); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.link { font-size: 12.5px; font-weight: 550; }
.link-strong { color: var(--ink); font-weight: 600; }
.link-strong:hover { color: var(--blue-700); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), #93c5fd);
}
.stat-card.stat-warn::before { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--blue-900); }
.stat-note { font-size: 12px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; }
.tab {
  padding: 10px 15px; font-size: 13px; font-weight: 550; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--blue-700); text-decoration: none; }
.tab.is-active { color: var(--blue-700); border-bottom-color: var(--blue-700); background: linear-gradient(#fff, var(--blue-50)); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 650; background: #f8fafd; padding: 10px 13px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 13px; border-bottom: 1px solid #eef3f9; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfdff; }
.table tfoot td { background: #f8fafd; border-top: 1px solid var(--line); font-weight: 600; }
.table .desc-cell { max-width: 420px; }
.table.densitas td, .table.densitas th { padding: 8px 10px; }
.th-sub { display: block; font-size: 10px; color: var(--muted); font-weight: 500; text-transform: none; }
.col-cpl { background: #f7fbff; }
.cell-low { color: var(--bad); background: #fff5f5; font-weight: 600; }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--blue-50);
  color: var(--blue-800); font-size: 11.5px; font-weight: 650; border: 1px solid var(--blue-100);
}
.chip-soft { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.grade-pill {
  display: inline-block; min-width: 28px; text-align: center; padding: 2px 7px; border-radius: 6px;
  background: #f1f5f9; color: var(--ink-2); font-weight: 700; font-size: 12px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: 2.5px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
.badge-soft { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-100); }
.badge-neutral { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea, .inp {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.stack { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.inline { display: inline; }
.inp-sm { padding: 4px 8px; font-size: 12px; width: auto; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 4px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.check-card {
  display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fdfefe; cursor: pointer; align-items: flex-start;
}
.check-card:hover { border-color: var(--blue-100); background: #fbfdff; }
.check-card input { margin-top: 3px; accent-color: var(--blue-700); }
.check-card p { margin: 2px 0 0; }

/* tabel yang bisa diedit langsung */
.table-edit td { padding: 7px 9px; }
.table-edit .inp { padding: 6px 9px; font-size: 12.5px; border-color: #e6edf6; background: #fdfefe; }
.table-edit .inp:hover { border-color: var(--line-2); }
.table-edit .inp.num { text-align: right; }

/* ---------- MK cards ---------- */
.mk-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.mk-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mk-card-head h3 { font-size: 15px; margin-top: 6px; }
.mk-card .sks { font-size: 11.5px; font-weight: 650; color: var(--blue-800); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; }
.mk-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.mk-card-stats div { display: flex; flex-direction: column; }
.mk-card-stats b { font-size: 15px; color: var(--blue-900); }
.mk-card-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mk-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.mk-list { display: flex; flex-direction: column; gap: 2px; }
.mk-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px; color: var(--ink); border: 1px solid transparent;
}
.mk-row:hover { background: #f8fbff; border-color: var(--line); text-decoration: none; }
.mk-row div { display: flex; flex-direction: column; line-height: 1.35; }
.mk-row-right { display: flex; gap: 6px; align-items: center; }

/* ---------- Flow strip ---------- */
.flow-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(120deg, #f8fbff, #eef5ff); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}
.flow-step { display: flex; flex-direction: column; gap: 0; min-width: 108px; }
.flow-step span {
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-700); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-bottom: 4px;
}
.flow-step b { font-size: 13px; color: var(--blue-900); }
.flow-step small { font-size: 11px; color: var(--muted); }
.flow-arrow { color: var(--blue-100); font-size: 16px; font-weight: 700; }

/* ---------- Grid nilai ---------- */
.grid-wrap { max-height: 68vh; overflow: auto; }
.grid-table { font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
.grid-table thead th { position: sticky; top: 0; background: #f4f8fd; z-index: 2; }
.grid-table thead tr.group-row-line th { top: 0; }
.grid-table thead tr.inst-row th { top: 33px; }
.grid-table .group-cell { text-align: center; font-size: 11px; color: var(--blue-900); background: #eef5ff; border-left: 1px solid #dbe7f5; }
.group-cpmk { display: block; font-size: 9.5px; color: var(--muted); font-weight: 500; }
.grid-table .inst-head { min-width: 108px; max-width: 130px; vertical-align: bottom; }
.grid-table .inst-head span { display: block; white-space: normal; line-height: 1.25; font-size: 10.5px; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.grid-table .inst-head em { font-style: normal; font-size: 10px; color: var(--muted); }
.grid-table .sticky-col {
  position: sticky; left: 0; background: #fff; z-index: 3; min-width: 210px;
  border-right: 1px solid var(--line); box-shadow: 6px 0 10px -12px rgba(15, 23, 42, .5);
}
.grid-table thead .sticky-col { background: #f4f8fd; z-index: 4; }
.grid-table tbody tr:hover .sticky-col { background: #fbfdff; }
.head-name { font-size: 11px; }
.mhs-cell { display: flex; flex-direction: column; line-height: 1.3; }
.cell-num { padding: 4px 5px !important; }
.grid-table .grade { width: 74px; text-align: center; padding: 5px 4px; font-size: 12.5px; border-radius: 6px; }
.grid-table .grade:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.grid-table .grade.filled { background: #f8fbff; }
.cell-na { background: #f7fbff; font-weight: 700; text-align: right; padding: 6px 10px !important; color: var(--blue-900); }
.corner-na { background: #eef5ff !important; text-align: center; }
.sticky-save {
  display: none; position: sticky; bottom: 12px; margin-top: 14px;
  background: #ffffffea; border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 14px; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 24px -18px rgba(15, 23, 42, .6); backdrop-filter: blur(6px);
}
.sticky-save.is-dirty { display: flex; }
.csv-result { font-size: 12.5px; margin: 10px 0; }
.csv-result ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Charts ---------- */
.radar { display: flex; flex-direction: column; align-items: center; }
.radar svg { width: 100%; max-width: 420px; height: auto; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg i.lg-dash { background: none; border-top: 2px dashed #f59e0b; border-radius: 0; height: 0; width: 14px; }
.chart-caption { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.empty-mini { font-size: 12.5px; color: var(--muted); padding: 18px 0; text-align: center; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); gap: 10px; }
.bar-label b { font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 9px; background: #eef3f9; border-radius: 999px; overflow: visible; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-600), #60a5fa); }
.bar-fill.bar-bad { background: linear-gradient(90deg, #dc2626, #f87171); }
.bar-fill.bar-neutral { background: #cbd5e1; }
.bar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #f59e0b; border-radius: 2px; }
.bar-note { font-size: 11px; color: var(--muted); }

/* ---------- Threshold list ---------- */
.threshold-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.threshold-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.threshold-list > div:last-child { border-bottom: none; }
.threshold-list span { color: var(--muted); }
.threshold-list b { color: var(--ink); }

/* ---------- CQI ---------- */
.cqi-mini { display: flex; flex-direction: column; gap: 12px; }
.cqi-mini-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fdfefe; }
.cqi-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cqi-mini-row p { margin: 0 0 4px; color: var(--ink-2); }
.cqi-list { display: flex; flex-direction: column; gap: 14px; }
.cqi-item { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: #fdfefe; }
.cqi-item header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cqi-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cqi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cqi-cols h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.cqi-cols p { margin: 0; font-size: 13px; color: var(--ink-2); }
.cqi-item footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- Report ---------- */
.report-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.report-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); text-align: right; }
.report-meta b { color: var(--ink-2); }
.report-chart { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Modal ---------- */
dialog.modal {
  border: none; border-radius: 15px; padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .55); background: #fff; color: var(--ink);
}
dialog.modal.modal-wide { width: min(720px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.modal-form { padding: 22px 24px 20px; }
.modal-form h3 { margin-bottom: 14px; font-size: 16px; }
.modal-actions { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal-actions .grow { flex: 1; }
.modal-actions .btn:first-child { margin-right: auto; }
.modal-actions.danger-row .btn:first-child { margin-right: 0; }

/* ---------- Auth ---------- */
body.auth { background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 45%, #e8f1fe 100%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.auth-card {
  width: min(940px, 100%); background: #fff; border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45);
  border: 1px solid #e6eefb;
}
.auth-side {
  background: linear-gradient(155deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff; padding: 38px 34px; display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
  right: -110px; bottom: -120px;
}
.auth-side h1 { color: #fff; font-size: 25px; line-height: 1.25; margin-top: 8px; }
.auth-side p { color: #dbeafe; font-size: 13px; max-width: 36ch; }
.auth-brand .brand-mark { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); width: 46px; height: 46px; }
.auth-list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: #e0edff; }
.auth-list li { padding-left: 18px; position: relative; }
.auth-list li::before { content: '✓'; position: absolute; left: 0; color: #86efac; font-weight: 700; }
.auth-form { padding: 38px 36px; }
.auth-form h2 { font-size: 19px; margin-bottom: 4px; }
.auth-form > p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.auth-form .btn-primary { padding: 11px 14px; font-size: 14px; margin-top: 4px; }
.demo-box { margin-top: 24px; border: 1px dashed var(--line-2); border-radius: 11px; padding: 13px 15px; background: #fbfdff; }
.demo-box strong { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 8px; }
.demo-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; color: var(--ink-2); }
.demo-row span:last-child { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .25);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 0 16px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { padding: 26px 24px; }
  .auth-list { margin-top: 10px; }
  .cqi-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mk-card-stats { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 19px; }
  .stat-value { font-size: 22px; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .page-actions, .tabs, .sticky-save, .modal, .btn { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #cbd5e1; break-inside: avoid; margin-bottom: 14px; }
  .table-wrap { overflow: visible; border-color: #cbd5e1; }
  .table th { background: #f1f5f9 !important; }
  a { color: inherit; text-decoration: none; }
  .print-card { page-break-inside: avoid; }
}

/* ============================================================
   Multi-level: universitas / fakultas / prodi
   ============================================================ */
.scope-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100);
  font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

.filter-bar {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.filter-label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-label select { min-width: 280px; }

.alert-info { background: #f1f7ff; border: 1px solid #cfe3fb; color: #1e40af; border-radius: 11px; padding: 12px 15px; font-size: 13px; margin-bottom: 18px; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pl-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fdfefe;
  display: flex; flex-direction: column; gap: 6px;
}
.pl-card h3 { font-size: 14px; }
.pl-card h4 { font-size: 12.5px; }
.pl-card p { margin: 0; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-mini { background: #f8fbff; }

.auth-org { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 6px; }
