/* ==========================================================================
   E-Register PTA Maluku Utara — Design System
   Dimuat SETELAH bootstrap.min.css & app.min2.css agar menimpa gaya lama.
   ========================================================================== */

:root {
  /* Brand: hijau peradilan agama + aksen emas */
  --er-primary: #0b6b4f;
  --er-primary-600: #095a43;
  --er-primary-700: #074634;
  --er-primary-50: #ecf6f1;
  --er-primary-100: #d3ebdf;
  --er-gold: #c39a3c;
  --er-gold-50: #fbf5e6;

  /* Netral */
  --er-ink: #13211c;
  --er-text: #334155;
  --er-muted: #6b7a76;
  --er-subtle: #94a3a0;
  --er-bg: #f3f5f4;
  --er-surface: #ffffff;
  --er-surface-2: #f8faf9;
  --er-border: #e2e8e5;
  --er-border-strong: #cfd8d4;

  /* Status */
  --er-success: #15803d;
  --er-success-50: #ecfdf3;
  --er-danger: #c2410c;
  --er-danger-50: #fff4ed;
  --er-info: #1d4ed8;
  --er-info-50: #eef4ff;

  --er-radius-sm: 8px;
  --er-radius: 12px;
  --er-radius-lg: 16px;
  --er-shadow-sm: 0 1px 2px rgba(16, 33, 28, .06);
  --er-shadow: 0 1px 2px rgba(16, 33, 28, .05), 0 4px 16px rgba(16, 33, 28, .06);
  --er-shadow-lg: 0 12px 40px rgba(16, 33, 28, .14);

  --er-sidebar-w: 268px;
  --er-sidebar-w-collapsed: 76px;
  --er-topbar-h: 68px;

  --er-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --er-ease: cubic-bezier(.2, .8, .2, 1);

  /* Sinkronkan variabel Bootstrap */
  --bs-primary: var(--er-primary);
  --bs-primary-rgb: 11, 107, 79;
  --bs-body-font-family: var(--er-font);
}

/* --------------------------------------------------------------------------
   Dasar
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body.er-body {
  font-family: var(--er-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--er-text);
  background: var(--er-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.er-body h1, .er-body h2, .er-body h3, .er-body h4, .er-body h5, .er-body h6 {
  font-family: var(--er-font);
  color: var(--er-ink);
  letter-spacing: -.01em;
}
.er-body a { color: var(--er-primary); }
.er-body a:hover { color: var(--er-primary-700); }
.er-body ::selection { background: var(--er-primary-100); }
.er-body :focus-visible { outline: 2px solid var(--er-primary); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Shell aplikasi
   -------------------------------------------------------------------------- */
.er-app { min-height: 100vh; display: flex; }

/* Sidebar */
.er-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  width: var(--er-sidebar-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #08392b 0%, #0a4a37 55%, #0b5640 100%);
  color: #cfe3da;
  transition: width .25s var(--er-ease), transform .25s var(--er-ease);
}
.er-sidebar::after { /* motif halus */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(600px 300px at 120% -10%, rgba(195, 154, 60, .18), transparent 60%),
    radial-gradient(400px 260px at -30% 110%, rgba(255, 255, 255, .06), transparent 60%);
}
.er-brand {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  height: var(--er-topbar-h); padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none !important;
}
.er-brand img { width: 34px; height: 42px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.er-brand-text { line-height: 1.15; min-width: 0; }
.er-brand-name { display: block; font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -.01em; }
.er-brand-name span { color: var(--er-gold); }
.er-brand-sub { display: block; font-size: 11px; color: #9fc2b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.er-nav { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 14px 12px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.er-nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #7fa798; padding: 16px 12px 8px;
}
.er-nav-label:first-child { padding-top: 4px; }
.er-nav-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: 10px;
  color: #cfe3da !important; text-decoration: none !important;
  font-weight: 500; font-size: 14px;
  transition: background .15s, color .15s;
}
.er-nav-link i { font-size: 20px; line-height: 1; width: 22px; text-align: center; flex: none; opacity: .9; }
.er-nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.er-nav-link.active { background: rgba(255, 255, 255, .12); color: #fff !important; font-weight: 600; }
.er-nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--er-gold);
}
.er-nav-link.active i { color: var(--er-gold); opacity: 1; }

.er-sidebar-foot { position: relative; z-index: 1; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.er-nav-link.er-logout:hover { background: rgba(194, 65, 12, .22); }

/* Area utama */
.er-main { flex: 1; min-width: 0; margin-left: var(--er-sidebar-w); display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .25s var(--er-ease); }

.er-topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--er-topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(243, 245, 244, .82);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.er-topbar.is-scrolled { border-bottom-color: var(--er-border); box-shadow: var(--er-shadow-sm); }
.er-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  border: 1px solid var(--er-border); background: var(--er-surface);
  color: var(--er-ink); font-size: 20px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.er-icon-btn:hover { background: var(--er-primary-50); border-color: var(--er-primary-100); color: var(--er-primary); }

.er-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--er-muted); min-width: 0; }
.er-crumbs a { color: var(--er-muted); text-decoration: none; }
.er-crumbs a:hover { color: var(--er-primary); }
.er-crumbs i { font-size: 16px; color: var(--er-subtle); }
.er-crumbs strong { color: var(--er-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.er-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.er-date-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--er-surface); border: 1px solid var(--er-border);
  font-size: 13px; color: var(--er-text); white-space: nowrap;
}
.er-date-chip i { color: var(--er-primary); font-size: 16px; }

.er-user-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--er-border); background: var(--er-surface);
  color: var(--er-ink); cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.er-user-btn:hover, .er-user-btn[aria-expanded="true"] { border-color: var(--er-primary-100); box-shadow: 0 0 0 4px var(--er-primary-50); }
.er-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--er-primary), #13906b);
  color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.er-user-meta { line-height: 1.2; }
.er-user-name { display: block; font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-user-role { display: block; font-size: 11px; color: var(--er-muted); }
.er-user-btn > .mdi-chevron-down { color: var(--er-subtle); font-size: 18px; }

.er-body .dropdown-menu {
  border: 1px solid var(--er-border); border-radius: var(--er-radius);
  box-shadow: var(--er-shadow-lg); padding: 6px; font-size: 14px;
}
.er-body .dropdown-item { border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; color: var(--er-text); }
.er-body .dropdown-item i { font-size: 18px; color: var(--er-muted); }
.er-body .dropdown-item:hover { background: var(--er-primary-50); color: var(--er-primary-700); }
.er-body .dropdown-item.text-danger:hover { background: var(--er-danger-50); }
.er-body .dropdown-item.text-danger i { color: inherit; }
.er-dropdown-head { padding: 10px 12px 8px; }
.er-dropdown-head strong { display: block; color: var(--er-ink); }
.er-dropdown-head small { color: var(--er-muted); }

.er-content { flex: 1; padding: 24px 28px 32px; }
.er-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 28px; font-size: 12.5px; color: var(--er-muted);
  border-top: 1px solid var(--er-border);
}

/* Netralkan pembungkus lama Minia di dalam konten */
.er-content .page-content { padding: 0 !important; margin: 0 !important; }
.er-content .page-content > .container-fluid { padding: 0; }
.er-content .page-title-box { padding: 0 0 18px; background: transparent; }
.er-content .page-title-box h4 { font-size: 22px !important; font-weight: 700; }
.er-content #page-wrapper { padding: 0; margin: 0; }

/* Sidebar ringkas (desktop) */
@media (min-width: 992px) {
  .er-collapsed .er-sidebar { width: var(--er-sidebar-w-collapsed); }
  .er-collapsed .er-main { margin-left: var(--er-sidebar-w-collapsed); }
  .er-collapsed .er-brand { padding: 0; justify-content: center; }
  .er-collapsed .er-brand-text,
  .er-collapsed .er-nav-link span,
  .er-collapsed .er-nav-label { display: none; }
  .er-collapsed .er-nav-link { justify-content: center; padding: 12px 0; }
  .er-collapsed .er-nav-link.active::before { left: -12px; }
  .er-collapsed .er-nav-label + .er-nav-link { margin-top: 14px; }
}

/* Mobile: sidebar off-canvas */
.er-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(8, 25, 19, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
@media (max-width: 991.98px) {
  .er-sidebar { transform: translateX(-100%); box-shadow: var(--er-shadow-lg); }
  .er-main { margin-left: 0; }
  .er-sidebar-open .er-sidebar { transform: none; }
  .er-sidebar-open .er-backdrop { opacity: 1; visibility: visible; }
  .er-sidebar-open { overflow: hidden; }
  .er-topbar { padding: 0 16px; }
  .er-content { padding: 18px 16px 28px; }
  .er-footer { padding: 16px; }
  .er-date-chip { display: none; }
}
@media (max-width: 575.98px) {
  .er-user-meta, .er-user-btn > .mdi-chevron-down { display: none; }
  .er-user-btn { padding: 3px; }
}

/* --------------------------------------------------------------------------
   Header halaman
   -------------------------------------------------------------------------- */
.er-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.er-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--er-primary); margin-bottom: 6px;
}
.er-page-head h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2; }
.er-page-head p { margin: 6px 0 0; color: var(--er-muted); font-size: 14px; max-width: 720px; }
.er-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   Kartu
   -------------------------------------------------------------------------- */
.er-body .card {
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-lg);
  box-shadow: var(--er-shadow-sm);
  background: var(--er-surface);
  margin-bottom: 20px;
}
.er-body .card-header {
  background: transparent; border-bottom: 1px solid var(--er-border);
  padding: 16px 20px; border-radius: var(--er-radius-lg) var(--er-radius-lg) 0 0 !important;
}
.er-body .card-body { padding: 20px; }
.er-card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; color: var(--er-ink); }
.er-card-title i { font-size: 20px; color: var(--er-primary); }
.er-card-sub { margin: 2px 0 0; font-size: 13px; color: var(--er-muted); }

/* --------------------------------------------------------------------------
   Tombol
   -------------------------------------------------------------------------- */
.er-body .btn {
  font-family: var(--er-font); font-weight: 600; font-size: 14px;
  border-radius: 10px; padding: 9px 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.er-body .btn:active { transform: translateY(1px); }
.er-body .btn i { font-size: 18px; line-height: 1; }
.er-body .btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.er-body .btn-sm i { font-size: 16px; }
.er-body .btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.er-body .btn-primary { background: var(--er-primary); border-color: var(--er-primary); color: #fff; }
.er-body .btn-primary:hover, .er-body .btn-primary:focus { background: var(--er-primary-600); border-color: var(--er-primary-600); color: #fff; }
.er-body .btn-primary:focus { box-shadow: 0 0 0 4px rgba(11, 107, 79, .2); }
.er-body .btn-light, .er-body .btn-outline-secondary, .er-body .btn-secondary {
  background: var(--er-surface); border: 1px solid var(--er-border-strong); color: var(--er-ink);
}
.er-body .btn-light:hover, .er-body .btn-outline-secondary:hover, .er-body .btn-secondary:hover { background: var(--er-surface-2); border-color: var(--er-subtle); color: var(--er-ink); }
.er-body .btn-success { background: var(--er-primary); border-color: var(--er-primary); }
.er-body .btn-success:hover { background: var(--er-primary-600); border-color: var(--er-primary-600); }
.er-body .btn-danger { background: var(--er-danger); border-color: var(--er-danger); }
.er-body .btn-danger:hover { background: #9a3412; border-color: #9a3412; }
.er-btn-ghost { background: transparent !important; border: 1px solid transparent !important; color: var(--er-muted) !important; }
.er-btn-ghost:hover { background: var(--er-primary-50) !important; color: var(--er-primary) !important; }
.er-btn-ghost.is-danger:hover { background: var(--er-danger-50) !important; color: var(--er-danger) !important; }
.er-btn-icon { width: 34px; height: 34px; padding: 0 !important; }
.er-body .btn.is-loading { pointer-events: none; opacity: .85; }
.er-body .btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: er-spin .7s linear infinite;
}
.er-body .btn.is-loading i { display: none; }
@keyframes er-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.er-body .form-label, .er-body label:not(.form-check-label):not(.er-seg label) {
  font-size: 13px; font-weight: 600; color: var(--er-ink); margin-bottom: 6px;
}
.er-body .form-control, .er-body .form-select {
  font-family: var(--er-font); font-size: 14px; color: var(--er-ink);
  height: 42px; padding: 8px 12px;
  border: 1px solid var(--er-border-strong); border-radius: 10px;
  background-color: var(--er-surface);
  transition: border-color .15s, box-shadow .15s;
}
.er-body textarea.form-control { height: auto; }
.er-body .form-control::placeholder { color: var(--er-subtle); }
.er-body .form-control:focus, .er-body .form-select:focus {
  border-color: var(--er-primary); box-shadow: 0 0 0 4px rgba(11, 107, 79, .14); outline: 0;
}
.er-body .form-select { padding-right: 36px; background-position: right 12px center; }
.er-body .form-text { font-size: 12px; color: var(--er-muted); }
.er-body .form-group { margin-bottom: 16px; }
.er-req { color: var(--er-danger); margin-left: 2px; }

.er-input-icon { position: relative; }
.er-input-icon > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--er-subtle); pointer-events: none;
}
.er-input-icon > .form-control, .er-input-icon > .form-select { padding-left: 40px; }
.er-input-icon > .er-input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px;
  color: var(--er-muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.er-input-icon > .er-input-action:hover { background: var(--er-surface-2); color: var(--er-ink); }

/* Segmented control (pilihan satker) */
.er-seg {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%;
  background: var(--er-surface-2); border: 1px solid var(--er-border); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.er-seg::-webkit-scrollbar { display: none; }
.er-seg button {
  flex: none; border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 9px;
  font: 600 13px var(--er-font); color: var(--er-muted); white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.er-seg button:hover { color: var(--er-ink); }
.er-seg button.active { background: var(--er-surface); color: var(--er-primary-700); box-shadow: 0 1px 3px rgba(16, 33, 28, .12); }

/* Toolbar filter */
.er-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
.er-filter .er-field { display: flex; flex-direction: column; min-width: 0; }
.er-filter .er-field > span { font-size: 12px; font-weight: 600; color: var(--er-muted); margin-bottom: 6px; }
.er-filter .er-field-grow { flex: 1 1 360px; }
.er-filter .er-field .form-select { min-width: 150px; }
.er-filter .er-filter-actions { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 767.98px) {
  .er-filter .er-field { flex: 1 1 calc(50% - 8px); }
  .er-filter .er-field-grow { flex-basis: 100%; }
  .er-filter .er-field .form-select { min-width: 0; width: 100%; }
  .er-filter .er-filter-actions { margin-left: 0; width: 100%; }
  .er-filter .er-filter-actions .btn { flex: 1; }
}

/* Ringkasan hasil */
.er-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.er-stat-num { font-size: 22px; font-weight: 800; color: var(--er-ink); line-height: 1; }
.er-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--er-surface-2); color: var(--er-text); border: 1px solid var(--er-border);
}
.er-chip i { font-size: 14px; }
.er-chip-primary { background: var(--er-primary-50); color: var(--er-primary-700); border-color: var(--er-primary-100); }
.er-chip-gold { background: var(--er-gold-50); color: #7a5c17; border-color: #f0e2bd; }

/* Badge */
.er-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.er-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.er-badge-primary { background: var(--er-primary-50); color: var(--er-primary-700); }
.er-badge-gold { background: var(--er-gold-50); color: #7a5c17; }
.er-badge-muted { background: var(--er-surface-2); color: var(--er-muted); }

/* --------------------------------------------------------------------------
   Tabel & DataTables
   -------------------------------------------------------------------------- */
.er-body .table { color: var(--er-text); margin-bottom: 0; font-size: 13.5px; border-color: var(--er-border); }
.er-body .table > :not(caption) > * > * { padding: 12px 14px; border-color: var(--er-border); }
.er-body .table thead th {
  background: var(--er-surface-2); color: var(--er-muted);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--er-border) !important; vertical-align: bottom; white-space: normal;
}
.er-body .table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; }
.er-body .table-bordered > :not(caption) > * { border-width: 0; }
.er-body .table-bordered { border: 0; }
.er-body .table tbody tr { transition: background .12s; }
.er-body .table tbody tr:hover > * { background: #f6faf8; }
.er-body .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; }
.er-body .table td { vertical-align: top; }
.er-body .table.er-table-middle td { vertical-align: middle; }
.er-body .table .er-cell-strong { color: var(--er-ink); font-weight: 600; }
.er-body .table .er-cell-muted { color: var(--er-muted); font-size: 12.5px; }
.er-num { text-align: right; font-variant-numeric: tabular-nums; }
.er-table-wrap { margin: 0 -20px -20px; }
.er-table-wrap .dataTables_wrapper { padding: 0; }

.er-body .dataTables_wrapper .row:first-child { padding: 0 20px 14px; margin: 0; align-items: center; }
.er-body .dataTables_wrapper .row:last-child { padding: 14px 20px; margin: 0; border-top: 1px solid var(--er-border); align-items: center; }
.er-body .dataTables_wrapper .row:nth-child(2) { margin: 0; }
.er-body .dataTables_wrapper .row:nth-child(2) > div { padding: 0; }
.er-body div.dataTables_wrapper div.dataTables_length label,
.er-body div.dataTables_wrapper div.dataTables_filter label,
.er-body div.dataTables_wrapper div.dataTables_info { font-size: 13px; font-weight: 500; color: var(--er-muted); margin: 0; padding: 0; }
.er-body div.dataTables_wrapper div.dataTables_length select {
  height: 36px; width: auto; display: inline-block; margin: 0 6px;
  border: 1px solid var(--er-border-strong); border-radius: 8px; padding: 4px 30px 4px 10px; font-size: 13px;
}
.er-body div.dataTables_wrapper div.dataTables_filter input {
  height: 38px; width: 260px; max-width: 100%; margin-left: 0;
  border: 1px solid var(--er-border-strong); border-radius: 10px; padding: 6px 12px 6px 36px; font-size: 13.5px;
  background: var(--er-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
}
.er-body div.dataTables_wrapper div.dataTables_filter input:focus { border-color: var(--er-primary); box-shadow: 0 0 0 4px rgba(11, 107, 79, .14); outline: 0; }
.er-body .dataTables_wrapper .pagination { margin: 0; gap: 4px; }
.er-body .page-link {
  border: 1px solid var(--er-border); border-radius: 8px !important; min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  color: var(--er-text); font-size: 13px; font-weight: 600;
}
.er-body .page-link:hover { background: var(--er-primary-50); color: var(--er-primary-700); border-color: var(--er-primary-100); }
.er-body .page-item.active .page-link { background: var(--er-primary); border-color: var(--er-primary); color: #fff; }
.er-body .page-item.disabled .page-link { color: var(--er-subtle); background: var(--er-surface); }
.er-body table.dataTable { margin: 0 !important; border-collapse: collapse !important; }
.er-body table.dataTable thead .sorting::before, .er-body table.dataTable thead .sorting::after,
.er-body table.dataTable thead .sorting_asc::before, .er-body table.dataTable thead .sorting_asc::after,
.er-body table.dataTable thead .sorting_desc::before, .er-body table.dataTable thead .sorting_desc::after { bottom: 12px; }
.er-body table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
.er-body table.dataTable > tbody > tr.child ul.dtr-details > li { padding: 10px 0; border-bottom: 1px dashed var(--er-border); white-space: normal; }
.er-body table.dataTable > tbody > tr.child span.dtr-title { display: block; min-width: 0; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--er-muted); margin-bottom: 4px; }
.er-body table.dataTable > tbody > tr.child span.dtr-data { color: var(--er-text); }
.er-body table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.er-body table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  background-color: var(--er-primary); border: 0; box-shadow: none; top: 50%; margin-top: -8px; line-height: 16px;
}
.er-body table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before { background-color: var(--er-danger); }
.er-body .dataTables_empty { padding: 48px 16px !important; color: var(--er-muted); text-align: center; }
@media (max-width: 767.98px) {
  .er-body .dataTables_wrapper .row:first-child > div,
  .er-body .dataTables_wrapper .row:last-child > div,
  .er-body div.dataTables_wrapper div.dataTables_length,
  .er-body div.dataTables_wrapper div.dataTables_filter,
  .er-body div.dataTables_wrapper div.dataTables_info,
  .er-body div.dataTables_wrapper div.dataTables_paginate { text-align: left !important; }
  .er-body div.dataTables_wrapper div.dataTables_info { padding-top: 0; }
  .er-body div.dataTables_wrapper div.dataTables_filter { margin-top: 10px; }
  .er-body div.dataTables_wrapper div.dataTables_filter input { width: 100%; }
  .er-body div.dataTables_wrapper div.dataTables_filter label { width: 100%; }
  .er-body div.dataTables_wrapper div.dataTables_paginate ul.pagination { justify-content: flex-start; margin-top: 10px; flex-wrap: wrap; }
}

/* State: memuat / kosong / gagal */
.er-state { padding: 56px 20px; text-align: center; color: var(--er-muted); }
.er-state-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--er-primary-50); color: var(--er-primary);
}
.er-state.is-error .er-state-icon { background: var(--er-danger-50); color: var(--er-danger); }
.er-state h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.er-state p { margin: 0 auto; max-width: 420px; font-size: 13.5px; }
.er-skeleton { padding: 4px 20px 20px; }
.er-skeleton-row { display: grid; grid-template-columns: 1.2fr 1fr 2fr 2fr 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--er-border); }
.er-skeleton-row span {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #eef2f0 0%, #f7f9f8 50%, #eef2f0 100%); background-size: 200% 100%;
  animation: er-shimmer 1.2s ease-in-out infinite;
}
.er-skeleton-row span:nth-child(3) { width: 85%; }
.er-skeleton-row span:nth-child(4) { width: 70%; }
@keyframes er-shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Modal, toast, alert
   -------------------------------------------------------------------------- */
.er-body .modal-content { border: 0; border-radius: var(--er-radius-lg); box-shadow: var(--er-shadow-lg); }
.er-body .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--er-border); align-items: flex-start; }
.er-body .modal-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.er-body .modal-title i { font-size: 22px; color: var(--er-primary); }
.er-body .modal-header p { margin: 2px 0 0; font-size: 13px; color: var(--er-muted); }
.er-body .modal-body { padding: 22px; }
.er-body .modal-footer { padding: 14px 22px; border-top: 1px solid var(--er-border); background: var(--er-surface-2); border-radius: 0 0 var(--er-radius-lg) var(--er-radius-lg); gap: 8px; }
.er-body .modal-footer > * { margin: 0; }
.er-body .modal-backdrop.show { opacity: .5; }
.er-confirm-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--er-danger-50); color: var(--er-danger); margin-bottom: 14px; }

.er-toasts { position: fixed; top: 16px; right: 16px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.er-toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: var(--er-radius);
  background: var(--er-surface); border: 1px solid var(--er-border); box-shadow: var(--er-shadow-lg);
  font-size: 14px; color: var(--er-ink);
  animation: er-toast-in .3s var(--er-ease);
}
.er-toast > i { font-size: 22px; line-height: 1; flex: none; margin-top: 1px; }
.er-toast.is-success > i { color: var(--er-success); }
.er-toast.is-error > i { color: var(--er-danger); }
.er-toast .er-toast-body { flex: 1; }
.er-toast .er-toast-body strong { display: block; font-weight: 700; }
.er-toast .er-toast-body span { color: var(--er-muted); font-size: 13px; }
.er-toast .er-toast-close { border: 0; background: transparent; color: var(--er-subtle); font-size: 18px; padding: 0 2px; line-height: 1; }
.er-toast.is-hiding { animation: er-toast-out .25s ease forwards; }
@keyframes er-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes er-toast-out { to { opacity: 0; transform: translateX(16px); } }

.er-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.er-alert i { font-size: 18px; line-height: 1.2; }
.er-alert-error { background: var(--er-danger-50); color: #9a3412; border: 1px solid #fed7c3; }
.er-alert-info { background: var(--er-info-50); color: #1e3a8a; border: 1px solid #d6e2ff; }

/* --------------------------------------------------------------------------
   Halaman Login
   -------------------------------------------------------------------------- */
.er-login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--er-surface); }
.er-login-hero {
  position: relative; overflow: hidden; color: #e4f1eb;
  padding: 48px 56px; display: flex; flex-direction: column;
  background: linear-gradient(155deg, #062e23 0%, #0a4a37 45%, #0e6248 100%);
}
.er-login-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background:
    radial-gradient(700px 420px at 110% -10%, rgba(195, 154, 60, .28), transparent 60%),
    radial-gradient(520px 380px at -20% 110%, rgba(255, 255, 255, .08), transparent 60%);
}
.er-login-hero::after { /* pola geometris */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 0l8 20 20 8-20 8-8 20-8-20L0 28l20-8z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
.er-login-hero > * { position: relative; z-index: 1; }
.er-login-brand { display: flex; align-items: center; gap: 14px; }
.er-login-brand img { width: 46px; height: 57px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.er-login-brand strong { display: block; color: #fff; font-size: 15px; letter-spacing: .02em; }
.er-login-brand small { color: #a7c9bb; font-size: 12.5px; }
.er-login-copy { margin: auto 0; max-width: 520px; padding: 40px 0; }
.er-login-copy .er-eyebrow { color: var(--er-gold); }
.er-login-copy h1 { color: #fff; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.er-login-copy h1 span { color: var(--er-gold); }
.er-login-copy p { font-size: 16px; color: #bcd8cc; margin: 0; }
.er-login-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.er-login-feature {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #e4f1eb;
}
.er-login-feature i { font-size: 20px; color: var(--er-gold); }
.er-login-hero-foot { font-size: 12.5px; color: #8fb6a6; }

.er-login-panel { display: flex; flex-direction: column; padding: 40px 24px; }
.er-login-form { width: 100%; max-width: 400px; margin: auto; }
.er-login-form .er-login-mobile-brand { display: none; }
.er-login-form h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.er-login-form > p { color: var(--er-muted); margin: 0 0 28px; }
.er-login-form .form-control, .er-login-form .form-select { height: 48px; border-radius: 12px; }
.er-login-form .btn-lg { width: 100%; height: 50px; margin-top: 8px; }
.er-login-form .er-login-help { margin: 22px 0 0; font-size: 13px; color: var(--er-muted); text-align: center; }
.er-login-panel-foot { text-align: center; font-size: 12.5px; color: var(--er-subtle); }
@media (max-width: 991.98px) {
  .er-login { grid-template-columns: 1fr; }
  .er-login-hero { display: none; }
  .er-login-panel { background: linear-gradient(180deg, var(--er-primary-50) 0, var(--er-surface) 320px); }
  .er-login-form .er-login-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
  .er-login-mobile-brand img { width: 38px; height: 47px; object-fit: contain; }
  .er-login-mobile-brand strong { display: block; color: var(--er-ink); font-size: 14px; }
  .er-login-mobile-brand small { color: var(--er-muted); font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Utilitas
   -------------------------------------------------------------------------- */
.er-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 575.98px) { .er-grid-2 { grid-template-columns: 1fr; } }
.er-divider { height: 1px; background: var(--er-border); margin: 6px 0 18px; }
.er-muted { color: var(--er-muted); }

/* Pace loader (bawaan template) agar senada */
.pace .pace-progress { background: var(--er-gold) !important; height: 3px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .er-sidebar, .er-topbar, .er-footer, .er-page-actions, .er-filter { display: none !important; }
  .er-main { margin: 0 !important; }
}

/* ==========================================================================
   Halaman publik (landing)
   ========================================================================== */
.er-public { background: var(--er-bg); }
.er-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.er-pub-nav { position: sticky; top: 0; z-index: 1030; background: rgba(6, 46, 35, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.er-pub-nav.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.er-pub-nav .er-wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.er-pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.er-pub-brand img { width: 30px; height: 37px; object-fit: contain; }
.er-pub-brand strong { display: block; color: #fff; font-size: 15px; line-height: 1.1; }
.er-pub-brand small { display: block; color: #9fc2b4; font-size: 11.5px; }
.er-pub-links { display: flex; gap: 4px; margin-left: auto; }
.er-pub-links a { color: #cfe3da !important; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.er-pub-links a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.er-body .btn.er-pub-login { background: var(--er-gold); border-color: var(--er-gold); color: #1e1606; }
.er-body .btn.er-pub-login:hover { background: #d7ad4e; border-color: #d7ad4e; color: #1e1606; }
@media (max-width: 860px) { .er-pub-links { display: none; } .er-pub-login { margin-left: auto; } }

.er-hero { position: relative; overflow: hidden; color: #e4f1eb; padding: 64px 0 96px; background: linear-gradient(155deg, #062e23 0%, #0a4a37 50%, #0e6248 100%); }
.er-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 100% 0, rgba(195, 154, 60, .25), transparent 60%); }
.er-hero::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 0l8 20 20 8-20 8-8 20-8-20L0 28l20-8z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.er-hero .er-wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.er-hero-copy { max-width: 780px; }
.er-hero .er-eyebrow { color: var(--er-gold); }
.er-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.er-hero h1 span { color: #f1d999; }
.er-hero p { color: #bcd8cc; font-size: 16px; margin: 0; }
.er-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.er-hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e4f1eb; }
.er-hero-chip i { color: var(--er-gold); font-size: 15px; }
.er-year > span { display: block; font-size: 12px; font-weight: 600; color: #9fc2b4; margin-bottom: 6px; }
.er-year-list { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); flex-wrap: wrap; }
.er-year-list button { border: 0; background: transparent; color: #cfe3da; font: 600 14px var(--er-font); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.er-year-list button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.er-year-list button.active { background: #fff; color: var(--er-primary-700); }

.er-pub-main { margin-top: -56px; position: relative; z-index: 2; padding-bottom: 24px; }
.er-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 991.98px) { .er-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .er-kpis { gap: 10px; }
  .er-kpi { padding: 14px; }
  .er-kpi-icon { width: 32px; height: 32px; font-size: 17px; margin-bottom: 6px; }
  .er-kpi-value { font-size: 26px; }
  .er-kpi-note { font-size: 11.5px; }
  .er-year { width: 100%; }
  .er-year-list { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .er-year-list::-webkit-scrollbar { display: none; }
  .er-hero { padding: 40px 0 84px; }
  .er-wrap { padding: 0 16px; }
}
.er-kpi { background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius-lg); padding: 18px 20px; box-shadow: var(--er-shadow); display: flex; flex-direction: column; gap: 2px; }
.er-kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--er-primary-50); color: var(--er-primary); font-size: 20px; margin-bottom: 10px; }
.er-kpi-label { font-size: 13px; font-weight: 600; color: var(--er-muted); }
.er-kpi-value { font-size: 34px; font-weight: 800; color: var(--er-ink); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.er-kpi-value small { font-size: 15px; font-weight: 600; color: var(--er-muted); letter-spacing: 0; }
.er-kpi-note { font-size: 12.5px; color: var(--er-muted); }

.er-chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.er-legend { display: flex; gap: 14px; font-size: 13px; color: var(--er-text); }
.er-legend span { display: inline-flex; align-items: center; gap: 6px; }
.er-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.er-chart { position: relative; width: 100%; min-height: 280px; }
.er-chart.er-chart-sm { min-height: 220px; }
.er-chart svg { display: block; overflow: visible; }
.er-chart .er-grid { stroke: #edf1ef; stroke-width: 1; }
.er-chart .er-axis { stroke: var(--er-border-strong); stroke-width: 1; }
.er-chart .er-tick { fill: var(--er-muted); font: 500 11.5px var(--er-font); }
.er-chart .er-hit { fill: transparent; cursor: default; }
.er-chart .er-col-group.is-hover .er-hit { fill: rgba(14, 138, 95, .06); }
.er-tip { position: absolute; display: none; pointer-events: none; min-width: 150px; background: var(--er-ink); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: var(--er-shadow-lg); z-index: 3; }
.er-tip strong { display: block; margin-bottom: 4px; font-size: 13px; }
.er-tip span { display: flex; align-items: center; gap: 6px; color: #d6e2dd; }
.er-tip span i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.er-tip span b { margin-left: auto; padding-left: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.er-table-toggle { margin-top: 12px; }
.er-table-toggle summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--er-primary); display: inline-flex; align-items: center; gap: 6px; }
.er-table-toggle table { margin-top: 10px; font-size: 13px; }

.er-grid-pub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.er-grid-pub > .card { margin-bottom: 20px; }
@media (max-width: 991.98px) { .er-grid-pub { grid-template-columns: 1fr; gap: 0; } }

.er-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.er-hbar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--er-ink); margin-bottom: 6px; }
.er-hbar-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-hbar-val small { color: var(--er-muted); font-weight: 500; margin-left: 4px; }
.er-hbar-track { height: 10px; border-radius: 0 4px 4px 0; background: #f0f4f2; overflow: hidden; }
.er-hbar-track span { display: block; height: 100%; background: #0e8a5f; border-radius: 0 4px 4px 0; }
.er-hbar-track.is-gold span { background: #c48a1f; }

.er-section { padding: 28px 0 8px; }
.er-section-head { max-width: 720px; margin-bottom: 20px; }
.er-section-head h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.er-section-head p { color: var(--er-muted); margin: 0; }

.er-pa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 991.98px) { .er-pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .er-pa-grid { grid-template-columns: 1fr; } }
.er-pa { display: flex; flex-direction: column; background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius-lg); padding: 18px; box-shadow: var(--er-shadow-sm); }
.er-pa-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.er-pa-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--er-gold-50); color: #8a6516; font-size: 18px; }
.er-pa-head strong { display: block; color: var(--er-ink); font-size: 14.5px; line-height: 1.3; }
.er-pa-head small { display: block; color: var(--er-muted); font-size: 12px; }
.er-pa-stats { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.er-pa-stats span { display: block; font-size: 12px; color: var(--er-muted); }
.er-pa-stats strong { font-size: 24px; font-weight: 800; color: var(--er-ink); font-variant-numeric: tabular-nums; }
.er-pa-bar { height: 6px; border-radius: 0 4px 4px 0; background: #f0f4f2; overflow: hidden; }
.er-pa-bar span { display: block; height: 100%; background: #0e8a5f; border-radius: 0 4px 4px 0; }

.er-mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.er-mini-kpis > div { border: 1px solid var(--er-border); background: var(--er-surface-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.er-mini-kpis i { font-size: 20px; color: var(--er-primary); }
.er-mini-kpis strong { font-size: 26px; font-weight: 800; color: var(--er-ink); line-height: 1.2; }
.er-mini-kpis span { font-size: 12.5px; color: var(--er-muted); }
@media (max-width: 480px) { .er-mini-kpis { grid-template-columns: 1fr; } }

.er-steps { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) { .er-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .er-steps { grid-template-columns: 1fr; } }
.er-steps li { counter-increment: step; position: relative; background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius-lg); padding: 18px 18px 18px 64px; }
.er-steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--er-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.er-steps strong { display: block; color: var(--er-ink); margin-bottom: 4px; }
.er-steps span { font-size: 13.5px; color: var(--er-muted); }

.er-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 991.98px) { .er-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .er-links { grid-template-columns: 1fr; } }
.er-links a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--er-radius-lg); background: var(--er-surface); border: 1px solid var(--er-border); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.er-links a:hover { border-color: var(--er-primary-100); box-shadow: var(--er-shadow); transform: translateY(-1px); }
.er-links a > i:first-child { font-size: 24px; color: var(--er-primary); width: 42px; height: 42px; border-radius: 12px; background: var(--er-primary-50); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.er-links a > span { flex: 1; min-width: 0; }
.er-links strong { display: block; color: var(--er-ink); font-size: 14.5px; }
.er-links small { display: block; color: var(--er-muted); font-size: 12.5px; }
.er-links a > i:last-child { color: var(--er-subtle); }

.er-pub-foot { background: #062e23; color: #a7c9bb; padding: 32px 0 20px; margin-top: 24px; }
.er-pub-foot .er-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.er-pub-foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 680px; }
.er-pub-foot-brand img { width: 38px; height: 47px; object-fit: contain; }
.er-pub-foot-brand strong { display: block; color: #fff; }
.er-pub-foot-brand span { font-size: 13px; }
.er-pub-social { display: flex; gap: 8px; }
.er-pub-social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #e4f1eb !important; font-size: 19px; text-decoration: none; }
.er-pub-social a:hover { background: var(--er-gold); color: #1e1606 !important; }
.er-pub-copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 22px; padding-top: 16px !important; font-size: 12.5px; }
.er-pub-copy a { color: #cfe3da; }

/* ==========================================================================
   Halaman sinkronisasi (admin)
   ========================================================================== */
.er-sync-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1199.98px) { .er-sync-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .er-sync-grid { grid-template-columns: 1fr; } }
.er-sync { background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--er-shadow-sm); }
.er-sync-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.er-sync-head strong { display: block; color: var(--er-ink); font-size: 15px; }
.er-sync-head small { color: var(--er-muted); font-size: 12px; }
.er-sync dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.er-sync dt { color: var(--er-muted); font-weight: 500; }
.er-sync dd { margin: 0; color: var(--er-ink); text-align: right; font-variant-numeric: tabular-nums; }
.er-sync-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.er-sync-counts div { background: var(--er-surface-2); border: 1px solid var(--er-border); border-radius: 10px; padding: 8px 4px; }
.er-sync-counts strong { display: block; font-size: 17px; color: var(--er-ink); line-height: 1.2; }
.er-sync-counts span { font-size: 11px; color: var(--er-muted); }
.er-sync-msg { font-size: 12.5px; color: var(--er-muted); margin: 0; }
.er-sync-msg.is-error { color: var(--er-danger); }
.er-sync .btn { margin-top: auto; }
.er-badge-ok { background: var(--er-success-50); color: var(--er-success); }
.er-badge-warn { background: var(--er-gold-50); color: #8a6516; }
.er-badge-err { background: var(--er-danger-50); color: var(--er-danger); }

/* ==========================================================================
   Pemantau sinkron SIPP (v3)
   ========================================================================== */
.er-pantau-summary .card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.er-pantau-counts { display: flex; flex-wrap: wrap; gap: 12px; }
.er-pantau-counts > div { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 12px; border: 1px solid var(--er-border); background: var(--er-surface-2); min-width: 170px; }
.er-pantau-counts strong { font-size: 26px; font-weight: 800; color: var(--er-ink); line-height: 1; min-width: 30px; text-align: center; }
.er-pantau-counts span { font-size: 13px; font-weight: 600; color: var(--er-ink); line-height: 1.25; }
.er-pantau-counts small { font-weight: 500; color: var(--er-muted); font-size: 11.5px; }
.er-pantau-counts > div::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.er-pantau-counts .is-ok::before { background: var(--er-success); }
.er-pantau-counts .is-warn::before { background: #c48a1f; }
.er-pantau-counts .is-late::before { background: var(--er-danger); }
.er-pantau-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--er-muted); }
.er-pantau-meta i { color: var(--er-primary); }

.er-pantau { border-top: 4px solid var(--er-border-strong); }
.er-pantau.is-ok { border-top-color: var(--er-success); }
.er-pantau.is-warn { border-top-color: #c48a1f; }
.er-pantau.is-late { border-top-color: var(--er-danger); }
.er-pantau-last span { display: block; font-size: 12px; color: var(--er-muted); font-weight: 600; }
.er-pantau-last strong { display: block; font-size: 22px; font-weight: 800; color: var(--er-ink); line-height: 1.25; }
.er-pantau-last small { display: block; font-size: 12px; color: var(--er-muted); }
.er-pantau.is-late .er-pantau-last strong { color: var(--er-danger); }
.er-pantau-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.er-pantau-days i { height: 14px; border-radius: 3px; background: #edf1ef; }
.er-pantau-days i.on { background: var(--er-success); }
.er-pantau-days-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--er-subtle); margin-top: -6px; }

.er-tabs { display: flex; gap: 4px; margin: 0 0 -1px; padding: 0; list-style: none; border: 0; }
.er-tabs button { border: 0; background: transparent; padding: 10px 14px 12px; font: 600 14px var(--er-font); color: var(--er-muted); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.er-tabs button:hover { color: var(--er-ink); }
.er-tabs button.active { color: var(--er-primary-700); border-bottom-color: var(--er-primary); }
.er-code { padding: 8px 10px; margin-bottom: 14px; border-radius: 10px; background: var(--er-surface-2); border: 1px solid var(--er-border); white-space: pre-wrap; word-break: break-all; font-size: 12px; }

/* Peringatan sinkron di halaman register */
.er-sync-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 13.5px; background: var(--er-gold-50); border: 1px solid #f0e2bd; color: #6b5212; }
.er-sync-alert.is-late { background: var(--er-danger-50); border-color: #fed7c3; color: #9a3412; }
.er-sync-alert i { font-size: 18px; }
.er-sync-alert a { margin-left: auto; font-weight: 600; color: inherit; }

/* Kesegaran data per PA di halaman publik */
.er-pa-fresh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--er-muted); margin-top: 10px; }
.er-pa-fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--er-border-strong); flex: none; }
.er-pa-fresh.is-ok::before { background: var(--er-success); }
.er-pa-fresh.is-warn::before { background: #c48a1f; }
.er-pa-fresh.is-late::before { background: var(--er-danger); }
.er-public [id] { scroll-margin-top: 84px; }
