body {
    font-size: 0.8rem;
}

.negative-number-highlight,
.negative-number-highlight a {
    color: #ff4d6d !important;
    font-weight: 700 !important;
}

.dark-theme .negative-number-highlight,
.dark-theme .negative-number-highlight a {
    color: #ff6f89 !important;
}

/* Lighter palette for text utility colors (dark mode only) */
.dark-theme a:not(.btn):not([class*="btn-"]) {
    color: #f7a2b4 !important;
    text-decoration: none;
    background-color: transparent;
}

.dark-theme a:not(.btn):not([class*="btn-"]):hover,
.dark-theme a:not(.btn):not([class*="btn-"]):focus,
.dark-theme a:not(.btn):not([class*="btn-"]):active {
    color: #fbc0cc !important;
}

.dark-theme .btn[class*="-gradient"],
.dark-theme a.btn[class*="-gradient"],
.dark-theme [class*="btn-"][class*="-gradient"] {
    color: #ffffff !important;
}

.dark-theme .btn[class*="-gradient"]:hover,
.dark-theme .btn[class*="-gradient"]:focus,
.dark-theme a.btn[class*="-gradient"]:hover,
.dark-theme a.btn[class*="-gradient"]:focus,
.dark-theme [class*="btn-"][class*="-gradient"]:hover,
.dark-theme [class*="btn-"][class*="-gradient"]:focus {
    color: #ffffff !important;
}

/* Error pages: keep contrast when dark theme is enabled */
.dark-theme.main-body.bg-primary-transparent,
.dark-theme .main-body.bg-primary-transparent,
.dark-theme .main-error-wrapper.page.page-h {
    background-color: #06051a !important;
}

/* Global base canvas: always dark in dark mode */
.dark-theme {
    --lm-dark-base: #020208;
    --lm-dark-surface: #07070f;
    --lm-dark-surface-2: #10101a;
    --lm-dark-border: rgba(199, 208, 224, 0.14);
}

html.dark-theme,
body.dark-theme,
html.dark-theme body,
.dark-theme .main-body,
.dark-theme .app,
.dark-theme .page,
.dark-theme .main-content,
.dark-theme .main-content-body,
.dark-theme .main-content-left,
.dark-theme .main-content-right,
.dark-theme .main-wrapper,
.dark-theme .horizontal-main {
    background-color: var(--lm-dark-base) !important;
    background-image: none !important;
}

/* Navbar + sidebar base in dark mode */
.dark-theme .main-header,
.dark-theme .horizontalMenucontainer .main-header,
.dark-theme .main-sidebar-header,
.dark-theme .side-header,
.dark-theme .app-sidebar,
.dark-theme .main-sidebar,
.dark-theme .sidebar,
.dark-theme .horizontal-main.hor-menu,
.dark-theme .main-header-menu,
.dark-theme .main-navbar {
    background: var(--lm-dark-base) !important;
    background-color: var(--lm-dark-base) !important;
    background-image: none !important;
}

.dark-theme .main-header,
.dark-theme .main-sidebar-header,
.dark-theme .side-header,
.dark-theme .app-sidebar,
.dark-theme .horizontal-main.hor-menu {
    border-color: rgba(199, 208, 224, 0.12) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.45) !important;
}

.dark-theme .main-header:before,
.dark-theme .main-sidebar:before,
.dark-theme .app-sidebar:before,
.dark-theme .page:before,
.dark-theme .main-content:before {
    background: transparent !important;
    box-shadow: none !important;
}

/* Table + modal surface in dark mode */
.dark-theme .card,
.dark-theme .card-header,
.dark-theme .card-body,
.dark-theme .table-responsive,
.dark-theme .table,
.dark-theme .table tbody tr,
.dark-theme .table-bordered thead th,
.dark-theme .table-bordered thead td,
.dark-theme table.dataTable tbody tr,
.dark-theme .dataTables_wrapper .dataTables_scroll,
.dark-theme .dataTables_wrapper .dataTables_scrollHead,
.dark-theme .dataTables_wrapper .dataTables_scrollBody {
    background-color: var(--lm-dark-surface) !important;
}

.dark-theme .table thead th,
.dark-theme .table-bordered thead th,
.dark-theme .dataTables_wrapper table.dataTable thead th,
.dark-theme .dataTables_wrapper table.dataTable thead td {
    background-color: #080811 !important;
    color: #e8efff !important;
}

.dark-theme table.dataTable thead .sorting,
.dark-theme table.dataTable thead .sorting_asc,
.dark-theme table.dataTable thead .sorting_desc,
.dark-theme table.dataTable thead .sorting_asc_disabled,
.dark-theme table.dataTable thead .sorting_desc_disabled {
    background-color: #080811 !important;
}

.dark-theme .table th,
.dark-theme .table td,
.dark-theme .table-bordered th,
.dark-theme .table-bordered td {
    border-color: var(--lm-dark-border) !important;
}

.dark-theme .modal-content,
.dark-theme .modal-header,
.dark-theme .modal-body,
.dark-theme .modal-footer {
    background-color: var(--lm-dark-surface) !important;
    border-color: var(--lm-dark-border) !important;
    color: #e8efff !important;
}

.dark-theme .modal-header .close,
.dark-theme .modal-header .close span {
    color: #e8efff !important;
    opacity: 0.9 !important;
}

/* Footer: keep black base in dark mode */
.dark-theme .main-footer,
.dark-theme .footer,
.dark-theme footer,
.dark-theme .main-content-footer {
    background-color: var(--lm-dark-base) !important;
    background-image: none !important;
    border-top: 1px solid rgba(199, 208, 224, 0.12) !important;
    color: #c6cfde !important;
}

.dark-theme .main-error-wrapper h1,
.dark-theme .main-error-wrapper h2 {
    color: #e8efff !important;
}

.dark-theme .main-error-wrapper h6,
.dark-theme .main-error-wrapper .text-muted {
    color: #c6cfde !important;
}

.dark-theme .main-error-wrapper .btn.btn-outline-danger {
    color: #f7a2b4 !important;
    border-color: #f2839a !important;
}

.dark-theme .main-error-wrapper .btn.btn-outline-danger:hover,
.dark-theme .main-error-wrapper .btn.btn-outline-danger:focus {
    background-color: #f2839a !important;
    border-color: #f2839a !important;
    color: #1f2d3d !important;
}

.dark-theme .btn-primary,
.dark-theme a.btn-primary {
    background-color: #f2839a !important;
    border-color: #f2839a !important;
    color: #1f2d3d !important;
}

.dark-theme .btn-primary:hover,
.dark-theme .btn-primary:focus,
.dark-theme a.btn-primary:hover,
.dark-theme a.btn-primary:focus {
    background-color: #f59eb0 !important;
    border-color: #f59eb0 !important;
    color: #1f2d3d !important;
}

.dark-theme .btn-outline-primary,
.dark-theme a.btn-outline-primary {
    color: #f7a2b4 !important;
    border-color: #f2839a !important;
}

.dark-theme .btn-outline-primary:hover,
.dark-theme .btn-outline-primary:focus,
.dark-theme a.btn-outline-primary:hover,
.dark-theme a.btn-outline-primary:focus {
    background-color: #f2839a !important;
    border-color: #f2839a !important;
    color: #1f2d3d !important;
}

.dark-theme .text-primary {
    color: #f2839a !important;
}

.dark-theme .text-secondary {
    color: #aab6cf !important;
}

.dark-theme .text-success {
    color: #7ddfa2 !important;
}

.dark-theme .text-info {
    color: #80d2ff !important;
}

.dark-theme .text-warning {
    color: #ffd58a !important;
}

.dark-theme .text-danger {
    color: #f39fb0 !important;
}

.dark-theme .text-dark {
    color: #c6cfde !important;
}

.dark-theme .text-body {
    color: #cfd7e6 !important;
}

.dark-theme .text-muted {
    color: #b4bfd3 !important;
}

.dark-theme .text-white-50 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.dark-theme a.text-primary:hover,
.dark-theme a.text-primary:focus {
    color: #f9acbd !important;
}

.dark-theme a.text-secondary:hover,
.dark-theme a.text-secondary:focus {
    color: #c2cce0 !important;
}

.dark-theme a.text-success:hover,
.dark-theme a.text-success:focus {
    color: #9be8ba !important;
}

.dark-theme a.text-info:hover,
.dark-theme a.text-info:focus {
    color: #9bdeff !important;
}

.dark-theme a.text-warning:hover,
.dark-theme a.text-warning:focus {
    color: #ffe1ac !important;
}

.dark-theme a.text-danger:hover,
.dark-theme a.text-danger:focus {
    color: #fbc0cc !important;
}

.dark-theme a.text-dark:hover,
.dark-theme a.text-dark:focus {
    color: #d5deea !important;
}

.dark-theme a.text-body:hover,
.dark-theme a.text-body:focus {
    color: #e0e6f1 !important;
}

.dark-theme a.text-muted:hover,
.dark-theme a.text-muted:focus {
    color: #c7d0e0 !important;
}

/* Ledger book: keep account title readable in dark mode */
.dark-theme .ledger-result-box {
    background-color: var(--lm-dark-surface) !important;
    border: 1px solid var(--lm-dark-border) !important;
}

.dark-theme .ledger-result-box h1,
.dark-theme .ledger-result-box h2,
.dark-theme .ledger-result-box h3,
.dark-theme .ledger-result-box h4,
.dark-theme .ledger-result-box h5,
.dark-theme .ledger-result-box h6 {
    color: #e8efff !important;
}

.dark-theme .ledger-result-box .text-muted,
.dark-theme .ledger-result-box small.text-muted {
    color: #b4bfd3 !important;
}

/* Bank transfer mutation result panel readability in dark mode */
.dark-theme .bank-transfer-result-box {
    background-color: var(--lm-dark-surface) !important;
    border: 1px solid var(--lm-dark-border) !important;
    color: #e8efff !important;
}

.dark-theme .bank-transfer-result-box .text-muted,
.dark-theme .bank-transfer-result-box small.text-muted {
    color: #b4bfd3 !important;
}

.dark-theme .bank-transfer-result-box .btn-light {
    background-color: #2d3450 !important;
    border-color: #3b4668 !important;
    color: #e8efff !important;
}

.dark-theme .bank-transfer-result-box .btn-light:hover,
.dark-theme .bank-transfer-result-box .btn-light:focus {
    background-color: #394569 !important;
    border-color: #4a5780 !important;
    color: #ffffff !important;
}

/* Keep lighter palette on active state too (dark mode only) */
.dark-theme .active.text-primary,
.dark-theme .text-primary.active,
.dark-theme a.active.text-primary,
.dark-theme a.text-primary.active {
    color: #f9acbd !important;
}

.dark-theme .active.text-secondary,
.dark-theme .text-secondary.active,
.dark-theme a.active.text-secondary,
.dark-theme a.text-secondary.active {
    color: #c2cce0 !important;
}

.dark-theme .active.text-success,
.dark-theme .text-success.active,
.dark-theme a.active.text-success,
.dark-theme a.text-success.active {
    color: #9be8ba !important;
}

.dark-theme .active.text-info,
.dark-theme .text-info.active,
.dark-theme a.active.text-info,
.dark-theme a.text-info.active {
    color: #9bdeff !important;
}

.dark-theme .active.text-warning,
.dark-theme .text-warning.active,
.dark-theme a.active.text-warning,
.dark-theme a.text-warning.active {
    color: #ffe1ac !important;
}

.dark-theme .active.text-danger,
.dark-theme .text-danger.active,
.dark-theme a.active.text-danger,
.dark-theme a.text-danger.active {
    color: #fbc0cc !important;
}

.dark-theme .active.text-dark,
.dark-theme .text-dark.active,
.dark-theme a.active.text-dark,
.dark-theme a.text-dark.active {
    color: #d5deea !important;
}

.dark-theme .active.text-body,
.dark-theme .text-body.active,
.dark-theme a.active.text-body,
.dark-theme a.text-body.active {
    color: #e0e6f1 !important;
}

.dark-theme .active.text-muted,
.dark-theme .text-muted.active,
.dark-theme a.active.text-muted,
.dark-theme a.text-muted.active {
    color: #c7d0e0 !important;
}

/* Analyze HPP: light anomaly cards/rows need dark foreground in dark mode */
.dark-theme .summary-card,
.dark-theme .summary-card .count,
.dark-theme .summary-card .label,
.dark-theme .summary-card small,
.dark-theme .summary-card .text-muted {
    color: #27324a !important;
}

/* Dashboard finance: keep total column white like summary total cards */
.dark-theme .dashboard-finance-total,
.dark-theme .dashboard-finance-total a,
.dark-theme .dashboard-finance-total-link,
.dark-theme .dashboard-finance-total-link:hover,
.dark-theme .dashboard-finance-total-link:focus {
    color: #f7a2b4 !important;
}

.dark-theme .dashboard-finance-nota {
    color: #f7a2b4 !important;
}

.dark-theme .table_search tbody tr.row-floating td,
.dark-theme .table_search tbody tr.row-mismatch td,
.dark-theme .table_search tbody tr.row-negative-qty td,
.dark-theme .table_search tbody tr.row-negative-total td,
.dark-theme .table_search tbody tr.row-normal td {
    color: #27324a !important;
}

.dark-theme .table_search tbody tr.row-floating td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search tbody tr.row-mismatch td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search tbody tr.row-negative-qty td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search tbody tr.row-negative-total td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search tbody tr.row-normal td a:not(.btn):not([class*="btn-"]) {
    color: #27324a !important;
}

.dark-theme .table_search tbody tr td.sorting_1 {
    color: #e8efff !important;
}

.dark-theme .table_search.table-hover tbody tr:hover td {
    background-color: #2c3959 !important;
    color: #e8efff !important;
}

.dark-theme .table_search.table-hover tbody tr:hover td a:not(.btn):not([class*="btn-"]) {
    color: #e8efff !important;
}

.dark-theme .table_search.table-hover tbody tr.row-floating:hover td {
    background-color: #fffde7 !important;
    color: #27324a !important;
}

.dark-theme .table_search.table-hover tbody tr.row-mismatch:hover td {
    background-color: #fff3e0 !important;
    color: #27324a !important;
}

.dark-theme .table_search.table-hover tbody tr.row-negative-qty:hover td,
.dark-theme .table_search.table-hover tbody tr.row-negative-total:hover td {
    background-color: #ffebee !important;
    color: #27324a !important;
}

.dark-theme .table_search.table-hover tbody tr.row-normal:hover td {
    background-color: #e8f5e9 !important;
    color: #27324a !important;
}

.dark-theme .table_search.table-hover tbody tr.row-floating:hover td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search.table-hover tbody tr.row-mismatch:hover td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search.table-hover tbody tr.row-negative-qty:hover td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search.table-hover tbody tr.row-negative-total:hover td a:not(.btn):not([class*="btn-"]),
.dark-theme .table_search.table-hover tbody tr.row-normal:hover td a:not(.btn):not([class*="btn-"]) {
    color: #27324a !important;
}

.dark-theme .html-detail-card .table .table-warning,
.dark-theme .html-detail-card .table .table-warning>td,
.dark-theme .html-detail-card .table .table-warning>th,
.dark-theme .html-detail-card .table .table-danger,
.dark-theme .html-detail-card .table .table-danger>td,
.dark-theme .html-detail-card .table .table-danger>th {
    color: #27324a !important;
}

.dark-theme .html-detail-card .table .table-warning .text-muted,
.dark-theme .html-detail-card .table .table-danger .text-muted {
    color: #6f7c91 !important;
}

.dark-theme .html-detail-card .table .table-warning a:not(.btn):not([class*="btn-"]),
.dark-theme .html-detail-card .table .table-danger a:not(.btn):not([class*="btn-"]) {
    color: #8f1f46 !important;
}

.html-detail-card .table-freeze-head-wrap,
.html-detail-card .table-responsive {
    max-height: 420px;
    overflow: auto;
    position: relative;
}

.html-detail-card .table-freeze-head thead th,
.html-detail-card .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #f1f4fb;
    color: #27324a;
}

.dark-theme .html-detail-card .table-freeze-head thead th,
.dark-theme .html-detail-card .table-responsive thead th {
    background-color: var(--lm-dark-surface-2);
    color: #e8efff;
    border-color: rgba(199, 208, 224, 0.25);
}

/* Active state color tuning (dark mode only) */
.dark-theme .breadcrumb-style1 .breadcrumb-item.active,
.dark-theme .breadcrumb-style2 .breadcrumb-item.active,
.dark-theme .breadcrumb-style3 .breadcrumb-item.active,
.dark-theme .main-breadcrumbs .breadcrumb-item.active,
.dark-theme .breadcrumb-item.active {
    color: #f9acbd !important;
}

.dark-theme .nav-link.active,
.dark-theme .main-nav .nav-link.active,
.dark-theme .main-nav-line .nav-link.active,
.dark-theme .main-menu-sub .nav-link.active {
    color: #f9acbd !important;
}

.dark-theme .slide:hover .side-menu__label,
.dark-theme .slide:hover .angle,
.dark-theme .slide:hover .side-menu__icon {
    color: #f9acbd !important;
    fill: #f9acbd !important;
}

.dark-theme .dropdown-item.active,
.dark-theme .dropdown-item:active {
    color: #f9acbd !important;
    background-color: rgba(242, 131, 154, 0.18) !important;
}

.dark-theme .page-item.active .page-link {
    background-color: #f2839a !important;
    border-color: #f2839a !important;
}

.dark-theme .apexcharts-title-text,
.dark-theme .apexcharts-xaxis-title,
.dark-theme .apexcharts-yaxis-title,
.dark-theme .apexcharts-xaxis-label,
.dark-theme .apexcharts-yaxis-label,
.dark-theme .apexcharts-legend-text {
    fill: #d7def0 !important;
    color: #d7def0 !important;
}

.dark-theme .apexcharts-datalabel,
.dark-theme .apexcharts-data-labels text {
    fill: #a9dcff !important;
    color: #a9dcff !important;
}

.dark-theme .apexcharts-gridline {
    stroke: rgba(185, 201, 232, 0.30) !important;
}

.dark-theme #back-to-top {
    background: #e86f8a !important;
    border: 1px solid #e86f8a !important;
    color: #fff !important;
}

.dark-theme #back-to-top:hover,
.dark-theme #back-to-top:focus {
    background: #ee8ea4 !important;
    border-color: #ee8ea4 !important;
    color: #fff !important;
}

.border-dashed {
    border: 1px dashed #e3e8f7 !important;
}

.row {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

.horizontal-content>.container {
    max-width: 85%;
    margin: 0 auto;
}

.main-header>.container,
.horizontal-main>.container {
    max-width: 90%;
    margin: 0 auto;
}

.form-control {
    border: 1px solid #ccc;
}

/* Global polish for table action cell: checkbox + detail/action button */
.table td input[type="checkbox"][class*="check_"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin-right: 8px !important;
    vertical-align: middle;
    accent-color: #f2839a;
    cursor: pointer;
}

.table td input[type="checkbox"][class*="check_"]+a.btn,
.table td input[type="checkbox"][class*="check_"]+button.btn,
.table td input[type="checkbox"][class*="check_"]~a.btn,
.table td input[type="checkbox"][class*="check_"]~button.btn,
.table td .btn_verification,
.table td .btn_confirm,
.table td .btn_detail,
.table td [class*="btn_detail"] {
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.dark-theme .table td input[type="checkbox"][class*="check_"] {
    filter: drop-shadow(0 0 4px rgba(242, 131, 154, 0.35));
}

.dark-theme .table td input[type="checkbox"][class*="check_"]+a.btn,
.dark-theme .table td input[type="checkbox"][class*="check_"]+button.btn,
.dark-theme .table td input[type="checkbox"][class*="check_"]~a.btn,
.dark-theme .table td input[type="checkbox"][class*="check_"]~button.btn,
.dark-theme .table td .btn_verification,
.dark-theme .table td .btn_confirm,
.dark-theme .table td .btn_detail,
.dark-theme .table td [class*="btn_detail"] {
    box-shadow: 0 0 0 1px rgba(199, 208, 224, 0.2), 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Checkbox-only visibility tune (do not repaint entire first column) */
.dark-theme .table-data-select .ckbox span,
.dark-theme .table_request .ckbox span,
.dark-theme table.dataTable .ckbox span {
    padding-left: 18px !important;
}

.dark-theme .table-data-select .ckbox span:before,
.dark-theme .table_request .ckbox span:before,
.dark-theme table.dataTable .ckbox span:before {
    width: 18px !important;
    height: 18px !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #d8dbe3 !important;
    border: 1px solid #8f98b0 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 0 1px #f4f6fb !important;
}

.dark-theme .table-data-select .ckbox span:after,
.dark-theme .table_request .ckbox span:after,
.dark-theme table.dataTable .ckbox span:after {
    width: 18px !important;
    height: 18px !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 4px !important;
    background-color: #f2839a !important;
    background-size: 68% !important;
    background-position: 54% 45% !important;
}

.dark-theme .table-data-select .ckbox input[type='checkbox']:checked+span:after,
.dark-theme .table_request .ckbox input[type='checkbox']:checked+span:after,
.dark-theme table.dataTable .ckbox input[type='checkbox']:checked+span:after {
    display: block !important;
    box-shadow: 0 0 0 1px #6f7891, 0 0 8px rgba(242, 131, 154, 0.45) !important;
}

/* Ensure readable text on white form controls in dark mode */
.dark-theme .form-control,
.dark-theme .input-group-text,
.dark-theme .select2-container--default .select2-selection--single,
.dark-theme .chosen-container-single .chosen-single,
.dark-theme .chosen-container-multi .chosen-choices {
    background-color: #fff !important;
    color: #1f2d3d !important;
    border-color: #d6dbe5 !important;
}

.dark-theme .form-control::placeholder {
    color: #6f7c91 !important;
    opacity: 1;
}

.dark-theme input.form-control.bg-white.datepicker_form,
.dark-theme input.form-control.datepicker_form[readonly],
.dark-theme .datepicker_form {
    color: #1f2d3d !important;
    -webkit-text-fill-color: #1f2d3d !important;
    opacity: 1 !important;
}

.dark-theme .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark-theme .select2-container--default .select2-selection--single .select2-selection__placeholder,
.dark-theme .chosen-container-single .chosen-single span,
.dark-theme .chosen-container-multi .chosen-choices li.search-choice span {
    color: #1f2d3d !important;
}

.dark-theme .select2-dropdown,
.dark-theme .chosen-container .chosen-drop,
.dark-theme .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #fff !important;
    color: #1f2d3d !important;
    border-color: #d6dbe5 !important;
}

.dark-theme select.form-control option,
.dark-theme select.form-control optgroup,
.dark-theme select option {
    background-color: #fff !important;
    color: #1f2d3d !important;
}

.dark-theme select.form-control option:checked,
.dark-theme select option:checked {
    background-color: #e9eef8 !important;
    color: #1f2d3d !important;
}

.chosen-container.chosen-container-single .chosen-single {
    height: auto;
    padding: 10px;
    background: none !important;
}

.dark-theme .chosen-container.chosen-container-single .chosen-single,
.dark-theme .chosen-container-active.chosen-with-drop .chosen-single {
    background: #fff !important;
    background-image: none !important;
    color: #1f2d3d !important;
}

.form-group.has-danger input,
.form-group.has-danger textarea {
    border-color: #ee335e;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: center right calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-group.has-danger .help-block {
    color: #ee335e;
    ;
}

.list-group li {
    padding-right: 0px !important;
    list-style: none !important;
    border-bottom: 1px solid #deebfd;
}

.list-group .menu-container {
    padding: 5px 0;
}

.list-group .menu-container.devider {
    margin-top: 30px;
}

.list-group .menu-container:hover {
    color: #99143f;
    border-top-color: #dde2ef;
    border-bottom-color: #dde2ef;
    background-color: #ecf0fa;
    cursor: pointer;
}

.list-group .menu-container h4 {
    font-size: 15px;
}

.list-group li:hover li {
    background: none;
    color: #031b4e;
}

.toggle-group .toggle-off {
    color: #333;
    background-color: #e6e6e6;
    border: 1px solid #adadad;
}

.toggle-group span {
    background-color: #fff;
    margin-left: 2px;
}

.toggle-group span:hover {
    background-color: #e6e6e6;
}

.text-red {
    color: red;
}

.main-signup-header label {
    color: #031b4e;
}

.main-signup-header .form-control {
    font-weight: 500;
    border-width: 1px;
    border-color: #ccc;
}

.btn-sign-in {
    font-size: 20px;
    font-weight: 500;
}

/* .app-sidebar {
    width: 280px;
}
.main-content {
    padding-top: 0 !important;
    margin-left: 300px;
} */
.main-header {
    padding-left: 310px;
}

.main-sidebar-header {
    width: 300px;
}

.sidebar-right .side-item.side-item-category {
    color: #2c364c;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 12px;
    height: 15px;
    padding: 0 20px 0 25px;
}

.profile-edit.upload_form {
    opacity: 0;
}

.profile-edit.upload_form:hover {
    cursor: pointer;
}

.sp-container,
#ui-datepicker-div {
    z-index: 99997 !important;
}

.custom-label .ckbox {
    display: inline-block;
}

.custom-border {
    border: 1px solid #ccc;
}

.chosen-container {
    width: 100% !important;
}

.search-choice-close::after {
    content: 'X';
    font-size: 12px;
    font-weight: 800;
}

.chosen-container-multi .chosen-choices {
    background-image: none;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#global-loader {
    background-color: rgba(0, 0, 0, 0.2) !important;
    z-index: 900000 !important;
}

.ui-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
    background-color: transparent;
    color: #031b4e;
}

.ui-datepicker .ui-datepicker-calendar td a.ui-state-active {
    background-color: #99143f;
    color: #fff;
}

.ui-datepicker .ui-datepicker-calendar a.ui-state-default:hover,
.ui-datepicker .ui-datepicker-calendar a.ui-state-default:focus {
    background-color: #0162e8 !important;
    color: #fff !important;
}

/* stepper */
.md-stepper-horizontal {
    display: table;
    width: 100%;
    margin: 0 auto;
}

.md-stepper-horizontal .md-step {
    display: table-cell;
    position: relative;
    padding: 24px;
}

/* .md-stepper-horizontal .md-step:hover,
.md-stepper-horizontal .md-step:active {
	background-color:rgba(0,0,0,0.04);
} */
.md-stepper-horizontal .md-step:active {
    border-radius: 15% / 75%;
}

.md-stepper-horizontal .md-step:first-child:active {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.md-stepper-horizontal .md-step:last-child:active {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.md-stepper-horizontal .md-step:hover .md-step-circle {
    background-color: #757575;
}

.md-stepper-horizontal .md-step:first-child .md-step-bar-left,
.md-stepper-horizontal .md-step:last-child .md-step-bar-right {
    display: none;
}

.md-stepper-horizontal .md-step .md-step-circle {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background-color: #999999;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    z-index: 100;

}

.md-stepper-horizontal .md-step .md-step-circle {
    /* background-color:#00AE4D; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.md-stepper-horizontal.orange .md-step.active .md-step-circle {
    /* background-color:#F96302; */
}

.md-stepper-horizontal .md-step.active .md-step-circle {
    /* background-color: rgb(33,150,243); */
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

/* .md-stepper-horizontal .md-step.done .md-step-circle:before {
	font-family:'FontAwesome';
	font-weight:100;
	content: "\f00c";
} */
.md-stepper-horizontal .md-step.done .md-step-circle *,
.md-stepper-horizontal .md-step.editable .md-step-circle * {
    display: none;
}

.md-stepper-horizontal .md-step.editable .md-step-circle {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.md-stepper-horizontal .md-step.editable .md-step-circle:before {
    font-family: 'FontAwesome';
    font-weight: 100;
    content: "\f040";
}

.md-stepper-horizontal .md-step .md-step-title {
    /* margin-top:16px;
	font-size:16px;
	font-weight:600; */
}

.md-stepper-horizontal .md-step .md-step-title,
.md-stepper-horizontal .md-step .md-step-optional {
    text-align: center;
    margin-top: 15px;
}

.md-stepper-horizontal .md-step.active .md-step-title {
    font-weight: 600;
    /* color:rgba(0,0,0,.87); */
}

.md-stepper-horizontal .md-step.active.done .md-step-title,
.md-stepper-horizontal .md-step.active.editable .md-step-title {
    font-weight: 600;
}

.md-stepper-horizontal .md-step .md-step-optional {
    font-size: 12px;
}

.md-stepper-horizontal .md-step.active .md-step-optional {
    color: rgba(0, 0, 0, .54);
}

.md-stepper-horizontal .md-step .md-step-bar-left {
    margin-left: 3px;
}

.md-stepper-horizontal .md-step .md-step-bar-right {
    margin-right: 3px;
}

.md-stepper-horizontal .md-step .md-step-bar-left,
.md-stepper-horizontal .md-step .md-step-bar-right {
    position: absolute;
    top: 36px;
    height: 1px;
    border-top: 4px dotted #DDDDDD;
}

.md-stepper-horizontal .md-step .md-step-bar-left.finish,
.md-stepper-horizontal .md-step .md-step-bar-right.finish {
    border-top: 5px dotted #0162e8;
}

.md-stepper-horizontal .md-step .md-step-bar-right {
    right: 0;
    left: 50%;
    margin-left: 20px;
    margin-top: 15px;
    z-index: -2;
}

.md-stepper-horizontal .md-step .md-step-bar-left {
    left: 0;
    right: 50%;
    margin-right: 20px;
    margin-top: 15px;
    z-index: -2;
}

.btn_custom_plus:hover,
.btn_custom_minus:hover {
    cursor: pointer;
}

.horizontalMenu-list>li>a {
    padding-top: 20px !important;
}

.horizontalMenu-list .span-counter {
    position: absolute;
    left: 26px;
    top: 2px;
}

.horizontalMenu-list .sub-menu .span-counter {
    position: absolute;
    right: 5px;
    top: 10px;
    left: auto;
}

.side-menu .span-counter {
    position: absolute;
    right: 10px;
    top: 7px;
}

.custom.chip {
    color: #22252f;
}

.custom.chip:hover {
    color: #22252f;
    background-color: #f5f6fb;
}

.shadow-3 {
    box-shadow: rgba(49, 53, 59, 0.12) 0px 1px 6px 0px;
    -webkit-box-shadow: rgba(49, 53, 59, 0.12) 0px 1px 6px 0px;
    -moz-box-shadow: rgba(49, 53, 59, 0.12) 0px 1px 6px 0px;
}

.t-shadow>tbody>tr:hover {
    box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.46);
    -webkit-box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.46);
    -moz-box-shadow: 0px -1px 9px 1px rgba(0, 0, 0, 0.46);
    position: relative;
    cursor: pointer;
    border: none;
}

.custom_sidebar_panel li a .badge {
    background-color: #fff;
    color: #0162e8;
}

.table-no-border td,
.table-no-border th {
    border: none !important;
}

.wcnp-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.wcnp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wcnp-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.wcnp-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.wcnp-switch input:checked+.slider {
    background-color: #2196F3;
}

.wcnp-switch input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

.wcnp-switch input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.wcnp-switch .slider.round {
    border-radius: 34px;
}

.wcnp-switch .slider.round:before {
    border-radius: 50%;
}

/* .dataTables_filter{
    display: none;
} */


.app.sidenav-toggled .sidebar-right .side-menu__label {
    display: block !important;
    margin-left: 10px;
    font-size: 13px;
}

.sidebar-right .side-menu__item {
    text-align: left !important;
}

.sidebar-right .side-item.side-item-category {
    display: block !important;
}

.sidebar-right .side-menu__item {
    display: flex !important;
}

.sidebar-right .slide {
    padding-left: 20px;
}

.table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background: transparent;
}

table.dataTable tbody td.sorting_1 {
    background: transparent;
}

.dark-theme .dropdown-item.active,
.dark-theme .dropdown-item:active {
    color: #f9acbd !important;
    text-decoration: none;
    background-color: rgba(242, 131, 154, 0.18) !important;
}

.table-data-select thead tr th:first-child {
    width: 90px !important;
}

.table-data-select thead tr th:first-child {
    padding-right: 0 !important;
}

.table-data-select thead tr th:first-child::after {
    display: none;
}

.ui-menu.ui-autocomplete {
    z-index: 1000;
}

.profile-status.offline {
    background-color: #ccc;
    animation: none !important;
}

/* Hard override: table ckbox must stay visible in dark mode (checkbox only) */
body.dark-theme table .ckbox,
.dark-theme table .ckbox {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
}

body.dark-theme table .ckbox>input[type='checkbox'],
.dark-theme table .ckbox>input[type='checkbox'] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    opacity: 0 !important;
    z-index: 2 !important;
    cursor: pointer !important;
}

body.dark-theme table .ckbox>span,
.dark-theme table .ckbox>span {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    padding-left: 18px !important;
}

body.dark-theme table .ckbox>span:before,
.dark-theme table .ckbox>span:before {
    width: 18px !important;
    height: 18px !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #aeb6c8 !important;
    border: 2px solid #656f89 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 0 1px #e9edf6 !important;
}

body.dark-theme table .ckbox>span:after,
.dark-theme table .ckbox>span:after {
    width: 18px !important;
    height: 18px !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 4px !important;
    background-color: #99143f !important;
    box-shadow: 0 0 0 1px #656f89 !important;
}

body.dark-theme table .ckbox>input[type='checkbox']:checked+span:after,
.dark-theme table .ckbox>input[type='checkbox']:checked+span:after {
    display: block !important;
}

/* Dark mode: make first-column dropdown arrow and menu clearer */
body.dark-theme table .input-group .dropdown>.btn.btn-sm.border,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border {
    background-color: #1a1f2d !important;
    border-color: #59637d !important;
    color: #e6ecfb !important;
    box-shadow: inset 0 0 0 1px rgba(11, 16, 28, 0.45) !important;
}

body.dark-theme table .input-group .dropdown>.btn.btn-sm.border .fa-caret-down,
body.dark-theme table .input-group .dropdown>.btn.btn-sm.border .fas,
body.dark-theme table .input-group .dropdown>.btn.btn-sm.border i,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border .fa-caret-down,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border .fas,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border i {
    color: #f0f4ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme table .input-group .dropdown>.btn.btn-sm.border:hover,
body.dark-theme table .input-group .dropdown>.btn.btn-sm.border:focus,
body.dark-theme table .input-group .dropdown.show>.btn.btn-sm.border,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border:hover,
.dark-theme table .input-group .dropdown>.btn.btn-sm.border:focus,
.dark-theme table .input-group .dropdown.show>.btn.btn-sm.border {
    background-color: #232a3b !important;
    border-color: #707b97 !important;
    color: #ffffff !important;
}

body.dark-theme table .input-group .dropdown-menu,
.dark-theme table .input-group .dropdown-menu {
    background-color: #101628 !important;
    border: 1px solid #2d3750 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

body.dark-theme table .input-group .dropdown-menu .dropdown-item,
.dark-theme table .input-group .dropdown-menu .dropdown-item {
    color: #dbe5ff !important;
}

body.dark-theme table .input-group .dropdown-menu .dropdown-item:hover,
body.dark-theme table .input-group .dropdown-menu .dropdown-item:focus,
.dark-theme table .input-group .dropdown-menu .dropdown-item:hover,
.dark-theme table .input-group .dropdown-menu .dropdown-item:focus {
    background-color: #202a42 !important;
    color: #ffffff !important;
}

/* Final override: first checkbox/detail column must be black in dark mode */
body.dark-theme table.dataTable tbody td.sorting_1,
body.dark-theme .table-data-select tbody td:first-child,
body.dark-theme .table-data-select thead th:first-child,
body.dark-theme .table_request tbody td:first-child,
body.dark-theme .table_request thead th:first-child,
.dark-theme table.dataTable tbody td.sorting_1,
.dark-theme .table-data-select tbody td:first-child,
.dark-theme .table-data-select thead th:first-child,
.dark-theme .table_request tbody td:first-child,
.dark-theme .table_request thead th:first-child {
    background-color: #06051a !important;
}

body.dark-theme .table-data-select tbody td:first-child .input-group-text,
body.dark-theme .table_request tbody td:first-child .input-group-text,
body.dark-theme table.dataTable tbody td.sorting_1 .input-group-text,
.dark-theme .table-data-select tbody td:first-child .input-group-text,
.dark-theme .table_request tbody td:first-child .input-group-text,
.dark-theme table.dataTable tbody td.sorting_1 .input-group-text {
    background-color: #06051a !important;
    border-color: #353d58 !important;
}

body.dark-theme .table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
body.dark-theme .table_request tbody td:first-child .dropdown>.btn.btn-sm.border,
body.dark-theme table.dataTable tbody td.sorting_1 .dropdown>.btn.btn-sm.border,
.dark-theme .table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
.dark-theme .table_request tbody td:first-child .dropdown>.btn.btn-sm.border,
.dark-theme table.dataTable tbody td.sorting_1 .dropdown>.btn.btn-sm.border {
    background-color: #06051a !important;
    border-color: #4b5572 !important;
    color: #f4f7ff !important;
}

body.dark-theme .table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
body.dark-theme .table_request tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
body.dark-theme table.dataTable tbody td.sorting_1 .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
.dark-theme .table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
.dark-theme .table_request tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
.dark-theme table.dataTable tbody td.sorting_1 .dropdown>.btn.btn-sm.border i.fas.fa-caret-down {
    color: #f8fbff !important;
    opacity: 1 !important;
    filter: brightness(1.25) !important;
}

/* Strong module override: Jadwal Pembayaran table should use black base in dark mode */
body.dark-theme table.table_request.table-data-select,
body.dark-theme table.table_request.table-data-select thead th,
body.dark-theme table.table_request.table-data-select tbody td,
body.dark-theme table.table_request.table-data-select tbody tr,
body.dark-theme table.table_request.table-data-select tbody td.sorting_1,
.dark-theme table.table_request.table-data-select,
.dark-theme table.table_request.table-data-select thead th,
.dark-theme table.table_request.table-data-select tbody td,
.dark-theme table.table_request.table-data-select tbody tr,
.dark-theme table.table_request.table-data-select tbody td.sorting_1 {
    background-color: #06051a !important;
}

body.dark-theme table.table_request.table-data-select tbody td,
body.dark-theme table.table_request.table-data-select thead th,
.dark-theme table.table_request.table-data-select tbody td,
.dark-theme table.table_request.table-data-select thead th {
    box-shadow: none !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .input-group,
body.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-prepend,
body.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-text,
body.dark-theme table.table_request.table-data-select thead th:first-child .input-group,
body.dark-theme table.table_request.table-data-select thead th:first-child .input-group-prepend,
body.dark-theme table.table_request.table-data-select thead th:first-child .input-group-text,
.dark-theme table.table_request.table-data-select tbody td:first-child .input-group,
.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-prepend,
.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-text,
.dark-theme table.table_request.table-data-select thead th:first-child .input-group,
.dark-theme table.table_request.table-data-select thead th:first-child .input-group-prepend,
.dark-theme table.table_request.table-data-select thead th:first-child .input-group-text {
    background-color: #06051a !important;
    border-color: #303952 !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
body.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border,
.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border {
    background-color: #06051a !important;
    border-color: #3f4a68 !important;
    color: #eef4ff !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i,
body.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border i,
.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i,
.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border i {
    color: #f2f7ff !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Keep card surfaces black in dark mode (avoid fallback blue panels) */
body.dark-theme .card,
body.dark-theme .card-header,
body.dark-theme .card-body,
body.dark-theme .table-responsive,
.dark-theme .card,
.dark-theme .card-header,
.dark-theme .card-body,
.dark-theme .table-responsive {
    background-color: #06051a !important;
    background-image: none !important;
}

/* Exact first-column style for Jadwal Pembayaran table (match reference screenshot) */
body.dark-theme table.table_request.table-data-select tbody td.sorting_1,
body.dark-theme table.table_request.table-data-select tbody td:first-child,
body.dark-theme table.table_request.table-data-select thead th:first-child,
.dark-theme table.table_request.table-data-select tbody td.sorting_1,
.dark-theme table.table_request.table-data-select tbody td:first-child,
.dark-theme table.table_request.table-data-select thead th:first-child {
    background-color: #080a2a !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .input-group,
body.dark-theme table.table_request.table-data-select thead th:first-child .input-group,
.dark-theme table.table_request.table-data-select tbody td:first-child .input-group,
.dark-theme table.table_request.table-data-select thead th:first-child .input-group {
    background: transparent !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-text,
body.dark-theme table.table_request.table-data-select thead th:first-child .input-group-text,
.dark-theme table.table_request.table-data-select tbody td:first-child .input-group-text,
.dark-theme table.table_request.table-data-select thead th:first-child .input-group-text {
    background-color: #1a2342 !important;
    border: 1px solid rgba(194, 204, 230, 0.28) !important;
    color: #f3f7ff !important;
    box-shadow: none !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
body.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border,
.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border,
.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border {
    background-color: #1a2342 !important;
    border: 1px solid rgba(194, 204, 230, 0.36) !important;
    color: #ffffff !important;
    min-width: 32px !important;
    box-shadow: none !important;
}

body.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
body.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
.dark-theme table.table_request.table-data-select tbody td:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down,
.dark-theme table.table_request.table-data-select thead th:first-child .dropdown>.btn.btn-sm.border i.fas.fa-caret-down {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}

#DataTables_Table_0>tbody>tr>td.sorting_1>div>div.dropdown>button>i {
    color: white;
}
