/* Pipesys (RCE) — penyesuaian tema xtrax ke warna brand RC Electronic (rcelectronic.co.id) */
:root {
    --rce-blue-50: #EBF2FA;
    --rce-blue-100: #DCE6F2;
    --rce-blue-200: #C9D9EC;
    --rce-blue-400: #7FB2E8;
    --rce-blue-600: #2E6FBF;
    --rce-blue-700: #1B4F91; /* warna utama */
    --rce-blue-800: #123A6E;
    --rce-blue-900: #0E2C55;
}

.bg-rce { background-color: var(--rce-blue-700) !important; color: #fff; }
.text-rce { color: var(--rce-blue-700) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--rce-blue-800); border-color: var(--rce-blue-800); }
.btn-outline-primary { color: var(--rce-blue-700); border-color: var(--rce-blue-700); }
.btn-outline-primary:hover { background-color: var(--rce-blue-700); border-color: var(--rce-blue-700); color: #fff; }
a { color: var(--rce-blue-600); }
a:hover { color: var(--rce-blue-800); }

.page-wrapper { background: var(--rce-blue-50); }
.navbar-brand img.dark-logo { height: 40px; width: auto; }

.left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link:hover,
.left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item.selected > .sidebar-link {
    background: var(--rce-blue-700) !important;
    color: #fff !important;
}
.left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item.selected > .sidebar-link i,
.left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link:hover i { color: #fff !important; }

table.dataTable thead th { background: var(--rce-blue-700); color: #fff; border-color: var(--rce-blue-800); }
.card .card-title { color: var(--rce-blue-900); }
.modal-header { background: var(--rce-blue-700); color: #fff; }
.modal-header .close { color: #fff; opacity: .9; }
.has-error .form-control, .is-invalid { border-color: #dc3545; }
.help-block { color: #dc3545; font-size: 12px; }
.row-nonactive td { color: #9aa4b2; }

/* Login */
.auth-wrapper { min-height: 100vh; background: linear-gradient(135deg, var(--rce-blue-900), var(--rce-blue-600)); }
.auth-box { max-width: 420px; width: 100%; border-radius: 10px; }
.auth-box .logo img { height: 72px; }

/* Mode malam (html[data-theme=dark], tombol bulan di topbar; pilihan disimpan per browser) */
html[data-theme=dark] { --topbar-bg: #1b2433; color-scheme: dark; }
html[data-theme=dark] body, html[data-theme=dark] .page-wrapper, html[data-theme=dark] #main-wrapper { background: #111827 !important; color: #d1d5db; }
html[data-theme=dark] .topbar, html[data-theme=dark] .topbar .navbar-header, html[data-theme=dark] .left-sidebar,
html[data-theme=dark] .left-sidebar .scroll-sidebar, html[data-theme=dark] .sidebar-nav ul { background: #1b2433 !important; }
html[data-theme=dark] .card, html[data-theme=dark] .modal-content, html[data-theme=dark] .dropdown-menu,
html[data-theme=dark] .select2-dropdown, html[data-theme=dark] .datepicker { background: #1f2937 !important; color: #d1d5db; border-color: #374151; }
html[data-theme=dark] .form-control, html[data-theme=dark] .custom-select, html[data-theme=dark] .select2-container--default .select2-selection,
html[data-theme=dark] .select2-search__field { background: #111827 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
html[data-theme=dark] .form-control:disabled, html[data-theme=dark] .form-control[readonly] { background: #273244 !important; }
html[data-theme=dark] .table, html[data-theme=dark] .table td, html[data-theme=dark] .table th { color: #d1d5db; border-color: #374151; }
html[data-theme=dark] .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,.03); }
html[data-theme=dark] .table-hover tbody tr:hover, html[data-theme=dark] .dropdown-item:hover { background: #374151; color: #fff; }
html[data-theme=dark] .thead-light th, html[data-theme=dark] .table-light { background: #273244 !important; color: #e5e7eb; }
html[data-theme=dark] .page-title, html[data-theme=dark] .text-dark, html[data-theme=dark] .card .card-title,
html[data-theme=dark] .sidebar-nav .sidebar-link, html[data-theme=dark] .sidebar-nav .nav-small-cap, html[data-theme=dark] .dropdown-item,
html[data-theme=dark] .nav-link, html[data-theme=dark] label, html[data-theme=dark] h5 { color: #e5e7eb !important; }
html[data-theme=dark] .text-muted { color: #9ca3af !important; }
html[data-theme=dark] a { color: var(--rce-blue-400); }
html[data-theme=dark] .alert-warning { background: #3b3218; color: #fde68a; border-color: #5b4a1b; }
html[data-theme=dark] .page-link, html[data-theme=dark] .dataTables_wrapper { color: #d1d5db; }
html[data-theme=dark] .page-item:not(.active) .page-link { background: #1f2937; border-color: #374151; }
