/* =====================================================================
   TEMA TAMPILAN — dipilih di Pengaturan > Tema (tersimpan per perangkat).
   Hanya mengubah tampilan (warna, font, bentuk, transisi). Tidak ada
   fungsi, aturan, atau menu yang diubah.
   Warna brand dipakai lewat variabel --b50..--b700 (format "r g b"),
   karena tailwind.config hasil build menunjuk ke variabel ini.
   ===================================================================== */

/* ---------- Asli (palet rose bawaan) ---------- */
:root {
  --b50: 255 241 242; --b100: 255 228 230; --b200: 254 205 211; --b300: 253 164 175;
  --b400: 251 113 133; --b500: 244 63 94; --b600: 225 29 72; --b700: 190 18 60;
}

/* ---------- Bagian umum semua tema ---------- */
html[data-tema] body { font-family: var(--font-body), 'Inter', system-ui, sans-serif; background: var(--bg) !important; }
html[data-tema] h1, html[data-tema] h2, html[data-tema] h3, html[data-tema] #pageTitle { font-family: var(--font-head), var(--font-body), sans-serif; letter-spacing: var(--head-track, -0.01em); }
html[data-tema] main > div[id^="view-"] { background: var(--bg) !important; }
html[data-tema] main > div[id^="view-"]:not(.hidden) { animation: var(--view-anim); }
html[data-tema] #hrmSidebar nav [id$="Submenu"]:not(.hidden) { animation: tmSub .22s ease-out; transform-origin: top; }
html[data-tema] .fixed.inset-0:not(.hidden) > div { animation: var(--modal-anim, tmPop .26s cubic-bezier(.2,.9,.3,1.2)); }
html[data-tema] .rounded-xl { border-radius: var(--radius) !important; }
html[data-tema] .rounded-lg { border-radius: var(--radius-sm) !important; }
html[data-tema] main .shadow-sm { box-shadow: var(--card-shadow) !important; }
html[data-tema] button, html[data-tema] a, html[data-tema] input, html[data-tema] select, html[data-tema] textarea { transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s; }
html[data-tema] button.bg-brand-600:active, html[data-tema] button.bg-brand-500:active { transform: scale(.97); }
html[data-tema] main input:focus, html[data-tema] main select:focus, html[data-tema] main textarea:focus { box-shadow: 0 0 0 3px rgb(var(--b500) / .22) !important; border-color: rgb(var(--b500)) !important; outline: none; }
html[data-tema] #hrmSidebar nav a, html[data-tema] #hrmSidebar nav button { transition: background-color .18s, color .18s, padding-left .18s; }
html[data-tema] #hrmSidebar nav a:hover { padding-left: calc(var(--hover-shift, 4px) + 12px); }
html[data-tema] #loginScreen { background: var(--login-bg) !important; }
html[data-tema] .login-card { border-radius: var(--radius-lg, 22px) !important; animation: tmPop .45s cubic-bezier(.2,.9,.3,1.2); }
html[data-tema] #desktopPageHeader { background: var(--header-bg) !important; border-color: transparent !important; box-shadow: 0 6px 24px rgb(var(--b600) / .18); }
html[data-tema] thead tr.bg-brand-600, html[data-tema] thead.bg-brand-600 { background: var(--thead-bg, rgb(var(--b600))) !important; }
html[data-tema] .mobile-nav-item:hover, html[data-tema] .mobile-nav-item:focus,
html[data-tema] .mobile-menu-link:hover, html[data-tema] .mobile-menu-link:focus { color: rgb(var(--b600)) !important; background: rgb(var(--b50)) !important; }
html[data-tema] .data-kas-copy-btn:hover { color: rgb(var(--b600)) !important; }
/* Warna merah yang tertanam langsung di CSS asli (header tabel, judul kartu, spinner) */
html[data-tema] .dashboard-card-title { background: var(--header-bg, rgb(var(--b600))) !important; }
html[data-tema] .data-kerja-table-header,
html[data-tema] #view-bon table thead th, html[data-tema] #view-bon table thead tr,
html[data-tema] #mainContent table thead th, html[data-tema] #mainContent table thead tr,
html[data-tema] #view-dataKasHarian table thead th, html[data-tema] #view-dataKasHarian table thead tr { background-color: var(--thead-solid, rgb(var(--b600))) !important; }
html[data-tema] #floating-sidebar-btn { background: var(--header-bg, rgb(var(--b600))) !important; }
html[data-tema] section > .bg-red-600:first-child { background: var(--header-bg, rgb(var(--b600))) !important; border-color: transparent !important; }
html[data-tema] .data-kerja-card-title { background-color: rgb(var(--b50)) !important; border-color: rgb(var(--b200)) !important; }
html[data-tema] .data-kerja-card-title:hover { background-color: rgb(var(--b100)) !important; }
html[data-tema] .dashboard-loading-spinner, html[data-tema] [class*="LoadingSpin"], html[data-tema] [class*="loading-spinner"] { border-color: rgb(var(--b200)) !important; border-top-color: rgb(var(--b600)) !important; }

@keyframes tmFadeUp { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tmSlideRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tmScale { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tmBounce { 0% { opacity: 0; transform: translateY(22px) scale(.98); } 60% { opacity: 1; transform: translateY(-4px); } 100% { transform: none; } }
@keyframes tmSlideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tmSub { from { opacity: 0; transform: scaleY(.85); } to { opacity: 1; transform: none; } }
@keyframes tmPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html[data-tema] * { animation: none !important; transition: none !important; } }

/* Sidebar gelap (dipakai Matcha, Navy, Midnight) */
html[data-sidebar="gelap"] #hrmSidebar { background: var(--side-bg) !important; border-right: 1px solid rgb(255 255 255 / .06); }
html[data-sidebar="gelap"] #hrmSidebar > div:first-child { border-color: rgb(255 255 255 / .08) !important; }
html[data-sidebar="gelap"] #hrmSidebar h1, html[data-sidebar="gelap"] #hrmSidebar h1 i { color: #fff !important; }
html[data-sidebar="gelap"] #hrmSidebar nav a, html[data-sidebar="gelap"] #hrmSidebar nav button { color: var(--side-text) !important; }
html[data-sidebar="gelap"] #hrmSidebar nav a:hover, html[data-sidebar="gelap"] #hrmSidebar nav button:not([disabled]):hover { background: rgb(255 255 255 / .07) !important; color: #fff !important; }
html[data-sidebar="gelap"] #hrmSidebar nav button[disabled] { color: rgb(255 255 255 / .35) !important; }
html[data-sidebar="gelap"] #hrmSidebar nav button[disabled] span:last-child { background: rgb(255 255 255 / .08) !important; }
html[data-sidebar="gelap"] #hrmSidebar nav .bg-brand-50,
html[data-sidebar="gelap"] #hrmSidebar nav a.sidebar-active,
html[data-sidebar="gelap"] #hrmSidebar nav button.sidebar-active { background: var(--side-active) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--side-accent); }
html[data-sidebar="gelap"] #hrmSidebar > div:last-child { border-color: rgb(255 255 255 / .08) !important; }
html[data-sidebar="gelap"] #hrmSidebar > div:last-child button { color: var(--side-text) !important; border-color: rgb(255 255 255 / .15) !important; background: transparent !important; }
html[data-sidebar="gelap"] #hrmSidebar > div:last-child button:hover { background: rgb(239 68 68 / .18) !important; color: #fecaca !important; }
html[data-sidebar="gelap"] #loggedUserName, html[data-sidebar="gelap"] #hrmSidebar .text-gray-400 { color: rgb(255 255 255 / .5) !important; }

/* =====================================================================
   1. AURORA ROSE — glass, gradasi rose-ungu, Plus Jakarta Sans
   ===================================================================== */
html[data-tema="aurora"] {
  --b50: 253 242 248; --b100: 252 231 243; --b200: 251 207 232; --b300: 249 168 212;
  --b400: 244 114 182; --b500: 236 72 153; --b600: 219 39 119; --b700: 157 23 77;
  --font-body: 'Plus Jakarta Sans'; --font-head: 'Plus Jakarta Sans';
  --bg: radial-gradient(1200px 600px at 100% 0%, #fce7f3 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #ede9fe 0%, transparent 55%), #faf7fb;
  --radius: 18px; --radius-sm: 12px; --radius-lg: 26px;
  --card-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 10px 30px -12px rgb(219 39 119 / .18);
  --view-anim: tmFadeUp .38s cubic-bezier(.2,.8,.2,1);
  --header-bg: linear-gradient(110deg, #db2777 0%, #c026d3 55%, #7c3aed 100%);
  --thead-bg: linear-gradient(90deg, #db2777, #a21caf);
  --login-bg: radial-gradient(800px 500px at 15% 10%, #fbcfe8, transparent 60%), radial-gradient(700px 500px at 90% 90%, #ddd6fe, transparent 60%), #fdf2f8;
}
html[data-tema="aurora"] #hrmSidebar { background: rgb(255 255 255 / .72) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 1px 0 0 rgb(219 39 119 / .08), 8px 0 30px -18px rgb(124 58 237 / .3) !important; }
html[data-tema="aurora"] #hrmSidebar h1 { background: linear-gradient(90deg, #db2777, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html[data-tema="aurora"] #hrmSidebar h1 i { color: #db2777; }
html[data-tema="aurora"] #hrmSidebar nav .bg-brand-50,
html[data-tema="aurora"] aside nav a.sidebar-active,
html[data-tema="aurora"] aside nav button.sidebar-active { background: linear-gradient(90deg, #db2777, #a855f7) !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgb(219 39 119 / .6); }
html[data-tema="aurora"] main .bg-white { background: rgb(255 255 255 / .82) !important; backdrop-filter: blur(10px); }
html[data-tema="aurora"] main .border-gray-200, html[data-tema="aurora"] main .border-gray-100 { border-color: rgb(219 39 119 / .10) !important; }
html[data-tema="aurora"] .bg-brand-600 { background-image: linear-gradient(110deg, #db2777, #c026d3); }
html[data-tema="aurora"] .login-card { background: rgb(255 255 255 / .75) !important; backdrop-filter: blur(18px); border-color: rgb(255 255 255 / .8) !important; }

/* =====================================================================
   2. MIDNIGHT NEON — mode gelap penuh, ungu + cyan, Space Grotesk
   ===================================================================== */
html[data-tema="midnight"] {
  --b50: 46 37 84; --b100: 59 46 110; --b200: 91 70 170; --b300: 139 116 230;
  --b400: 167 139 250; --b500: 139 92 246; --b600: 124 58 237; --b700: 109 40 217;
  --font-body: 'Inter'; --font-head: 'Space Grotesk'; --head-track: 0;
  --bg: #0b1020; --panel: #121a2e; --panel-2: #18223a; --line: #243150; --txt: #e2e8f0; --txt-2: #a3b1cc; --txt-3: #7486a8;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
  --card-shadow: 0 0 0 1px rgb(139 92 246 / .10), 0 12px 30px -14px rgb(0 0 0 / .7);
  --view-anim: tmSlideRight .34s cubic-bezier(.2,.8,.2,1);
  --header-bg: linear-gradient(100deg, #1e1b4b 0%, #4c1d95 60%, #0e7490 100%);
  --thead-bg: linear-gradient(90deg, #4c1d95, #0e7490); --thead-solid: #3b1a7a;
  --login-bg: radial-gradient(700px 400px at 20% 20%, rgb(124 58 237 / .35), transparent 60%), radial-gradient(600px 400px at 85% 80%, rgb(6 182 212 / .25), transparent 60%), #0b1020;
  --side-bg: #0d1426; --side-text: #a3b1cc; --side-active: linear-gradient(90deg, rgb(124 58 237 / .35), rgb(6 182 212 / .12)); --side-accent: #22d3ee;
  color-scheme: dark;
}
html[data-tema="midnight"] body { color: var(--txt) !important; }
html[data-tema="midnight"] .bg-white, html[data-tema="midnight"] .login-card { background-color: var(--panel) !important; }
html[data-tema="midnight"] .bg-gray-50, html[data-tema="midnight"] .bg-slate-50 { background-color: var(--panel-2) !important; }
html[data-tema="midnight"] .bg-gray-100, html[data-tema="midnight"] .bg-gray-200 { background-color: #1f2a45 !important; }
html[data-tema="midnight"] .hover\:bg-gray-50:hover, html[data-tema="midnight"] .hover\:bg-gray-100:hover { background-color: #1f2a45 !important; }
html[data-tema="midnight"] .text-gray-900, html[data-tema="midnight"] .text-gray-800, html[data-tema="midnight"] .text-gray-700 { color: var(--txt) !important; }
html[data-tema="midnight"] .text-gray-600, html[data-tema="midnight"] .text-gray-500 { color: var(--txt-2) !important; }
html[data-tema="midnight"] .text-gray-400 { color: var(--txt-3) !important; }
html[data-tema="midnight"] .text-brand-600, html[data-tema="midnight"] .text-brand-700, html[data-tema="midnight"] .text-brand-500 { color: #c4b5fd !important; }
html[data-tema="midnight"] .bg-brand-50, html[data-tema="midnight"] .bg-brand-100 { background-color: rgb(124 58 237 / .18) !important; }
html[data-tema="midnight"] [class*="border-gray-"], html[data-tema="midnight"] .border, html[data-tema="midnight"] .border-b, html[data-tema="midnight"] .border-t { border-color: var(--line) !important; }
html[data-tema="midnight"] [class*="divide-gray-"] > * { border-color: var(--line) !important; }
html[data-tema="midnight"] input, html[data-tema="midnight"] select, html[data-tema="midnight"] textarea { background-color: #0f1729 !important; color: var(--txt) !important; border-color: #2c3a5c !important; }
html[data-tema="midnight"] input::placeholder, html[data-tema="midnight"] textarea::placeholder { color: #5b6b8c !important; }
html[data-tema="midnight"] table td, html[data-tema="midnight"] table th { border-color: var(--line) !important; }
html[data-tema="midnight"] tbody tr:hover { background-color: rgb(139 92 246 / .07) !important; }
html[data-tema="midnight"] .bg-green-50 { background-color: rgb(34 197 94 / .12) !important; }
html[data-tema="midnight"] .bg-red-50 { background-color: rgb(239 68 68 / .12) !important; }
html[data-tema="midnight"] .bg-blue-50 { background-color: rgb(59 130 246 / .12) !important; }
html[data-tema="midnight"] .bg-yellow-50, html[data-tema="midnight"] .bg-amber-50 { background-color: rgb(245 158 11 / .12) !important; }
html[data-tema="midnight"] .bg-brand-600, html[data-tema="midnight"] .bg-brand-500 { background-image: linear-gradient(100deg, #7c3aed, #0891b2); box-shadow: 0 0 22px -6px rgb(139 92 246 / .7); }
html[data-tema="midnight"] #mobileBottomNav, html[data-tema="midnight"] main > header { background: var(--panel) !important; border-color: var(--line) !important; }
html[data-tema="midnight"] .mobile-nav-item { color: var(--txt-2); }
html[data-tema="midnight"] .mobile-nav-item:hover, html[data-tema="midnight"] .mobile-menu-link:hover { background: rgb(124 58 237 / .2) !important; color: #e9d5ff !important; }
html[data-tema="midnight"] .mobile-menu-link, html[data-tema="midnight"] .mobile-menu-section { color: var(--txt-2) !important; }
html[data-tema="midnight"] #hrmSidebar h1 i { color: #22d3ee !important; }
html[data-tema="midnight"] #view-dashboard [class*="label"], html[data-tema="midnight"] #view-dashboard [class*="-sub"] { color: var(--txt-2) !important; }
html[data-tema="midnight"] .data-kerja-card-title { color: var(--txt) !important; }
html[data-tema="midnight"] .data-kerja-card-title .data-kerja-card-icon { background-color: var(--panel) !important; color: var(--txt) !important; border-color: var(--line) !important; }
html[data-tema="midnight"] tfoot tr, html[data-tema="midnight"] tfoot td { background-color: var(--panel-2) !important; }

/* =====================================================================
   3. MATCHA FRESH — hijau segar, sidebar hijau tua, Poppins
   ===================================================================== */
html[data-tema="matcha"] {
  --b50: 236 253 245; --b100: 209 250 229; --b200: 167 243 208; --b300: 110 231 183;
  --b400: 52 211 153; --b500: 16 185 129; --b600: 5 150 105; --b700: 4 120 87;
  --font-body: 'Poppins'; --font-head: 'Poppins'; --head-track: -0.015em;
  --bg: #f2f8f4;
  --radius: 16px; --radius-sm: 11px; --radius-lg: 24px;
  --card-shadow: 0 1px 2px rgb(6 78 59 / .05), 0 8px 24px -14px rgb(6 78 59 / .25);
  --view-anim: tmScale .3s cubic-bezier(.2,.8,.2,1);
  --header-bg: linear-gradient(100deg, #047857 0%, #059669 50%, #0d9488 100%);
  --login-bg: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 45%, #ccfbf1 100%);
  --side-bg: linear-gradient(180deg, #064e3b 0%, #053d2f 100%); --side-text: #a7d8c4; --side-active: rgb(52 211 153 / .2); --side-accent: #6ee7b7;
}
html[data-tema="matcha"] main .bg-white { border-color: #dcefe4 !important; }
html[data-tema="matcha"] #hrmSidebar h1 i { color: #6ee7b7 !important; }
html[data-tema="matcha"] main .text-sm, html[data-tema="matcha"] main .text-xs { letter-spacing: .005em; }

/* =====================================================================
   4. SUNSET SNACK — oranye hangat ala camilan, Outfit, transisi memantul
   ===================================================================== */
html[data-tema="sunset"] {
  --b50: 255 247 237; --b100: 255 237 213; --b200: 254 215 170; --b300: 253 186 116;
  --b400: 251 146 60; --b500: 249 115 22; --b600: 234 88 12; --b700: 194 65 12;
  --font-body: 'Outfit'; --font-head: 'Outfit'; --head-track: -0.01em;
  --bg: linear-gradient(180deg, #fff8f1 0%, #fff3e8 100%);
  --radius: 20px; --radius-sm: 14px; --radius-lg: 28px;
  --card-shadow: 0 2px 0 rgb(234 88 12 / .06), 0 14px 30px -16px rgb(194 65 12 / .35);
  --view-anim: tmBounce .5s cubic-bezier(.2,.9,.3,1.2);
  --header-bg: linear-gradient(100deg, #f97316 0%, #fb7185 60%, #f43f5e 100%);
  --thead-bg: linear-gradient(90deg, #ea580c, #f43f5e);
  --login-bg: radial-gradient(700px 500px at 10% 0%, #fed7aa, transparent 60%), radial-gradient(700px 500px at 100% 100%, #fecdd3, transparent 60%), #fff7ed;
  --hover-shift: 8px;
}
html[data-tema="sunset"] body { font-size: 15px; }
html[data-tema="sunset"] #hrmSidebar { background: #fffaf5 !important; border-right: 1px dashed #fed7aa; }
html[data-tema="sunset"] #hrmSidebar h1 { color: #ea580c !important; font-weight: 800; }
html[data-tema="sunset"] #hrmSidebar nav .bg-brand-50,
html[data-tema="sunset"] aside nav a.sidebar-active,
html[data-tema="sunset"] aside nav button.sidebar-active { background: linear-gradient(90deg, #f97316, #fb7185) !important; color: #fff !important; border-radius: 999px !important; box-shadow: 0 8px 18px -8px rgb(249 115 22 / .7); }
html[data-tema="sunset"] #hrmSidebar nav a, html[data-tema="sunset"] #hrmSidebar nav > div > button { border-radius: 999px !important; }
html[data-tema="sunset"] main .bg-white { border-color: #ffe4cc !important; }
html[data-tema="sunset"] .bg-brand-600 { background-image: linear-gradient(100deg, #f97316, #f43f5e); }
html[data-tema="sunset"] button.bg-brand-600, html[data-tema="sunset"] button.bg-brand-500 { border-radius: 999px !important; }
html[data-tema="sunset"] button.bg-brand-600:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgb(234 88 12 / .8); }

/* =====================================================================
   5. NAVY EXECUTIVE — navy formal, biru tegas, Manrope, sudut rapat
   ===================================================================== */
html[data-tema="navy"] {
  --b50: 239 246 255; --b100: 219 234 254; --b200: 191 219 254; --b300: 147 197 253;
  --b400: 96 165 250; --b500: 59 130 246; --b600: 37 99 235; --b700: 29 78 216;
  --font-body: 'Manrope'; --font-head: 'Manrope'; --head-track: -0.02em;
  --bg: #f4f6fa;
  --radius: 10px; --radius-sm: 7px; --radius-lg: 14px;
  --card-shadow: 0 1px 0 rgb(15 30 61 / .06), 0 1px 3px rgb(15 30 61 / .08);
  --view-anim: tmSlideUp .24s ease-out;
  --modal-anim: tmSlideUp .22s ease-out;
  --header-bg: #0f1e3d;
  --thead-bg: #1e3a8a; --thead-solid: #1e3a8a;
  --login-bg: linear-gradient(135deg, #0f1e3d 0%, #1e3a8a 100%);
  --side-bg: #0f1e3d; --side-text: #9fb0d0; --side-active: rgb(59 130 246 / .22); --side-accent: #60a5fa;
  --hover-shift: 2px;
}
html[data-tema="navy"] #desktopPageHeader { box-shadow: 0 1px 0 rgb(255 255 255 / .06) !important; }
html[data-tema="navy"] #pageTitle { font-weight: 700; font-size: 20px !important; }
html[data-tema="navy"] main .bg-white { border-color: #e3e8f1 !important; }
html[data-tema="navy"] main h3 { font-weight: 800; }
html[data-tema="navy"] #hrmSidebar h1 i { color: #60a5fa !important; }
html[data-tema="navy"] thead th { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

/* =====================================================================
   GAYA PROFESIONAL (dipakai tema 6–9) — datar, tenang, rapi:
   header halaman putih, header tabel abu muda, kartu bergaris tipis,
   angka rata (tabular), transisi singkat tanpa pantulan.
   ===================================================================== */
html[data-gaya="pro"] {
  --txt-strong: #0f172a; --txt-muted: #64748b; --line-pro: #e2e8f0; --th-bg: #f8fafc; --th-txt: #475569;
  --radius: 10px; --radius-sm: 7px; --radius-lg: 14px;
  --card-shadow: 0 1px 2px rgb(15 23 42 / .05);
  --view-anim: tmFadePro .18s ease-out;
  --modal-anim: tmFadePro .16s ease-out;
  --hover-shift: 0px;
}
@keyframes tmFadePro { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html[data-gaya="pro"] body { font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
html[data-gaya="pro"] main .bg-white { border-color: var(--line-pro) !important; }
html[data-gaya="pro"] main .shadow-md, html[data-gaya="pro"] main .shadow-lg { box-shadow: 0 1px 3px rgb(15 23 42 / .08) !important; }
/* Header halaman: putih dengan garis bawah, judul gelap */
html[data-gaya="pro"] #desktopPageHeader { background: var(--pro-header, #fff) !important; border-bottom: 1px solid var(--line-pro) !important; box-shadow: none !important; padding-top: 14px !important; padding-bottom: 14px !important; }
html[data-gaya="pro"] #pageTitle { color: var(--pro-header-txt, var(--txt-strong)) !important; font-size: 19px !important; font-weight: 650; }
html[data-gaya="pro"] #loggedInUserName { color: var(--pro-header-sub, var(--txt-muted)) !important; }
html[data-gaya="pro"] #loggedInUserAvatar { background: rgb(var(--b600)) !important; color: #fff !important; box-shadow: none !important; }
/* Header tabel: abu muda, teks kecil kapital */
html[data-gaya="pro"] main table thead tr, html[data-gaya="pro"] main table thead th,
html[data-gaya="pro"] #mainContent table thead th, html[data-gaya="pro"] #mainContent table thead tr,
html[data-gaya="pro"] #view-bon table thead th, html[data-gaya="pro"] #view-bon table thead tr,
html[data-gaya="pro"] #view-dataKasHarian table thead th, html[data-gaya="pro"] #view-dataKasHarian table thead tr,
html[data-gaya="pro"] .data-kerja-table-header { background: var(--th-bg) !important; background-image: none !important; color: var(--th-txt) !important; box-shadow: none !important; }
html[data-gaya="pro"] main table thead th, html[data-gaya="pro"] main table thead th * { color: var(--th-txt) !important; }
html[data-gaya="pro"] main table thead th { font-size: 10.5px !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 650 !important; border-bottom: 1px solid var(--line-pro) !important; }
html[data-gaya="pro"] main tbody tr:hover { background-color: rgb(var(--b50) / .6); }
html[data-gaya="pro"] .data-kas-copy-btn { background: #fff !important; color: #334155 !important; border-color: #cbd5e1 !important; }
html[data-gaya="pro"] .data-kas-copy-btn:hover { background: rgb(var(--b50)) !important; color: rgb(var(--b700)) !important; border-color: rgb(var(--b300)) !important; }
/* Judul kartu: putih dengan garis aksen kiri, teks gelap */
html[data-gaya="pro"] .dashboard-card-title,
html[data-gaya="pro"] section > .bg-red-600:first-child { background: #fff !important; background-image: none !important; border-bottom: 1px solid var(--line-pro) !important; box-shadow: inset 3px 0 0 rgb(var(--b600)); }
html[data-gaya="pro"] .dashboard-card-title h3, html[data-gaya="pro"] .dashboard-card-title h3 i, html[data-gaya="pro"] .dashboard-card-title > i,
html[data-gaya="pro"] section > .bg-red-600:first-child, html[data-gaya="pro"] section > .bg-red-600:first-child * { color: var(--txt-strong) !important; }
html[data-gaya="pro"] .dashboard-card-title button, html[data-gaya="pro"] .dashboard-card-title button i { color: #475569 !important; background: #fff !important; border-color: #cbd5e1 !important; }
html[data-gaya="pro"] section > .bg-red-600:first-child span, html[data-gaya="pro"] section > .bg-red-600:first-child p { color: var(--txt-muted) !important; }
/* Tombol utama: warna datar, tanpa gradasi */
html[data-gaya="pro"] .bg-brand-600, html[data-gaya="pro"] .bg-brand-500 { background-image: none !important; }
html[data-gaya="pro"] button.bg-brand-600 { box-shadow: 0 1px 2px rgb(15 23 42 / .12) !important; }
/* Sidebar terang (dipakai bila tema tidak memakai sidebar gelap) */
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar { background: var(--side-light, #fbfbfc) !important; box-shadow: none !important; border-right: 1px solid var(--line-pro); }
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar h1 { color: var(--txt-strong) !important; font-size: 17px !important; }
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar h1 i { color: rgb(var(--b600)) !important; }
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar nav a, html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar nav button { color: #475569 !important; }
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar nav a:hover, html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar nav button:not([disabled]):hover { background: #f1f5f9 !important; color: var(--txt-strong) !important; }
html[data-gaya="pro"]:not([data-sidebar="gelap"]) #hrmSidebar nav .bg-brand-50,
html[data-gaya="pro"]:not([data-sidebar="gelap"]) aside nav a.sidebar-active,
html[data-gaya="pro"]:not([data-sidebar="gelap"]) aside nav button.sidebar-active { background: #fff !important; color: var(--txt-strong) !important; box-shadow: 0 0 0 1px var(--line-pro), 0 1px 2px rgb(15 23 42 / .06), inset 3px 0 0 rgb(var(--b600)) !important; font-weight: 600; }
html[data-gaya="pro"] #loginScreen { background: var(--login-bg, #f8fafc) !important; }
html[data-gaya="pro"] .login-card { box-shadow: 0 1px 3px rgb(15 23 42 / .08), 0 20px 40px -20px rgb(15 23 42 / .2) !important; border-color: var(--line-pro) !important; }

/* =====================================================================
   6. GRAPHITE — monokrom abu arang, aksen hitam, Inter (gaya Linear/Vercel)
   ===================================================================== */
html[data-tema="graphite"] {
  --b50: 244 244 245; --b100: 228 228 231; --b200: 212 212 216; --b300: 161 161 170;
  --b400: 113 113 122; --b500: 63 63 70; --b600: 24 24 27; --b700: 9 9 11;
  --font-body: 'Inter'; --font-head: 'Inter'; --head-track: -0.02em;
  --bg: #fafafa; --line-pro: #e4e4e7; --th-bg: #fafafa; --th-txt: #52525b; --txt-strong: #18181b; --txt-muted: #71717a;
  --login-bg: #fafafa; --side-light: #fafafa;
}

/* =====================================================================
   7. INDIGO CORPORATE — putih bersih, aksen indigo, IBM Plex Sans
   ===================================================================== */
html[data-tema="indigo"] {
  --b50: 238 242 255; --b100: 224 231 255; --b200: 199 210 254; --b300: 165 180 252;
  --b400: 129 140 248; --b500: 99 102 241; --b600: 79 70 229; --b700: 67 56 202;
  --font-body: 'IBM Plex Sans'; --font-head: 'IBM Plex Sans'; --head-track: -0.01em;
  --bg: #f6f8fb; --side-light: #ffffff;
  --login-bg: linear-gradient(180deg, #eef2ff 0%, #f6f8fb 50%);
}

/* =====================================================================
   8. TEAL LEDGER — nuansa akuntansi, hijau toska tua, sidebar gelap, Source Sans 3
   ===================================================================== */
html[data-tema="ledger"] {
  --b50: 240 253 250; --b100: 204 251 241; --b200: 153 246 228; --b300: 94 234 212;
  --b400: 45 212 191; --b500: 20 184 166; --b600: 15 118 110; --b700: 17 94 89;
  --font-body: 'Source Sans 3'; --font-head: 'Source Sans 3'; --head-track: -0.005em;
  --bg: #f5f7f7; --line-pro: #dfe5e5; --th-bg: #f3f6f6; --th-txt: #3f5555;
  --side-bg: #12302e; --side-text: #a9c4c1; --side-active: rgb(45 212 191 / .14); --side-accent: #5eead4;
  --login-bg: linear-gradient(160deg, #f0fdfa 0%, #f5f7f7 60%);
}
html[data-tema="ledger"] body { font-size: 15px; }
html[data-tema="ledger"] #hrmSidebar h1 i { color: #5eead4 !important; }

/* =====================================================================
   9. WINE EXECUTIVE — tetap identitas merah Ngemil tapi lebih dalam,
      sidebar arang, Nunito Sans
   ===================================================================== */
html[data-tema="wine"] {
  --b50: 253 242 244; --b100: 251 228 233; --b200: 244 194 205; --b300: 232 145 165;
  --b400: 211 89 117; --b500: 179 38 74; --b600: 155 28 60; --b700: 122 20 47;
  --font-body: 'Nunito Sans'; --font-head: 'Nunito Sans'; --head-track: -0.01em;
  --bg: #f7f6f5; --line-pro: #e7e3e1; --th-bg: #f7f5f4; --th-txt: #57504d; --txt-strong: #1c1917;
  --side-bg: #1f1d1c; --side-text: #b9b2ae; --side-active: rgb(255 255 255 / .08); --side-accent: #e11d48;
  --login-bg: linear-gradient(160deg, #fdf2f4 0%, #f7f6f5 60%);
}
html[data-tema="wine"] #hrmSidebar h1 i { color: #fb7185 !important; }
html[data-tema="wine"] #pageTitle { font-weight: 800 !important; }

/* ---------- Jendela Pengaturan > Tema (panel kanan, aplikasi tetap terlihat untuk preview) ---------- */
#temaModal { position: fixed; inset: 0; z-index: 100002; pointer-events: none; font-family: 'Inter', system-ui, sans-serif; }
#temaModal .tm-box { pointer-events: auto; position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 24px 60px -12px rgb(0 0 0 / .35); animation: tmPanel .22s ease-out; }
@keyframes tmPanel { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  #temaModal .tm-box { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62vh; animation-name: tmSheet; }
  @keyframes tmSheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
#temaModal .tm-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid #f1f5f9; }
#temaModal .tm-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
#temaModal .tm-sub { font-size: 11.5px; color: #6b7280; margin-top: 3px; }
#temaModal .tm-x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: #f3f4f6; color: #6b7280; cursor: pointer; flex: 0 0 auto; }
#temaModal .tm-x:hover { background: #e5e7eb; color: #111827; }
#temaModal .tm-list { flex: 1; overflow-y: auto; padding: 4px 12px 8px; }
#temaModal .tm-grup { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin: 12px 4px 6px; }
#temaModal .tm-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-bottom: 6px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; color: #111827; transition: border-color .15s, box-shadow .15s; }
#temaModal .tm-opt:hover { border-color: #9ca3af; }
#temaModal .tm-opt.on { border-color: #111827; box-shadow: 0 0 0 1px #111827 inset; }
#temaModal .tm-sw { width: 46px; height: 32px; border-radius: 9px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
#temaModal .tm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#temaModal .tm-name { font-weight: 700; font-size: 13px; }
#temaModal .tm-name em { font-style: normal; font-size: 10px; font-weight: 700; color: #047857; background: #d1fae5; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
#temaModal .tm-desc { font-size: 11px; color: #6b7280; margin-top: 1px; }
#temaModal .tm-cek { color: #111827; font-size: 16px; opacity: 0; }
#temaModal .tm-opt.on .tm-cek { opacity: 1; }
#temaModal .tm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #f1f5f9; }
#temaModal .tm-batal { padding: 9px 16px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-weight: 600; font-size: 13px; cursor: pointer; }
#temaModal .tm-simpan { padding: 9px 18px; border-radius: 10px; border: 0; background: #111827; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
#temaModal .tm-simpan:disabled { opacity: .4; cursor: default; }
