/* ============================================================
   E-SATUPINTU — Premium All-in-One Stylesheet
   Glassmorphism · Mesh Gradient · Soft Glow · Micro-interactions
   Version: 2.0 (consolidated)
   ============================================================ */

/* ============================================================
   SECTION 1: PREMIUM DESIGN TOKENS
   ============================================================ */
:root {
  --premium-ink: #0A1628;
  --premium-ink-soft: #16243D;
  --premium-paper: #FAFBFC;

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 20px;

  --glow-green: 0 0 0 1px rgba(0, 153, 68, 0.08), 0 8px 32px -8px rgba(0, 153, 68, 0.24);
  --glow-blue:  0 0 0 1px rgba(0, 102, 204, 0.08), 0 8px 32px -8px rgba(0, 102, 204, 0.24);
  --glow-navy:  0 0 0 1px rgba(13, 27, 75, 0.06),  0 8px 32px -8px rgba(13, 27, 75, 0.20);

  --shadow-premium-sm:
    0 1px 2px rgba(13, 27, 75, 0.04),
    0 2px 6px rgba(13, 27, 75, 0.05),
    0 4px 12px -4px rgba(13, 27, 75, 0.06);
  --shadow-premium-md:
    0 2px 4px rgba(13, 27, 75, 0.04),
    0 6px 14px -2px rgba(13, 27, 75, 0.08),
    0 16px 40px -8px rgba(13, 27, 75, 0.10);
  --shadow-premium-lg:
    0 4px 8px rgba(13, 27, 75, 0.05),
    0 12px 28px -4px rgba(13, 27, 75, 0.10),
    0 32px 64px -12px rgba(13, 27, 75, 0.14);

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
}

/* ============================================================
   SECTION 2: ANIMATED MESH GRADIENT BACKGROUND
   ============================================================ */
body.app-body {
  background: var(--premium-paper);
  position: relative;
  overflow-x: hidden;
}

body.app-body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(0, 94, 184, 0.12)  0%, transparent 60%),
    radial-gradient(42% 38% at 82% 18%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
    radial-gradient(40% 44% at 76% 82%, rgba(15, 76, 129, 0.08)  0%, transparent 62%),
    radial-gradient(36% 40% at 22% 84%, rgba(96, 165, 250, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #F7F9FC 0%, #FAFBFC 100%);
  animation: meshDrift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

body.app-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13, 27, 75, 0.045) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
}

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(1%, -1%, 0) scale(1.02); }
}

/* ============================================================
   SECTION 3: NAVBAR — GLASS FROSTED
   ============================================================ */
.navbar {
  background: var(--glass-bg-strong);
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 24px -12px rgba(13, 27, 75, 0.14);
  height: 68px;
}

.sidebar-toggle {
  width: 68px;
  height: 68px;
  border-right: 1px solid rgba(226, 232, 240, 0.5);
  color: var(--premium-ink-soft);
  position: relative;
  overflow: hidden;
  transition: color var(--dur-base) var(--ease-premium);
}
.sidebar-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 153, 68, 0.18) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--dur-base) var(--ease-premium),
              transform var(--dur-base) var(--ease-premium);
}
.sidebar-toggle:hover::before { opacity: 1; transform: scale(1); }
.sidebar-toggle:hover { color: var(--bpom-green-dark); background: transparent; }

.navbar-user {
  padding: 7px 14px 7px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(226,232,240,0.7);
  transition: all var(--dur-base) var(--ease-premium);
}
.navbar-user:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0, 153, 68, 0.25);
  box-shadow: var(--glow-green);
  transform: translateY(-1px);
}
.user-avatar {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.9),
    0 2px 8px -2px rgba(13,27,75,0.25);
  transition: transform var(--dur-base) var(--ease-spring);
}
.navbar-user:hover .user-avatar { transform: scale(1.06); }

.user-dropdown {
  border-radius: 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium-lg);
  transform-origin: top right;
  animation: dropdownIn var(--dur-base) var(--ease-premium);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.dropdown-item {
  border-radius: 10px;
  margin: 2px 6px;
  padding: 10px 12px;
  transition: all var(--dur-fast) var(--ease-premium);
}
.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0,153,68,0.10), rgba(0,102,204,0.06));
  transform: translateX(2px);
}

/* ============================================================
   SECTION 4: SIDEBAR — Blue BPOM Theme
   ============================================================ */
.sidebar {
  top: 64px !important;
  height: calc(100vh - 64px) !important;
  width: 256px !important;
  background: linear-gradient(180deg, #0f4c81 0%, #0a3a63 55%, #083054 100%) !important;
  border-right: none !important;
  box-shadow: none !important;
}

.sidebar::before { display: none !important; }

/* ---------- Logo Area ---------- */
.sidebar-logo-area {
  padding: 20px 16px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
}
.sb-logo {
  width: 68px !important;
  height: 68px !important;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.55)) drop-shadow(0 2px 6px rgba(255,255,255,0.25)) !important;
  transition: none !important;
}
.sidebar-logo-area:hover .sb-logo { transform: none !important; }

/* brand info — vertical, teks putih */
.sb-brand-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  width: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}
.sb-brand-name {
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  letter-spacing: 0.06em !important;
  text-shadow: none !important;
  background: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
.sb-brand-sub {
  font-size: 0.65rem !important;
  color: rgba(219,234,254,0.75) !important;
  letter-spacing: 0.02em !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.sb-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 4px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(96,165,250,0.2) !important;
  border: 1px solid rgba(191,219,254,0.3) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  color: #bfdbfe !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  animation: none !important;
}
.sidebar-search { display: none !important; }
@keyframes badgePulse {}

/* ---------- Section Label ---------- */
.sidebar-section-label {
  color: rgba(191,219,254,0.55) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 14px 16px 5px !important;
}

/* ---------- Menu Items ---------- */
.sidebar-item {
  padding: 9px 12px !important;
  margin: 1px 8px !important;
  border-radius: 8px !important;
  border-left: none !important;
  font-size: 0.855rem !important;
  color: rgba(239,246,255,0.85) !important;
  font-weight: 500 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: background 0.15s, color 0.15s !important;
  transform: none !important;
}

.sidebar-item::before { display: none !important; }

.sidebar-item:hover {
  background: rgba(96,165,250,0.15) !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar-item.active {
  background: rgba(96,165,250,0.25) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.sidebar-item.active::before { display: none !important; }

.sidebar-item.active .menu-icon {
  color: #93c5fd !important;
  filter: none !important;
}

/* ---------- Icons ---------- */
.menu-icon {
  transition: color 0.15s !important;
  color: rgba(191,219,254,0.7) !important;
  font-size: 0.9rem !important;
}
.sidebar-item:hover .menu-icon {
  color: #bfdbfe !important;
  transform: none !important;
}

/* ---------- Submenu (tree-line) ---------- */
.sidebar-subitem {
  padding: 7px 12px 7px 38px !important;
  background: transparent !important;
  margin: 1px 8px 1px 22px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  color: rgba(191,219,254,0.75) !important;
  transition: background 0.15s, color 0.15s !important;
}
.sidebar-subitem::before {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 1px !important;
  background: rgba(255,255,255,0.2) !important;
}
.sidebar-subitem:hover {
  background: rgba(96,165,250,0.12) !important;
  color: #ffffff !important;
}
.sidebar-subitem.active {
  background: rgba(96,165,250,0.22) !important;
  color: #ffffff !important;
}

/* ---------- Footer — Profile Card ---------- */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  background: transparent !important;
  padding: 0 !important;
}
.sidebar-footer .sidebar-item { display: none !important; }

/* ============================================================
   SECTION 5: SIDEBAR COLLAPSED (blue theme)
   ============================================================ */
.sidebar.collapsed {
  width: 72px !important;
}

.sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 72px !important;
}

.sidebar.collapsed .sidebar-logo-area {
  padding: 14px 0 !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.sidebar.collapsed .sb-logo {
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto !important;
}

.sidebar.collapsed .sidebar-item {
  margin: 2px 4px !important;
  padding: 10px 0 !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 8px !important;
  overflow: visible !important;
  color: rgba(239,246,255,0.85) !important;
  transform: none !important;
}
.sidebar.collapsed .sidebar-item:hover {
  transform: none !important;
  background: rgba(96,165,250,0.15) !important;
  color: #ffffff !important;
}

.sidebar.collapsed .menu-icon {
  width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
  color: rgba(191,219,254,0.7) !important;
}
.sidebar.collapsed .sidebar-item.active .menu-icon {
  color: #93c5fd !important;
  filter: none !important;
}

.sidebar.collapsed .sidebar-item::before { display: none !important; }

.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-badge,
.sidebar.collapsed .sidebar-submenu-chevron,
.sidebar.collapsed .sb-brand-info,
.sidebar.collapsed .sidebar-section-label {
  display: none !important;
}

.sidebar.collapsed .sidebar-section-label::before { display: none !important; }

.sidebar.collapsed .sb-profile-info,
.sidebar.collapsed .sb-logout-btn {
  display: none !important;
}
.sidebar.collapsed .sb-profile-card {
  justify-content: center !important;
  padding: 12px 0 !important;
}

/* ---------- Tooltip ---------- */
.sidebar.collapsed .sidebar-item::after {
  left: calc(100% + 10px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #0f172a !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
  border: none !important;
  z-index: 1100 !important;
  content: attr(data-tooltip) !important;
  transition: opacity 0.15s !important;
}
.sidebar.collapsed .sidebar-item:hover::after {
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.sidebar.collapsed .sidebar-item.active {
  background: rgba(96,165,250,0.25) !important;
  box-shadow: none !important;
}

.sidebar.collapsed .sidebar-parent { justify-content: center !important; }
.sidebar.collapsed .sidebar-menu-group > .sidebar-submenu { display: none !important; }
/* ============================================================
   SECTION 6: MAIN CONTENT & CARDS — GLASS PREMIUM
   ============================================================ */
.main-content { margin-top: 64px; }

.page-content { padding: 32px; }

/* Universal Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-premium-sm);
  transition: all var(--dur-slow) var(--ease-premium);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.9) 50%,
    transparent 100%);
  pointer-events: none;
}
.card:hover {
  box-shadow: var(--shadow-premium-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 20px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.card-title {
  font-size: 15px !important;
  letter-spacing: -0.01em;
}
.card-title i {
  color: #005eb8;
  filter: drop-shadow(0 0 8px rgba(0, 94, 184, 0.35));
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 94, 184, 0.10);
}

/* ============================================================
   SECTION 7: GREETING BANNER — HERO AURORA
   ============================================================ */
.greeting-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 40px !important;
  border-radius: 24px !important;
  margin-bottom: 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 160px;
  background:
    radial-gradient(ellipse 65% 90% at 12% 30%, rgba(0, 94, 184, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 100% at 85% 15%, rgba(59, 130, 246, 0.42) 0%, transparent 62%),
    radial-gradient(ellipse 55% 80% at 50% 100%, rgba(96, 165, 250, 0.28) 0%, transparent 65%),
    linear-gradient(135deg, #0a2540 0%, #0f4c81 45%, #082038 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 48px -20px rgba(10, 37, 64, 0.65),
    0 8px 20px -8px rgba(0, 94, 184, 0.4);
}

.greeting-banner::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 25%, rgba(51, 187, 109, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0, 118, 224, 0.38) 0%, transparent 42%),
    radial-gradient(circle at 65% 85%, rgba(110, 231, 168, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(13, 27, 75, 0.55) 0%, transparent 50%);
  filter: blur(40px);
  animation: dpAurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes dpAurora {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate3d(-4%, 3%, 0) rotate(4deg) scale(1.08); }
  66%  { transform: translate3d(3%, -2%, 0) rotate(-3deg) scale(1.04); }
  100% { transform: translate3d(-2%, 1%, 0) rotate(2deg) scale(1.02); }
}

.greeting-banner::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(110, 231, 168, 0.4) 0%,
    rgba(51, 187, 109, 0.15) 35%,
    transparent 70%);
  filter: blur(24px);
  animation: dpOrbFloat 16s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes dpOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  33%      { transform: translate(-50px, 40px) scale(1.12); opacity: 1; }
  66%      { transform: translate(30px, -30px) scale(0.94); opacity: 0.75; }
}

.greeting-text {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.greeting-text h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(255, 255, 255, 0.15);
  background: none !important;
}

/* ✅ FIX: p solid putih, full opacity */
.greeting-text p {
  font-size: 0.88rem !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  opacity: 1 !important;
  letter-spacing: 0.015em !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.greeting-text p::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A7F3D0, #6EE7A8);
  box-shadow:
    0 0 12px rgba(167, 243, 208, 1),
    0 0 4px rgba(255, 255, 255, 0.8);
  animation: dpPulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dpPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px rgba(110, 231, 168, 0.9); }
  50%      { transform: scale(1.3); opacity: 0.75; box-shadow: 0 0 20px rgba(110, 231, 168, 1); }
}

.greeting-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.greeting-actions .btn {
  padding: 13px 24px !important;
  border-radius: 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  background: linear-gradient(135deg,
    rgba(110, 231, 168, 0.22) 0%,
    rgba(51, 187, 109, 0.14) 100%) !important;
  border: 1.5px solid rgba(110, 231, 168, 0.45) !important;
  color: #FFFFFF !important;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 6px 20px -6px rgba(0, 0, 0, 0.35),
    0 0 24px -4px rgba(110, 231, 168, 0.4);
  transition: all var(--dur-base) var(--ease-premium);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.greeting-actions .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.42) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
  z-index: -1;
}
.greeting-actions .btn:hover::before { opacity: 1; }
.greeting-actions .btn:hover {
  background: linear-gradient(135deg,
    rgba(110, 231, 168, 0.32) 0%,
    rgba(51, 187, 109, 0.22) 100%) !important;
  border-color: rgba(167, 243, 208, 0.75) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 12px 32px -8px rgba(0, 0, 0, 0.4),
    0 0 40px -6px rgba(110, 231, 168, 0.75);
}
.greeting-actions .btn:active {
  transform: translateY(-1px) scale(0.99);
}
.greeting-actions .btn i {
  font-size: 0.95rem;
  transition: transform var(--dur-base) var(--ease-spring);
}
.greeting-actions .btn:hover i {
  transform: rotate(90deg) scale(1.15);
}

/* ============================================================
   SECTION 8: ST STATUS CARDS
   ============================================================ */
.st-status-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-premium-sm);
  padding: 26px 22px;
  transition: all var(--dur-slow) var(--ease-premium);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.st-status-card::before {
  height: 4px;
  border-radius: 0 0 4px 4px;
  filter: blur(0.2px);
}
.st-status-card.aktif::before {
  background: linear-gradient(90deg, #009944, #33BB6D, #009944);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 2px 12px rgba(0,153,68,0.5);
}
.st-status-card.tenggang::before {
  background: linear-gradient(90deg, #D97706, #FBBF24, #D97706);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 2px 12px rgba(217,119,6,0.5);
}
.st-status-card.expired::before {
  background: linear-gradient(90deg, #DC2626, #F87171, #DC2626);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 2px 12px rgba(220,38,38,0.5);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.st-status-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium-lg);
}
.st-status-card.aktif:hover    { box-shadow: var(--shadow-premium-lg), var(--glow-green); }
.st-status-card.tenggang:hover { box-shadow: var(--shadow-premium-lg), 0 0 0 1px rgba(217,119,6,0.15), 0 8px 32px -8px rgba(217,119,6,0.30); }
.st-status-card.expired:hover  { box-shadow: var(--shadow-premium-lg), 0 0 0 1px rgba(220,38,38,0.15), 0 8px 32px -8px rgba(220,38,38,0.30); }

.st-status-num {
  font-size: 2.8rem !important;
  letter-spacing: -0.03em;
  transition: transform var(--dur-base) var(--ease-spring);
}
.st-status-card:hover .st-status-num { transform: scale(1.06); }

.st-status-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}

/* ============================================================
   SECTION 9: TABLES — PREMIUM
   ============================================================ */
.data-table thead tr {
  background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(241,245,249,0.6));
}
.data-table thead th {
  color: var(--gray-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(226,232,240,0.9);
  position: relative;
}
.data-table tbody tr {
  transition: all var(--dur-fast) var(--ease-premium);
  
}
.data-table tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(0,153,68,0.045) 0%,
    rgba(0,102,204,0.035) 100%);
  transform: scale(1.001);
}
.data-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #005eb8;
}

.capa-column-search {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 8px;
  transition: all var(--dur-base) var(--ease-premium);
  font-size: 11px;
  padding: 7px 10px;
}
.capa-column-search:hover { border-color: rgba(0,153,68,0.35); }
.capa-column-search:focus {
  border-color: var(--bpom-green);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0,153,68,0.14);
  transform: translateY(-1px);
}

/* Deadline cell */
.capa-deadline {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 9px;
  background: linear-gradient(135deg,
    rgba(232, 243, 255, 0.5) 0%,
    rgba(230, 247, 238, 0.4) 100%);
  border: 1px solid rgba(0, 102, 204, 0.08);
  transition: all var(--dur-base) var(--ease-premium);
}
.capa-deadline-date {
  color: #0D1B4B;
  font-weight: 800 !important;
  font-size: 11px !important;
}
.capa-deadline-remaining {
  color: #64748B;
  font-size: 10px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.capa-deadline-remaining::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94A3B8;
  flex-shrink: 0;
}
.capa-deadline-remaining.urgent {
  color: #DC2626 !important;
  font-weight: 800 !important;
}
.capa-deadline-remaining.urgent::before {
  background: #DC2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
  animation: dpUrgentPulse 1.6s ease-in-out infinite;
}
@keyframes dpUrgentPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(220, 38, 38, 0.7); }
  50%      { transform: scale(1.4); box-shadow: 0 0 16px rgba(220, 38, 38, 1); }
}

/* Badges premium */
.badge {
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.badge:hover { transform: scale(1.05); }
.badge-blue {
  background: linear-gradient(135deg, rgba(0,102,204,0.14), rgba(0,102,204,0.08));
  color: var(--bpom-blue-dark);
  border: 1px solid rgba(0,102,204,0.16);
}
.badge-success {
  background: linear-gradient(135deg, rgba(22,163,74,0.14), rgba(22,163,74,0.08));
  color: #15803D;
  border: 1px solid rgba(22,163,74,0.18);
}

/* ============================================================
   SECTION 10: BUTTONS — MICRO-INTERACTIONS
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-premium);
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #005eb8 0%, #0f4c81 100%);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 12px -4px rgba(0, 94, 184, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0076e0 0%, #0059b8 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -6px rgba(0, 94, 184, 0.6);
}

.btn-success {
  background: linear-gradient(135deg, #005eb8 0%, #0f4c81 100%);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 12px -4px rgba(0, 94, 184, 0.5);
}
.btn-success:hover {
  background: linear-gradient(135deg, #0076e0 0%, #0059b8 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -6px rgba(0, 94, 184, 0.6);
} 

.btn-outline {
  border-width: 1.5px;
  background: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(232, 243, 255, 0.9);
  border-color: var(--bpom-blue);
  transform: translateY(-1px);
  box-shadow: var(--glow-blue);
}

/* ============================================================
   SECTION 11: BREADCRUMB & TITLES
   ============================================================ */
.breadcrumb {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: inline-flex;
  width: fit-content;
}
.breadcrumb i.fa-house {
  color: var(--bpom-green);
  font-size: 0.75rem !important;
}
.breadcrumb span:last-child {
  color: var(--bpom-green-dark);
  font-weight: 600;
}

/* ============================================================
   SECTION 12: ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes premiumFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0);   }
}

body.app-ready .breadcrumb          { animation: premiumFadeUp 0.55s var(--ease-premium) both; animation-delay: 0.05s; }
body.app-ready .greeting-banner     { animation: premiumFadeUp 0.6s  var(--ease-premium) both; animation-delay: 0.12s; }
body.app-ready .page-header         { animation: premiumFadeUp 0.6s  var(--ease-premium) both; animation-delay: 0.08s; }
body.app-ready .st-status-card:nth-child(1) { animation: premiumFadeUp 0.55s var(--ease-premium) both; animation-delay: 0.22s; }
body.app-ready .st-status-card:nth-child(2) { animation: premiumFadeUp 0.55s var(--ease-premium) both; animation-delay: 0.30s; }
body.app-ready .st-status-card:nth-child(3) { animation: premiumFadeUp 0.55s var(--ease-premium) both; animation-delay: 0.38s; }
body.app-ready .card                { animation: premiumFadeUp 0.6s  var(--ease-premium) both; animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   SECTION 13: PAGE LOADER
   ============================================================ */
#pageLoader {
  background: rgba(250, 251, 252, 0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.loader-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(226, 232, 240, 0.8);
  border-top-color: var(--bpom-green);
  border-right-color: var(--bpom-blue);
  box-shadow: 0 0 28px -6px rgba(0,153,68,0.4);
  animation: spin 0.75s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

/* ============================================================
   SECTION 14: CONFIRMATION CARD
   ============================================================ */
.confirm-card-overlay {
  background: rgba(10, 22, 40, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeOverlay 0.24s var(--ease-premium);
}
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

.confirm-card {
  border-radius: 20px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium-lg);
  animation: cardPop 0.36s var(--ease-spring);
}
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(0.88) translateY(12px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}
.confirm-card-actions .btn-primary {
  background: #005eb8 !important;
  background-image: none !important;
  border-color: #005eb8 !important;
  color: #FFFFFF !important;
}
.confirm-card-actions .btn-primary:hover {
  background: #004fa3 !important;
  background-image: none !important;
  border-color: #004fa3 !important;
}
.confirm-card-actions .btn-primary::before,
.confirm-card-actions .btn-primary::after {
  display: none !important;
}
/* ============================================================
  SECTION 15: SCROLLBAR PREMIUM
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0,153,68,0.35), rgba(0,102,204,0.35));
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0,153,68,0.6), rgba(0,102,204,0.6));
  background-clip: content-box;
}

/* ============================================================
   SECTION 16: FOOTER
   ============================================================ */
.main-footer {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226,232,240,0.7);
}
.footer-version {
  background: linear-gradient(135deg, rgba(0,153,68,0.14), rgba(0,102,204,0.10));
  border: 1px solid rgba(0,153,68,0.18);
  box-shadow: 0 1px 3px rgba(0,153,68,0.08);
}

/* ============================================================
   SECTION 17: ALERT BANNERS
   ============================================================ */
.alert-banner {
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--dur-base) var(--ease-premium);
  position: relative;
  overflow: hidden;
}
.alert-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.alert-banner.warning::before { background: linear-gradient(180deg, #FBBF24, #D97706); box-shadow: 0 0 16px rgba(217,119,6,0.5); }
.alert-banner.danger::before  { background: linear-gradient(180deg, #F87171, #DC2626); box-shadow: 0 0 16px rgba(220,38,38,0.5); }
.alert-banner:hover { transform: translateX(4px); }

/* ============================================================
   SECTION 18: PAGE HEADER — PREMIUM HERO (Data Pegawai)
   ============================================================ */
.page-header {
  position: relative;
  padding: 28px 32px !important;
  margin-bottom: 28px !important;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 100% at 0% 0%, rgba(0, 153, 68, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(0, 102, 204, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--shadow-premium-sm);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 20px;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #005eb8 0%, #3b82f6 50%, #0f4c81 100%);
  box-shadow: 0 0 16px rgba(0, 94, 184, 0.5);
  border-radius: 20px 0 0 20px;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(51, 187, 109, 0.15) 0%,
    rgba(51, 187, 109, 0.03) 50%,
    transparent 75%);
  filter: blur(20px);
  animation: dpOrbFloat 14s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin-bottom: 6px !important;
  background: linear-gradient(135deg, #0a2540 0%, #0f4c81 60%, #005eb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.page-subtitle {
  font-size: 0.84rem !important;
  color: #64748B !important;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-subtitle::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #33BB6D, #009944);
  box-shadow: 0 0 8px rgba(51, 187, 109, 0.8);
  flex-shrink: 0;
}

.page-actions .btn-primary {
  padding: 12px 22px !important;
  border-radius: 13px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  background: linear-gradient(135deg, #009944 0%, #007A36 55%, #0059B8 100%);
  background-size: 200% 200%;
  border: none !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -8px rgba(0, 153, 68, 0.55),
    0 4px 12px -4px rgba(0, 79, 163, 0.35);
  transition: all var(--dur-base) var(--ease-premium);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-actions .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00B84F 0%, #008C3E 55%, #0076E0 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-premium);
  z-index: -1;
}
.page-actions .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.32) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
  z-index: 1;
}
.page-actions .btn-primary:hover::before { opacity: 1; }
.page-actions .btn-primary:hover::after  { opacity: 1; }
.page-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 16px 40px -10px rgba(0, 153, 68, 0.75),
    0 8px 20px -6px rgba(0, 79, 163, 0.5);
}
.page-actions .btn-primary:active { transform: translateY(-1px) scale(0.99); }
.page-actions .btn-primary i {
  transition: transform var(--dur-base) var(--ease-spring);
}
.page-actions .btn-primary:hover i {
  transform: rotate(90deg) scale(1.15);
}

/* ============================================================
   SECTION 19: TABLE CONTROLS BAR (Data Pegawai)
   ============================================================ */
.table-controls {
  padding: 16px 28px 8px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem !important;
  color: #475569 !important;
  font-weight: 600;
}
.show-entries select {
  padding: 7px 12px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #0D1B4B !important;
  background: rgba(255, 255, 255, 0.95) !important;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-premium);
  box-shadow: 0 1px 2px rgba(13, 27, 75, 0.03);
}
.show-entries select:hover {
  border-color: rgba(0, 153, 68, 0.4) !important;
  background: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px -4px rgba(0, 153, 68, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.show-entries select:focus {
  outline: none !important;
  border-color: #009944 !important;
  box-shadow: 0 0 0 3px rgba(0, 153, 68, 0.14) !important;
}

.search-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem !important;
  color: #475569 !important;
  font-weight: 600;
}
.search-right input {
  padding: 9px 14px 9px 34px !important;
  width: 260px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 11px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #0D1B4B !important;
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all var(--dur-base) var(--ease-premium);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 14px;
}
.search-right input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}
.search-right input:hover {
  border-color: rgba(0, 153, 68, 0.35) !important;
  background-color: #FFFFFF !important;
}
.search-right input:focus {
  outline: none !important;
  border-color: #009944 !important;
  background-color: #FFFFFF !important;
  box-shadow:
    0 0 0 3px rgba(0, 153, 68, 0.14),
    0 8px 20px -8px rgba(0, 153, 68, 0.25) !important;
  transform: translateY(-1px);
  width: 280px !important;
}

/* ============================================================
   SECTION 20: ACTION BUTTONS (Table)
   ============================================================ */
.action-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.action-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.75rem !important;
  transition: all var(--dur-base) var(--ease-spring) !important;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}
.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.action-btn:hover::before { opacity: 1; }

.action-btn.edit {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.08)) !important;
  color: #D97706 !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.08);
}
.action-btn.edit:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 20px -6px rgba(217, 119, 6, 0.6);
}

.action-btn.delete {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(185, 28, 28, 0.08)) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}
.action-btn.delete:hover {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 20px -6px rgba(220, 38, 38, 0.6);
}

.action-btn.view,
.action-btn.print {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.14), rgba(56, 189, 248, 0.08)) !important;
  color: #0066CC !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.08);
}
.action-btn.view:hover,
.action-btn.print:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #0066CC 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 20px -6px rgba(0, 102, 204, 0.6);
}

/* ============================================================
   SECTION 21: PAGINATION PREMIUM
   ============================================================ */
.card .card-footer {
  padding: 16px 28px !important;
  background: linear-gradient(0deg,
    rgba(248, 250, 252, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-info {
  font-size: 0.75rem !important;
  color: #64748B !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  transition: all var(--dur-base) var(--ease-premium);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(13, 27, 75, 0.03);
}
.page-btn:hover:not(:disabled) {
  border-color: rgba(0, 153, 68, 0.4) !important;
  background: #FFFFFF;
  color: #009944 !important;
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px -4px rgba(0, 153, 68, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.page-btn.active {
  background: linear-gradient(135deg, #009944 0%, #007A36 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 16px -4px rgba(0, 153, 68, 0.55) !important;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   SECTION 22: EDIT MODAL — PREMIUM
   ============================================================ */
#editPegawaiModal.modal-overlay {
  background: rgba(10, 22, 40, 0.48);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
#editPegawaiModal .modal {
  max-width: 780px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 8px rgba(13, 27, 75, 0.06),
    0 24px 56px -12px rgba(13, 27, 75, 0.22);
  overflow: hidden;
}
#editPegawaiModal .modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009944 0%, #33BB6D 40%, #0066CC 100%);
  background-size: 200% 100%;
  animation: dpModalShimmer 3s linear infinite;
  z-index: 2;
}
@keyframes dpModalShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#editPegawaiModal .modal-header {
  padding: 24px 30px !important;
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  position: relative;
}
#editPegawaiModal .modal-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
#editPegawaiModal .modal-title i {
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0066CC 0%, #004FA3 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 16px -6px rgba(0, 102, 204, 0.6) !important;
  filter: none !important;
}
#editPegawaiModal .modal-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  color: #94A3B8 !important;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  transition: all var(--dur-base) var(--ease-premium);
}
#editPegawaiModal .modal-close:hover {
  background: linear-gradient(135deg, #FEE2E2, #FECACA) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.3);
}

#editPegawaiModal .modal-body {
  padding: 30px !important;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}
#editPegawaiModal .modal-body::-webkit-scrollbar { width: 6px; }
#editPegawaiModal .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 153, 68, 0.35), rgba(0, 102, 204, 0.35));
  border-radius: 9999px;
}

#editPegawaiModal .form-row { gap: 18px 20px; }

#editPegawaiModal .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
#editPegawaiModal .form-field label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-base) var(--ease-premium);
}
#editPegawaiModal .form-field:focus-within label { color: #009944 !important; }
#editPegawaiModal .form-field .req {
  color: #DC2626 !important;
  font-weight: 900;
  font-size: 0.85rem;
  animation: dpReqPulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes dpReqPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.8; }
}

#editPegawaiModal .form-field input {
  padding: 11px 14px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 11px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #0F172A !important;
  background: rgba(248, 250, 252, 0.8) !important;
  transition: all var(--dur-base) var(--ease-premium);
  box-shadow: 0 1px 2px rgba(13, 27, 75, 0.02);
}
#editPegawaiModal .form-field input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}
#editPegawaiModal .form-field input:hover {
  border-color: rgba(0, 153, 68, 0.3) !important;
  background: #FFFFFF !important;
}
#editPegawaiModal .form-field input:focus {
  outline: none !important;
  border-color: #009944 !important;
  background: #FFFFFF !important;
  box-shadow:
    0 0 0 3px rgba(0, 153, 68, 0.14),
    0 8px 20px -8px rgba(0, 153, 68, 0.25) !important;
  transform: translateY(-1px);
}

#editPegawaiModal .modal-footer {
  padding: 20px 30px !important;
  background: linear-gradient(0deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Shared premium frame and entrance animation for action modals. */
.modal-overlay.premium-modal {
  background: rgba(10, 22, 40, 0.48);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.modal-overlay.premium-modal .modal {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 8px rgba(13, 27, 75, 0.06),
    0 24px 56px -12px rgba(13, 27, 75, 0.22);
  overflow: hidden;
}
.modal-overlay.premium-modal .modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009944 0%, #33BB6D 40%, #0066CC 100%);
  background-size: 200% 100%;
  animation: dpModalShimmer 3s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.modal-overlay.premium-modal .modal-header {
  padding: 24px 30px !important;
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  position: relative;
}
.modal-overlay.premium-modal .modal-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.modal-overlay.premium-modal .modal-title i {
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0066CC 0%, #004FA3 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 16px -6px rgba(0, 102, 204, 0.6) !important;
  filter: none !important;
}
.modal-overlay.premium-modal .modal-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  color: #94A3B8 !important;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  transition: all var(--dur-base) var(--ease-premium);
}
.modal-overlay.premium-modal .modal-close:hover {
  background: linear-gradient(135deg, #FEE2E2, #FECACA) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.3);
}
.modal-overlay.premium-modal .modal-body {
  padding: 30px !important;
}
.modal-overlay.premium-modal .modal-footer {
  padding: 20px 30px !important;
  background: linear-gradient(0deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
  gap: 12px;
}

@media (max-width: 640px) {
  .modal-overlay.premium-modal .modal-header,
  .modal-overlay.premium-modal .modal-body {
    padding: 20px !important;
  }
  .modal-overlay.premium-modal .modal-footer {
    padding: 16px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay.premium-modal .modal::before {
    animation: none;
  }
}

/* ============================================================
   SECTION 23: RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 900px) {
  .greeting-banner {
    padding: 26px 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px;
    min-height: auto;
    border-radius: 20px !important;
  }
  .greeting-text h2 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .greeting-text p {
    font-size: 0.8rem !important;
  }
  .greeting-actions {
    width: 100%;
  }
  .greeting-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .greeting-banner::after {
    width: 260px;
    height: 260px;
    right: -80px;
    top: -80px;
  }
}

@media (max-width: 768px) {
  .page-content { padding: 18px; }
  .greeting-banner { padding: 22px 22px; border-radius: 16px; }
  .greeting-text h2 { font-size: 1.35rem !important; }
  .st-status-num { font-size: 2.2rem !important; }
  .navbar { height: 60px; }
  .main-content { margin-top: 60px; }
  .sidebar { top: 60px; height: calc(100vh - 60px); }
  .page-header { padding: 22px 22px !important; }
  .page-title { font-size: 22px !important; }
  .search-right input { width: 100% !important; }
}

@media (max-width: 640px) {
  .greeting-banner {
    padding: 22px 20px !important;
    border-radius: 18px !important;
  }
  .greeting-text h2 { font-size: 19px !important; }
  .card-header {
    padding: 18px 20px !important;
  }
  .data-table thead th,
  .data-table td {
    padding: 12px 12px !important;
  }
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .page-actions { width: 100%; }
  .page-actions .btn-primary { width: 100%; justify-content: center; }
}

/* ============================================================
   SECTION 24: LOGIN PAGE (index.php)
   ============================================================ */
.login-body {
  min-height: 100vh;
  background: #060B1A;
  overflow-x: hidden;
  position: relative;
}

.login-body .login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-body .login-left {
  flex: 1.15;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 153, 68, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 90% 90%, rgba(0, 102, 204, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(13, 27, 75, 0.65) 0%, transparent 70%),
    linear-gradient(145deg, #0A1530 0%, #0D1B4B 45%, #061029 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login-body .login-right {
  flex: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 10%, rgba(0, 153, 68, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 80% 90%, rgba(0, 102, 204, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F7FB 100%);
  position: relative;
  overflow: hidden;
}

.login-body .login-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  padding: 40px 36px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px -8px rgba(13, 27, 75, 0.08),
    0 32px 80px -20px rgba(13, 27, 75, 0.14);
  animation: cardEnter 0.8s var(--ease-premium) 0.15s both;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.login-body .btn-login {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, #009944 0%, #007A36 50%, #0059B8 100%);
  color: #FFFFFF;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -8px rgba(0, 153, 68, 0.55),
    0 4px 12px -4px rgba(0, 79, 163, 0.35);
  transition: all var(--dur-base) var(--ease-premium);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  cursor: pointer;
}
.login-body .btn-login:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 16px 40px -10px rgba(0, 153, 68, 0.75),
    0 8px 20px -6px rgba(0, 79, 163, 0.5);
}

@media (max-width: 900px) {
  .login-body .login-left { display: none; }
  .login-body .login-right {
    flex: 1;
    background:
      radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 153, 68, 0.10) 0%, transparent 60%),
      radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 102, 204, 0.10) 0%, transparent 60%),
      linear-gradient(180deg, #FBFCFE 0%, #EEF2F8 100%);
  }
}

@media (max-width: 480px) {
  .login-body .login-right { padding: 20px 14px; }
  .login-body .login-card { padding: 30px 22px 24px; border-radius: 20px; }
}

/* ============================================================
   SECTION 25: ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--bpom-green);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible,
.sidebar-item:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--bpom-green-light);
  outline-offset: 3px;
}

/* ============================================================
   SECTION 26: LPJ PAGE — Premium Redesign
   Hero Stats · Glass Cards · Financial Table · Elegant Modal
   ============================================================ */

:root {
  --lpj-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lpj-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --lpj-glass-bg: rgba(255, 255, 255, 0.78);
  --lpj-glass-strong: rgba(255, 255, 255, 0.92);
  --lpj-glass-border: rgba(255, 255, 255, 0.72);

  --lpj-success: #059669;
  --lpj-success-light: #34D399;
  --lpj-warning: #D97706;
  --lpj-warning-light: #FBBF24;
  --lpj-danger: #DC2626;
  --lpj-danger-light: #F87171;
  --lpj-info: #0284C7;
  --lpj-info-light: #38BDF8;
  --lpj-purple: #7C3AED;
  --lpj-purple-light: #A78BFA;
}

/* ============================================================
   26.1 PAGE HEADER — PREMIUM HERO (LPJ)
   ============================================================ */
body.lpj-page .page-header,
.page-content > .page-header:has(.page-title) {
  position: relative;
  padding: 28px 32px !important;
  margin-bottom: 28px !important;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(0, 153, 68, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 90% at 100% 100%, rgba(0, 102, 204, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(13, 27, 75, 0.03),
    0 12px 32px -8px rgba(13, 27, 75, 0.08);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 20px;
  overflow: hidden;
  isolation: isolate;
}
body.lpj-page .page-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #009944 0%, #33BB6D 35%, #0066CC 70%, #7C3AED 100%);
  box-shadow: 0 0 20px rgba(0, 153, 68, 0.55);
  border-radius: 22px 0 0 22px;
}
body.lpj-page .page-header::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124, 58, 237, 0.18) 0%,
    rgba(51, 187, 109, 0.10) 40%,
    transparent 75%);
  filter: blur(24px);
  animation: lpjOrbFloat 16s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes lpjOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50%      { transform: translate(-30px, 30px) scale(1.12); opacity: 1; }
}

body.lpj-page .page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.15 !important;
  margin-bottom: 6px !important;
  background: linear-gradient(135deg, #0A1628 0%, #1A2B6D 55%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.lpj-page .page-subtitle {
  font-size: 0.84rem !important;
  color: #64748B !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.lpj-page .page-subtitle::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A78BFA, #7C3AED);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.9);
  flex-shrink: 0;
}

/* ============================================================
   26.2 STAT CARDS ROW — LPJ FINANCIAL STATS
   ============================================================ */
body.lpj-page .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

body.lpj-page .lpj-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

body.lpj-page .stat-card {
  background: var(--lpj-glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--lpj-glass-border);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 3px rgba(13, 27, 75, 0.04),
    0 8px 24px -8px rgba(13, 27, 75, 0.08);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 420ms var(--lpj-ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Top shimmer bar */
body.lpj-page .stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg,
    var(--stat-from, #009944) 0%,
    var(--stat-to, #33BB6D) 50%,
    var(--stat-from, #009944) 100%);
  background-size: 200% 100%;
  animation: lpjStatShimmer 3.2s linear infinite;
  box-shadow: 0 2px 14px var(--stat-glow, rgba(0, 153, 68, 0.5));
}
@keyframes lpjStatShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Soft orb */
body.lpj-page .stat-card::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--stat-glow, rgba(0, 153, 68, 0.4)) 0%,
    transparent 70%);
  opacity: 0.4;
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 420ms var(--lpj-ease);
}

body.lpj-page .stat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 8px rgba(13, 27, 75, 0.06),
    0 24px 48px -12px rgba(13, 27, 75, 0.14);
}
body.lpj-page .stat-card:hover::after {
  opacity: 0.8;
  transform: scale(1.15);
}

/* Color variants */
body.lpj-page .stat-card.blue   { --stat-from: #0066CC; --stat-to: #38BDF8; --stat-glow: rgba(0, 102, 204, 0.5); }
body.lpj-page .stat-card.green  { --stat-from: #009944; --stat-to: #34D399; --stat-glow: rgba(0, 153, 68, 0.5); }
body.lpj-page .stat-card.navy   { --stat-from: #0D1B4B; --stat-to: #7C3AED; --stat-glow: rgba(124, 58, 237, 0.5); }
body.lpj-page .stat-card.warning{ --stat-from: #D97706; --stat-to: #FBBF24; --stat-glow: rgba(217, 119, 6, 0.5); }
body.lpj-page .stat-card.danger { --stat-from: #DC2626; --stat-to: #F87171; --stat-glow: rgba(220, 38, 38, 0.5); }

/* Icon */
body.lpj-page .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  transition: transform 380ms var(--lpj-ease-spring);
}
body.lpj-page .stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-4deg);
}
body.lpj-page .stat-icon.blue {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.16), rgba(56, 189, 248, 0.10));
  color: #0066CC;
  box-shadow: 0 6px 16px -6px rgba(0, 102, 204, 0.35);
}
body.lpj-page .stat-icon.green {
  background: linear-gradient(135deg, rgba(0, 153, 68, 0.16), rgba(52, 211, 153, 0.10));
  color: #009944;
  box-shadow: 0 6px 16px -6px rgba(0, 153, 68, 0.35);
}
body.lpj-page .stat-icon.navy {
  background: linear-gradient(135deg, rgba(13, 27, 75, 0.16), rgba(124, 58, 237, 0.10));
  color: #0D1B4B;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.35);
}
body.lpj-page .stat-icon.warning {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(251, 191, 36, 0.10));
  color: #D97706;
  box-shadow: 0 6px 16px -6px rgba(217, 119, 6, 0.35);
}
body.lpj-page .stat-icon.danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(248, 113, 113, 0.10));
  color: #DC2626;
  box-shadow: 0 6px 16px -6px rgba(220, 38, 38, 0.35);
}

body.lpj-page .stat-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}
body.lpj-page .stat-label {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B !important;
  margin-bottom: 8px;
}
body.lpj-page .stat-value {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  transition: transform 320ms var(--lpj-ease-spring);
}
body.lpj-page .stat-card:hover .stat-value {
  transform: translateX(3px);
}
body.lpj-page .stat-delta {
  font-size: 0.72rem !important;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
body.lpj-page .stat-delta.up {
  color: #059669;
}
body.lpj-page .stat-delta.up::before {
  content: '↑';
  font-weight: 900;
  color: #059669;
}
body.lpj-page .stat-delta.down {
  color: #DC2626;
}
body.lpj-page .stat-delta.down::before {
  content: '↓';
  font-weight: 900;
  color: #DC2626;
}

/* Currency amount formatting */
body.lpj-page .stat-value.currency {
  font-size: 1.55rem !important;
  letter-spacing: -0.02em;
}
/* ============================================================
   26.3 MAIN CARD & TABLE
   ============================================================ */
body.lpj-page .card {
  background: var(--lpj-glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--lpj-glass-border);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 3px rgba(13, 27, 75, 0.04),
    0 12px 32px -8px rgba(13, 27, 75, 0.08);
  overflow: hidden;
  transition: box-shadow 420ms var(--lpj-ease);
  position: relative;
}
body.lpj-page .card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
body.lpj-page .card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 8px rgba(13, 27, 75, 0.06),
    0 20px 44px -10px rgba(13, 27, 75, 0.12);
}

body.lpj-page .card-header {
  padding: 22px 28px !important;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.15) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 12px;
}
body.lpj-page .card-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
body.lpj-page .card-title i {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #7C3AED 0%, #0066CC 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 16px -6px rgba(124, 58, 237, 0.6);
  filter: none !important;
  padding: 0 !important;
}

/* ============================================================
   26.4 TABLE — FINANCIAL PREMIUM
   ============================================================ */
body.lpj-page .table-wrap {
  overflow-x: auto;
  padding: 4px 0 0;
}

body.lpj-page .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
}

body.lpj-page .data-table thead tr {
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(241, 245, 249, 0.6) 100%);
}
body.lpj-page .data-table thead th {
  padding: 15px 16px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: #64748B !important;
  border-bottom: 2px solid rgba(226, 232, 240, 0.9) !important;
  text-align: center !important;
  white-space: nowrap;
  position: relative;
}
body.lpj-page .data-table thead th::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #7C3AED, #0066CC);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 420ms var(--lpj-ease);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}
body.lpj-page .data-table thead th:hover::after { width: 60%; }

body.lpj-page .data-table tbody tr {
  transition: all 180ms var(--lpj-ease);
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  position: relative;
}
body.lpj-page .data-table tbody tr:last-child { border-bottom: none; }
body.lpj-page .data-table tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(0, 102, 204, 0.035) 50%,
    transparent 100%);
}
body.lpj-page .data-table tbody tr:hover td:first-child {
  box-shadow: inset 4px 0 0 #7C3AED;
}

body.lpj-page .data-table td {
  padding: 14px 16px !important;
  font-size: 10px !important;
  color: #334155 !important;
  vertical-align: middle !important;
  text-align: center !important;
}

/* Amount columns — auto-detect numeric */
body.lpj-page .data-table td.amount,
body.lpj-page .data-table td[data-type="amount"] {
  text-align: right !important;
  padding-right: 20px !important;
  font-family: 'Inter', monospace;
  font-weight: 700;
  color: #0D1B4B !important;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* Status badges */
body.lpj-page .badge {
  padding: 5px 12px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  border-radius: 9999px;
  transition: transform 200ms var(--lpj-ease-spring);
  box-shadow: 0 1px 3px rgba(13, 27, 75, 0.06);
}
body.lpj-page .data-table tbody tr:hover .badge {
  transform: scale(1.06);
}

body.lpj-page .badge-success,
body.lpj-page .badge-diverifikasi {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(52, 211, 153, 0.08)) !important;
  color: #047857 !important;
  border: 1px solid rgba(5, 150, 105, 0.2);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.12);
}
body.lpj-page .badge-warning,
body.lpj-page .badge-menunggu {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(251, 191, 36, 0.08)) !important;
  color: #B45309 !important;
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.12);
}
body.lpj-page .badge-danger,
body.lpj-page .badge-ditolak {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(248, 113, 113, 0.08)) !important;
  color: #B91C1C !important;
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}
body.lpj-page .badge-blue,
body.lpj-page .badge-diajukan {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(56, 189, 248, 0.08)) !important;
  color: #004FA3 !important;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

/* ============================================================
   26.5 TABLE CONTROLS
   ============================================================ */
body.lpj-page .table-controls,
body.lpj-page .card-header + .table-controls {
  padding: 16px 28px 8px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

body.lpj-page .show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem !important;
  color: #475569 !important;
  font-weight: 600;
}
body.lpj-page .show-entries select {
  padding: 7px 12px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #0D1B4B !important;
  background: rgba(255, 255, 255, 0.95) !important;
  cursor: pointer;
  transition: all 260ms var(--lpj-ease);
}
body.lpj-page .show-entries select:hover {
  border-color: rgba(124, 58, 237, 0.4) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.2);
}
body.lpj-page .show-entries select:focus {
  outline: none !important;
  border-color: #7C3AED !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

body.lpj-page .search-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem !important;
  color: #475569 !important;
  font-weight: 600;
}
body.lpj-page .search-right input {
  padding: 9px 14px 9px 34px !important;
  width: 260px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 11px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #0D1B4B !important;
  background: rgba(255, 255, 255, 0.95) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 14px !important;
  transition: all 260ms var(--lpj-ease);
}
body.lpj-page .search-right input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}
body.lpj-page .search-right input:hover {
  border-color: rgba(124, 58, 237, 0.35) !important;
  background-color: #FFFFFF !important;
}
body.lpj-page .search-right input:focus {
  outline: none !important;
  border-color: #7C3AED !important;
  background-color: #FFFFFF !important;
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.14),
    0 8px 20px -8px rgba(124, 58, 237, 0.25) !important;
  transform: translateY(-1px);
  width: 280px !important;
}

/* ============================================================
   26.6 ACTION BUTTONS
   ============================================================ */
body.lpj-page .action-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
body.lpj-page .action-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.75rem !important;
  transition: all 280ms var(--lpj-ease-spring) !important;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}
body.lpj-page .action-btn.view {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(167, 139, 250, 0.08)) !important;
  color: #7C3AED !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
}
body.lpj-page .action-btn.view:hover {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.6);
}
body.lpj-page .action-btn.edit {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.08)) !important;
  color: #D97706 !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
}
body.lpj-page .action-btn.edit:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 20px -6px rgba(217, 119, 6, 0.6);
}
body.lpj-page .action-btn.print,
body.lpj-page .action-btn.download {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.14), rgba(56, 189, 248, 0.08)) !important;
  color: #0066CC !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
}
body.lpj-page .action-btn.print:hover,
body.lpj-page .action-btn.download:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #0066CC 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 20px -6px rgba(0, 102, 204, 0.6);
}
body.lpj-page .action-btn.delete {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(185, 28, 28, 0.08)) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
}
body.lpj-page .action-btn.delete:hover {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.6);
}

/* ============================================================
   26.7 CARD FOOTER & PAGINATION
   ============================================================ */
body.lpj-page .card-footer {
  padding: 16px 28px !important;
  background: linear-gradient(0deg,
    rgba(248, 250, 252, 0.65) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
body.lpj-page .table-info {
  font-size: 0.75rem !important;
  color: #64748B !important;
  font-weight: 600;
}
body.lpj-page .pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.lpj-page .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  transition: all 280ms var(--lpj-ease);
  cursor: pointer;
}
body.lpj-page .page-btn:hover:not(:disabled) {
  border-color: rgba(124, 58, 237, 0.4) !important;
  background: #FFFFFF;
  color: #7C3AED !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.25);
}
body.lpj-page .page-btn.active {
  background: linear-gradient(135deg, #7C3AED 0%, #0066CC 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 16px -4px rgba(124, 58, 237, 0.55) !important;
}
body.lpj-page .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   26.8 MODAL — PREMIUM FINANCIAL
   ============================================================ */
body.lpj-page .modal-overlay {
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
body.lpj-page .modal {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 8px rgba(13, 27, 75, 0.06),
    0 24px 56px -12px rgba(13, 27, 75, 0.22);
  overflow: hidden;
  position: relative;
}
body.lpj-page .modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7C3AED 0%, #0066CC 50%, #009944 100%);
  background-size: 200% 100%;
  animation: dpModalShimmer 3s linear infinite;
  z-index: 2;
}
body.lpj-page .modal-header {
  padding: 24px 30px !important;
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}
body.lpj-page .modal-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
body.lpj-page .modal-title i {
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #7C3AED 0%, #0066CC 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 16px -6px rgba(124, 58, 237, 0.6) !important;
  filter: none !important;
}

body.lpj-page .modal-body { padding: 30px !important; }
body.lpj-page .modal-footer {
  padding: 20px 30px !important;
  background: linear-gradient(0deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.lpj-page .form-field label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
body.lpj-page .form-field input,
body.lpj-page .form-field select,
body.lpj-page .form-field textarea {
  padding: 11px 14px !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 11px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #0F172A !important;
  background: rgba(248, 250, 252, 0.8) !important;
  transition: all 260ms var(--lpj-ease);
}
body.lpj-page .form-field input:focus,
body.lpj-page .form-field select:focus,
body.lpj-page .form-field textarea:focus {
  outline: none !important;
  border-color: #7C3AED !important;
  background: #FFFFFF !important;
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.14),
    0 8px 20px -8px rgba(124, 58, 237, 0.25) !important;
  transform: translateY(-1px);
}

/* ============================================================
   26.9 EMPTY STATE
   ============================================================ */
body.lpj-page .empty-state {
  text-align: center;
  padding: 60px 24px;
}
body.lpj-page .empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #A78BFA 0%, #0066CC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.35));
}
body.lpj-page .empty-state h4 {
  font-size: 1.05rem;
  color: #475569;
  font-weight: 700;
  margin-bottom: 8px;
}
body.lpj-page .empty-state p {
  font-size: 0.82rem;
  color: #94A3B8;
}

/* ============================================================
   26.10 ENTRANCE ANIMATIONS (LPJ)
   ============================================================ */
@keyframes lpjFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
body.lpj-page.app-ready .page-header { animation: lpjFadeUp 0.6s var(--lpj-ease) both; animation-delay: 0.08s; }
body.lpj-page.app-ready .stat-card:nth-child(1) { animation: lpjFadeUp 0.55s var(--lpj-ease) both; animation-delay: 0.18s; }
body.lpj-page.app-ready .stat-card:nth-child(2) { animation: lpjFadeUp 0.55s var(--lpj-ease) both; animation-delay: 0.24s; }
body.lpj-page.app-ready .stat-card:nth-child(3) { animation: lpjFadeUp 0.55s var(--lpj-ease) both; animation-delay: 0.30s; }
body.lpj-page.app-ready .stat-card:nth-child(4) { animation: lpjFadeUp 0.55s var(--lpj-ease) both; animation-delay: 0.36s; }
body.lpj-page.app-ready .stat-card:nth-child(5) { animation: lpjFadeUp 0.55s var(--lpj-ease) both; animation-delay: 0.42s; }
body.lpj-page.app-ready .card { animation: lpjFadeUp 0.65s var(--lpj-ease) both; animation-delay: 0.48s; }

/* Table row stagger */
@keyframes lpjRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.lpj-page .data-table tbody tr:not(:has(td[colspan])) {
  animation: lpjRowIn 0.4s var(--lpj-ease) both;
}
body.lpj-page .data-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
body.lpj-page .data-table tbody tr:nth-child(2) { animation-delay: 0.06s; }
body.lpj-page .data-table tbody tr:nth-child(3) { animation-delay: 0.10s; }
body.lpj-page .data-table tbody tr:nth-child(4) { animation-delay: 0.14s; }
body.lpj-page .data-table tbody tr:nth-child(5) { animation-delay: 0.18s; }
body.lpj-page .data-table tbody tr:nth-child(6) { animation-delay: 0.22s; }
body.lpj-page .data-table tbody tr:nth-child(7) { animation-delay: 0.26s; }
body.lpj-page .data-table tbody tr:nth-child(8) { animation-delay: 0.30s; }

/* ============================================================
   26.11 RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body.lpj-page .page-header {
    padding: 22px 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }
  body.lpj-page .stat-value.currency { font-size: 1.35rem !important; }
  body.lpj-page .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.lpj-page .lpj-summary-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  body.lpj-page .page-header {
    padding: 20px 20px !important;
    border-radius: 18px;
  }
  body.lpj-page .page-header::before { width: 4px; }
  body.lpj-page .stat-grid {
    grid-template-columns: 1fr;
  }
  body.lpj-page .lpj-summary-grid {
    grid-template-columns: 1fr;
  }
  body.lpj-page .stat-card { padding: 20px 18px; }
  body.lpj-page .stat-icon { width: 48px; height: 48px; }
  body.lpj-page .stat-value { font-size: 1.55rem !important; }
  body.lpj-page .stat-value.currency { font-size: 1.2rem !important; }
  body.lpj-page .search-right input {
    width: 100% !important;
  }
  body.lpj-page .card-header {
    padding: 18px 20px !important;
  }
  body.lpj-page .data-table thead th,
  body.lpj-page .data-table td {
    padding: 12px 12px !important;
  }
}

/* ============================================================
   26.12 PRINT STYLES (LPJ sering dicetak)
   ============================================================ */
@media print {
  body.lpj-page .sidebar,
  body.lpj-page .navbar,
  body.lpj-page .main-footer,
  body.lpj-page #pageLoader,
  body.lpj-page .action-group,
  body.lpj-page .table-controls,
  body.lpj-page .pagination,
  body.lpj-page .page-actions {
    display: none !important;
  }
  body.lpj-page .main-content {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  body.lpj-page .card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    backdrop-filter: none !important;
  }
  body.lpj-page .stat-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    backdrop-filter: none !important;
    background: #FFFFFF !important;
  }
  body.lpj-page .stat-card::before { display: none !important; }
  body.lpj-page .data-table thead th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
  }
}

/* ============================================================
   MOBILE APP LAYOUT
   ============================================================ */
@media (max-width: 768px) {
  body.app-body {
    min-width: 320px;
    overflow-x: hidden;
  }

  .app-body .navbar {
    height: 60px !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
  }

  .app-body .sidebar-toggle {
    width: 56px !important;
    height: 60px !important;
  }

  .app-body .main-content {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-top: 60px !important;
    overflow-x: hidden;
  }

  .app-body .page-content {
    width: 100%;
    min-width: 0;
    padding: 14px 12px 24px !important;
  }

  .app-body .page-content > * {
    min-width: 0;
    max-width: 100%;
  }

  .app-body .page-header {
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .app-body .page-content .page-header.tl-hero {
    gap: 10px !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .app-body .page-content .page-header.tl-hero > .page-title-wrap,
  .app-body .page-content .page-header.tl-hero > .page-actions {
    width: 100% !important;
  }

  .app-body .page-content .page-header.tl-hero > .page-actions {
    margin-left: 0 !important;
  }

  .app-body .page-header .breadcrumb {
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .app-body .page-title {
    font-size: clamp(20px, 6vw, 24px) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .app-body .page-subtitle {
    line-height: 1.45;
  }

  .app-body .page-actions {
    min-width: 0;
  }

  .app-body .card {
    min-width: 0;
    margin-bottom: 16px;
    border-radius: 16px !important;
  }

  .app-body .card-header {
    gap: 10px !important;
    padding: 14px 16px !important;
  }

  .app-body .card-title {
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.35;
  }

  .app-body .table-controls,
  .app-body .card-header + .table-controls {
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px !important;
  }

  .app-body .table-controls .show-entries,
  .app-body .table-controls .search-right {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .app-body .table-controls .search-right input {
    width: auto !important;
    min-width: 0;
    flex: 1;
  }

  .app-body .table-wrap,
  .app-body .sarana-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #eaf0f6;
  }

  .app-body .table-wrap::-webkit-scrollbar,
  .app-body .sarana-table-wrap::-webkit-scrollbar {
    height: 6px;
  }

  .app-body .table-wrap::-webkit-scrollbar-thumb,
  .app-body .sarana-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94a3b8;
  }

  .app-body .data-table thead th,
  .app-body .data-table tbody td {
    padding: 10px 12px !important;
  }

  .app-body .card-footer {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px !important;
  }

  .app-body .pagination {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .app-body .action-btn,
  .app-body .page-btn,
  .app-body .modal-close {
    min-width: 40px;
    min-height: 40px;
  }

  .app-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .app-body select,
  .app-body textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .app-body .modal-overlay {
    align-items: flex-end;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }

  .app-body .modal-overlay .modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    border-radius: 18px 18px 12px 12px;
  }

  .app-body .main-footer {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    text-align: left;
  }

  .app-body .footer-left {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
    font-size: 0.65rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .app-body .footer-right {
    flex: 0 0 auto;
    gap: 6px;
  }

  .app-body .footer-version {
    padding: 3px 7px;
    font-size: 0.62rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .app-body .navbar-right {
    gap: 4px;
  }

  .app-body .page-content {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .app-body .page-header {
    padding: 16px !important;
  }

  .app-body .page-header .page-actions,
  .app-body .page-header .page-actions .btn {
    width: 100%;
  }

  .app-body .card-header {
    padding: 12px 14px !important;
  }

  .app-body .table-controls {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .app-body .modal-overlay {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 640px) {
  .app-body .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .app-body .detail-grid > div:not(.detail-item) {
    display: grid;
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 4px 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    line-height: 1.45;
  }

  .app-body .detail-grid > div:not(.detail-item):last-child {
    border-bottom: 0;
  }

  .app-body .detail-grid > div:not(.detail-item) > br {
    display: none;
  }

  .app-body .detail-grid > div:not(.detail-item) > span {
    grid-column: 1;
    min-width: 0;
    font-size: 0.65rem !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .app-body .detail-grid > div:not(.detail-item) > strong {
    grid-column: 2;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .app-body .detail-grid > .detail-item {
    display: grid;
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 4px 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .app-body .detail-grid > .detail-item:last-child {
    border-bottom: 0;
  }

  .app-body .detail-grid > .detail-item.full {
    grid-column: auto;
  }

  .app-body .detail-grid .detail-key {
    min-width: 0;
    font-size: 0.65rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .app-body .detail-grid .detail-val {
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}