/*
 * Modul Keuangan: tampilan halaman beranda, tagihan, BRIVA, dan riwayat pembayaran.
 * Dipakai bersama tema Stisla (layout top-navigation). Semua kelas berawalan .keu-
 */
:root {
  --keu-bg: #f4f6f8;
  --keu-surface: #ffffff;
  --keu-border: #e3e7ec;
  --keu-border-strong: #cfd6de;
  --keu-text: #1f2933;
  --keu-muted: #616e7c;
  --keu-faint: #8a96a3;
  --keu-accent: #2f5b8a;
  --keu-accent-soft: #e8eff7;
  --keu-ok: #1e7a4c;
  --keu-ok-soft: #e4f3ea;
  --keu-due: #b42318;
  --keu-due-soft: #fbe9e7;
  --keu-hold: #a15c07;
  --keu-hold-soft: #fdf1dc;
  --keu-radius: 6px;
}

body.keu-body { background: var(--keu-bg); }

.keu-page {
  padding-top: 182px;
  padding-bottom: 48px;
  color: var(--keu-text);
  font-size: 14px;
}

/* Judul halaman */
.keu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.keu-head h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--keu-text);
}
.keu-head p {
  margin: 4px 0 0;
  color: var(--keu-muted);
  max-width: 90ch;
}
.keu-head .keu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Header berisi beberapa baris (detail kelas MKDU): tombol sejajar judul */
.keu-head.is-top { align-items: flex-start; }
.keu-head.is-top .keu-actions { padding-top: 16px; }

/* Tombol: tetap memakai .btn Bootstrap, hanya dirapikan */
.keu-page .btn {
  border-radius: var(--keu-radius);
  font-weight: 500;
  box-shadow: none !important;
  font-size: 13px;
  padding: 7px 14px;
  line-height: 1.4;
}
.keu-page .btn-primary { background: var(--keu-accent); border-color: var(--keu-accent); }
.keu-page .btn-primary:hover,
.keu-page .btn-primary:focus { background: #244a72; border-color: #244a72; }
.keu-page .btn-outline {
  background: var(--keu-surface);
  border: 1px solid var(--keu-border-strong);
  color: var(--keu-text);
}
.keu-page .btn-outline:hover { background: #eef1f4; color: var(--keu-text); }
.keu-page .btn-sm { padding: 4px 10px; font-size: 12px; }
.keu-page .btn i { margin-right: 6px; }
.keu-page .btn-icon i { margin-right: 0; }

/* Panel */
.keu-panel {
  background: var(--keu-surface);
  border: 1px solid var(--keu-border);
  border-radius: var(--keu-radius);
  margin-bottom: 20px;
}
.keu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--keu-border);
}
.keu-panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--keu-text);
}
.keu-panel-head small { color: var(--keu-muted); font-size: 12px; }
.keu-panel-body { padding: 18px; }

/* Baris filter */
.keu-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 14px 18px;
}
.keu-filter .keu-field { display: flex; flex-direction: column; min-width: 160px; flex: 0 1 220px; }
.keu-filter .keu-field.wide { flex: 1 1 280px; }
.keu-filter label {
  font-size: 12px;
  font-weight: 500;
  color: var(--keu-muted);
  margin-bottom: 4px;
}
.keu-page .form-control,
.keu-page select.form-control {
  height: 36px;
  border-radius: var(--keu-radius);
  border: 1px solid var(--keu-border-strong);
  background-color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  box-shadow: none;
}
.keu-page .form-control:focus {
  border-color: var(--keu-accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 138, 0.15);
}
.keu-filter .keu-filter-actions { display: flex; gap: 8px; margin-left: auto; }

/* Ringkasan angka */
.keu-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--keu-border);
  border-radius: var(--keu-radius);
  background: var(--keu-surface);
  margin-bottom: 20px;
}
.keu-stat { padding: 16px 18px; border-left: 1px solid var(--keu-border); min-width: 0; }
.keu-stat:first-child { border-left: 0; }
.keu-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--keu-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.keu-stat-value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.keu-stat-sub { font-size: 12px; color: var(--keu-faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.keu-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.keu-dot.ok { background: var(--keu-ok); }
.keu-dot.due { background: var(--keu-due); }
.keu-dot.hold { background: var(--keu-hold); }
.keu-dot.neutral { background: var(--keu-accent); }

/* Bar realisasi */
.keu-progress { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef1f4; }
.keu-progress span { display: block; height: 100%; }
.keu-progress .ok { background: var(--keu-ok); }
.keu-progress .hold { background: #e0a23a; }
.keu-progress .due { background: #d9534f; }
.keu-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--keu-muted); }
.keu-legend span { display: inline-flex; align-items: center; gap: 6px; }
.keu-legend b { color: var(--keu-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tabel */
.keu-table-wrap { padding: 4px 18px 14px; }
.keu-page table.dataTable,
.keu-page .keu-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px;
  margin-top: 8px !important;
}
.keu-page table.dataTable thead th,
.keu-page .keu-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--keu-muted);
  background: #f8f9fb;
  border-bottom: 1px solid var(--keu-border) !important;
  border-top: 0 !important;
  padding: 9px 10px !important;
  white-space: nowrap;
}
.keu-page table.dataTable tbody td,
.keu-page .keu-table tbody td {
  padding: 9px 10px !important;
  border-top: 1px solid #eef1f4 !important;
  vertical-align: middle;
}
.keu-page table.dataTable.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.keu-page table.dataTable tbody tr:hover,
.keu-page .keu-table tbody tr:hover { background: #f8fafc; }
.keu-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.keu-mono { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.keu-muted { color: var(--keu-muted); }
.keu-page .dataTables_wrapper .dataTables_length,
.keu-page .dataTables_wrapper .dataTables_filter,
.keu-page .dataTables_wrapper .dataTables_info,
.keu-page .dataTables_wrapper .dataTables_paginate { font-size: 12px; color: var(--keu-muted); padding-top: 10px; }
.keu-page .dataTables_wrapper .dataTables_filter input {
  height: 32px; border-radius: var(--keu-radius); border: 1px solid var(--keu-border-strong); padding: 4px 10px; margin-left: 6px;
}
.keu-page .dataTables_wrapper .dataTables_length select {
  height: 32px; min-width: 72px; padding: 2px 24px 2px 8px; line-height: 1.4; font-size: 12px;
  border-radius: var(--keu-radius); border: 1px solid var(--keu-border-strong); margin: 0 4px;
}
.keu-page .page-item.active .page-link { background: var(--keu-accent); border-color: var(--keu-accent); }
.keu-page .page-link { color: var(--keu-accent); font-size: 12px; }
.keu-page div.dataTables_processing {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--keu-border);
  border-radius: var(--keu-radius);
  box-shadow: none;
  color: var(--keu-muted);
  font-size: 13px;
  padding: 10px !important;
  height: auto;
}

/* Status */
.keu-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.keu-badge.ok { color: var(--keu-ok); background: var(--keu-ok-soft); }
.keu-badge.due { color: var(--keu-due); background: var(--keu-due-soft); }
.keu-badge.hold { color: var(--keu-hold); background: var(--keu-hold-soft); }
.keu-badge.neutral { color: var(--keu-muted); background: #eef1f4; }

/* Aksi baris: tombol HTML dari server dirapikan tanpa mengubah model */
.keu-page td .btn-group { margin: 0 !important; display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.keu-page td .btn-group > .btn { border-radius: var(--keu-radius) !important; }
.keu-page td form { margin: 0; display: inline-block; float: none !important; }
.keu-page td .btn { padding: 3px 9px; font-size: 12px; white-space: nowrap; }
.keu-page td .btn-info,
.keu-page td .btn-primary {
  background: #fff; border: 1px solid var(--keu-border-strong); color: var(--keu-text);
}
.keu-page td .btn-info:hover,
.keu-page td .btn-primary:hover { background: #eef1f4; color: var(--keu-text); }
.keu-page td .btn-danger {
  background: #fff; border: 1px solid #efc4bf; color: var(--keu-due);
}
.keu-page td .btn-danger:hover { background: var(--keu-due-soft); color: var(--keu-due); }
.keu-page td .btn i { margin-right: 4px; }
.keu-page table.dataTable tbody td:last-child { white-space: nowrap; }
.keu-page table.dataTable tbody td:last-child > .btn + .btn,
.keu-page table.dataTable tbody td:last-child > a + a { margin-left: 6px; }

/* Catatan & alert */
.keu-note { color: var(--keu-muted); font-size: 12px; margin: 0; }
.keu-page .alert {
  border-radius: var(--keu-radius);
  border: 1px solid var(--keu-border);
  background: var(--keu-surface);
  color: var(--keu-text);
  box-shadow: none;
  padding: 10px 14px;
}
.keu-page .alert-info { border-left: 3px solid var(--keu-accent); }
/* style.css memutihkan tautan di .alert (untuk alert berlatar gelap); alert keu berlatar terang */
.keu-page .alert:not(.alert-light) a:not(.btn) { color: var(--keu-accent); text-decoration: underline; font-weight: 500; }

/* Data diri (riwayat per mahasiswa) */
.keu-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.keu-profile dt { font-size: 12px; font-weight: 500; color: var(--keu-muted); }
.keu-profile dd { margin: 2px 0 0; font-weight: 500; }

/* Login */
/* navbar-home bertema gelap; di halaman login latarnya terang, jadi teksnya disesuaikan */
body.keu-login-page .navbar-bg { display: none; }
body.keu-login-page .main-navbar { background: transparent; }
body.keu-login-page .main-navbar .navbar-brand,
body.keu-login-page .main-navbar .nav-link { color: var(--keu-text) !important; }
.keu-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--keu-bg);
}
.keu-login-box { width: 100%; max-width: 380px; }
.keu-login-brand { margin-bottom: 20px; }
.keu-login-brand .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--keu-accent);
}
.keu-login-brand h1 { font-size: 22px; font-weight: 600; margin: 4px 0 0; color: var(--keu-text); }
.keu-login-brand p { color: var(--keu-muted); margin: 4px 0 0; font-size: 13px; }
.keu-login-card {
  background: var(--keu-surface);
  border: 1px solid var(--keu-border);
  border-radius: 8px;
  padding: 24px;
}
.keu-login-card .form-group { margin-bottom: 16px; }
.keu-login-card label { font-size: 13px; font-weight: 500; color: var(--keu-text); margin-bottom: 6px; }
.keu-login-card .form-control {
  height: 40px;
  border-radius: var(--keu-radius);
  border: 1px solid var(--keu-border-strong);
  font-size: 14px;
  box-shadow: none;
}
.keu-login-card .form-control:focus { border-color: var(--keu-accent); box-shadow: 0 0 0 3px rgba(47, 91, 138, 0.15); }
.keu-captcha { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.keu-captcha #image_captcha {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--keu-border);
  border-radius: var(--keu-radius);
  background: #fafbfc;
  overflow: hidden;
}
.keu-captcha #image_captcha img { max-height: 42px; width: auto; }
.keu-captcha .captcha-refresh {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--keu-border-strong);
  border-radius: var(--keu-radius);
  color: var(--keu-muted);
  background: #fff;
}
.keu-captcha .captcha-refresh:hover { color: var(--keu-accent); border-color: var(--keu-accent); text-decoration: none; }
.keu-login-card .btn-submit {
  width: 100%;
  height: 42px;
  border-radius: var(--keu-radius);
  background: var(--keu-accent);
  border: 1px solid var(--keu-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.keu-login-card .btn-submit:hover { background: #244a72; border-color: #244a72; color: #fff; }
.keu-login-foot { margin-top: 16px; font-size: 12px; color: var(--keu-faint); }
.keu-login-foot a { color: var(--keu-muted); }

@media (max-width: 991px) {
  .keu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keu-stat:nth-child(3) { border-left: 0; }
  .keu-stat:nth-child(n+3) { border-top: 1px solid var(--keu-border); }
  .keu-profile { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .keu-page { padding-top: 150px; }
  .keu-stats { grid-template-columns: 1fr; }
  .keu-stat { border-left: 0; border-top: 1px solid var(--keu-border); }
  .keu-stat:first-child { border-top: 0; }
  .keu-filter .keu-field { flex: 1 1 100%; }
  .keu-filter .keu-filter-actions { margin-left: 0; width: 100%; }
  .keu-profile { grid-template-columns: 1fr; }
}

/* ---------- Form tambah / edit ---------- */
.keu-form-wrap { max-width: 760px; }
.keu-form .keu-section { padding: 18px; border-bottom: 1px solid var(--keu-border); }
.keu-form .keu-section:last-of-type { border-bottom: 0; }
.keu-form .keu-section-title { font-size: 13px; font-weight: 600; color: var(--keu-text); margin: 0 0 12px; }
.keu-form .form-group { margin-bottom: 14px; }
.keu-form .form-group:last-child { margin-bottom: 0; }
.keu-form label { font-size: 12px; font-weight: 500; color: var(--keu-muted); margin-bottom: 5px; display: block; }
.keu-form .form-row { margin-left: -8px; margin-right: -8px; }
.keu-form .form-row > [class*="col"] { padding-left: 8px; padding-right: 8px; }
.keu-form .keu-help { font-size: 12px; color: var(--keu-faint); margin-top: 5px; }
.keu-form .input-group-text {
  background: #f8f9fb; border: 1px solid var(--keu-border-strong); border-right: 0;
  border-radius: var(--keu-radius) 0 0 var(--keu-radius); font-size: 13px; color: var(--keu-muted);
}
.keu-form .input-group > .form-control { border-radius: 0 var(--keu-radius) var(--keu-radius) 0 !important; }
.keu-form .form-control[readonly] { background: #f8f9fb; }
.keu-form-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 18px; background: #fafbfc; border-top: 1px solid var(--keu-border);
  border-radius: 0 0 var(--keu-radius) var(--keu-radius);
}
.keu-readonly { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.keu-readonly dt { font-size: 12px; font-weight: 500; color: var(--keu-muted); }
.keu-readonly dd { margin: 2px 0 0; font-weight: 500; }

/* Pencarian mahasiswa */
.keu-picker { position: relative; }
.keu-page .keu-picker-search .form-control { padding-left: 34px !important; }
.keu-picker-search .fa-search { position: absolute; left: 12px; top: 12px; z-index: 2; color: var(--keu-faint); font-size: 13px; }
.keu-picker.is-invalid .form-control { border-color: var(--keu-due); }
.keu-picker .keu-invalid-msg { display: none; color: var(--keu-due); font-size: 12px; margin-top: 5px; }
.keu-picker.is-invalid .keu-invalid-msg { display: block; }
.keu-suggest {
  display: none; position: absolute; z-index: 30; left: 0; right: 0; top: 40px;
  margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--keu-border-strong); border-radius: var(--keu-radius);
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.08);
}
.keu-suggest-item { padding: 7px 10px; border-radius: 4px; cursor: pointer; line-height: 1.35; }
.keu-suggest-item:hover, .keu-suggest-item.active { background: var(--keu-accent-soft); }
.keu-suggest-main { display: flex; gap: 10px; align-items: baseline; }
.keu-suggest-main .keu-mono { flex: none; width: 82px; color: var(--keu-text); }
.keu-suggest-name { font-weight: 500; color: var(--keu-text); }
.keu-suggest-sub { font-size: 12px; color: var(--keu-muted); padding-left: 92px; margin-top: 1px; }
.keu-suggest mark { background: none; padding: 0; color: var(--keu-accent); font-weight: 700; }
.keu-suggest-empty { padding: 10px; font-size: 13px; color: var(--keu-muted); line-height: 1.35; }
.keu-picked {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--keu-border-strong); border-radius: var(--keu-radius); background: #fafbfc;
}
.keu-picked-name { font-weight: 600; }
.keu-picked-meta { font-size: 12px; color: var(--keu-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 575px) {
  .keu-readonly { grid-template-columns: 1fr 1fr; }
  .keu-suggest-sub { padding-left: 0; }
}

/* ---------- SPM: hasil kuesioner ---------- */
:root {
  --lk-sts: #c2493d;   /* Sangat tidak setuju */
  --lk-ts: #e8a093;    /* Tidak setuju */
  --lk-s: #8fc4a1;     /* Setuju */
  --lk-ss: #2f7d52;    /* Sangat setuju */
}
.lk-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: #eef1f4; min-width: 120px; }
.lk-bar span { display: block; height: 100%; }
.lk-bar .sts { background: var(--lk-sts); }
.lk-bar .ts { background: var(--lk-ts); }
.lk-bar .s { background: var(--lk-s); }
.lk-bar .ss { background: var(--lk-ss); }
.lk-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--keu-muted); }
.lk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lk-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lk-legend .sts { background: var(--lk-sts); } .lk-legend .ts { background: var(--lk-ts); }
.lk-legend .s { background: var(--lk-s); }     .lk-legend .ss { background: var(--lk-ss); }

/* Skor 1-4: warna mengikuti ambang mutu */
.spm-score { font-variant-numeric: tabular-nums; font-weight: 600; }
.spm-score.hi { color: var(--keu-ok); }
.spm-score.mid { color: var(--keu-text); }
.spm-score.lo { color: var(--keu-due); }
.spm-q { max-width: 560px; }
.spm-q-no { color: var(--keu-faint); font-variant-numeric: tabular-nums; width: 28px; }
.spm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spm-tabs a {
  padding: 6px 12px; border: 1px solid var(--keu-border-strong); border-radius: 999px;
  font-size: 13px; color: var(--keu-text); background: #fff; text-decoration: none;
}
.spm-tabs a.active { background: var(--keu-accent); border-color: var(--keu-accent); color: #fff; }
.spm-tabs a:hover:not(.active) { background: #eef1f4; }
.spm-flag { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--keu-due); margin-right: 6px; vertical-align: middle; }
.spm-meta { font-size: 12px; color: var(--keu-faint); }

/* ---------- Halaman lama (markup Stisla) di dalam .keu-legacy ---------- */
.keu-legacy .section { margin: 0; }
.keu-legacy .section-header {
  background: transparent; box-shadow: none; border: 0; padding: 0; margin: 0 0 20px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
}
.keu-legacy .section-header h1,
.keu-legacy .section-header h5 { font-size: 20px; font-weight: 600; color: var(--keu-text); margin: 0; }
.keu-legacy .section-header .section-header-breadcrumb,
.keu-legacy .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 12px; }
.keu-legacy .breadcrumb-item a { color: var(--keu-muted); }
.keu-legacy .card,
.keu-legacy .box {
  background: var(--keu-surface); border: 1px solid var(--keu-border) !important; border-radius: var(--keu-radius);
  box-shadow: none !important; margin-bottom: 20px;
}
.keu-legacy .box .card { border: 0 !important; margin-bottom: 0; }
.keu-legacy .card.card-primary { border-top: 1px solid var(--keu-border) !important; }
.keu-legacy .card-header { background: transparent; border-bottom: 1px solid var(--keu-border); padding: 14px 18px; min-height: 0; }
.keu-legacy .card-header h4, .keu-legacy .card-header h5 { font-size: 15px; font-weight: 600; color: var(--keu-text); margin: 0; }
.keu-legacy .card-body { padding: 18px; }
.keu-legacy table.table { font-size: 13px; }
.keu-legacy table.table thead th {
  font-size: 12px; font-weight: 600; color: var(--keu-muted); background: #f8f9fb;
  border-bottom: 1px solid var(--keu-border) !important; border-top: 0 !important; padding: 9px 10px !important;
}
.keu-legacy table.table td { padding: 8px 10px !important; vertical-align: middle; border-top: 1px solid #eef1f4; }
.keu-legacy table.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc; }
.keu-legacy .control-label, .keu-legacy label { font-size: 12px; font-weight: 500; color: var(--keu-muted); }
.keu-legacy .btn-primary { background: var(--keu-accent); border-color: var(--keu-accent); }
.keu-legacy .btn-flat { border-radius: var(--keu-radius) !important; }

/* Perpustakaan: verifikasi bebas pustaka */
.pustaka-pdf { display: block; width: 100%; height: 72vh; min-height: 480px; border: 0; border-top: 1px solid var(--keu-border); border-radius: 0 0 var(--keu-radius) var(--keu-radius); background: #f3f4f6; }
.pustaka-pilih, .keu-pilih { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pustaka-pilih label, .keu-pilih label { margin: 0; cursor: pointer; }
.pustaka-pilih input, .keu-pilih input { position: absolute; opacity: 0; pointer-events: none; }
.pustaka-pilih span, .keu-pilih span {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px;
  border: 1px solid var(--keu-border-strong); border-radius: var(--keu-radius);
  font-size: 13px; font-weight: 500; color: var(--keu-text); background: #fff; transition: background .12s, border-color .12s;
}
.pustaka-pilih label:hover span, .keu-pilih label:hover span { background: #f8fafc; }
.pustaka-pilih input:focus-visible + span, .keu-pilih input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 91, 138, 0.2); }
.pustaka-pilih .ok input:checked + span, .keu-pilih .ok input:checked + span { background: var(--keu-ok-soft); border-color: var(--keu-ok); color: var(--keu-ok); }
.pustaka-pilih .due input:checked + span, .keu-pilih .due input:checked + span { background: var(--keu-due-soft); border-color: var(--keu-due); color: var(--keu-due); }
.pustaka-pilih .hold input:checked + span, .keu-pilih .hold input:checked + span { background: var(--keu-hold-soft); border-color: var(--keu-hold); color: var(--keu-hold); }
.pustaka-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.pustaka-dl dt { font-weight: 500; color: var(--keu-muted); }
.pustaka-dl dd { margin: 0; word-break: break-word; }
@media (max-width: 991px) { .pustaka-pdf { height: 60vh; min-height: 360px; } }

.keu-pilih.dua { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.keu-pilih .neutral input:checked + span { background: #eef1f4; border-color: #8a94a0; color: var(--keu-text); }

/* Akademik: kartu pemeriksaan konsistensi */
.kons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kons-kartu {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--keu-surface);
  border: 1px solid var(--keu-border); border-radius: var(--keu-radius); color: var(--keu-text); text-decoration: none !important;
  transition: border-color .12s, box-shadow .12s;
}
.kons-kartu:hover { border-color: var(--keu-accent); }
.kons-kartu.aktif { border-color: var(--keu-accent); box-shadow: 0 0 0 3px rgba(47, 91, 138, 0.15); }
.kons-kartu.bersih .kons-angka { color: var(--keu-ok); font-size: 18px; }
.kons-kartu .keu-badge { align-self: flex-start; }
.kons-angka { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kons-judul { font-size: 13px; line-height: 1.35; min-height: 35px; }

/* ---------- Menu atas & menu modul: selaras dengan isi halaman (palet & tipografi .keu-*) ---------- */
body.layout-3 .navbar-bg { background-color: #1f3a5a; height: 70px; }
body.layout-3 .main-navbar .navbar-brand { font-size: 16px; font-weight: 700; letter-spacing: .4px; }
body.layout-3 .main-navbar .navbar-nav > .nav-item > .nav-link { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85); }
body.layout-3 .main-navbar .navbar-nav > .nav-item > .nav-link:hover,
body.layout-3 .main-navbar .navbar-nav > .nav-item.active > .nav-link { color: #fff; }
body.layout-3 .main-navbar .nav-link-user div { font-size: 13px; font-weight: 500; }

body.layout-3 .navbar.navbar-secondary { height: 52px; box-shadow: none; border-bottom: 1px solid var(--keu-border); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link {
  height: 52px; display: flex; align-items: center; color: var(--keu-muted);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0; margin-left: 12px; margin-right: 12px;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link.has-dropdown { margin-right: 30px; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link.has-dropdown:after { font-size: 10px; right: -16px; color: var(--keu-faint); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link span { line-height: normal; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link i { width: 22px; font-size: 14px; color: var(--keu-faint); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link:hover { color: var(--keu-text) !important; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link:before { background-color: var(--keu-accent); transition: all .2s; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item.active > .nav-link,
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item.active > .nav-link i { color: var(--keu-accent); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item.active > .nav-link:before { left: 0; right: 0; }

body.layout-3 .navbar.navbar-secondary .dropdown-menu {
  width: 240px; padding: 6px 0; margin-top: 0; border: 1px solid var(--keu-border);
  border-radius: var(--keu-radius); box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item .nav-link {
  color: var(--keu-text); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4;
  padding: 7px 14px !important; padding-left: 14px !important; padding-right: 28px !important; white-space: normal;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item .nav-link.has-dropdown { font-weight: 500; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item .nav-link.has-dropdown:after { font-size: 10px; right: 12px; color: var(--keu-faint); content: "\f054"; }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item .nav-link i { width: 18px; font-size: 12px; color: var(--keu-faint); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item:hover > .nav-link { background-color: var(--keu-accent-soft); color: var(--keu-accent); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item:hover > .dropdown-menu { top: -7px; left: calc(100% - 4px); }
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item.active > .nav-link,
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu .nav-item .nav-link:focus { background-color: var(--keu-accent-soft); color: var(--keu-accent); }
/* Ruang atas halaman mengikuti tinggi menu baru (70 + 52) */
.keu-page { padding-top: 146px; }

/* Beranda akademik: statistik pengiriman PDDIKTI */
.fd-kolom > div:first-child { border-right: 1px solid var(--keu-border); }
@media (max-width: 991px) { .fd-kolom > div:first-child { border-right: 0; } }
.fd-judul { font-size: 12px; font-weight: 600; color: var(--keu-muted); text-transform: uppercase; letter-spacing: .4px; padding: 12px 18px 0; }
.fd-kolom { margin: 0; }
.fd-tabel { width: 100%; }
.fd-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef1f4; min-width: 90px; }
.fd-bar span { display: block; height: 100%; }
.fd-bar .ok, .fd-legenda .ok { background: var(--keu-ok); }
.fd-bar .due, .fd-legenda .due { background: var(--keu-due); }
.fd-bar .hold, .fd-legenda .hold { background: #e3a23b; }
.fd-legenda { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--keu-muted); padding: 10px 18px 14px; border-top: 1px solid var(--keu-border); }
.fd-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.fd-legenda i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Menu atas lebih ringkas (56px) untuk peran bertampilan baru; menu modul tepat di bawahnya */
body.layout-3 .main-navbar { height: 56px; }
body.layout-3 .navbar-bg { height: 56px; }
body.layout-3 .navbar.navbar-secondary { top: 56px; }
body.layout-3 .main-navbar .navbar-brand { font-size: 15px; letter-spacing: 2px; }
body.layout-3 .main-navbar .navbar-nav > .nav-item > .nav-link { padding-top: 6px; padding-bottom: 6px; }
.keu-page { padding-top: 132px; }

/* Mata kuliah: evaluasi */
.eval-total { font-size: 13px; color: var(--keu-muted); }
.eval-total strong { font-size: 16px; margin-left: 4px; }
.keu-page .eval-tabel td { vertical-align: middle; }
.keu-page .eval-tabel .form-control { height: 34px; }
.keu-page .dropdown-menu form { display: block; }
.keu-page .dropdown-menu button.dropdown-item { font-size: 13px; line-height: 1.5; cursor: pointer; }
.keu-page .dropdown-menu .dropdown-item { font-size: 13px; }

/* Kurikulum: baris pemisah semester */
.keu-page .keu-table tr.kur-smt td { background: #f8fafc; font-weight: 600; font-size: 12.5px; color: var(--keu-text); padding-top: 10px; padding-bottom: 6px; }

/* Kelas: saring cepat (lebih kecil dari tab) dan distribusi nilai */
.kls-saring { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.kls-saring a {
  padding: 3px 10px; border: 1px solid var(--keu-border); border-radius: 999px;
  font-size: 12px; color: var(--keu-muted); background: #fff; text-decoration: none;
}
.kls-saring a.active { border-color: var(--keu-accent); color: var(--keu-accent); background: var(--keu-accent-soft); font-weight: 600; }
.kls-saring a:hover:not(.active) { background: #eef1f4; color: var(--keu-text); }
.kls-dist { display: grid; grid-template-columns: 34px 1fr 40px; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.kls-dist .bar { height: 8px; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.kls-dist .bar span { display: block; height: 100%; background: var(--keu-accent); }
.kls-dosen { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--keu-border); }
.kls-dosen:last-child { border-bottom: 0; }

/* Jadwal mingguan */
.kls-minggu { display: grid; grid-template-columns: repeat(var(--hari, 6), minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.kls-hari { background: #f8fafc; border: 1px solid var(--keu-border); border-radius: var(--keu-radius); padding: 8px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.kls-hari-head { font-weight: 600; font-size: 13px; color: var(--keu-text); display: flex; justify-content: space-between; padding: 0 2px 4px; }
.kls-hari-head span { color: var(--keu-muted); font-weight: 400; }
.kls-kartu { display: flex; flex-direction: column; gap: 1px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--keu-border); border-left: 3px solid var(--keu-accent); border-radius: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.35; cursor: pointer; }
.kls-kartu:hover { box-shadow: 0 1px 4px rgba(0,0,0,.08); border-color: var(--keu-border-strong); }
.kls-kartu .jam { font-weight: 600; color: var(--keu-accent); font-variant-numeric: tabular-nums; }
.kls-kartu .mk { color: var(--keu-text); }
.kls-kartu .meta { color: var(--keu-muted); font-size: 11.5px; }
.kls-kartu.kls-bentrok { border-left-color: #d9534f; background: #fff7f7; }
.kls-kartu.kls-bentrok .jam { color: #c0392b; }
.kls-belum { display: flex; flex-wrap: wrap; gap: 6px; }

/* Pra-wisuda: alur tahap */
.pw-alur { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 16px; padding: 10px 12px; counter-reset: none; }
.pw-alur li { flex: 1 1 120px; min-width: 0; }
.pw-alur li a, .pw-alur li.ditolak { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--keu-faint); font-size: 13px; text-decoration: none; }
.pw-alur li span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid var(--keu-border); font-size: 12px; font-weight: 600; }
.pw-alur li.selesai a { color: var(--keu-ok); }
.pw-alur li.selesai span { background: var(--keu-ok); border-color: var(--keu-ok); color: #fff; }
.pw-alur li.aktif a { color: inherit; font-weight: 600; background: rgba(47, 91, 138, .08); }
.pw-alur li.aktif span { border-color: currentColor; }
.pw-alur li.ditolak { color: var(--keu-due); flex-basis: 100%; }
.pw-alur li.ditolak span { border-color: var(--keu-due); }
.keu-page .keu-panel[id] { scroll-margin-top: 70px; }

/* Portal ketua prodi (kaprodi_new) */
.kp-daftar { list-style: none; margin: 0; padding: 0; }
.kp-daftar li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--keu-line, #edf0f3); }
.kp-daftar li:last-child { border-bottom: 0; }
.kp-daftar .keu-badge { min-width: 44px; text-align: center; }
.kp-baris { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.kp-batang { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; }
.kp-batang strong { font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.kp-jadwal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kp-hari h3 { font-size: 14px; margin: 0 0 8px; }
.kp-sesi { border: 1px solid var(--keu-line, #e3e7ec); border-left: 3px solid var(--keu-accent, #2f5b8a); border-radius: 6px; padding: 7px 9px; margin-bottom: 8px; font-size: 13px; }
.kp-sesi.bentrok { border-left-color: var(--keu-due, #c0392b); background: rgba(217, 83, 79, .05); }
.kp-sesi .kp-jam { font-variant-numeric: tabular-nums; font-weight: 600; }
@media print { .navbar, .main-sidebar, .sk-footer-luar, .keu-actions, .keu-filter, .kls-saring { display: none !important; } .kp-sesi { break-inside: avoid; } }
