/* =========================================================
   LAYANAN FZ - GLOBAL DARK MODE (ZERO-EDIT UNTUK PAGES)
========================================================= */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #0B1120 !important;
    color: #E2E8F0 !important;
}

/* Permukaan Utama (Card, Header, Dock, Modal, SweetAlert) */
html.dark .bg-white,
html.dark .bg-white\/95,
html.dark .bg-white\/90,
html.dark .swal2-popup {
    background-color: #151E32 !important;
}

/* Permukaan Sekunder (Header Tabel, Box Nominal, Pill, Input) */
html.dark .bg-slate-50,
html.dark .bg-slate-50\/70,
html.dark .bg-gray-50,
html.dark .bg-\[\#F8FAFC\],
html.dark .bg-\[\#F8F9FA\] {
    background-color: #1E293B !important;
}

html.dark .bg-slate-100,
html.dark .bg-gray-100 {
    background-color: #1E293B !important;
}

/* Hover Baris Tabel & Tombol Sekunder */
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-50\/80:hover,
html.dark .hover\:bg-slate-50\/70:hover,
html.dark .hover\:bg-gray-50:hover,
html.dark .hover\:bg-slate-100:hover,
html.dark .hover\:bg-slate-200:hover {
    background-color: #273549 !important;
}

/* Tab Aktif Segmented Kasir Kilat */
html.dark .peer:checked ~ .peer-checked\:bg-white {
    background-color: #334155 !important;
    color: #F8FAFC !important;
}

/* Warna Kartu Master Navy Tetap Identitas Brand */
html.dark .bg-fz-navy {
    background-color: #1E3A8A !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

/* Border & Garis Pemisah */
html.dark .border-slate-200,
html.dark .border-slate-200\/90,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/70,
html.dark .border-slate-200\/60,
html.dark .border-slate-100,
html.dark .border-gray-200,
html.dark .border-gray-100 {
    border-color: #263348 !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200\/70 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #263348 !important;
}

/* Border Tombol Pusat Radial di HP */
html.dark .border-\[\#F8FAFC\] {
    border-color: #0B1120 !important;
}

/* Teks Utama & Sekunder */
html.dark .text-fz-slate,
html.dark .text-slate-800,
html.dark .text-slate-700,
html.dark .text-gray-700,
html.dark .text-slate-600,
html.dark .text-gray-600 {
    color: #F1F5F9 !important;
}

html.dark .text-slate-500,
html.dark .text-gray-500 {
    color: #94A3B8 !important;
}

/* Teks Aksen Navy di Background Gelap Jadi Biru Cerah Agar Jelas */
html.dark .text-fz-navy,
html.dark .hover\:text-fz-navy:hover {
    color: #60A5FA !important;
}

/* Input, Select, Textarea */
html.dark input:not([type="radio"]):not([type="checkbox"]),
html.dark select,
html.dark textarea {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748B !important;
}

/* Floating Label di Login.php */
html.dark .fz-float-input:focus ~ .fz-float-label,
html.dark .fz-float-input:not(:placeholder-shown) ~ .fz-float-label {
    background-color: #151E32 !important;
    color: #60A5FA !important;
}

/* Badge & Kartu Aksen Berwarna (Transparan Modern di Mode Gelap) */
html.dark .bg-blue-50,
html.dark .bg-indigo-50 {
    background-color: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}
html.dark .bg-emerald-50,
html.dark .bg-emerald-50\/70,
html.dark .bg-emerald-50\/50 {
    background-color: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}
html.dark .bg-orange-50,
html.dark .bg-orange-50\/70,
html.dark .bg-orange-50\/60,
html.dark .bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.16) !important;
    border-color: rgba(249, 115, 22, 0.28) !important;
}
html.dark .bg-purple-50,
html.dark .bg-purple-50\/70,
html.dark .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.16) !important;
    border-color: rgba(168, 85, 247, 0.28) !important;
}
html.dark .bg-red-50,
html.dark .bg-red-50\/50,
html.dark .bg-rose-50 {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

html.dark .text-emerald-800,
html.dark .text-emerald-700,
html.dark .text-emerald-600 { color: #34D399 !important; }
html.dark .text-blue-700,
html.dark .text-blue-600    { color: #60A5FA !important; }
html.dark .text-orange-700,
html.dark .text-orange-600  { color: #FB923C !important; }
html.dark .text-purple-700,
html.dark .text-purple-600  { color: #C084FC !important; }

/* Skeleton Loader Modern Mode Gelap */
html.dark .fz-shimmer {
    background: #1E293B !important;
}
html.dark .fz-shimmer::after {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.14), transparent) !important;
}

/* Scrollbar Mode Gelap */
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* PENGECUALIAN: Struk PNG Pelanggan Tetap Putih Bersih */
html.dark #struk-invoice-khusus {
    background-color: #F8FAFC !important;
}
html.dark #struk-invoice-khusus .bg-white {
    background-color: #ffffff !important;
}
html.dark #struk-invoice-khusus .bg-slate-50 {
    background-color: #F8FAFC !important;
}
html.dark #struk-invoice-khusus .text-\[\#334155\] {
    color: #334155 !important;
}
html.dark #struk-invoice-khusus .text-\[\#1E3A8A\] {
    color: #1E3A8A !important;
}