/* Inter (self-hosted, variable latin 400-800) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/inter/inter-latin-var.woff2') format('woff2');}

/* ============================================================
   SPMB Admin - Modern Theme (CSS override for AdminLTE 3)
   Hanya tampilan. Tidak mengubah markup/JS/route.
   ============================================================ */

:root {
  --adm-primary: #123c7a;
  --adm-primary-2: #1c5bd8;
  --adm-accent: #f6a623;
  --adm-bg: #f4f7fc;
  --adm-surface: #ffffff;
  --adm-text: #1f2937;
  --adm-muted: #6b7280;
  --adm-line: #e5eaf3;
  --adm-radius: 14px;
  --adm-shadow: 0 10px 30px rgba(16, 37, 74, 0.08);
  --adm-shadow-lg: 0 18px 45px rgba(16, 37, 74, 0.14);
}

body,
td,
th,
.main-header,
.main-sidebar,
.content-wrapper,
.card,
.btn,
.form-control {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  color: var(--adm-text);
}

.wrapper,
.content-wrapper {
  background: var(--adm-bg) !important;
}

/* ---------- Navbar ---------- */
.main-header.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--adm-line) !important;
  min-height: 62px;
  box-shadow: 0 4px 18px rgba(16, 37, 74, 0.05);
  padding: 0 16px;
}

.main-header .nav-link {
  color: var(--adm-primary) !important;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.main-header .nav-link:hover {
  background: #eef4ff;
}

.main-header .nav-link i {
  color: var(--adm-primary) !important;
}

.ppdb-admin-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--adm-primary) !important;
}

.ppdb-admin-brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2));
  color: #fff !important;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(28, 91, 216, 0.28);
}

.ppdb-admin-brand .brand-sub {
  color: var(--adm-muted);
  font-weight: 700;
}

/* ---------- Sidebar ---------- */
.main-sidebar {
  background: linear-gradient(180deg, #0b1a33 0%, #123c7a 55%, #1c5bd8 100%) !important;
  box-shadow: 4px 0 24px rgba(11, 26, 51, 0.18) !important;
}

.main-sidebar .sidebar {
  padding: 0 10px 18px;
}

.main-sidebar .user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 8px;
  margin-top: 8px !important;
}

.main-sidebar .user-panel img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.main-sidebar .user-panel .info a {
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.nav-sidebar .nav-header {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 16px 14px 6px;
}

.nav-sidebar .nav-item {
  margin-bottom: 2px;
}

.nav-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.nav-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--adm-accent);
}

.nav-sidebar .nav-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link:hover .nav-icon {
  color: #fff;
}

.nav-sidebar .nav-treeview {
  padding-left: 6px;
}

.nav-sidebar .nav-treeview .nav-link {
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 600;
  padding: 8px 10px;
}

.nav-sidebar .nav-treeview .nav-link.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: none;
}

.nav-sidebar .nav-treeview .nav-icon {
  font-size: 8px;
}

/* ---------- Content ---------- */
.content {
  padding: 22px 20px 30px !important;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  overflow: hidden;
  margin-bottom: 22px;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--adm-line);
  padding: 16px 20px;
}

.card-title {
  font-weight: 900;
  color: #0b1a33;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background: #fbfcff;
  border-top: 1px solid var(--adm-line);
}

/* ---------- Info boxes ---------- */
.info-box {
  border-radius: 16px;
  box-shadow: var(--adm-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--adm-line);
  background: #fff !important;
}

.info-box-icon {
  border-radius: 0;
  font-size: 26px;
}

.info-box-text,
.info-box-number {
  color: var(--adm-text);
}

.info-box h5 {
  color: #0b1a33;
}

/* ---------- Tables ---------- */
.table {
  font-size: 14px;
  color: var(--adm-text);
}

.table thead th {
  border-top: 0;
  border-bottom: 2px solid var(--adm-line);
  color: var(--adm-muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  padding: 12px 10px;
  white-space: nowrap;
}

.table td,
.table th {
  vertical-align: middle;
  border-color: #eef1f7;
  padding: 11px 10px;
}

.table-hover tbody tr:hover {
  background: #f7faff;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fbfcff;
}

.table a {
  color: var(--adm-primary-2);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  font-weight: 800;
}

.btn-sm {
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2)) !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(28, 91, 216, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(28, 91, 216, 0.32);
}

.btn-success {
  background: linear-gradient(135deg, #12a150, #0b7a3b) !important;
  border: 0 !important;
}

.btn-danger {
  background: linear-gradient(135deg, #e5484d, #a71d2a) !important;
  border: 0 !important;
}

.btn-warning {
  background: linear-gradient(135deg, #ffb648, #f08a00) !important;
  border: 0 !important;
  color: #2a1a02 !important;
}

.btn-info {
  background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
  border: 0 !important;
}

.btn-default {
  background: #fff !important;
  border: 1px solid var(--adm-line) !important;
  color: var(--adm-primary) !important;
}

.bg-navy {
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2)) !important;
}

/* ---------- Forms ---------- */
.form-control {
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fbfcff;
  color: var(--adm-text);
  min-height: 40px;
  font-size: 14px;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--adm-primary-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 91, 216, 0.12);
}

.input-group-text {
  border-radius: 0 10px 10px 0;
  border-color: var(--adm-line);
  background: #f1f5fd;
  color: var(--adm-primary);
}

.select2-container--default .select2-selection--single {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fbfcff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  color: var(--adm-text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--adm-primary-2);
  box-shadow: 0 0 0 4px rgba(28, 91, 216, 0.12);
}

/* ---------- DataTables ---------- */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid var(--adm-line);
  padding: 6px 10px;
  margin-left: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2)) !important;
  border: 0 !important;
  color: #fff !important;
}

.page-item.active .page-link {
  background: var(--adm-primary-2);
  border-color: var(--adm-primary-2);
}

/* ---------- Badges ---------- */
.badge {
  border-radius: 6px;
  font-weight: 800;
  padding: 5px 9px;
}

/* ---------- Modals ---------- */
.modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--adm-line);
  padding: 16px 20px;
}

.modal-title {
  font-weight: 900;
  color: #0b1a33;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid var(--adm-line);
}

/* ---------- Footer ---------- */
.main-footer {
  background: #fff !important;
  border-top: 1px solid var(--adm-line) !important;
  color: var(--adm-muted) !important;
  padding: 14px 22px;
  font-size: 13px;
}

/* ---------- Misc ---------- */
.dropdown-menu {
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  box-shadow: var(--adm-shadow-lg);
  padding: 6px;
}

.dropdown-item {
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 12px;
}

.dropdown-item:hover {
  background: #eef4ff;
  color: var(--adm-primary);
}

.nav-tabs .nav-link {
  border-radius: 10px 10px 0 0;
  font-weight: 700;
}

.nav-tabs .nav-link.active {
  color: var(--adm-primary) !important;
  border-color: var(--adm-line) var(--adm-line) #fff;
}

.breadcrumb {
  background: transparent;
  padding: 0;
}

.alert {
  border: 0;
  border-radius: 12px;
}

.small-box {
  border-radius: 16px;
  box-shadow: var(--adm-shadow);
  overflow: hidden;
}

/* Scrollbar for sidebar */
.main-sidebar .sidebar::-webkit-scrollbar {
  width: 6px;
}

.main-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .content {
    padding: 16px 12px 26px !important;
  }

  .card-body {
    padding: 16px;
  }
}

@media (max-width: 575.98px) {
  .main-header.navbar {
    padding: 0 8px;
  }

  .ppdb-admin-brand .brand-sub {
    display: none;
  }

  .card-header {
    padding: 14px 16px;
  }
}

/* ============================================================
   Wawancara page
   ============================================================ */
.ppdb-waw-card {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  box-shadow: var(--adm-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.ppdb-waw-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f2f7ff, #eaf1ff);
  border-bottom: 1px solid var(--adm-line);
}

.ppdb-waw-avatar {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(18, 60, 122, 0.18);
  background: #fff;
}

.ppdb-waw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ppdb-waw-profile-main {
  min-width: 0;
}

.ppdb-waw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--adm-primary-2);
}

.ppdb-waw-profile h2 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0b1a33;
  letter-spacing: -0.3px;
}

.ppdb-waw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ppdb-waw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--adm-line);
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

.ppdb-waw-chip i {
  color: var(--adm-primary-2);
}

.ppdb-waw-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 20px 24px;
}

.ppdb-waw-info small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9aa4b2;
  margin-bottom: 2px;
}

.ppdb-waw-info b {
  font-size: 14px;
  color: #1f2937;
}

.ppdb-waw-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--adm-line);
  background: #fbfcff;
}

.ppdb-waw-card-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #0b1a33;
}

.ppdb-waw-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--adm-primary-2);
  background: #e8f0ff;
  border-radius: 999px;
  padding: 4px 10px;
}

.ppdb-waw-questions {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ppdb-waw-q {
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  overflow: hidden;
}

.ppdb-waw-q-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fbfcff;
  border-bottom: 1px solid var(--adm-line);
  font-weight: 800;
  font-size: 13.5px;
  color: #0b1a33;
}

.ppdb-waw-q-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2));
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

.ppdb-waw-q-body {
  padding: 12px 14px;
}

.ppdb-waw-submit {
  padding: 0 22px 22px;
}

.ppdb-waw-syarat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

.ppdb-waw-syarat .b-cek-syarat {
  margin: 0 !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 991.98px) {
  .ppdb-waw-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ppdb-waw-profile {
    flex-direction: column;
    text-align: center;
  }

  .ppdb-waw-info {
    grid-template-columns: 1fr;
  }

  .ppdb-waw-syarat {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Pendaftar Diterima
   ============================================================ */
.pd-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #0b1a33 0%, #123c7a 60%, #1c5bd8 100%);
  border: 0;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(11, 26, 51, 0.22);
  color: #fff;
}

.pd-hero-main { min-width: 0; }

.pd-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffd98a;
}

.pd-hero h2 {
  margin: 4px 0 4px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.pd-hero p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 13.5px; }

.pd-hero-stat {
  text-align: right;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px 20px;
}

.pd-hero-stat span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.pd-hero-stat b { font-size: 1.8rem; font-weight: 900; color: #ffd98a; line-height: 1.1; }

.pd-count { font-size: 12px; color: #6b7280; }

.pd-table tbody tr { background: transparent !important; }
.pd-table tbody td { border: 0 !important; padding: 6px 4px !important; vertical-align: top; }
.pd-table thead th { border-bottom: 1px solid var(--adm-line) !important; }

.pd-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 37, 74, 0.05);
  align-items: flex-start;
}

.pd-side { width: 120px; flex-shrink: 0; }
.pd-photo { width: 100%; border-radius: 12px; overflow: hidden; background: #f1f5fd; border: 1px solid var(--adm-line); }
.pd-photo img { width: 100%; display: block; object-fit: cover; aspect-ratio: 3 / 4; }
.pd-mini-actions { display: flex; gap: 6px; margin-top: 6px; }
.pd-mini-actions .btn { flex: 1; padding: 6px 0; }
.pd-side-actions { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }

.pd-main { flex: 1; min-width: 0; }
.pd-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.pd-name { font-size: 1.05rem; font-weight: 900; color: var(--adm-primary); }
.pd-name:hover { color: var(--adm-primary-2); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: #6b7280; font-size: 12.5px; }
.pd-meta i { color: var(--adm-primary-2); }

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f7ee;
  color: #0b7a3b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.pd-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.pd-info small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #9aa4b2; margin-bottom: 2px; }
.pd-info b { font-size: 13px; color: #1f2937; }

.pd-wa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pd-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e8f7ef;
  color: #0b7a3b;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #c6ecd8;
}
.pd-wa-btn:hover { background: #d7f2e3; color: #0b7a3b; }

.pd-syarat { width: 300px; flex-shrink: 0; }
.pd-syarat-title { font-size: 11.5px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.pd-syarat .pd-syarat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.pd-syarat .pd-syarat-item.is-ok { background: #e6f7ee; color: #0b7a3b; }
.pd-syarat .pd-syarat-item.is-no { background: #fdeaea; color: #b42318; }
.pd-syarat .pd-syarat-item .pd-syarat-ic { flex-shrink: 0; }
.pd-syarat .pd-syarat-item:hover { filter: brightness(0.97); }

@media (max-width: 1199.98px) {
  .pd-card { flex-wrap: wrap; }
  .pd-syarat { width: 100%; }
}

@media (max-width: 767.98px) {
  .pd-card { flex-direction: column; }
  .pd-side { width: 100%; display: flex; gap: 12px; align-items: flex-start; }
  .pd-photo { width: 90px; }
  .pd-side-actions, .pd-mini-actions { flex: 1; }
  .pd-info { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .pd-hero { flex-direction: column; align-items: flex-start; }
  .pd-hero-stat { width: 100%; text-align: left; }
}

/* Pendaftar Diterima v2 - compact rows */
.pd-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--adm-line);
  border-left: 4px solid var(--adm-primary-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 37, 74, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-row:hover {
  box-shadow: 0 10px 24px rgba(16, 37, 74, 0.1);
  transform: translateY(-1px);
}

.pd-row-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e8f0ff;
  flex-shrink: 0;
  background: #f1f5fd;
}

.pd-row-photo img { width: 100%; height: 100%; object-fit: cover; }

.pd-row-main { flex: 1; min-width: 0; }

.pd-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
  justify-content: space-between;
}

.pd-row-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--adm-primary);
  margin-right: 6px;
}

.pd-row-name:hover { color: var(--adm-primary-2); }

.pd-row-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e6f7ee;
  color: #0b7a3b;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pd-kelas-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.pd-kelas-badge i { color: #6366f1; }

html[data-theme="dark"] .pd-kelas-badge { background: #1e1b4b; color: #c7d2fe; }

.pd-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.pd-row-meta span,
.pd-row-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pd-row-meta i { color: var(--adm-primary-2); }
.pd-row-meta a { color: #0b7a3b; font-weight: 700; }
.pd-row-meta a:hover { color: #0b7a3b; text-decoration: underline; }

.pd-row-syarat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pd-row-syarat .pd-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.pd-row-syarat .pd-pill.is-ok { background: #e6f7ee; color: #0b7a3b; }
.pd-row-syarat .pd-pill.is-no { background: #fdeaea; color: #b42318; }
.pd-row-syarat .pd-pill:hover { filter: brightness(0.96); }

.pd-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
  width: 118px;
}

.pd-row-act-icons { display: flex; gap: 6px; }

.pd-row-act-icons .pd-act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.pd-act-green { background: linear-gradient(135deg, #12a150, #0b7a3b); }
.pd-act-blue { background: linear-gradient(135deg, #1c5bd8, #123c7a); }

.pd-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}

.pd-act-navy { background: #123c7a; color: #fff; }
.pd-act-info { background: #1c5bd8 !important; color: #fff !important; border: 1px solid #1c5bd8; }
.pd-act-info i { color: #fff !important; }
.pd-act-btn:hover { filter: brightness(1.06); color: #fff; }
.pd-act:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 991.98px) {
  .pd-row { flex-wrap: wrap; }
  .pd-row-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .pd-row-actions .pd-act-btn { flex: 1; }
  .pd-row-act-icons { flex: 0 0 auto; }
}

@media (max-width: 575.98px) {
  .pd-row-photo { width: 52px; height: 52px; }
  .pd-row-actions { width: 100%; }
}

/* Pendaftar Baru / Ditolak variants */
.pd-row.pd-row-new { border-left-color: #f6a623; }
.pd-row.pd-row-danger { border-left-color: #e5484d; }
.pd-row-badge.is-new { background: #fff4e0; color: #b45309; }
.pd-row-badge.is-danger { background: #fdeaea; color: #b42318; }
.pd-act-validasi { background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff; }
.pd-act-validasi:hover { filter: brightness(1.06); color: #fff; }
.pd-row-keterangan { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12px; color: #6b7280; }
.pd-row-keterangan b { color: #b42318; font-weight: 700; }
.pd-row-keterangan a { color: var(--adm-primary-2); }
.pd-row-keterangan a:hover { color: var(--adm-primary); }

.pd-hero.pd-hero-new { background: linear-gradient(135deg, #0b1a33 0%, #1e3a8a 55%, #6d28d9 100%); }
.pd-hero.pd-hero-danger { background: linear-gradient(135deg, #2b0b12 0%, #7f1d1d 55%, #e5484d 100%); }

/* Dashboard */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #0b1a33 0%, #123c7a 60%, #1c5bd8 100%);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 26, 51, 0.22);
}

.dash-hero-main { min-width: 0; }

.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffd98a;
}

.dash-hero h2 { margin: 4px 0 4px; font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.dash-hero p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 13.5px; }

.dash-hero-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 10px 16px;
}

.dash-hero-user i { font-size: 30px; color: #ffd98a; }
.dash-hero-user small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.dash-hero-user b { color: #fff; font-size: 14px; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }

.dash-kpi {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  box-shadow: var(--adm-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-kpi-top { display: flex; align-items: center; gap: 12px; }

.dash-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.dash-kpi-head h5 { margin: 0; font-weight: 900; color: #0b1a33; font-size: 1rem; line-height: 1.2; }
.dash-kpi-head small { color: #6b7280; font-size: 12px; font-weight: 600; }

.dash-kpi-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.dash-kpi-stats span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #9aa4b2; }
.dash-kpi-stats b { font-size: 1.15rem; font-weight: 900; color: var(--adm-primary-2); }

.dash-kpi-total { border-left: 4px solid var(--adm-accent); }

@media (max-width: 1199.98px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-hero-user { width: 100%; }
}

/* ============================================================
   Settings pages
   ============================================================ */
.set-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0b1a33 0%, #123c7a 60%, #1c5bd8 100%);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 26, 51, 0.22);
}

.set-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffd98a;
  flex-shrink: 0;
}

.set-hero-text { min-width: 0; }
.set-hero-eyebrow { display: inline-flex; font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #ffd98a; }
.set-hero-text h2 { margin: 2px 0 2px; font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.set-hero-text p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 13.5px; }

@media (max-width: 575.98px) {
  .set-hero { padding: 16px 18px; }
  .set-hero-text h2 { font-size: 1.15rem; }
}

/* ============================================================
   DataTables & table icons
   ============================================================ */
.dataTables_wrapper { font-size: 14px; }

.card-body.p-0 .dataTables_wrapper { padding: 14px 16px 0; }
.card-body.p-0 .dataTables_wrapper .table { margin-bottom: 0; }

.dataTables_wrapper .row:first-child { align-items: center; margin-bottom: 6px; }

.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.dataTables_wrapper .dataTables_length select {
  height: 36px;
  border: 1px solid var(--adm-line);
  border-radius: 9px;
  background: #fbfcff;
  padding: 4px 28px 4px 10px;
  color: var(--adm-text);
}

.dataTables_wrapper .dataTables_filter { text-align: right; }

.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.dataTables_wrapper .dataTables_filter label::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--adm-primary-2);
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 220px;
  height: 36px;
  margin-left: 0;
  border: 1px solid var(--adm-line);
  border-radius: 9px;
  background: #fbfcff;
  padding: 6px 12px;
  color: var(--adm-text);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--adm-primary-2);
  box-shadow: 0 0 0 4px rgba(28, 91, 216, 0.12);
  outline: none;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 10px;
  color: #6b7280;
  font-size: 12.5px;
}

.dataTables_wrapper .dataTables_paginate { padding-top: 8px; }

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-link {
  border: 1px solid var(--adm-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--adm-primary) !important;
  margin: 0 2px;
  padding: 5px 10px !important;
  font-weight: 700;
  font-size: 12.5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .page-link:hover {
  background: #eef4ff !important;
  color: var(--adm-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(28, 91, 216, 0.28);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  background: #fff !important;
  color: #b6c0ce !important;
  box-shadow: none;
  cursor: default;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous::before {
  content: "\f104";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 4px;
}

.dataTables_wrapper .dataTables_empty {
  padding: 28px !important;
  color: #9aa4b2;
}

.dataTables_wrapper .dataTables_empty::before {
  content: "\f0f6";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: block;
  font-size: 26px;
  color: #c7d0dd;
  margin-bottom: 8px;
}

/* Sort indicators */
.table thead .sorting:before,
.table thead .sorting:after,
.table thead .sorting_asc:before,
.table thead .sorting_asc:after,
.table thead .sorting_desc:before,
.table thead .sorting_desc:after {
  color: #c1cad8;
  opacity: 0.7;
}

.table thead .sorting_asc:before,
.table thead .sorting_desc:after {
  color: var(--adm-primary-2);
  opacity: 1;
}

/* Row action buttons */
.table tbody td > .btn-xs:not(.btn-block) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.table tbody td > .btn-xs:not(.btn-block) i {
  font-size: 12px;
}

.table tbody td > .btn.bg-red {
  background: linear-gradient(135deg, #e5484d, #a71d2a) !important;
  color: #fff !important;
}

.table tbody td > .btn.bg-success {
  background: linear-gradient(135deg, #12a150, #0b7a3b) !important;
  color: #fff !important;
}

.table tbody td > .btn.bg-info {
  background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
  color: #fff !important;
}

.table tbody td > .btn.bg-primary {
  background: linear-gradient(135deg, #123c7a, #1c5bd8) !important;
  color: #fff !important;
}

.table tbody td > .btn.bg-warning {
  background: linear-gradient(135deg, #ffb648, #f08a00) !important;
  color: #2a1a02 !important;
}

/* DataTables responsive scroll wrapper */
.dataTables_scrollBody { border-radius: 0 0 12px 12px; }

/* Global font scale: slightly smaller on admin pages */
html {
  font-size: 93.75%;
}

/* ============================================================
   Admin UI Refresh v11
   Typography, layout consistency, navbar/sidebar polish, dark mode
   ============================================================ */

html { font-size: 87.5%; }

body {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

.content {
  padding: 20px 18px 28px !important;
  max-width: 1680px;
  margin: 0 auto;
}

.content-wrapper {
  min-height: calc(100vh - 62px - 52px);
}

.card {
  margin-bottom: 18px;
}

.card-header {
  padding: 14px 18px;
}

.card-body {
  padding: 18px;
}

.card-title {
  font-size: 1rem;
  line-height: 1.3;
}

.table {
  font-size: 13.5px;
}

.table thead th {
  font-size: 11px;
  padding: 10px 9px;
}

.table td,
.table th {
  padding: 10px 9px;
}

.btn {
  font-size: 13px;
}

.form-control,
.custom-select {
  font-size: 13.5px;
  min-height: 38px;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border-radius: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  font-size: 13.5px;
}

/* ---------- Navbar polish ---------- */
.main-header.navbar {
  min-height: 62px;
  padding: 0 18px;
}

.main-header .navbar-nav {
  align-items: center;
  gap: 6px;
}

.main-header .nav-link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ppdb-theme-toggle {
  background: #eef4ff;
}

.ppdb-theme-toggle:hover {
  background: #dce9ff !important;
}

.ppdb-dev-credit {
  font-weight: 700;
  color: var(--adm-primary);
}

/* ---------- Sidebar polish ---------- */
.main-sidebar .sidebar {
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-sidebar .nav-link {
  padding: 9px 12px;
  font-size: 13px;
}

.nav-sidebar .nav-link p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sidebar .badge.right {
  margin-top: 0;
  padding: 3px 8px;
  font-size: 10px;
}

/* ---------- Footer ---------- */
.main-footer {
  font-size: 12.5px;
  padding: 12px 18px;
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --adm-bg: #0b1220;
  --adm-surface: #111a2c;
  --adm-text: #e5e7eb;
  --adm-muted: #94a3b8;
  --adm-line: #22304a;
  --adm-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --adm-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body {
  background: var(--adm-bg);
  color: var(--adm-text);
}

html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .content-wrapper {
  background: var(--adm-bg) !important;
}

html[data-theme="dark"] .main-header.navbar {
  background: rgba(17, 26, 44, 0.97) !important;
  border-bottom-color: var(--adm-line) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .main-header .nav-link,
html[data-theme="dark"] .main-header .nav-link i {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .main-header .nav-link:hover {
  background: #1b2942 !important;
}

html[data-theme="dark"] .ppdb-admin-brand {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .ppdb-admin-brand .brand-sub {
  color: #94a3b8;
}

html[data-theme="dark"] .ppdb-theme-toggle {
  background: #1b2942 !important;
}

html[data-theme="dark"] .main-sidebar {
  background: linear-gradient(180deg, #060b14 0%, #0a1428 55%, #0e2142 100%) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .nav-sidebar .nav-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

html[data-theme="dark"] .nav-sidebar .nav-link.active {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #fff !important;
}

html[data-theme="dark"] .nav-sidebar .nav-treeview .nav-link {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .dash-kpi,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .main-footer {
  background: var(--adm-surface) !important;
  border-color: var(--adm-line) !important;
  color: var(--adm-text) !important;
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer {
  background: #0f172a !important;
  border-color: var(--adm-line) !important;
}

html[data-theme="dark"] .card-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .info-box-number,
html[data-theme="dark"] .info-box-text,
html[data-theme="dark"] .dash-kpi-head h5 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] small,
html[data-theme="dark"] .dash-kpi-head small,
html[data-theme="dark"] .dash-kpi-stats span,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] .digital-note {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .table {
  color: var(--adm-text);
}

html[data-theme="dark"] .table thead th {
  color: #94a3b8;
  border-color: var(--adm-line);
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th {
  border-color: var(--adm-line);
}

html[data-theme="dark"] .table-hover tbody tr:hover {
  background: #16233a !important;
}

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background: #0f1a2d !important;
}

html[data-theme="dark"] .table a {
  color: #7fb0ff;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .custom-select:focus {
  background: #0f172a !important;
  border-color: #2a3a55 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .input-group-text {
  background: #16233a;
  border-color: #2a3a55;
  color: #cbd5e1;
}

html[data-theme="dark"] select option {
  background: #0f172a;
  color: #e5e7eb;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple {
  background: #0f172a !important;
  border-color: #2a3a55 !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection__choice {
  color: #e5e7eb;
}

html[data-theme="dark"] .select2-dropdown {
  background: #111a2c;
  border-color: #2a3a55;
}

html[data-theme="dark"] .select2-results__option {
  color: #e5e7eb;
}

html[data-theme="dark"] .select2-results__option--highlighted {
  background: #1c5bd8 !important;
}

html[data-theme="dark"] .dropdown-item {
  color: #cbd5e1;
}

html[data-theme="dark"] .dropdown-item:hover {
  background: #1b2942;
  color: #fff;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
  border-color: var(--adm-line);
}

html[data-theme="dark"] .close {
  color: #e5e7eb;
  text-shadow: none;
}

html[data-theme="dark"] .nav-tabs {
  border-color: var(--adm-line);
}

html[data-theme="dark"] .nav-tabs .nav-link {
  color: #94a3b8;
}

html[data-theme="dark"] .nav-tabs .nav-link.active {
  background: var(--adm-surface);
  border-color: var(--adm-line) var(--adm-line) var(--adm-surface);
  color: #f1f5f9;
}

html[data-theme="dark"] .page-link {
  background: #111a2c;
  border-color: var(--adm-line);
  color: #cbd5e1;
}

html[data-theme="dark"] .page-item.active .page-link {
  background: #1c5bd8;
  border-color: #1c5bd8;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
html[data-theme="dark"] .dataTables_wrapper .dataTables_filter input {
  background: #0f172a;
  border-color: #2a3a55;
  color: #e5e7eb;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_info,
html[data-theme="dark"] .dataTables_wrapper .dataTables_processing {
  color: #94a3b8;
}

html[data-theme="dark"] .btn-default,
html[data-theme="dark"] .btn-light {
  background: #16233a !important;
  border-color: #2a3a55 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
  background: #111a2c !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .text-dark {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-left,
html[data-theme="dark"] .border-right {
  border-color: var(--adm-line) !important;
}

html[data-theme="dark"] .dash-kpi-stats b {
  color: #7fb0ff;
}

html[data-theme="dark"] .highcharts-background {
  fill: #0f172a !important;
}

html[data-theme="dark"] .highcharts-axis-labels text,
html[data-theme="dark"] .highcharts-legend-item text,
html[data-theme="dark"] .highcharts-title,
html[data-theme="dark"] .highcharts-subtitle {
  fill: #cbd5e1 !important;
}

html[data-theme="dark"] .highcharts-grid-line {
  stroke: #22304a !important;
}

@media (max-width: 991.98px) {
  .content {
    padding: 16px 12px 24px !important;
  }

  .main-header.navbar {
    padding: 0 12px;
  }

  .main-footer {
    padding: 12px 14px;
  }

  .ppdb-dev-credit {
    float: none !important;
    display: block;
    margin-top: 4px;
  }
}

html[data-theme="dark"] .pd-row {
  background: var(--adm-surface) !important;
  border-color: var(--adm-line) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .pd-row-name {
  color: #f1f5f9;
}

html[data-theme="dark"] .pd-row-meta,
html[data-theme="dark"] .pd-row-meta a {
  color: #94a3b8;
}

html[data-theme="dark"] .pd-row-photo {
  border-color: #22304a;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .page-link {
  background: #111a2c !important;
  border-color: var(--adm-line) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .page-link:hover {
  background: #1b2942 !important;
  color: #fff !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background: linear-gradient(135deg, #123c7a, #1c5bd8) !important;
  border-color: transparent !important;
  color: #fff !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  background: #0f172a !important;
  color: #64748b !important;
}

html[data-theme="dark"] .ppdb-waw-card,
html[data-theme="dark"] .waw-bottom-actions,
html[data-theme="dark"] .waw-syarat-item {
  background: var(--adm-surface) !important;
  border-color: var(--adm-line) !important;
}

html[data-theme="dark"] .ppdb-waw-card-head,
html[data-theme="dark"] .ppdb-waw-q-head {
  background: #0f172a !important;
  border-color: var(--adm-line) !important;
  color: #f1f5f9;
}

html[data-theme="dark"] .ppdb-waw-q,
html[data-theme="dark"] .waw-progress {
  border-color: var(--adm-line) !important;
}

html[data-theme="dark"] .ppdb-waw-q-body,
html[data-theme="dark"] .ppdb-waw-info b {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .waw-progress {
  background: #1e293b;
}

html[data-theme="dark"] .waw-syarat-item.is-ok {
  background: #10261b !important;
  border-color: #1f5136 !important;
}

html[data-theme="dark"] .waw-bottom-copy b,
html[data-theme="dark"] .waw-syarat-text b {
  color: #f1f5f9;
}

html[data-theme="dark"] .ppdb-admin-brand .brand-icon i {
  color: #fff !important;
}

html[data-theme="dark"] .ppdb-dev-credit {
  color: #7fb0ff !important;
}

/* ============================================================
   Admin UI v14 fixes
   ============================================================ */

.ppdb-admin-brand .brand-icon {
  background: #fff !important;
  padding: 3px;
  border: 1px solid var(--adm-line);
}

.ppdb-admin-brand .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

html[data-theme="dark"] .ppdb-admin-brand .brand-icon {
  background: #fff !important;
  border-color: rgba(255, 255, 255, 0.18);
}

.main-sidebar .user-panel {
  align-items: center;
  gap: 10px;
}

.main-sidebar .user-panel .info {
  min-width: 0;
}

.main-sidebar .user-panel .info a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-sidebar .user-panel .user-role {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffd98a !important;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.ppdb-dev-credit {
  font-weight: 400 !important;
  font-size: 12px;
  color: var(--adm-muted) !important;
}

html[data-theme="dark"] .ppdb-dev-credit {
  color: #94a3b8 !important;
}

.nav-sidebar .nav-link {
  display: flex;
  align-items: center;
}

.nav-sidebar .nav-icon {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

@media (min-width: 992px) {
  body.sidebar-collapse .main-sidebar .sidebar {
    padding-left: 6px;
    padding-right: 6px;
    overflow-x: hidden;
  }

  body.sidebar-collapse .main-sidebar .user-panel {
    justify-content: center;
    gap: 0;
    padding: 14px 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.sidebar-collapse .main-sidebar .user-panel .image {
    margin: 0 !important;
  }

  body.sidebar-collapse .main-sidebar .user-panel .info {
    display: none;
  }

  body.sidebar-collapse .nav-sidebar .nav-header {
    display: none;
  }

  body.sidebar-collapse .nav-sidebar .nav-item {
    margin-bottom: 4px;
  }

  body.sidebar-collapse .nav-sidebar .nav-link {
    justify-content: center;
    padding: 10px 0;
  }

  body.sidebar-collapse .nav-sidebar .nav-link p,
  body.sidebar-collapse .nav-sidebar .nav-link .right,
  body.sidebar-collapse .nav-sidebar .nav-link .badge {
    display: none !important;
  }

  body.sidebar-collapse .nav-sidebar .nav-icon {
    margin: 0 !important;
    width: 24px;
    font-size: 16px;
    text-align: center;
  }
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 !important;
  padding: 0 10px !important;
  line-height: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  min-width: auto;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous::before {
  margin-right: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next::after {
  margin-left: 5px;
}

/* ============================================================
   Pendaftar Diterima - DataTables v15
   ============================================================ */

.pd-dt-card {
  border-radius: 18px;
  overflow: hidden;
}

.pd-dt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--adm-line);
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.pd-dt-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pd-dt-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-2));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(28, 91, 216, 0.24);
}

.pd-dt-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--adm-text);
  letter-spacing: -0.1px;
}

.pd-dt-head small {
  display: block;
  margin-top: 2px;
  color: var(--adm-muted);
  font-size: 12px;
}

.pd-dt-total {
  flex-shrink: 0;
  border: 1px solid #c6ecd8;
  background: #e8f7ef;
  color: #0b7a3b;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.pd-dt-total b {
  font-size: 14px;
  margin-right: 2px;
}

.pd-dt-wrap {
  min-width: 0;
}

.pd-dt-top,
.pd-dt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-dt-top {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  background: #f9fbff;
}

.pd-dt-bottom {
  margin-top: 12px;
}

.pd-dt-top .dataTables_length,
.pd-dt-top .dataTables_filter,
.pd-dt-bottom .dataTables_info,
.pd-dt-bottom .dataTables_paginate {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pd-dt-top .dataTables_filter {
  margin-left: auto !important;
}

.pd-dt-top .dataTables_length label,
.pd-dt-top .dataTables_filter label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--adm-muted);
}

.pd-dt-top .dataTables_filter label::before {
  display: none;
}

.pd-dt-top .dataTables_filter input {
  min-width: 250px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--adm-line);
  background: #fff;
  padding: 6px 12px;
}

.pd-dt-top .dataTables_length select {
  height: 36px;
  border-radius: 9px;
}

.pd-dt-bottom .dataTables_info {
  color: var(--adm-muted);
  font-size: 12.5px;
}

.pd-table {
  margin-bottom: 0 !important;
}

.pd-table thead {
  display: none;
}

.pd-table tbody td {
  padding: 5px 0 !important;
}

.pd-table tbody td:first-child {
  display: none;
}

.pd-row {
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border-left-width: 5px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 6px 18px rgba(16, 37, 74, 0.06);
}

.pd-row:hover {
  box-shadow: 0 14px 30px rgba(16, 37, 74, 0.12);
  transform: translateY(-2px);
}

.pd-row-photo {
  width: 70px;
  height: 70px;
  border-width: 4px;
  box-shadow: 0 6px 14px rgba(16, 37, 74, 0.12);
}

.pd-row-name {
  font-size: 15px;
  letter-spacing: -0.1px;
}

.pd-row-meta {
  gap: 7px 9px;
  font-size: 11.5px;
}

.pd-row-meta span,
.pd-row-meta a {
  border: 1px solid #e8eef7;
  background: #f7faff;
  border-radius: 999px;
  padding: 3px 9px;
}

.pd-row-meta a {
  border-color: #d8f1e4;
  background: #eefaf3;
}

.pd-row-syarat {
  gap: 7px;
  margin-top: 11px;
}

.pd-row-syarat .pd-pill {
  padding: 4px 10px;
  font-size: 11px;
}

.pd-row-actions {
  width: 124px;
}

@media (max-width: 767.98px) {
  .pd-dt-head {
    align-items: flex-start;
  }

  .pd-dt-total {
    display: none;
  }

  .pd-dt-top .dataTables_filter,
  .pd-dt-top .dataTables_filter input {
    width: 100%;
  }

  .pd-dt-bottom {
    align-items: flex-start;
  }
}

html[data-theme="dark"] .pd-dt-head {
  background: linear-gradient(180deg, #111a2c 0%, #0f172a 100%);
  border-color: var(--adm-line);
}

html[data-theme="dark"] .pd-dt-head h4 {
  color: #f1f5f9;
}

html[data-theme="dark"] .pd-dt-head small,
html[data-theme="dark"] .pd-dt-bottom .dataTables_info {
  color: #94a3b8;
}

html[data-theme="dark"] .pd-dt-top {
  background: #0f172a;
  border-color: var(--adm-line);
}

html[data-theme="dark"] .pd-dt-top .dataTables_filter input,
html[data-theme="dark"] .pd-dt-top .dataTables_length select {
  background: #111a2c;
  border-color: #2a3a55;
  color: #e5e7eb;
}

html[data-theme="dark"] .pd-row {
  background: linear-gradient(180deg, #111a2c 0%, #0f172a 100%) !important;
}

html[data-theme="dark"] .pd-row-meta span,
html[data-theme="dark"] .pd-row-meta a {
  background: #16233a;
  border-color: #22304a;
  color: #94a3b8;
}

html[data-theme="dark"] .pd-row-meta a {
  background: #10261b;
  border-color: #1f5136;
  color: #86efac;
}

/* ============================================================
   Pendaftar Diterima v16 - syarat & actions
   ============================================================ */

.pd-row-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pd-row-head {
  gap: 6px 12px;
}

.pd-row-meta {
  margin-top: 4px;
}

.pd-row-actions {
  width: 162px;
}

.pd-act-finish {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
}

.pd-act-fakta {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
}

.pd-act-finish:hover,
.pd-act-fakta:hover {
  color: #fff;
  filter: brightness(1.06);
}

.pd-syarat-box {
  margin-top: 11px;
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcff;
}

.pd-syarat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #f3f7ff;
  border-bottom: 1px solid var(--adm-line);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.pd-syarat-head b {
  flex-shrink: 0;
  border: 1px solid #c6ecd8;
  border-radius: 999px;
  background: #e8f7ef;
  color: #0b7a3b;
  padding: 2px 8px;
  font-size: 10.5px;
}

.pd-syarat-progress {
  height: 5px;
  background: #e9eef7;
}

.pd-syarat-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #12a150, #0b7a3b);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.pd-row-syarat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
  padding: 10px;
}

.pd-syarat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #e4eaf4;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  transition: filter 0.15s ease, border-color 0.15s ease;
}

.pd-syarat-pill > span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pd-syarat-pill > i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #64748b;
  font-size: 9px;
}

.pd-syarat-pill.is-ok {
  background: #f2fbf6;
  border-color: #c6ecd8;
  color: #0b7a3b;
}

.pd-syarat-pill.is-ok > i {
  background: #dff5e8;
  color: #0b7a3b;
}

.pd-syarat-pill.is-no {
  background: #fff7f7;
  border-color: #f3d1d1;
  color: #b42318;
}

.pd-syarat-pill.is-no > i {
  background: #fdeaea;
  color: #b42318;
}

.pd-syarat-pill:hover {
  filter: brightness(0.98);
}

@media (max-width: 767.98px) {
  .pd-row-actions {
    width: 100%;
  }

  .pd-row-syarat {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .pd-syarat-box {
  background: #0f172a;
  border-color: var(--adm-line);
}

html[data-theme="dark"] .pd-syarat-head {
  background: #16233a;
  border-color: var(--adm-line);
  color: #cbd5e1;
}

html[data-theme="dark"] .pd-syarat-head b {
  background: #10261b;
  border-color: #1f5136;
  color: #86efac;
}

html[data-theme="dark"] .pd-syarat-progress {
  background: #1e293b;
}

html[data-theme="dark"] .pd-syarat-pill {
  background: #111a2c;
  border-color: var(--adm-line);
  color: #cbd5e1;
}

html[data-theme="dark"] .pd-syarat-pill > i {
  background: #1e293b;
  color: #94a3b8;
}

html[data-theme="dark"] .pd-syarat-pill.is-ok {
  background: #10261b;
  border-color: #1f5136;
  color: #86efac;
}

html[data-theme="dark"] .pd-syarat-pill.is-no {
  background: #2a1215;
  border-color: #5c252b;
  color: #fca5a5;
}

/* ============================================================
   Pendaftar Diterima v17 - horizontal actions
   ============================================================ */

.pd-row-head {
  align-items: center;
}

.pd-row-actions {
  width: auto;
  max-width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pd-row-actions .pd-act-btn {
  width: auto;
  padding: 0 11px;
  white-space: nowrap;
}

.pd-row-act-icons {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .pd-row-head {
    align-items: flex-start;
  }

  .pd-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ============================================================
   Pendaftar Diterima v18 - simple layout
   ============================================================ */

.pd-simple-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 16px;
}

.pd-simple-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--adm-text);
  letter-spacing: -0.2px;
}

.pd-simple-head p {
  margin: 4px 0 0;
  color: var(--adm-muted);
  font-size: 13px;
}

.pd-simple-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid var(--adm-line);
  background: var(--adm-surface);
  border-radius: 10px;
  padding: 8px 12px;
}

.pd-simple-count b {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--adm-primary-2);
}

.pd-simple-count span {
  color: var(--adm-muted);
  font-size: 12px;
}

.pd-simple-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pd-simple-hint {
  color: var(--adm-muted);
  font-size: 12px;
}

.pd-dt-top {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--adm-line);
  border-radius: 0;
  background: transparent;
}

.pd-dt-bottom {
  padding-top: 10px;
  border-top: 1px solid var(--adm-line);
}

.pd-row {
  padding: 14px 15px;
  border-radius: 12px;
  border-left-width: 3px;
  background: #fff;
  box-shadow: none;
}

.pd-row:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(16, 37, 74, 0.09);
}

.pd-row-photo {
  width: 56px;
  height: 56px;
  border-width: 2px;
  border-color: #e5eaf3;
  box-shadow: none;
}

.pd-row-name {
  font-size: 14.5px;
}

.pd-row-meta {
  gap: 4px 12px;
  font-size: 11.5px;
}

.pd-row-meta span,
.pd-row-meta a {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.pd-row-meta a {
  color: #0b7a3b;
}

.pd-row-meta a:hover {
  text-decoration: underline;
}

.pd-syarat-box {
  margin-top: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pd-syarat-head {
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
}

.pd-syarat-head b {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.pd-syarat-progress {
  height: 4px;
  border-radius: 999px;
}

.pd-row-syarat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 0 0;
}

.pd-row-syarat .pd-syarat-pill {
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10.5px;
}

.pd-row-syarat .pd-syarat-pill > i {
  width: 15px;
  height: 15px;
  font-size: 8px;
}

@media (max-width: 991.98px) {
  .pd-simple-head {
    align-items: flex-start;
  }

  .pd-row-syarat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pd-simple-head {
    flex-direction: column;
    gap: 10px;
  }

  .pd-simple-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pd-row-syarat {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .pd-simple-count {
  background: #111a2c;
  border-color: var(--adm-line);
}

html[data-theme="dark"] .pd-simple-count b {
  color: #7fb0ff;
}

html[data-theme="dark"] .pd-row {
  background: #111a2c !important;
}

html[data-theme="dark"] .pd-row-meta span,
html[data-theme="dark"] .pd-row-meta a {
  background: transparent;
  border: 0;
}

html[data-theme="dark"] .pd-syarat-box,
html[data-theme="dark"] .pd-syarat-head {
  background: transparent;
}

html[data-theme="dark"] .pd-dt-top {
  background: transparent;
}

/* ============================================================
   Admin v19 - global typography & dark-ready buttons
   ============================================================ */

body,
button,
input,
select,
textarea,
optgroup,
.main-header,
.main-sidebar,
.content-wrapper,
.card,
.btn,
.form-control,
.table,
.dataTables_wrapper,
.select2-container,
.select2-dropdown,
.dropdown-menu,
.modal,
.nav-sidebar,
.main-footer,
.badge,
.alert,
.info-box {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
  font-size: 14px !important;
  line-height: 1.55;
}

h1, .h1 { font-size: 1.5rem !important; }
h2, .h2 { font-size: 1.3rem !important; }
h3, .h3 { font-size: 1.15rem !important; }
h4, .h4 { font-size: 1.05rem !important; }
h5, .h5 { font-size: 1rem !important; }
h6, .h6 { font-size: 0.9rem !important; }

.card-title {
  font-size: 1rem !important;
}

.table {
  font-size: 13.5px !important;
}

.table thead th {
  font-size: 10.5px !important;
}

.btn {
  font-size: 13px !important;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 13.5px !important;
}

label {
  font-size: 13px;
  font-weight: 600;
}

.nav-sidebar .nav-link {
  font-size: 13px !important;
}

.nav-sidebar .nav-header {
  font-size: 10px !important;
}

.main-footer {
  font-size: 12.5px !important;
}

small,
.small {
  font-size: 0.85em !important;
}

.btn,
.pd-act-btn,
.pd-act,
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-link,
.page-link {
  border-radius: 9px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.btn {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
}

.btn-xs {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11.5px !important;
}

.btn-primary,
.btn-info,
.pd-act-navy,
.pd-act-info,
.pd-act-validasi,
.table tbody td > .btn.bg-primary,
.btn.bg-navy {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.btn-success,
.pd-act-green,
.pd-act-finish,
.table tbody td > .btn.bg-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

.btn-warning {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
}

.btn-danger,
.pd-act-danger,
.table tbody td > .btn.bg-red {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.pd-act-fakta {
  background: #0891b2 !important;
  border-color: #0891b2 !important;
  color: #fff !important;
}

.btn-default,
.btn-light {
  background: #f1f5f9 !important;
  border: 1px solid #dbe3ee !important;
  color: #0f172a !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.pd-act-btn:hover,
.pd-act:hover,
.pd-act-fakta:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.btn-default:hover,
.btn-light:hover {
  background: #e8eef7 !important;
  color: #0f172a !important;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-info,
html[data-theme="dark"] .pd-act-navy,
html[data-theme="dark"] .pd-act-info,
html[data-theme="dark"] .pd-act-validasi,
html[data-theme="dark"] .btn.bg-navy {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .btn-success,
html[data-theme="dark"] .pd-act-green,
html[data-theme="dark"] .pd-act-finish {
  background: #22c55e !important;
  border-color: #22c55e !important;
}

html[data-theme="dark"] .btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #1f1300 !important;
}

html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .pd-act-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

html[data-theme="dark"] .pd-act-fakta {
  background: #06b6d4 !important;
  border-color: #06b6d4 !important;
}

html[data-theme="dark"] .btn-default,
html[data-theme="dark"] .btn-light {
  background: #172033 !important;
  border-color: #2a3a55 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .btn-default:hover,
html[data-theme="dark"] .btn-light:hover {
  background: #1f2b43 !important;
  color: #fff !important;
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-info:hover,
html[data-theme="dark"] .btn-success:hover,
html[data-theme="dark"] .btn-danger:hover,
html[data-theme="dark"] .pd-act-btn:hover,
html[data-theme="dark"] .pd-act:hover {
  filter: brightness(1.1);
}

/* Unified admin tabs */
.pd-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  background: #f1f5fb;
  margin-bottom: 16px;
}
.pd-tabs .nav-item { margin: 0; }
.pd-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0 !important;
  border-radius: 9px;
  padding: 8px 15px;
  color: #64748b;
  background: transparent;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.pd-tabs .nav-link:hover { color: #1e3a8a; background: rgba(255,255,255,.72); }
.pd-tabs .nav-link.active { color: #1e3a8a; background: #fff; box-shadow: 0 2px 8px rgba(16,37,74,.12); }
.pd-tabs .nav-link i { font-size: 12px; }
html[data-theme="dark"] .pd-tabs { background: #101a2c; border-color: #22304a; }
html[data-theme="dark"] .pd-tabs .nav-link { color: #94a3b8; }
html[data-theme="dark"] .pd-tabs .nav-link.active { background: #16233a; color: #93c5fd; box-shadow: none; }
@media (max-width: 575.98px) {
  .pd-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .pd-tabs .nav-link { white-space: nowrap; }
}

/* Compact modern sidebar icons */
.nav-sidebar .nav-icon {
  font-size: 12px;
  width: 20px;
}
.nav-sidebar .nav-treeview .nav-icon {
  font-size: 7px;
  width: 16px;
}

/* Smaller sidebar avatar */
.main-sidebar .user-panel img {
  width: 32px !important;
  height: 32px !important;
}

/* Perbaikan menu sidebar: ikon & teks rata tengah (vertikal) */
.nav-sidebar .nav-link {
  display: flex !important;
  align-items: center !important;
  column-gap: 12px;
  font-size: 14px !important;
}
.nav-sidebar .nav-link > .nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
.nav-sidebar .nav-link > p {
  position: relative;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4 !important;
}
.nav-sidebar .nav-link > p > .right,
.nav-sidebar .nav-link > p > .badge.right {
  position: absolute !important;
  right: 0.3rem !important;
  top: 50% !important;
  transform: translateY(-50%);
}

/* Banner read-only (role Pengawas) */
.role-view-banner {
  margin: 16px 16px 0;
  padding: 10px 14px;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}
html[data-theme="dark"] .role-view-banner {
  background: #1f1a0d;
  border-color: #b45309;
  color: #fcd34d;
}

/* Popup Akses Dibatasi (role Pengawas) */
#modalAksesDibatasi { z-index: 3000; }
#modalAksesDibatasi .modal-content { border: none; border-radius: 16px; overflow: hidden; }
.akses-modal-head {
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: 22px 16px 16px;
}
.akses-modal-icon {
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  margin: 0 auto 12px;
}
.akses-modal-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.akses-modal-desc {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}
.akses-modal-foot {
  padding: 0 16px 18px;
  text-align: center;
}
.akses-modal-foot .btn {
  border-radius: 999px;
  padding: 6px 22px;
}
html[data-theme="dark"] .akses-modal-desc { color: #94a3b8; }
