/**
 * ANTI-AI HUMAN-CRAFTED DESIGN SYSTEM
 * Finance P3SRS Apartemen Bogor Valley
 * Palette: Slate & Zinc | Zero Emoji | Tabular-Nums | Soft Diffuse Shadows
 */

/* Google Fonts dimuat via <link> di header.php untuk mencegah CSS blocking */

:root {
  /* Slate / Zinc Neutral Scale */
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-muted: #E2E8F0;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-color: #E2E8F0;
  --border-focus: #94A3B8;

  /* Functional Accents (Non-Neon, Human-Tuned) */
  --accent-primary: #1E293B; /* Slate 800 */
  --accent-primary-hover: #0F172A;
  --accent-blue: #2563EB;
  --accent-blue-soft: #EFF6FF;
  
  --accent-emerald: #059669;
  --accent-emerald-soft: #ECFDF5;
  
  --accent-amber: #D97706;
  --accent-amber-soft: #FFFBEB;
  
  --accent-rose: #E11D48;
  --accent-rose-soft: #FFF1F2;

  /* Typography & Layout Metrics */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --sidebar-width: 250px;
  --navbar-height: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular Nums for Financial Data Precision */
.tabular-nums, .currency, .code-num, td.num, th.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.code-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* App Layout Grid */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Desktop Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: #0F172A;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1020;
  transition: transform 0.2s ease, width 0.2s ease;
}

.sidebar-header {
  height: var(--navbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  padding: 10px 12px 4px 12px;
  letter-spacing: 0.06em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.sidebar-link.active {
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  font-weight: 600;
}

.sidebar-link.active svg {
  stroke: #38BDF8;
}

.sidebar-link svg {
  stroke: #94A3B8;
  transition: stroke 0.15s ease;
}

.sidebar-link:hover svg {
  stroke: #FFFFFF;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B132B;
}

.app-sidebar .user-card-clean {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.app-sidebar .user-card-clean [title] {
  color: #FFFFFF !important;
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
}

/* Main Content Wrapper */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navbar */
.app-navbar {
  height: var(--navbar-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Page Container */
.app-content {
  padding: 24px;
  flex: 1;
}

/* Dashboard Top Toolbar */
.dash-toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
}

.dash-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Breadcrumb & Header */
.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* KPI Cards: Grid 4 Kolom Sejajar */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.1;
}

.kpi-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Pill Badges (Soft Palette) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-pill.success {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.badge-pill.warning {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
}

.badge-pill.danger {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.badge-pill.neutral {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.badge-pill.info {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
}

/* Clean Modern Card */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header-clean {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.card-title-clean {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.card-body-clean {
  padding: 20px;
}

/* Responsive Table (Fluid, No Truncation, Soft Header & Sticky Laptop Cockpit) */
.table-responsive-clean,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  position: relative;
}

@media (min-width: 1025px) {
  /* Sticky Table Header saat scroll data banyak di laptop/desktop admin */
  .table-responsive-clean table.table-clean thead th,
  .table-responsive table.table-clean thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    box-shadow: 0 1px 0 var(--border-color);
  }
}

.table-clean {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.table-clean th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table-clean td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-main);
  vertical-align: middle;
  background: #FFFFFF;
  transition: background 0.1s ease;
}

.table-clean tr:hover td {
  background: #F8FAFC;
}

.table-clean tr:last-child td {
  border-bottom: none;
}

/* Button System (Subtle, Clean SaaS) */
.btn-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.btn-clean:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn-primary-clean {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.btn-primary-clean:hover {
  background: var(--accent-primary-hover);
  color: #FFFFFF;
}

.btn-secondary-clean {
  background: #FFFFFF;
  color: #334155;
  border-color: var(--border-color);
}

.btn-secondary-clean:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-success-clean {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.btn-success-clean:hover {
  background: #047857;
  color: #FFFFFF;
}

.btn-danger-clean {
  background: #E11D48;
  color: #FFFFFF;
}

.btn-danger-clean:hover {
  background: #BE123C;
}

.btn-sm-clean {
  padding: 5px 10px;
  font-size: 12px;
}

/* Form Controls */
.form-label-clean {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.form-control-clean, .form-select-clean {
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control-clean:focus, .form-select-clean:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

/* Alerts */
.alert-clean {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-clean.success {
  background: var(--accent-emerald-soft);
  color: #065F46;
  border-color: #A7F3D0;
}

.alert-clean.danger {
  background: var(--accent-rose-soft);
  color: #9F1239;
  border-color: #FECDD3;
}

.alert-clean.warning {
  background: var(--accent-amber-soft);
  color: #92400E;
  border-color: #FDE68A;
}

/* Mobile Offcanvas Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Close Button inside Sidebar Header */
.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover,
.sidebar-close-btn:active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Responsive Media Queries — Multi-Device (Mobile, Tablet & Desktop Admin Cockpit) */
.navbar-db-badge {
  display: block;
}

/* Responsive Drawer for Tablet & Mobile (Up to 1024px) */
@media (max-width: 1024px) {
  .app-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    z-index: 1050 !important; /* CRITICAL: ABOVE OVERLAY (1040) SO TOUCH EVENTS WORK */
    transform: translateX(-100%) !important;
    box-shadow: none;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .app-sidebar.show-mobile {
    transform: translateX(0) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
  }

  .sidebar-close-btn {
    display: inline-flex !important;
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-navbar {
    padding: 0 14px;
    height: 52px;
  }

  .navbar-left {
    gap: 10px;
  }

  .menu-toggle-btn {
    display: inline-flex !important;
    min-width: 38px;
    min-height: 38px;
    padding: 8px;
    align-items: center;
    justify-content: center;
  }

  .period-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Sembunyikan pemilih tema lebar di navbar mobile/tablet (tersedia di drawer sidebar) */
  .theme-combo-pill {
    display: none !important;
  }

  .navbar-db-badge {
    display: none !important;
  }

  .sidebar-mobile-theme-box {
    display: block !important;
  }

  .navbar-btn-icon {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch-friendly sidebar links (min 44px tap target) */
  .sidebar-link {
    min-height: 44px !important;
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 14px;
  }

  /* Mobile Thumb Target & Pencegahan iOS Auto-Zoom (Font minimal 16px) */
  .form-control-clean,
  .form-select-clean,
  .unit-picker-input,
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="month"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 42px;
  }

  .btn-clean {
    min-height: 40px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-sm-clean {
    min-height: 36px;
    padding: 6px 12px;
  }

  .sidebar-link {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 14px;
  }

  /* Penataan Page Header & Toolbar di Ponsel */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .page-subtitle {
    font-size: 12px;
  }

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

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

  /* Tabel Responsif dengan Efek Bayangan Geser Halus (Touch Affordance) */
  .table-responsive {
    box-shadow: inset -8px 0 8px -8px rgba(0, 0, 0, 0.16);
    -webkit-overflow-scrolling: touch;
  }

  .table-clean {
    font-size: 11.5px;
  }

  .table-clean th,
  .table-clean td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Runtuhkan Grid Modal Form Menjadi 1 Kolom Rapi di Ponsel */
  .modal-body-clean [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Runtuhkan Grid Formulir Inline Konten Menjadi 1 Kolom di Layar Kecil */
  .content-card [style*="grid-template-columns: 1fr 1fr"],
  .content-card [style*="grid-template-columns:1fr 1fr"],
  .content-card [style*="grid-template-columns: 2fr 1fr"],
  .content-card [style*="grid-template-columns: 1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Form Filter Tagihan di Layar Tablet Kecil / HP */
  form[style*="grid-template-columns: 2fr 1.5fr 1.5fr auto"],
  .tagihan-filter-form {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Kartu Statistik Ringkasan Master di Ponsel */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  form[style*="grid-template-columns: 2fr 1.5fr 1.5fr auto"],
  .tagihan-filter-form {
    grid-template-columns: 1fr !important;
  }
}

/* Optimalisasi Layar Laptop & Desktop (Admin Panoramic Cockpit) */
@media (min-width: 1025px) {
  .app-content {
    max-width: 1600px;
    padding: 24px 32px;
    margin: 0 auto;
    width: 100%;
  }

  /* Sticky Table Header saat Scroll Daftar Panjang (500 Unit / Ratusan Tagihan) */
  .table-responsive.table-sticky-head,
  .table-sticky-head {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .table-responsive table.table-clean thead th,
  .table-sticky-head table.table-clean thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #F8FAFC;
    box-shadow: 0 1px 0 #E2E8F0;
  }

  body[data-theme="finovate"] .table-responsive table.table-clean thead th,
  body[data-theme="finovate"] .table-sticky-head table.table-clean thead th {
    background: #0F172A;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
  }
}

/* Print Optimization */
@media print {
  .app-sidebar, .app-navbar, .no-print, .btn-clean, .alert-clean, .alert {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  .app-content {
    padding: 0 !important;
  }
  .content-card {
    border: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   GLOBAL THEME ENGINE & COMBO SELECTOR (All Application Menus)
   ========================================================================== */

/* Theme Combo Box & Luxury Pill Styles */
@keyframes themePulseAnim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Round Moon Theme Toggle Button (Anti-AI Human-Crafted Aesthetic) */
.theme-toggle-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #1E293B;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  user-select: none;
  flex-shrink: 0;
}

.theme-toggle-round-btn:hover {
  transform: translateY(-1px) rotate(12deg);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--accent-blue);
}

.theme-toggle-round-btn:active {
  transform: scale(0.92);
}

.theme-toggle-round-btn .theme-icon-light,
.theme-toggle-round-btn .theme-icon-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark Mode Appearance for Moon Toggle Button */
body[data-theme="finovate"] .theme-toggle-round-btn {
  background: #0B132B;
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body[data-theme="finovate"] .theme-toggle-round-btn:hover {
  border-color: #38BDF8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
}

.theme-combo-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px 12px 4px 14px;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}
.theme-combo-pill:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.theme-combo-pill:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

.theme-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: themePulseAnim 2s infinite ease-in-out;
  flex-shrink: 0;
}
.theme-pill-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.theme-select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.theme-select-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  padding: 4px 24px 4px 6px;
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
}
.theme-select-input::-ms-expand {
  display: none;
}
.theme-select-input option {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
}

.theme-chevron-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.theme-combo-pill:hover .theme-chevron-icon {
  color: var(--accent-blue);
  transform: translateY(-50%) translateY(1px);
}

/* Fallback & Legacy Combo Box Styles */
.theme-combo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-combo-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-soft);
}
.theme-combo-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.theme-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 2px var(--accent-emerald-soft);
  display: inline-block;
}
.theme-combo-select {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
}
.theme-combo-select option {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
}

/* ==========================================================================
   THEME 1: FINOVATE DARK (Ref: img/1.png) - FULL APPLICATION SCOPE
   ========================================================================== */
html[data-theme="finovate"], body[data-theme="finovate"] {
  --bg-app: #070D1E;
  --bg-card: #0F172A;
  --bg-subtle: #1E293B;
  --bg-muted: #334155;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: #38BDF8;

  --accent-primary: #38BDF8;
  --accent-primary-hover: #0284C7;
  --accent-blue: #38BDF8;
  --accent-blue-soft: rgba(56, 189, 248, 0.15);
  
  --accent-emerald: #10B981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  
  --accent-amber: #F59E0B;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  
  --accent-rose: #F43F5E;
  --accent-rose-soft: rgba(244, 63, 94, 0.15);
}

body[data-theme="finovate"] {
  background-color: #070D1E;
  color: #F8FAFC;
}

/* Sidebar Finovate */
body[data-theme="finovate"] .app-sidebar {
  background: #0B132B;
  border-right-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="finovate"] .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="finovate"] .brand-title {
  color: #FFFFFF;
}
body[data-theme="finovate"] .brand-badge {
  background: #38BDF8;
  color: #070D1E;
}
body[data-theme="finovate"] .sidebar-link {
  color: #94A3B8;
}
body[data-theme="finovate"] .sidebar-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
}
body[data-theme="finovate"] .sidebar-link:hover svg {
  stroke: #38BDF8;
}
body[data-theme="finovate"] .sidebar-link.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}
body[data-theme="finovate"] .sidebar-link.active svg {
  stroke: #38BDF8;
}
body[data-theme="finovate"] .sidebar-footer {
  background: #080E20;
  border-top-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="finovate"] .user-card-clean {
  background: #0F172A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="finovate"] .user-avatar {
  background: #1E293B;
  color: #38BDF8;
}

/* Navbar Finovate */
body[data-theme="finovate"] .app-navbar {
  background: #0B132B;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="finovate"] .period-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}
body[data-theme="finovate"] .period-pill strong {
  color: #FFFFFF;
}

/* Cards & Containers Finovate (Total Dark No-White-Leak) */
body[data-theme="finovate"] .content-card,
body[data-theme="finovate"] .kpi-card,
body[data-theme="finovate"] .dash-toolbar-card {
  background: #0F172A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
body[data-theme="finovate"] .dash-toolbar-card {
  border-left-color: #38BDF8 !important;
}
body[data-theme="finovate"] .kpi-value {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .kpi-label {
  color: #94A3B8 !important;
}
body[data-theme="finovate"] .kpi-icon-box {
  background: rgba(255, 255, 255, 0.06) !important;
}
body[data-theme="finovate"] .card-header-clean {
  background: #0F172A !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="finovate"] .card-body-clean {
  background: #0F172A !important;
  color: #E2E8F0;
}
body[data-theme="finovate"] .card-title-clean {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .card-footer-clean {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  background: #0B132B !important;
  color: #94A3B8;
}

/* Tables Finovate - Absolute Dark & High-Contrast */
body[data-theme="finovate"] .table-responsive-clean {
  background: #0F172A !important;
}
body[data-theme="finovate"] .table-clean {
  background: #0F172A !important;
}
body[data-theme="finovate"] .table-clean th {
  background: #1E293B !important;
  color: #94A3B8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body[data-theme="finovate"] .table-clean td {
  background: #0F172A !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] .table-clean tr:hover td {
  background: #1E293B !important;
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .table-clean td a {
  color: #38BDF8;
}

/* High-Contrast Typography & Unit Numbers */
body[data-theme="finovate"] .page-title {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .page-subtitle {
  color: #94A3B8 !important;
}
body[data-theme="finovate"] strong {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .code-num {
  color: #38BDF8 !important;
}
/* Override hardcoded dark text colors from inline styles */
body[data-theme="finovate"] [style*="color:#0F172A"],
body[data-theme="finovate"] [style*="color: #0F172A"],
body[data-theme="finovate"] [style*="color:#0f172a"],
body[data-theme="finovate"] [style*="color: #0f172a"] {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] [style*="color:#334155"],
body[data-theme="finovate"] [style*="color: #334155"] {
  color: #CBD5E1 !important;
}
body[data-theme="finovate"] [style*="color:#475569"],
body[data-theme="finovate"] [style*="color: #475569"] {
  color: #94A3B8 !important;
}

/* Glowing Emerald (#34D399) Text & Elements for Dark Mode (Ref: Gambar 1) */
body[data-theme="finovate"] [style*="color:#065F46"],
body[data-theme="finovate"] [style*="color: #065F46"],
body[data-theme="finovate"] [style*="color:#065f46"],
body[data-theme="finovate"] [style*="color: #065f46"],
body[data-theme="finovate"] [style*="color:#047857"],
body[data-theme="finovate"] [style*="color: #047857"],
body[data-theme="finovate"] [style*="color:#059669"],
body[data-theme="finovate"] [style*="color: #059669"] {
  color: #34D399 !important;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;
}

/* Override Inline Light Backgrounds (FAFAFA, F8FAFC, F1F5F9, FFFFFF, etc.) */
body[data-theme="finovate"] [style*="background:#FAFAFA"],
body[data-theme="finovate"] [style*="background: #FAFAFA"],
body[data-theme="finovate"] [style*="background:#fafafa"],
body[data-theme="finovate"] [style*="background: #fafafa"],
body[data-theme="finovate"] [style*="background:#F8FAFC"],
body[data-theme="finovate"] [style*="background: #F8FAFC"],
body[data-theme="finovate"] [style*="background:#f8fafc"],
body[data-theme="finovate"] [style*="background: #f8fafc"],
body[data-theme="finovate"] [style*="background:#F1F5F9"],
body[data-theme="finovate"] [style*="background: #F1F5F9"],
body[data-theme="finovate"] [style*="background:#f1f5f9"],
body[data-theme="finovate"] [style*="background: #f1f5f9"] {
  background: #0F172A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #E2E8F0 !important;
}

body[data-theme="finovate"] div[style*="background:#FFFFFF"],
body[data-theme="finovate"] div[style*="background: #FFFFFF"],
body[data-theme="finovate"] div[style*="background:#ffffff"],
body[data-theme="finovate"] div[style*="background: #ffffff"] {
  background: #0F172A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #E2E8F0 !important;
}

/* Info Alert & Banner Boxes (Dark Glassmorphism) */
body[data-theme="finovate"] [style*="background:#EFF6FF"],
body[data-theme="finovate"] [style*="background: #EFF6FF"] {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] [style*="background:#EFF6FF"] strong,
body[data-theme="finovate"] [style*="background:#EFF6FF"] div {
  color: #38BDF8 !important;
}
body[data-theme="finovate"] [style*="background:#ECFDF5"],
body[data-theme="finovate"] [style*="background: #ECFDF5"],
body[data-theme="finovate"] [style*="background:#F0FDF4"],
body[data-theme="finovate"] [style*="background: #F0FDF4"] {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] [style*="background:#FFF1F2"],
body[data-theme="finovate"] [style*="background: #FFF1F2"],
body[data-theme="finovate"] [style*="background:#FEF2F2"],
body[data-theme="finovate"] [style*="background: #FEF2F2"] {
  background: rgba(244, 63, 94, 0.1) !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] [style*="background:#DBEAFE"],
body[data-theme="finovate"] [style*="background: #DBEAFE"],
body[data-theme="finovate"] [style*="background:#D1FAE5"],
body[data-theme="finovate"] [style*="background: #D1FAE5"] {
  background: #1E293B !important;
}

/* Forms & Inputs Finovate */
body[data-theme="finovate"] .form-control-clean,
body[data-theme="finovate"] .form-select-clean,
body[data-theme="finovate"] input[type="text"],
body[data-theme="finovate"] input[type="number"],
body[data-theme="finovate"] input[type="date"],
body[data-theme="finovate"] input[type="password"],
body[data-theme="finovate"] input[type="file"],
body[data-theme="finovate"] select,
body[data-theme="finovate"] textarea {
  background: #0B132B !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .form-control-clean:focus,
body[data-theme="finovate"] .form-select-clean:focus,
body[data-theme="finovate"] input:focus,
body[data-theme="finovate"] select:focus,
body[data-theme="finovate"] textarea:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}
body[data-theme="finovate"] .form-label-clean {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
}
body[data-theme="finovate"] option {
  background: #0F172A !important;
  color: #FFFFFF !important;
}
body[data-theme="finovate"] input::placeholder,
body[data-theme="finovate"] textarea::placeholder {
  color: #64748B !important;
}

/* Buttons Finovate */
body[data-theme="finovate"] .btn-primary-clean {
  background: #38BDF8 !important;
  color: #070D1E !important;
  font-weight: 700 !important;
  border-color: #38BDF8 !important;
}
body[data-theme="finovate"] .btn-primary-clean:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}
body[data-theme="finovate"] .btn-secondary-clean {
  background: #1E293B !important;
  color: #E2E8F0 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body[data-theme="finovate"] .btn-secondary-clean:hover {
  background: #334155 !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
body[data-theme="finovate"] .btn-secondary-clean svg {
  stroke: currentColor !important;
}

/* Badges Finovate */
body[data-theme="finovate"] .badge-pill.neutral {
  background: #1E293B !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-theme="finovate"] .badge-pill.success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
body[data-theme="finovate"] .badge-pill.warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
body[data-theme="finovate"] .badge-pill.danger {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #FB7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
body[data-theme="finovate"] .badge-pill.info {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Pagination Bar Finovate */
body[data-theme="finovate"] .card-footer-clean select {
  background: #0B132B !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body[data-theme="finovate"] .card-footer-clean span.btn-secondary-clean {
  background: #1E293B !important;
  color: #64748B !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="finovate"] .card-footer-clean a.btn-secondary-clean {
  background: #1E293B !important;
  color: #E2E8F0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body[data-theme="finovate"] .card-footer-clean a.btn-secondary-clean:hover {
  background: #334155 !important;
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .card-footer-clean .btn-primary-clean {
  background: #38BDF8 !important;
  color: #070D1E !important;
  font-weight: 700 !important;
}

/* Modals Finovate */
body[data-theme="finovate"] .custom-modal-backdrop {
  background: rgba(3, 7, 18, 0.8) !important;
  backdrop-filter: blur(4px) !important;
}
body[data-theme="finovate"] .custom-modal-content {
  background: #0F172A !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}
body[data-theme="finovate"] .modal-header-clean {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .modal-header-clean h3,
body[data-theme="finovate"] .modal-header-clean h4 {
  color: #FFFFFF !important;
}
body[data-theme="finovate"] .modal-body-clean {
  background: #0F172A !important;
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] .modal-footer-clean {
  background: #0B132B !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="finovate"] button[data-modal-close] svg {
  stroke: #94A3B8 !important;
}
body[data-theme="finovate"] button[data-modal-close]:hover svg {
  stroke: #FFFFFF !important;
}

/* Combo Box Finovate */
body[data-theme="finovate"] .theme-combo-pill {
  background: #0B132B;
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
body[data-theme="finovate"] .theme-combo-pill:hover,
body[data-theme="finovate"] .theme-combo-pill:focus-within {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 4px 18px rgba(0, 0, 0, 0.5);
}
body[data-theme="finovate"] .theme-select-input {
  color: #38BDF8;
}
body[data-theme="finovate"] .theme-select-input option {
  background: #0F172A;
  color: #FFFFFF;
}
body[data-theme="finovate"] .theme-chevron-icon {
  color: #38BDF8;
}
body[data-theme="finovate"] .theme-combo-wrap {
  background: #0B132B;
  border-color: rgba(56, 189, 248, 0.25);
}
body[data-theme="finovate"] .theme-combo-select {
  color: #38BDF8;
}
body[data-theme="finovate"] .theme-combo-select option {
  background: #0F172A;
  color: #FFFFFF;
}

/* Billing Checklist & Status Banners (Vibrant Glowing Emerald #34D399 - Ref Gambar 1) */
body[data-theme="finovate"] .billing-step-card {
  background: #0B132B !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="finovate"] .billing-step-label {
  color: #94A3B8 !important;
}
body[data-theme="finovate"] .billing-step-card.step-ready {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}
body[data-theme="finovate"] .billing-step-card.step-ready .billing-step-value {
  color: #34D399 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.45) !important;
}
body[data-theme="finovate"] .billing-step-card.step-error {
  background: rgba(244, 63, 94, 0.1) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
}
body[data-theme="finovate"] .billing-step-card.step-error .billing-step-value {
  color: #FB7185 !important;
}
body[data-theme="finovate"] .billing-step-card.step-warn {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
body[data-theme="finovate"] .billing-step-card.step-warn .billing-step-value {
  color: #FBBF24 !important;
}
body[data-theme="finovate"] .billing-step-link {
  color: #38BDF8 !important;
}

body[data-theme="finovate"] .billing-alert-banner.success {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 0 20px -5px rgba(52, 211, 153, 0.18) !important;
}
body[data-theme="finovate"] .billing-alert-banner.success .billing-alert-icon {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #34D399 !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4) !important;
}
body[data-theme="finovate"] .billing-alert-banner.success .billing-alert-text {
  color: #E2E8F0 !important;
}
body[data-theme="finovate"] .billing-alert-banner.success .billing-alert-text strong {
  color: #34D399 !important;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;
}

/* Physical Printer Protection (Ensures invoice & kwitansi paper prints are clean white) */
@media print {
  body[data-theme="finovate"] {
    background-color: #FFFFFF !important;
    color: #000000 !important;
  }
}


/* ==========================================================================
   THEME 2: SILVER (Ref: Metallic Silver/Platinum Theme - phpMyAdmin Aesthetic)
   ========================================================================== */
html[data-theme="silver"], body[data-theme="silver"],
html[data-theme="dashtic"], body[data-theme="dashtic"] {
  --bg-app: #EAEFF4;
  --bg-card: #FFFFFF;
  --bg-subtle: #E2E8F0;
  --bg-muted: #CBD5E1;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-color: #CBD5E1;
  --border-focus: #64748B;

  --accent-primary: #334155;
  --accent-primary-hover: #1E293B;
  --accent-blue: #475569;
  --accent-blue-soft: #F1F5F9;
  
  --accent-emerald: #15803D;
  --accent-emerald-soft: #E8F7D4;
  
  --accent-amber: #B45309;
  --accent-amber-soft: #FEF3C7;
  
  --accent-rose: #BE123C;
  --accent-rose-soft: #FFE4E6;
}

body[data-theme="silver"],
body[data-theme="dashtic"] {
  background-color: #EAEFF4;
}

/* Sidebar Silver */
body[data-theme="silver"] .app-sidebar,
body[data-theme="dashtic"] .app-sidebar {
  background: #FFFFFF;
  border-right-color: #CBD5E1;
}
body[data-theme="silver"] .brand-badge,
body[data-theme="dashtic"] .brand-badge {
  background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748B 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(51, 65, 85, 0.25);
}
body[data-theme="silver"] .sidebar-link:hover,
body[data-theme="dashtic"] .sidebar-link:hover {
  background: #F1F5F9;
  color: #0F172A;
}
body[data-theme="silver"] .sidebar-link.active,
body[data-theme="dashtic"] .sidebar-link.active {
  background: linear-gradient(90deg, #E2E8F0 0%, #F1F5F9 100%);
  color: #0F172A;
  border-left: 3px solid #475569;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
}
body[data-theme="silver"] .sidebar-link.active svg,
body[data-theme="dashtic"] .sidebar-link.active svg {
  stroke: #334155;
}

/* Navbar Silver */
body[data-theme="silver"] .app-navbar,
body[data-theme="dashtic"] .app-navbar {
  background: #FFFFFF;
  border-bottom-color: #CBD5E1;
}

/* Buttons Silver Metallic */
body[data-theme="silver"] .btn-primary-clean,
body[data-theme="dashtic"] .btn-primary-clean {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  color: #FFFFFF;
  border: 1px solid #1E293B;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
body[data-theme="silver"] .btn-primary-clean:hover,
body[data-theme="dashtic"] .btn-primary-clean:hover {
  background: linear-gradient(180deg, #334155 0%, #1E293B 100%);
  color: #FFFFFF;
  border-color: #0F172A;
}
body[data-theme="silver"] .btn-secondary-clean,
body[data-theme="dashtic"] .btn-secondary-clean {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-color: #CBD5E1;
  color: #334155;
}
body[data-theme="silver"] .btn-secondary-clean:hover,
body[data-theme="dashtic"] .btn-secondary-clean:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

/* Cards & Containers Silver */
body[data-theme="silver"] .content-card,
body[data-theme="silver"] .kpi-card,
body[data-theme="silver"] .dash-toolbar-card,
body[data-theme="dashtic"] .content-card,
body[data-theme="dashtic"] .kpi-card,
body[data-theme="dashtic"] .dash-toolbar-card {
  border-color: #CBD5E1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
body[data-theme="silver"] .dash-toolbar-card,
body[data-theme="dashtic"] .dash-toolbar-card {
  border-left: 4px solid #64748B !important;
  background: #FFFFFF;
}
body[data-theme="silver"] .kpi-card:hover,
body[data-theme="dashtic"] .kpi-card:hover {
  border-color: #94A3B8;
  box-shadow: 0 6px 18px -2px rgba(100, 116, 139, 0.18);
}

/* Metallic Silver Gradient on Table Headers & Card Headers (Ref: phpMyAdmin) */
body[data-theme="silver"] .table-clean th,
body[data-theme="dashtic"] .table-clean th {
  background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%) !important;
  border-bottom: 1px solid #CBD5E1 !important;
  border-top: 1px solid #E2E8F0 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
body[data-theme="silver"] .card-header-clean,
body[data-theme="dashtic"] .card-header-clean {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom-color: #CBD5E1;
}
body[data-theme="silver"] .table-clean tr:hover td,
body[data-theme="dashtic"] .table-clean tr:hover td {
  background: #F1F5F9;
}

/* Alert Boxes Silver - Soft Green Banner (Ref phpMyAdmin "1 row affected") */
body[data-theme="silver"] .billing-alert-banner.success,
body[data-theme="dashtic"] .billing-alert-banner.success,
body[data-theme="silver"] .alert-clean.success,
body[data-theme="dashtic"] .alert-clean.success {
  background: #E8F7D4 !important;
  border-color: #B0DE8A !important;
  color: #2E6B18 !important;
  box-shadow: 0 1px 3px rgba(46, 107, 24, 0.08);
}
body[data-theme="silver"] .billing-alert-banner.success strong,
body[data-theme="dashtic"] .billing-alert-banner.success strong {
  color: #1B4D0D !important;
}
body[data-theme="silver"] .billing-alert-banner.success .billing-alert-icon,
body[data-theme="dashtic"] .billing-alert-banner.success .billing-alert-icon {
  background: #D4EDB2 !important;
  color: #2E6B18 !important;
}

/* Combo Box Silver */
body[data-theme="silver"] .theme-combo-pill,
body[data-theme="dashtic"] .theme-combo-pill {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
body[data-theme="silver"] .theme-combo-pill:hover,
body[data-theme="silver"] .theme-combo-pill:focus-within,
body[data-theme="dashtic"] .theme-combo-pill:hover,
body[data-theme="dashtic"] .theme-combo-pill:focus-within {
  border-color: #64748B;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}
body[data-theme="silver"] .theme-select-input,
body[data-theme="dashtic"] .theme-select-input {
  color: #1E293B;
  font-weight: 600;
}
body[data-theme="silver"] .theme-select-input option,
body[data-theme="dashtic"] .theme-select-input option {
  background: #FFFFFF;
  color: #1E293B;
}
body[data-theme="silver"] .theme-chevron-icon,
body[data-theme="dashtic"] .theme-chevron-icon {
  color: #64748B;
}


/* ==========================================================================
   THEME 3: SEVERNY SAAS (Ref: img/3.jpg) - FULL APPLICATION SCOPE
   ========================================================================== */
html[data-theme="severny"], body[data-theme="severny"] {
  --bg-app: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-subtle: #EEF2F6;
  --bg-muted: #E2E8F0;
  
  --text-main: #1E293B;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  
  --border-color: #E5E7EB;
  --border-focus: #8B5CF6;

  --accent-primary: #4F46E5;
  --accent-primary-hover: #4338CA;
  --accent-blue: #3B82F6;
  --accent-blue-soft: #EFF6FF;
  
  --accent-emerald: #10B981;
  --accent-emerald-soft: #ECFDF5;
  
  --accent-amber: #F59E0B;
  --accent-amber-soft: #FFFBEB;
  
  --accent-rose: #F43F5E;
  --accent-rose-soft: #FFF1F2;
}

body[data-theme="severny"] {
  background-color: #F4F6F9;
}

body[data-theme="severny"] .app-sidebar {
  background: #0F172A;
  border-right-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="severny"] .brand-title {
  color: #FFFFFF;
}
body[data-theme="severny"] .brand-sub {
  color: #94A3B8;
}
body[data-theme="severny"] .brand-badge {
  background: #8B5CF6;
  color: #FFFFFF;
  border-radius: 10px;
}
body[data-theme="severny"] .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="severny"] .nav-section-title {
  color: #64748B;
}
body[data-theme="severny"] .sidebar-link {
  border-radius: 10px;
  color: #94A3B8;
}
body[data-theme="severny"] .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
body[data-theme="severny"] .sidebar-link:hover svg {
  stroke: #FFFFFF;
}
body[data-theme="severny"] .sidebar-link.active {
  background: rgba(139, 92, 246, 0.18);
  color: #A78BFA;
}
body[data-theme="severny"] .sidebar-link.active svg {
  stroke: #A78BFA;
}
body[data-theme="severny"] .sidebar-footer {
  background: #0B132B;
  border-top-color: rgba(255, 255, 255, 0.08);
}
body[data-theme="severny"] .app-sidebar .user-card-clean {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="severny"] .content-card,
body[data-theme="severny"] .kpi-card,
body[data-theme="severny"] .dash-toolbar-card {
  border-radius: 14px;
  border-color: #E5E7EB;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
body[data-theme="severny"] .dash-toolbar-card {
  border-left: 4px solid #8B5CF6 !important;
}
body[data-theme="severny"] .kpi-card:hover {
  border-color: #C4B5FD;
  box-shadow: 0 8px 18px -2px rgba(139, 92, 246, 0.12);
}
body[data-theme="severny"] .btn-primary-clean {
  background: #4F46E5;
  border-radius: 10px;
}
body[data-theme="severny"] .btn-primary-clean:hover {
  background: #4338CA;
}
body[data-theme="severny"] .btn-secondary-clean {
  border-radius: 10px;
}

/* Combo Box Severny */
body[data-theme="severny"] .theme-combo-pill {
  background: #FFFFFF;
  border-color: #DDD6FE;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
  border-radius: 12px;
}
body[data-theme="severny"] .theme-combo-pill:hover,
body[data-theme="severny"] .theme-combo-pill:focus-within {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
body[data-theme="severny"] .theme-select-input {
  color: #6D28D9;
}
body[data-theme="severny"] .theme-select-input option {
  background: #FFFFFF;
  color: #1E293B;
}
body[data-theme="severny"] .theme-chevron-icon {
  color: #8B5CF6;
}

/* Searchable Unit Picker Shared Component */
.unit-picker-wrap {
  position: relative;
}
.unit-picker-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.unit-picker-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: inline-flex;
}
.unit-picker-input {
  padding-left: 34px !important;
  padding-right: 58px !important;
}
.unit-picker-wrap.is-locked .unit-picker-input {
  padding-right: 12px !important;
  background: #F1F5F9;
  color: #475569;
  cursor: not-allowed;
}
.unit-picker-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}
.unit-picker-clear,
.unit-picker-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748B;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.unit-picker-clear {
  font-size: 16px;
  font-weight: 700;
}
.unit-picker-clear:hover,
.unit-picker-toggle:hover {
  color: #0F172A;
  background: rgba(148, 163, 184, 0.16);
}
.unit-picker-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  max-height: 260px;
  overflow-y: auto;
}
.unit-picker-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  color: #0F172A;
}
.unit-picker-item:last-child {
  border-bottom: none;
}
.unit-picker-item:hover,
.unit-picker-item.is-active {
  background: #EFF6FF;
  color: #1D4ED8;
}
.unit-picker-item.is-all {
  background: #F0F9FF;
  color: #0369A1;
  font-weight: 700;
}
.unit-picker-item.is-all:hover,
.unit-picker-item.is-all.is-active {
  background: #E0F2FE;
  color: #075985;
}
.unit-picker-item.is-disabled {
  cursor: not-allowed;
  background: #F8FAFC;
  color: #94A3B8;
  font-size: 12px;
}
.unit-picker-item.is-disabled:hover {
  background: #F8FAFC;
  color: #94A3B8;
}
.unit-picker-meta {
  font-size: 10.5px;
  color: #64748B;
  white-space: nowrap;
}
body[data-theme="finovate"] .unit-picker-wrap.is-locked .unit-picker-input {
  background: rgba(15, 23, 42, 0.7);
  color: #94A3B8;
}
body[data-theme="finovate"] .unit-picker-dropdown {
  background: #0F172A;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}
body[data-theme="finovate"] .unit-picker-item {
  color: #E2E8F0;
  border-bottom-color: rgba(148, 163, 184, 0.14);
}
body[data-theme="finovate"] .unit-picker-item:hover,
body[data-theme="finovate"] .unit-picker-item.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
}
body[data-theme="finovate"] .unit-picker-item.is-all {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
}
body[data-theme="finovate"] .unit-picker-item.is-disabled,
body[data-theme="finovate"] .unit-picker-item.is-disabled:hover {
  background: rgba(15, 23, 42, 0.85);
  color: #64748B;
}
body[data-theme="finovate"] .unit-picker-meta {
  color: #94A3B8;
}

/* ==========================================================================
   FINTECH DASHBOARD ENGINE (Inspired by Dribbble: Transactions Dashboard UI)
   ========================================================================== */

.fintech-dash-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* 1. Header Toolbar Modern */
.fintech-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.fintech-toolbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fintech-toolbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fintech-toolbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.fintech-toolbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.fintech-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fintech-periode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.fintech-periode-input {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* 2. KPI Grids: 3-Column Symmetrical (3 Atas, 3 Bawah) & 2-Column (Khusus Kasir) */
.fintech-kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fintech-kpi-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fintech-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fintech-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 155px;
}

.fintech-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.fintech-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fintech-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fintech-kpi-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.fintech-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fintech-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 10px;
}

.fintech-kpi-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.fintech-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fintech-trend-pill.success {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.fintech-trend-pill.danger {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.fintech-trend-pill.warning {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
}

.fintech-trend-pill.neutral {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Card Likuiditas Kas & Bank (Putih Bersih Sesuai Permintaan) */
.fintech-card-balance {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 155px;
}

.fintech-card-balance:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.fintech-card-balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fintech-balance-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fintech-balance-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 4px 0 10px 0;
}

.fintech-card-balance-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.fintech-balance-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fintech-balance-surplus {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fintech-balance-surplus.minus {
  color: var(--accent-rose);
  background: var(--accent-rose-soft);
}

/* Card Efisiensi Penagihan (Putih Bersih) */
.fintech-card-efficiency {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 155px;
}

.fintech-card-efficiency:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.fintech-eff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fintech-eff-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.fintech-eff-rate {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.fintech-progress-track {
  height: 7px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 10px 0;
}

.fintech-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-emerald) 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.fintech-eff-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.fintech-eff-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fintech-eff-item-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.fintech-eff-item-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* 4. Bottom Grid: Two-Column Data Feed */
.fintech-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fintech-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fintech-section-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fintech-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fintech-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fintech-section-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.fintech-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  gap: 12px;
}

.fintech-tx-row:last-child {
  border-bottom: none;
}

.fintech-tx-row:hover {
  background: var(--bg-subtle);
}

.fintech-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.fintech-tx-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.fintech-tx-avatar.due {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.fintech-tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fintech-tx-primary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fintech-tx-secondary {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fintech-method-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.fintech-tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.fintech-tx-amount {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fintech-tx-amount.inflow {
  color: var(--accent-emerald);
}

.fintech-tx-amount.outflow {
  color: var(--accent-rose);
}

.fintech-btn-action-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.fintech-btn-action-wa:hover {
  background: #059669;
  color: #FFFFFF;
}

.fintech-btn-action-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
}

.fintech-btn-action-pay:hover {
  background: #1D4ED8;
  color: #FFFFFF;
}

/* ==========================================================================
   Finovate Dark Mode Adaptations for Fintech Dashboard
   ========================================================================== */
body[data-theme="finovate"] .fintech-toolbar,
body[data-theme="finovate"] .fintech-kpi-card,
body[data-theme="finovate"] .fintech-card-efficiency,
body[data-theme="finovate"] .fintech-section-card {
  background: #0F172A;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body[data-theme="finovate"] .fintech-toolbar-icon {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
}

body[data-theme="finovate"] .fintech-periode-pill {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

body[data-theme="finovate"] .fintech-kpi-bottom,
body[data-theme="finovate"] .fintech-section-head,
body[data-theme="finovate"] .fintech-tx-row,
body[data-theme="finovate"] .fintech-eff-metrics {
  border-color: rgba(148, 163, 184, 0.12);
}

body[data-theme="finovate"] .fintech-tx-row:hover {
  background: rgba(30, 41, 59, 0.6);
}

body[data-theme="finovate"] .fintech-card-balance {
  background: #0F172A;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body[data-theme="finovate"] .fintech-method-pill {
  background: rgba(30, 41, 59, 0.9);
  color: #94A3B8;
}

/* Responsiveness Media Queries — Fintech Cockpit & Multi-Device Optimization */
@media (max-width: 1080px) {
  .fintech-kpi-grid,
  .fintech-kpi-grid-3,
  .fintech-kpi-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .fintech-bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .fintech-kpi-grid,
  .fintech-kpi-grid-3,
  .fintech-kpi-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .fintech-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .fintech-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .fintech-periode-pill {
    width: 100%;
    justify-content: space-between;
  }
  .fintech-card-balance,
  .fintech-kpi-card,
  .fintech-card-efficiency {
    padding: 14px;
  }
  .fintech-balance-val {
    font-size: 1.25rem;
  }
  .fintech-kpi-val {
    font-size: 1.2rem;
  }
  .fintech-kpi-top {
    margin-bottom: 8px;
  }
  .fintech-kpi-icon {
    width: 32px;
    height: 32px;
  }
  .fintech-tx-row {
    padding: 10px 0;
  }
}

@media (max-width: 380px) {
  .fintech-kpi-grid,
  .fintech-kpi-grid-3,
  .fintech-kpi-grid-2 {
    grid-template-columns: 1fr;
  }
}


