/* =========================================================
   SIMPATI SR — Sistem Informasi Manajemen Pelayanan Terintegrasi
   Ultra-Premium Design System & Advanced Dark Mode
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #EEF2FF;
  color: #1E2A45;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E8;
  border-radius: 99px;
}

body.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* ===== LOGIN SCREEN ===== */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 15% 15%, #1A56DB 0%, #0F2352 50%, #0D1B3E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 36px;
  width: 410px;
  max-width: 94vw;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45);
  animation: sui 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .lico-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.25);
  border: 3px solid #EEF2FF;
}

.login-logo h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1E2A45;
  letter-spacing: -0.5px;
}

.login-logo p {
  font-size: 11.5px;
  color: #8A99BA;
  margin-top: 4px;
}

.lfg {
  margin-bottom: 16px;
}

.lfg label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4B5C7E;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lfg input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #E4E9F7;
  border-radius: 12px;
  font-size: 13px;
  color: #1E2A45;
  background: #F8FAFF;
  outline: none;
  transition: all 0.15s ease;
}

.lfg input:focus {
  border-color: #1A56DB;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}

.login-err {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: #EF4444;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}

.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A56DB, #1040B0);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
  transition: all 0.15s ease;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 86, 219, 0.45);
}

.login-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: #8A99BA;
}

.login-hint b {
  color: #1A56DB;
}

/* ===== APP SHELL ===== */
#app-shell {
  display: none;
  min-height: 100vh;
}

body.logged-in #login-screen {
  display: none;
}

body.logged-in #app-shell {
  display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 230px;
  height: 100vh;
  background: linear-gradient(180deg, #0A1633 0%, #0F2352 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow: hidden;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.logo-text strong {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.logo-text span {
  color: #7A95C5;
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-label {
  padding: 20px 18px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(122, 149, 197, 0.5);
}

.sidebar-nav {
  padding: 6px 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #A8B8D8;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px;
  transition: all 0.15s ease;
  position: relative;
}

.nav-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.nav-badge {
  margin-left: auto;
  background: #1A56DB;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.sidebar-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.9), rgba(6, 182, 212, 0.75));
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
}

.sidebar-nav a.active::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 55%;
  background: #06B6D4;
  border-radius: 2px;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.15);
}

.user-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A56DB, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.user-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: #7A95C5;
  font-size: 9.5px;
  margin-top: 1px;
}

.btn-logout {
  margin-left: auto;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #FCA5A5;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main {
  margin-left: 230px;
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== TOPBAR ===== */
.topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #E4E9F7;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(30, 42, 69, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar-title {
  flex: 1;
}

.topbar-title h1 {
  font-size: 15.5px;
  font-weight: 800;
  color: #1E2A45;
  letter-spacing: -0.3px;
}

.topbar-title p {
  font-size: 11px;
  color: #8A99BA;
  margin-top: 1px;
}

.topbar-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kab-badge {
  background: #EBF1FF;
  border: 1.5px solid #1A56DB;
  color: #1A56DB;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tahun-sel {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFF;
  border: 1.5px solid #E4E9F7;
  border-radius: 8px;
  padding: 5px 12px;
  color: #4B5C7E;
}

.tahun-sel select {
  border: none;
  background: transparent;
  color: #1E2A45;
  font-size: 11.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.tbtn {
  width: 36px;
  height: 36px;
  border: 1.5px solid #E4E9F7;
  border-radius: 8px;
  background: #ffffff;
  color: #4B5C7E;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}

.tbtn:hover {
  border-color: #1A56DB;
  background: #EBF1FF;
  color: #1A56DB;
  transform: translateY(-1px);
}

.notification-menu { position: relative; }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #EF4444; border: 2px solid #fff; color: #fff; font-size: 9px; font-weight: 800; line-height: 12px; display: flex; align-items: center; justify-content: center; }
.notification-dropdown { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; width: 330px; border: 1px solid #E4E9F7; border-radius: 12px; background: #fff; box-shadow: 0 14px 32px rgba(30, 42, 69, .16); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.notification-menu.open .notification-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px 11px; border-bottom: 1px solid #EEF2FA; color: #1E2A45; font-size: 13px; }
.notification-head span { color: #1A56DB; font-size: 10px; font-weight: 800; }
.notification-list { padding: 5px; }
.notification-empty { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8A99BA; font-size: 11px; }
.notification-item { width: 100%; border: 0; border-radius: 8px; background: transparent; padding: 10px; display: flex; align-items: flex-start; gap: 10px; color: #1E2A45; cursor: pointer; text-align: left; }
.notification-item:hover { background: #F5F8FF; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { font-size: 11.5px; font-weight: 800; }
.notification-item small { margin-top: 3px; color: #8A99BA; font-size: 10.5px; line-height: 1.35; }
.notification-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.notification-icon.blue { background: #EBF1FF; color: #1A56DB; }
.notification-icon.orange { background: #FFF4E5; color: #F59E0B; }
.notification-icon.green { background: #EAFBF2; color: #10B981; }
.notification-footer { width: 100%; border: 0; border-top: 1px solid #EEF2FA; background: #fff; color: #1A56DB; padding: 11px; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.notification-footer:hover { background: #F5F8FF; }
/* ===== CONTENT PAGES ===== */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: #F0F4FF;
  border: 1px solid #E4E9F7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: #4B5C7E;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #1E2A45;
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn.active {
  background: #ffffff;
  color: #1A56DB;
  box-shadow: 0 2px 8px rgba(30, 42, 69, 0.08);
}

/* ===== KPI GRID ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 42, 69, 0.1);
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: 16px 16px 0 0;
}

.kpi.blue::before { background: linear-gradient(90deg, #1A56DB, #06B6D4); }
.kpi.cyan::before { background: linear-gradient(90deg, #06B6D4, #67E8F9); }
.kpi.green::before { background: linear-gradient(90deg, #10B981, #34D399); }
.kpi.red::before { background: linear-gradient(90deg, #EF4444, #F87171); }
.kpi.purple::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.kpi.yellow::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }

.kpi-lbl {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8A99BA;
  margin-bottom: 8px;
}

.kpi-ico {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.kpi.blue .kpi-ico { background: #EBF1FF; color: #1A56DB; }
.kpi.cyan .kpi-ico { background: #E0F9FF; color: #06B6D4; }
.kpi.green .kpi-ico { background: #D1FAE5; color: #10B981; }
.kpi.red .kpi-ico { background: #FEE2E2; color: #EF4444; }
.kpi.purple .kpi-ico { background: #EDE9FE; color: #8B5CF6; }
.kpi.yellow .kpi-ico { background: #FEF3C7; color: #F59E0B; }

.kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #1E2A45;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 11px;
  color: #8A99BA;
  font-weight: 500;
}

.kpi-sub b {
  color: #1A56DB;
}

/* ===== PANELS ===== */
.panels-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.panel {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-hdr h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1E2A45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbadge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  background: #EBF1FF;
  color: #1A56DB;
}

.pbadge.green {
  background: #D1FAE5;
  color: #059669;
}

.fi {
  margin-bottom: 14px;
}

.fi:last-of-type {
  margin-bottom: 0;
}

.fi-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fi-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #4B5C7E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.fi-dot.blue { background: #1A56DB; }
.fi-dot.cyan { background: #06B6D4; }
.fi-dot.green { background: #10B981; }
.fi-dot.purple { background: #8B5CF6; }

.fi-val {
  font-size: 12px;
  font-weight: 700;
  color: #1E2A45;
  font-variant-numeric: tabular-nums;
}

.fbar {
  height: 8px;
  background: #F0F4FF;
  border-radius: 99px;
  overflow: hidden;
}

.ffill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ffill.blue { background: linear-gradient(90deg, #1A56DB, #06B6D4); }
.ffill.green { background: linear-gradient(90deg, #10B981, #34D399); }
.ffill.purple { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }

.rates {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #F0F4FF;
}

.rate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
}

.rc.g { background: #D1FAE5; color: #10B981; border: 2.5px solid #10B981; }
.rc.r { background: #FEE2E2; color: #EF4444; border: 2.5px solid #EF4444; }

.rate-lbl {
  font-size: 10.5px;
  color: #8A99BA;
  font-weight: 600;
  text-align: center;
}

.pdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pdot.b { background: #1A56DB; box-shadow: 0 0 0 3px #EBF1FF; }
.pdot.g { background: #10B981; box-shadow: 0 0 0 3px #D1FAE5; }

.ptitle {
  font-size: 14px;
  font-weight: 700;
  color: #1E2A45;
  flex: 1;
}

.psub {
  font-size: 11px;
  color: #8A99BA;
  margin-bottom: 14px;
}

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pc {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background-color 0.3s ease;
}

.pc.bl { background: #EBF1FF; }
.pc.yl { background: #FFFBEB; }
.pc.gl { background: #ECFDF5; }
.pc.sl { background: #F1F5F9; }

.pc .cl { font-size: 10.5px; color: #4B5C7E; font-weight: 600; }
.pc .cv { font-size: 22px; font-weight: 800; color: #1E2A45; letter-spacing: -0.5px; }

.pengrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.penc {
  border: 1px solid #E4E9F7;
  border-radius: 12px;
  padding: 12px;
}

.penc .pl { font-size: 10.5px; color: #8A99BA; margin-bottom: 4px; font-weight: 600; }
.penc .pv { font-size: 22px; font-weight: 800; color: #1E2A45; letter-spacing: -0.5px; }

.penc.gs { border-color: #10B981; background: #ECFDF5; }
.penc.gs .pv { color: #10B981; }

.penc.ds { border-color: #EF4444; background: #FEE2E2; }
.penc.ds .pv { color: #EF4444; }

/* ===== TABLES ===== */
.tbl-wrap {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
  margin-bottom: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tbl-hdr {
  padding: 18px 20px;
  border-bottom: 1px solid #F0F4FF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tbl-hdr h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1E2A45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tbl-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFF;
  border: 1.5px solid #E4E9F7;
  border-radius: 10px;
  padding: 7px 14px;
  transition: all 0.15s ease;
  color: #8A99BA;
}

.sbox:focus-within {
  border-color: #1A56DB;
  background: #ffffff;
  color: #1A56DB;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.sbox input {
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #1E2A45;
  outline: none;
  width: 180px;
}

.sbox input::placeholder {
  color: #8A99BA;
}

.search-hint {
  text-align: center;
  padding: 60px 20px;
  color: #8A99BA;
}

.search-hint .shi {
  font-size: 42px;
  margin-bottom: 12px;
  color: #CBD5E8;
}

.search-hint h3 {
  font-size: 16px;
  font-weight: 800;
  color: #4B5C7E;
  margin-bottom: 6px;
}

.search-hint p {
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: #F8FAFF;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8A99BA;
  border-bottom: 1px solid #E4E9F7;
}

td {
  padding: 13px 16px;
  font-size: 12.5px;
  color: #1E2A45;
  border-bottom: 1px solid #F0F4FF;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.1s ease;
}

tbody tr:hover {
  background: #F8FAFF;
}

.rbadge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #EBF1FF;
  color: #1A56DB;
}

.rbadge.gold { background: #FEF3C7; color: #D97706; }
.rbadge.silver { background: #F1F5F9; color: #64748B; }
.rbadge.bronze { background: #FEF2E8; color: #C2410C; }

.pbar {
  height: 6px;
  background: #F0F4FF;
  border-radius: 99px;
  overflow: hidden;
  width: 110px;
}

.pfill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1A56DB, #06B6D4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
}

.tb { background: #EBF1FF; color: #1A56DB; }
.tg { background: #D1FAE5; color: #059669; }
.ty { background: #FEF3C7; color: #B45309; }
.tr { background: #FEE2E2; color: #EF4444; }
.tpu { background: #EDE9FE; color: #7C3AED; }
.tgr { background: #F1F5F9; color: #64748B; }

/* ===== BUTTONS ===== */
.btn-ol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1.5px solid #E4E9F7;
  background: #ffffff;
  color: #4B5C7E;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-ol:hover {
  border-color: #1A56DB;
  color: #1A56DB;
  background: #EBF1FF;
}

.btn-ol.sort-active {
  background: #EBF1FF;
  border-color: #1A56DB;
  color: #1A56DB;
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1A56DB, #1040B0);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
  transition: all 0.15s ease;
}

.btn-p:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 86, 219, 0.4);
}

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid #E4E9F7;
  background: #ffffff;
  color: #4B5C7E;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-s:hover {
  border-color: #CBD5E8;
  color: #1E2A45;
}

.btn-d {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid #EF4444;
  background: #FEE2E2;
  color: #EF4444;
  font-size: 12.5px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-d:hover {
  background: #EF4444;
  color: #ffffff;
}

/* ===== BREADCRUMB & BACK ===== */
.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.bc a { color: #1A56DB; font-size: 12.5px; font-weight: 600; }
.bc .sep { color: #8A99BA; }
.bc span { color: #4B5C7E; font-size: 12.5px; font-weight: 500; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #E4E9F7;
  color: #4B5C7E;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: all 0.15s ease;
}

.back:hover {
  border-color: #1A56DB;
  color: #1A56DB;
  background: #EBF1FF;
}

/* ===== PROFILE CARD ===== */
.pcard {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(30, 42, 69, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pav {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EBF1FF, #E0F9FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #1A56DB;
  flex-shrink: 0;
  border: 2px solid #E4E9F7;
}

.pinfo { flex: 1; }
.pinfo h2 { font-size: 22px; font-weight: 800; color: #1E2A45; letter-spacing: -0.5px; margin-bottom: 8px; }
.pmeta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pmi { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #4B5C7E; font-weight: 600; }
.ptags { display: flex; gap: 8px; flex-wrap: wrap; }
.pacts { display: flex; flex-direction: column; gap: 8px; min-width: 185px; }

/* ===== STATUS ALERT ===== */
.salert {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
}

.sai {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EBF1FF;
  color: #1A56DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sai-info { flex: 1; }
.sai-status { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #F59E0B; margin-bottom: 2px; }
.sai-lbl { font-size: 13px; color: #1E2A45; font-weight: 700; }
.sai-pend { font-size: 11.5px; color: #8A99BA; margin-top: 2px; }

/* ===== DETAIL TABS ===== */
.dtabs { display: flex; gap: 4px; border-bottom: 2px solid #E4E9F7; margin-bottom: 20px; }
.dtab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #4B5C7E;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dtab:hover { color: #1A56DB; }
.dtab.active { color: #1A56DB; border-bottom-color: #1A56DB; }

/* ===== INFO SECTIONS & EDIT INLINE ===== */
.isec {
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
}

.isec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: #1E2A45;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0F4FF;
}

.isec-title-l { display: flex; align-items: center; gap: 10px; }
.isec-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #EBF1FF;
  color: #1A56DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.igrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ifl .il { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #8A99BA; margin-bottom: 5px; }
.ifl .iv { font-size: 13.5px; font-weight: 700; color: #1E2A45; }
.ifl .iv.mono { font-family: monospace; letter-spacing: 1px; }

.btn-edit-sm { background: #EBF1FF; border: none; border-radius: 6px; color: #1A56DB; font-size: 11px; font-weight: 700; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.btn-cancel-sm { background: #F1F5F9; border: none; border-radius: 6px; color: #64748B; font-size: 11px; font-weight: 700; padding: 4px 10px; cursor: pointer; white-space: nowrap; }

.data-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.data-list-item {
  background: #F8FAFF;
  border: 1px solid #E4E9F7;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-list-item .dli-label { font-size: 10.5px; color: #8A99BA; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; min-width: 130px; }
.data-list-item .dli-val { flex: 1; font-size: 13px; font-weight: 700; color: #1E2A45; }
.data-list-item .dli-act { display: flex; gap: 6px; }

/* ===== MODAL & OVERLAY ===== */
.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 51, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-ov.show {
  display: flex;
  animation: fdi 0.2s ease;
}

@keyframes fdi { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  width: 480px;
  max-width: 92vw;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  animation: sui 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes sui { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.m-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.m-hdr h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }

.m-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #F1F5F9;
  border-radius: 50%;
  font-size: 14px;
  color: #4B5C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.m-close:hover { background: #FEE2E2; color: #EF4444; }

.fg { margin-bottom: 16px; }
.flbl { font-size: 11.5px; font-weight: 700; color: #4B5C7E; margin-bottom: 6px; display: block; }

.finp {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E4E9F7;
  border-radius: 10px;
  font-size: 13px;
  color: #1E2A45;
  background: #F8FAFF;
  outline: none;
  transition: all 0.15s ease;
}

.finp:focus { border-color: #1A56DB; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(26, 86, 219, 0.12); }

.fsel {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E4E9F7;
  border-radius: 10px;
  font-size: 13px;
  color: #1E2A45;
  background: #F8FAFF;
  outline: none;
  cursor: pointer;
}

.m-foot { display: flex; gap: 10px; margin-top: 22px; }
.m-foot button { flex: 1; }

.modal-hapus {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  animation: sui 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.modal-hapus .hico { font-size: 44px; margin-bottom: 12px; }
.modal-hapus h3 { font-size: 17px; font-weight: 800; color: #1E2A45; margin-bottom: 8px; }
.modal-hapus p { font-size: 13px; color: #8A99BA; line-height: 1.5; margin-bottom: 22px; }
.modal-hapus .hname { color: #EF4444; font-weight: 800; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-ct {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0D1B3E;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.35);
  animation: tin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes tin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== EDITABLE STATUS SELECT ===== */
.st-sel {
  border: 1.5px solid transparent;
  border-radius: 99px;
  padding: 4px 24px 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px;
  transition: all 0.15s ease;
  max-width: 165px;
}

.st-sel:hover { filter: brightness(0.95); transform: translateY(-1px); }
.st-sel:focus { box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15); }

.st-sel.st-ty {
  background-color: #FEF3C7; color: #B45309;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='%23B45309'><path d='M0 0l5 6 5-6z'/></svg>");
}
.st-sel.st-tb {
  background-color: #EBF1FF; color: #1A56DB;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='%231A56DB'><path d='M0 0l5 6 5-6z'/></svg>");
}
.st-sel.st-tg {
  background-color: #D1FAE5; color: #059669;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='%23059669'><path d='M0 0l5 6 5-6z'/></svg>");
}
.st-sel.st-tr {
  background-color: #FEE2E2; color: #EF4444;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='%23EF4444'><path d='M0 0l5 6 5-6z'/></svg>");
}
.st-sel.st-tgr {
  background-color: #F1F5F9; color: #64748B;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='%2364748B'><path d='M0 0l5 6 5-6z'/></svg>");
}
.st-sel option { background: #ffffff; color: #1E2A45; font-weight: 700; }

/* ===== DOCUMENT UPLOADS ===== */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F8FAFF;
  border-radius: 10px;
  border: 1px solid #E4E9F7;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.di-l { display: flex; align-items: center; gap: 12px; }
.di-name { font-size: 13.5px; font-weight: 700; }
.di-sub { font-size: 11px; color: #8A99BA; }
.di-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.upload-area {
  border: 2px dashed #CBD5E8;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  background: #F8FAFF;
  display: none;
  width: 100%;
}
.upload-area:hover, .upload-area.dragover { border-color: #1A56DB; background: #EBF1FF; }
.upload-area p { font-size: 11.5px; color: #8A99BA; margin-top: 4px; }
.upload-area strong { font-size: 12.5px; color: #1A56DB; display: flex; align-items: center; justify-content: center; gap: 6px; }

.doc-item.has-file { background: #ECFDF5; border-color: #10B981; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D1FAE5;
  border: 1px solid #10B981;
  color: #059669;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-hapus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1.5px solid #EF4444;
  background: #FEE2E2;
  color: #EF4444;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-hapus:hover { background: #EF4444; color: #ffffff; }

/* ===== DESIL BARS & EMPTY STATES ===== */
.desil-bar-row { margin-bottom: 14px; }
.desil-bar-label { display: flex; justify-content: space-between; margin-bottom: 5px; }
.desil-bar-label span:first-child { font-size: 12px; font-weight: 600; color: #4B5C7E; }
.desil-bar-label span:last-child { font-size: 12px; font-weight: 800; color: #1E2A45; }
.desil-bar-track { height: 9px; background: #F0F4FF; border-radius: 99px; overflow: hidden; }
.desil-bar-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* ===== IMPORT MODAL HELPERS ===== */
.drop-excel {
  background: #F0F9FF;
  border: 1.5px dashed #06B6D4;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drop-excel.dragover {
  background: #E0F2FE;
  border-color: #0284C7;
}

.drop-excel .drop-title {
  font-weight: 700;
  color: #0E7490;
  margin-bottom: 4px;
}

.import-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E2A45;
}

.import-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #E4E9F7;
  border-radius: 10px;
  margin-bottom: 12px;
}

.import-info {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12px;
  color: #065F46;
  margin-bottom: 12px;
}

.import-panduan {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  padding: 13px;
  font-size: 11.5px;
  color: #7C2D12;
  margin-bottom: 14px;
}

.import-panduan .ip-divider {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #FED7AA;
}

.kuota-split {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #F0F4FF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1E2A45;
}

.cell-muted {
  color: #4B5C7E;
}

.page-sub {
  font-size: 11.5px;
  color: #8A99BA;
  margin-top: 3px;
}

/* ===== ADVANCED DARK MODE (FULL PAGE COVERAGE) ===== */
body.dark {
  background: #0B132B;
  color: #F8FAFC;
  color-scheme: dark;
}

body.dark .main,
body.dark .content {
  background: #0B132B;
}

body.dark ::-webkit-scrollbar-track {
  background: #0B132B;
}

body.dark .cell-muted {
  color: #94A3B8;
}

body.dark .page-sub {
  color: #64748B;
}

body.dark .kpi:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

body.dark .btn-hapus:disabled,
body.dark .btn-hapus[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Inline edit inputs in detail */
body.dark .edit-inp,
body.dark input.edit-inp,
body.dark select.edit-inp {
  background: #0D1629;
  border-color: #38BDF8;
  color: #F8FAFC;
}

body.dark #login-screen {
  background: radial-gradient(circle at 50% 50%, #0F172A 0%, #080D1A 100%);
}

body.dark .login-box {
  background: #152238;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

body.dark .login-logo h2 { color: #F8FAFC; }
body.dark .login-logo p { color: #64748B; }
body.dark .login-logo .lico-img {
  background: #0D1629;
  border-color: #24334F;
}
body.dark .lfg label { color: #94A3B8; }
body.dark .lfg input {
  background: #0D1629;
  border-color: #24334F;
  color: #F8FAFC;
}
body.dark .lfg input:focus {
  border-color: #38BDF8;
  background: #141E33;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}
body.dark .login-err {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}
body.dark .login-hint { color: #64748B; }
body.dark .login-hint b { color: #38BDF8; }

body.dark .sidebar {
  background: linear-gradient(180deg, #070E20 0%, #0D1936 100%);
  border-right-color: rgba(255, 255, 255, 0.05);
}

body.dark .topbar {
  background: #141E33;
  border-bottom-color: #202D45;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

body.dark .topbar-title h1 { color: #F8FAFC; }
body.dark .topbar-title p { color: #64748B; }

body.dark .kab-badge {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38BDF8;
  color: #38BDF8;
}

body.dark .tahun-sel {
  background: #0D1629;
  border-color: #202D45;
  color: #94A3B8;
}
body.dark .tahun-sel select { color: #F8FAFC; }

body.dark .tbtn {
  background: #0D1629;
  border-color: #202D45;
  color: #94A3B8;
}
body.dark .tbtn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

body.dark .notification-badge { border-color: #141E33; }
body.dark .notification-dropdown { background: #141E33; border-color: #202D45; box-shadow: 0 14px 32px rgba(0, 0, 0, .35); }
body.dark .notification-head, body.dark .notification-footer { background: #141E33; border-color: #202D45; color: #F8FAFC; }
body.dark .notification-head span, body.dark .notification-footer { color: #38BDF8; }
body.dark .notification-item { color: #F8FAFC; }
body.dark .notification-item:hover { background: #1B2943; }
body.dark .notification-item small { color: #94A3B8; }
body.dark .tabs {
  background: #0D1629;
  border-color: #202D45;
}
body.dark .tab-btn { color: #94A3B8; }
body.dark .tab-btn:hover {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
}
body.dark .tab-btn.active {
  background: #1B2945;
  color: #38BDF8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Cards & surfaces */
body.dark .panel,
body.dark .tbl-wrap,
body.dark .kpi,
body.dark .pcard,
body.dark .salert,
body.dark .isec,
body.dark .modal,
body.dark .modal-hapus,
body.dark .back {
  background: #141E33;
  border-color: #202D45;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .panel-hdr h3,
body.dark .tbl-hdr h3,
body.dark .kpi-val,
body.dark .pinfo h2,
body.dark .ifl .iv,
body.dark .m-hdr h3,
body.dark .modal-hapus h3,
body.dark .sai-lbl,
body.dark .desil-bar-label span:last-child,
body.dark .ptitle,
body.dark .fi-val,
body.dark .page-title,
body.dark .import-preview-title,
body.dark .di-name,
body.dark .isec-title {
  color: #F8FAFC;
}

body.dark .fi-lbl,
body.dark .pmi,
body.dark .desil-bar-label span:first-child,
body.dark .flbl,
body.dark .psub,
body.dark .kpi-sub,
body.dark .kpi-lbl,
body.dark .rate-lbl,
body.dark .bc span,
body.dark .sai-pend,
body.dark .di-sub {
  color: #94A3B8;
}

body.dark .kpi-sub b { color: #38BDF8; }

/* KPI icons — translucent on dark */
body.dark .kpi.blue .kpi-ico { background: rgba(26, 86, 219, 0.2); color: #60A5FA; }
body.dark .kpi.cyan .kpi-ico { background: rgba(6, 182, 212, 0.2); color: #22D3EE; }
body.dark .kpi.green .kpi-ico { background: rgba(16, 185, 129, 0.2); color: #34D399; }
body.dark .kpi.red .kpi-ico { background: rgba(239, 68, 68, 0.2); color: #F87171; }
body.dark .kpi.purple .kpi-ico { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
body.dark .kpi.yellow .kpi-ico { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

/* Badges */
body.dark .pbadge {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}
body.dark .pbadge.green {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

/* Funnel bars & dividers */
body.dark .fbar,
body.dark .pbar,
body.dark .desil-bar-track {
  background: #0D1629;
}
body.dark .rates,
body.dark .tbl-hdr,
body.dark .isec-title,
body.dark .kuota-split {
  border-color: #202D45;
}

/* Rate circles */
body.dark .rc.g {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: #10B981;
}
body.dark .rc.r {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: #EF4444;
}

/* Status dots */
body.dark .pdot.b { box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.25); }
body.dark .pdot.g { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }

/* Progres Status PDB cards */
body.dark .pc.bl { background: rgba(26, 86, 219, 0.18); }
body.dark .pc.yl { background: rgba(245, 158, 11, 0.15); }
body.dark .pc.gl { background: rgba(16, 185, 129, 0.15); }
body.dark .pc.sl { background: rgba(100, 116, 139, 0.2); }
body.dark .pc .cv { color: #F8FAFC; }
body.dark .pc .cl { color: #94A3B8; }

/* Penetapan PDB cards — fix light pastel leak */
body.dark .penc {
  background: #0D1629;
  border-color: #24334F;
}
body.dark .penc .pl { color: #94A3B8; }
body.dark .penc .pv { color: #F8FAFC; }
body.dark .penc.gs {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}
body.dark .penc.gs .pv { color: #34D399; }
body.dark .penc.ds {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
body.dark .penc.ds .pv { color: #F87171; }

/* Tables */
body.dark thead tr { background: #0D1629; }
body.dark tbody tr:hover { background: #1B2945; }
body.dark td {
  border-bottom-color: #1E2D47;
  color: #E2E8F0;
}
body.dark th {
  border-bottom-color: #202D45;
  color: #94A3B8;
}

body.dark .sbox {
  background: #0D1629;
  border-color: #202D45;
  color: #94A3B8;
}
body.dark .sbox:focus-within {
  background: #141E33;
  border-color: #38BDF8;
  color: #38BDF8;
}
body.dark .sbox input { color: #F8FAFC; }
body.dark .sbox input::placeholder { color: #64748B; }

body.dark .search-hint { color: #64748B; }
body.dark .search-hint .shi { color: #334155; }
body.dark .search-hint h3 { color: #E2E8F0; }

body.dark .rbadge {
  background: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}
body.dark .rbadge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}
body.dark .rbadge.silver {
  background: rgba(100, 116, 139, 0.25);
  color: #94A3B8;
}
body.dark .rbadge.bronze {
  background: rgba(194, 65, 12, 0.2);
  color: #FB923C;
}

/* Tags */
body.dark .tb { background: rgba(26, 86, 219, 0.2); color: #60A5FA; }
body.dark .tg { background: rgba(16, 185, 129, 0.2); color: #34D399; }
body.dark .ty { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
body.dark .tr { background: rgba(239, 68, 68, 0.2); color: #F87171; }
body.dark .tpu { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
body.dark .tgr { background: rgba(100, 116, 139, 0.25); color: #94A3B8; }

/* Buttons */
body.dark .btn-ol {
  background: #0D1629;
  border-color: #202D45;
  color: #94A3B8;
}
body.dark .btn-ol:hover,
body.dark .btn-ol.sort-active {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
}
body.dark .btn-s {
  background: #0D1629;
  border-color: #202D45;
  color: #94A3B8;
}
body.dark .btn-s:hover {
  border-color: #475569;
  color: #F8FAFC;
  background: #1B2945;
}
body.dark .btn-d {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #F87171;
}
body.dark .btn-d:hover {
  background: #EF4444;
  color: #ffffff;
}
body.dark .btn-hapus {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #F87171;
}
body.dark .btn-hapus:hover {
  background: #EF4444;
  color: #ffffff;
}
body.dark .btn-edit-sm {
  background: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}
body.dark .btn-cancel-sm {
  background: rgba(100, 116, 139, 0.25);
  color: #94A3B8;
}
body.dark .back:hover {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
}
body.dark .bc a { color: #38BDF8; }

/* Forms */
body.dark .finp,
body.dark .fsel {
  background: #0D1629;
  border-color: #202D45;
  color: #F8FAFC;
}
body.dark .finp:focus,
body.dark .fsel:focus {
  border-color: #38BDF8;
  background: #141E33;
  box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.15);
}
body.dark .st-sel option,
body.dark .fsel option {
  background: #141E33;
  color: #F8FAFC;
}

/* Status selects — muted for dark */
body.dark .st-sel.st-ty {
  background-color: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}
body.dark .st-sel.st-tb {
  background-color: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}
body.dark .st-sel.st-tg {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34D399;
}
body.dark .st-sel.st-tr {
  background-color: rgba(239, 68, 68, 0.18);
  color: #F87171;
}
body.dark .st-sel.st-tgr {
  background-color: rgba(100, 116, 139, 0.25);
  color: #94A3B8;
}

/* Detail / profile */
body.dark .pav {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.25), rgba(6, 182, 212, 0.2));
  border-color: #24334F;
  color: #60A5FA;
}
body.dark .sai {
  background: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}
body.dark .dtabs { border-bottom-color: #202D45; }
body.dark .dtab { color: #94A3B8; }
body.dark .dtab:hover,
body.dark .dtab.active {
  color: #38BDF8;
}
body.dark .dtab.active { border-bottom-color: #38BDF8; }
body.dark .isec-ico {
  background: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}

body.dark .data-list-item,
body.dark .doc-item,
body.dark .upload-area {
  background: #0D1629;
  border-color: #202D45;
}
body.dark .data-list-item .dli-val { color: #F8FAFC; }
body.dark .data-list-item .dli-label { color: #94A3B8; }
body.dark .upload-area:hover,
body.dark .upload-area.dragover {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
}
body.dark .upload-area strong { color: #38BDF8; }
body.dark .doc-item.has-file {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}
body.dark .file-chip {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34D399;
}

/* Modal */
body.dark .modal-ov {
  background: rgba(5, 10, 24, 0.78);
}
body.dark .m-close {
  background: #0D1629;
  color: #94A3B8;
}
body.dark .m-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
}
body.dark .modal-hapus p { color: #94A3B8; }

/* Import modal surfaces */
body.dark .drop-excel {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.45);
}
body.dark .drop-excel.dragover {
  background: rgba(6, 182, 212, 0.16);
  border-color: #22D3EE;
}
body.dark .drop-excel .drop-title { color: #22D3EE; }
body.dark .import-table-wrap { border-color: #202D45; }
body.dark .import-info {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}
body.dark .import-panduan {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}
body.dark .import-panduan .ip-divider { border-top-color: rgba(245, 158, 11, 0.3); }
body.dark .import-panduan b { color: #FDE68A; }

body.dark .toast {
  background: #0F172A;
  border-color: #202D45;
  color: #F8FAFC;
}

/* Empty table / muted helper text */
body.dark .empty-row,
body.dark .text-muted-row {
  color: #64748B !important;
}

/* Select arrow contrast on dark */
body.dark select.fsel,
body.dark select.st-sel {
  color-scheme: dark;
}

/* Ensure back button text is readable */
body.dark .back {
  color: #94A3B8;
}

/* Profile meta icons stay muted */
body.dark .pmeta .pmi i {
  color: #64748B;
}

/* Sidebar user strip */
body.dark .sidebar-user {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* ===== ANIMATIONS ===== */
.fin { animation: cfi 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
@keyframes cfi { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.kpi:nth-child(1) { animation-delay: 0.05s; }
.kpi:nth-child(2) { animation-delay: 0.1s; }
.kpi:nth-child(3) { animation-delay: 0.15s; }
.kpi:nth-child(4) { animation-delay: 0.2s; }
.kpi:nth-child(5) { animation-delay: 0.25s; }
.kpi:nth-child(6) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .panels-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .logo-text, .sidebar-nav a > span:not(.nav-ico), .nav-badge, .sidebar-label, .user-name, .user-role, .btn-logout { display: none; }
  .sidebar-nav a { justify-content: center; padding: 10px; }
  .main { margin-left: 64px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panels-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE BOTTOM NAV (default: tersembunyi) ===== */
.mobile-nav {
  display: none; /* tampil hanya via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 1px solid #E4E9F7;
  box-shadow: 0 -4px 20px rgba(30, 42, 69, 0.08);
  height: 60px;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone notch */
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 6px 2px;
  border-radius: 10px;
  color: #8A99BA;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  min-width: 0;
}

.mobile-nav-item i {
  font-size: 18px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item.active {
  color: #1A56DB;
}

.mobile-nav-item.active i {
  transform: scale(1.15) translateY(-2px);
}

.mobile-nav-item:hover {
  color: #1A56DB;
  background: rgba(26, 86, 219, 0.05);
}

body.dark .mobile-nav {
  background: #0A1633;
  border-top-color: #1E2A45;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .mobile-nav-item {
  color: #7A95C5;
}

body.dark .mobile-nav-item.active {
  color: #06B6D4;
}

/* ===== MOBILE (HP) ≤ 640px ===== */
@media (max-width: 640px) {
  /* Sembunyikan sidebar — ganti dengan bottom nav */
  .sidebar { display: none; }

  /* Bottom Navigation Bar */
  .mobile-nav {
    display: flex !important;
  }

  /* Main area full width */
  .main {
    margin-left: 0;
    padding-bottom: 64px; /* ruang untuk bottom nav */
  }

  /* Topbar lebih ringkas */
  .topbar {
    padding: 0 14px;
    height: 56px;
  }

  .topbar-title h1 {
    font-size: 13px;
  }

  .topbar-title p {
    display: none;
  }

  .kab-badge {
    display: none;
  }

  .tahun-sel {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Content padding lebih kecil */
  .content {
    padding: 14px 12px;
    padding-bottom: 72px;
  }

  /* KPI — 2 kolom di HP */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }

  .kpi {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .kpi-val {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .kpi-lbl {
    font-size: 8.5px;
    margin-bottom: 6px;
  }

  .kpi-sub {
    font-size: 10px;
  }

  .kpi-ico {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 12px;
    right: 12px;
  }

  /* Panels — 1 kolom */
  .panels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel {
    padding: 14px 14px;
    border-radius: 12px;
  }

  /* Tabs — full width */
  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab-btn {
    justify-content: center;
    font-size: 11.5px;
    padding: 8px 10px;
  }

  /* Tabel — horizontal scroll */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  table {
    min-width: 520px;
  }

  /* Jenjang grid — 2 kolom */
  .jenjang-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Page title */
  .page-title {
    font-size: 15px !important;
  }

  .page-sub {
    font-size: 11px !important;
  }

  /* File page — 1 kolom */
  #page-file .panels-grid {
    grid-template-columns: 1fr;
  }

  /* SK file item nama lebih lebar */
  .sk-file-item-name {
    max-width: 160px;
  }

  /* Modal full width */
  .modal {
    width: 96vw !important;
    max-width: 96vw !important;
    margin: 8px;
    max-height: 90vh;
  }

  .modal-body {
    padding: 14px;
  }

  /* Tombol aksi — wrap */
  .modal-footer,
  div[style*="display:flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  /* Login box di HP */
  .login-box {
    width: 92vw;
    padding: 28px 20px;
  }

  /* Notifikasi dropdown */
  .notification-dropdown {
    right: -60px;
    width: 280px;
  }
}


/* ===== SIMPATI SR - New Components (revisi client) ===== */

.jenjang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.jenjang-card {
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid #E4E9F7;
  background: #F8FAFF;
}

.jenjang-card .jc-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8A99BA;
  margin-bottom: 6px;
}

.jenjang-card .jc-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1E2A45;
  line-height: 1.1;
}

.jenjang-card .jc-sub {
  font-size: 10px;
  color: #8A99BA;
  margin-top: 4px;
}

.jenjang-card.sd { border-top: 3px solid #10B981; }
.jenjang-card.smp { border-top: 3px solid #1A56DB; }
.jenjang-card.smk { border-top: 3px solid #8B5CF6; }
.jenjang-card.sma { border-top: 3px solid #F59E0B; }

.pav-wrap {
  position: relative;
  flex-shrink: 0;
}

.pav-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.foto-upload-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1A56DB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.foto-upload-btn:hover {
  background: #0F3BA8;
  transform: scale(1.08);
}

.map-embed {
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #F0F4FF;
  border: 1px solid #E4E9F7;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  color: #8A99BA;
  font-size: 13px;
}

.map-placeholder i {
  font-size: 36px;
  opacity: 0.5;
}

.file-sk-box {
  border: 1.5px dashed #CBD5E8;
  border-radius: 14px;
  padding: 16px;
  background: #F8FAFF;
  min-height: 110px;
}

.file-sk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  text-align: center;
  color: #8A99BA;
  font-size: 12px;
}

.file-sk-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}

/* ===== CHART SECTION ===== */
.chart-section-wrap {
  margin-top: 20px;
}

.chart-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #E4E9F7;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(30, 42, 69, 0.04);
}

.chart-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1E2A45;
}

.chart-filter-title i {
  color: #1A56DB;
  font-size: 14px;
}

.chart-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-filter-group label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8A99BA;
}

.chart-filter-group .fsel {
  padding: 6px 10px;
  font-size: 12px;
  min-width: 120px;
}

.chart-filter-badge {
  display: flex;
  align-items: center;
  background: #EBF1FF;
  color: #1A56DB;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 1px;
}

/* Dark mode chart section */
body.dark .chart-filter-bar {
  background: #0F172A;
  border-color: #1E2A45;
}

body.dark .chart-filter-title {
  color: #F8FAFC;
}

body.dark .chart-filter-group label {
  color: #7A95C5;
}

body.dark .chart-filter-badge {
  background: rgba(26, 86, 219, 0.2);
  color: #60A5FA;
}

/* Daftar multi-file */
.sk-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F5;
  border-radius: 10px;
  padding: 10px 12px;
  transition: background 0.15s;
}

.sk-file-item:hover {
  background: #F1F5FF;
}

.sk-file-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sk-file-item-info {
  min-width: 0;
}

.sk-file-item-name {
  font-weight: 600;
  font-size: 12.5px;
  color: #1E2A45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.sk-file-item-meta {
  font-size: 10.5px;
  color: #8A99BA;
  margin-top: 2px;
}

.sk-file-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.sk-file-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  font-size: 12.5px;
  font-weight: 600;
  color: #059669;
  text-align: center;
}

.sk-file-summary i {
  font-size: 16px;
}

.file-table-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.file-table-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.file-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.file-table-actions .btn-s,
.file-table-actions .btn-hapus {
  padding: 5px 11px;
  font-size: 11px;
}

body.dark .sk-file-summary {
  color: #34D399;
}

body.dark .file-table-name {
  color: #F8FAFC;
}

.btn-xs {
  padding: 4px 8px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}

.file-sk-meta {
  font-size: 11px;
  color: #8A99BA;
  margin-top: 3px;
}


body.dark .jenjang-card {
  background: #0F172A;
  border-color: #24334F;
}

body.dark .jenjang-card .jc-val {
  color: #F8FAFC;
}

body.dark .map-embed,
body.dark .file-sk-box {
  background: #0F172A;
  border-color: #24334F;
}

body.dark .file-sk-name,
body.dark .sk-file-item-name {
  color: #F8FAFC;
}

body.dark .sk-file-item {
  background: #0B132B;
  border-color: #1E2A45;
}

body.dark .sk-file-item:hover {
  background: #141E33;
}


body.dark .foto-upload-btn {
  border-color: #141E33;
}

@media (max-width: 900px) {
  .jenjang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
