/*-----------------------------------------------
|   Theme Styles
-----------------------------------------------*/
:root,
[data-bs-theme='light'] {
    --phoenix-list-group-active-bg: #065a14 !important;
    --phoenix-dual-nav-first-layer-bg: var(--phoenix-nav);
    --phoenix-nav: #065a14;
    --phoenix-dual-nav-second-layer-bg: var(--phoenix-nav);
    --phoenix-btn-color: #fff;
    --phoenix-navbar-text: #fff;
    --phoenix-nav-link-color: #fff;

    /* PRIMARY */
    --primary-green: #0B7A33;
    --primary-green-dark: #065A24;
    --primary-green-light: #2FA85A;

    /* GOLD */
    --primary-gold: #D9A520;
    --primary-gold-dark: #B88712;
    --primary-gold-light: #F2C94C;
}

/* ============================================
   DARK MODE - COMPLETE FIX
   ============================================ */

/* Dark mode variables */
[data-bs-theme='dark'] {
    /* Backgrounds */
    --phoenix-nav: #1a2a2f;
    --phoenix-navbar-text: #e0e0e0;
    --phoenix-nav-link-color: #e0e0e0;

    /* Modal */
    --modal-bg-dark: #1e2a2e;
    --modal-body-dark: #1a2428;
    --modal-border-dark: #2d3a3e;

    /* Text */
    --text-primary-dark: #e0e0e0;
    --text-secondary-dark: #a0a0a0;
    --text-muted-dark: #8a8a8a;

    /* Form */
    --input-bg-dark: #2a363a;
    --input-border-dark: #3a4a4e;
    --input-text-dark: #e0e0e0;
    --input-placeholder-dark: #8a9a9e;

    /* Cards & Info */
    --card-bg-dark: #1e2a2e;
    --info-card-bg-dark: #243438;
    --alert-bg-dark: #1a3a2a;

    /* Borders */
    --border-color-dark: #2d3a3e;
    --divider-dark: #2d3a3e;

    /* Gold tetap */
    --primary-gold: #D9A520;
    --primary-gold-dark: #B88712;
    --primary-gold-light: #F2C94C;
    --primary-green: #0B7A33;
}

/* ========== MODAL DARK MODE ========== */
[data-bs-theme='dark'] .modal-content {
    background-color: var(--modal-bg-dark);
    border: 1px solid var(--modal-border-dark);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-bs-theme='dark'] .modal-header-custom,
[data-bs-theme='dark'] .modal-header.green-header {
    background: linear-gradient(135deg, #0a2a1a 0%, #051a0f 100%);
}

[data-bs-theme='dark'] .modal-header-custom .modal-title,
[data-bs-theme='dark'] .modal-header.green-header .modal-title {
    color: #ffffff;
}

[data-bs-theme='dark'] .modal-body.custom-body,
[data-bs-theme='dark'] .modal-body.green-body {
    background: var(--modal-body-dark);
}

[data-bs-theme='dark'] .modal-footer-custom,
[data-bs-theme='dark'] .modal-footer.green-footer {
    background: var(--modal-body-dark);
    border-top: 1px solid var(--divider-dark);
}

/* ========== FORM ELEMENTS DARK MODE ========== */
[data-bs-theme='dark'] .modal-body .form-label {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .modal-body .form-control,
[data-bs-theme='dark'] .modal-body .form-select {
    background-color: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: var(--input-text-dark);
}

[data-bs-theme='dark'] .modal-body .form-control:focus,
[data-bs-theme='dark'] .modal-body .form-select:focus {
    background-color: var(--input-bg-dark);
    color: var(--input-text-dark);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(217, 165, 32, 0.25);
}

[data-bs-theme='dark'] .modal-body .form-control::placeholder {
    color: var(--input-placeholder-dark);
}

[data-bs-theme='dark'] .modal-body .input-group-text {
    background: linear-gradient(135deg, #0a2a1a 0%, #051a0f 100%);
    border: none;
    color: #ffffff;
}

[data-bs-theme='dark'] .modal-body .form-select option {
    background-color: var(--input-bg-dark);
    color: var(--input-text-dark);
}

/* ========== INFO CARD DARK MODE ========== */
[data-bs-theme='dark'] .info-program-card {
    background: linear-gradient(135deg, #1a2a1a 0%, #0f1f0f 100%);
    border-left: 4px solid var(--primary-gold);
}

[data-bs-theme='dark'] .info-program-card .text-muted,
[data-bs-theme='dark'] .info-program-card small {
    color: var(--text-muted-dark) !important;
}

[data-bs-theme='dark'] .info-program-card .fw-semibold {
    color: var(--text-primary-dark);
}

/* ========== ALERT DARK MODE ========== */
[data-bs-theme='dark'] .alert-custom {
    background: var(--alert-bg-dark);
    border-left: 4px solid var(--primary-gold);
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .alert-custom .alert-icon {
    color: var(--primary-gold);
}

[data-bs-theme='dark'] .alert-info {
    background: #1a3a4a;
    border-color: #2a5a6a;
    color: #a0d0e0;
}

/* ========== STEP NUMBER DARK MODE ========== */
[data-bs-theme='dark'] .step-number {
    background: linear-gradient(135deg, #0a2a1a 0%, #051a0f 100%);
    color: #fff;
}

[data-bs-theme='dark'] .step-number.active {
    background: linear-gradient(135deg, #b88a2a 0%, #a07820 100%);
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.3);
}

[data-bs-theme='dark'] .step-number.completed {
    background: #0d3b1f;
}

/* ========== DATA TABLE DARK MODE ========== */
[data-bs-theme='dark'] .modal-body .table-mustahik {
    background-color: var(--input-bg-dark);
}

[data-bs-theme='dark'] .modal-body .table-mustahik thead {
    background: var(--input-bg-dark);
    border-bottom: 2px solid var(--border-color-dark);
}

[data-bs-theme='dark'] .modal-body .table-mustahik th {
    background: var(--input-bg-dark);
    color: var(--text-primary-dark);
    border-bottom: 1px solid var(--border-color-dark);
}

[data-bs-theme='dark'] .modal-body .table-mustahik td {
    color: var(--text-secondary-dark);
    border-bottom: 1px solid var(--border-color-dark);
}

[data-bs-theme='dark'] .modal-body .table-mustahik tr:hover td {
    background-color: rgba(217, 165, 32, 0.1);
}

/* ========== CHECKBOX DARK MODE ========== */
[data-bs-theme='dark'] .form-check-label {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .form-check-input {
    background-color: var(--input-bg-dark);
    border-color: var(--input-border-dark);
}

[data-bs-theme='dark'] .form-check-input:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

[data-bs-theme='dark'] .form-check-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(217, 165, 32, 0.25);
}

/* ========== SELECTED COUNTER DARK MODE ========== */
[data-bs-theme='dark'] .selected-counter {
    background: var(--input-bg-dark);
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .selected-counter span {
    color: var(--primary-gold);
}

/* ========== SWEETALERT DARK MODE ========== */
[data-bs-theme='dark'] .swal2-popup {
    background: var(--modal-bg-dark) !important;
    color: var(--text-primary-dark) !important;
    border: 1px solid var(--border-color-dark);
}

[data-bs-theme='dark'] .swal2-title {
    color: var(--text-primary-dark) !important;
}

[data-bs-theme='dark'] .swal2-html-container {
    color: var(--text-secondary-dark) !important;
}

[data-bs-theme='dark'] .swal2-confirm {
    background-color: var(--primary-gold) !important;
}

[data-bs-theme='dark'] .swal2-cancel {
    background-color: #3a4a4e !important;
}

/* ========== VALIDATION ERRORS DARK MODE ========== */
[data-bs-theme='dark'] .invalid-feedback {
    color: #ff6b6b;
}

[data-bs-theme='dark'] .is-invalid {
    border-color: #ff6b6b !important;
}

[data-bs-theme='dark'] .is-invalid:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25) !important;
}

/* ========== TEXT & MISC DARK MODE ========== */
[data-bs-theme='dark'] .text-muted {
    color: var(--text-muted-dark) !important;
}

[data-bs-theme='dark'] .border-top,
[data-bs-theme='dark'] .border-bottom,
[data-bs-theme='dark'] .border-start,
[data-bs-theme='dark'] .border-end {
    border-color: var(--divider-dark) !important;
}

[data-bs-theme='dark'] hr {
    border-color: var(--divider-dark);
}

[data-bs-theme='dark'] .bg-white {
    background-color: var(--input-bg-dark) !important;
}

[data-bs-theme='dark'] .dropdown-menu {
    background-color: var(--modal-bg-dark);
    border-color: var(--border-color-dark);
}

[data-bs-theme='dark'] .dropdown-item {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .dropdown-item:hover {
    background-color: var(--input-bg-dark);
    color: var(--primary-gold);
}

/* ========== BUTTONS DARK MODE ========== */
[data-bs-theme='dark'] .btn-outline-secondary {
    border-color: var(--input-border-dark);
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .btn-outline-secondary:hover {
    background-color: var(--input-bg-dark);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

[data-bs-theme='dark'] .btn-phoenix-secondary {
    background-color: var(--input-bg-dark);
    color: var(--text-primary-dark);
    border-color: var(--border-color-dark);
}

[data-bs-theme='dark'] .btn-phoenix-secondary:hover {
    background-color: rgba(217, 165, 32, 0.2);
    color: var(--primary-gold);
}

/* ========== SIDEBAR DARK MODE ========== */
[data-bs-theme='dark'] .navbar-vertical {
    background-color: #0d1a1e;
}

[data-bs-theme='dark'] .navbar-vertical .nav-link {
    color: var(--text-secondary-dark);
}

[data-bs-theme='dark'] .navbar-vertical .nav-link.active {
    color: var(--primary-gold);
    background-color: rgba(217, 165, 32, 0.1);
}

[data-bs-theme='dark'] .navbar-vertical .nav-link:hover {
    color: var(--primary-gold);
}

/* ========== PAGINATION DARK MODE ========== */
[data-bs-theme='dark'] .dataTables_wrapper .pagination .page-link {
    background-color: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .dataTables_wrapper .pagination .page-link:hover {
    background-color: #0d3b1f;
    border-color: #0d3b1f;
    color: #ffffff;
}

[data-bs-theme='dark'] .dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    color: #ffffff;
}

[data-bs-theme='dark'] .dataTables_wrapper .pagination .page-item.disabled .page-link {
    background-color: #2a363a !important;
    color: #6c757d !important;
    border-color: #2a363a !important;
}
/* ============================================
   DARK MODE - PERMISSION ACCORDION
   ============================================ */

[data-bs-theme='dark'] .accordion-permission {
    border-color: #2d3a3e;
}

[data-bs-theme='dark'] .accordion-permission .accordion-item {
    background: transparent;
}

[data-bs-theme='dark'] .accordion-permission .accordion-header {
    background: #1e2a2e;
    color: #e0e0e0;
    border-bottom: 1px solid #2d3a3e;
}

[data-bs-theme='dark'] .accordion-permission .accordion-header:hover {
    background: #243438;
}

[data-bs-theme='dark'] .accordion-permission .accordion-header .badge-count {
    background: #2d3a3e;
    color: #a0a0a0;
}

[data-bs-theme='dark'] .accordion-permission .accordion-body {
    background: #1a2428;
}

[data-bs-theme='dark'] .permission-menu-item {
    background: #1a2428;
    border-bottom: 1px solid #2d3a3e;
}

[data-bs-theme='dark'] .permission-menu-item:hover {
    background: #1e2a2e;
}

[data-bs-theme='dark'] .permission-menu-info .menu-name {
    color: #e0e0e0;
}

[data-bs-theme='dark'] .permission-menu-info .menu-url {
    color: #6c757d;
}

[data-bs-theme='dark'] .permission-menu-info .menu-icon {
    color: #6c757d;
}

/* Dark mode - Switch */
[data-bs-theme='dark'] .permission-switch .form-check-input {
    background-color: #2d3a3e;
    border-color: #3a4a4e;
}

[data-bs-theme='dark'] .permission-switch .form-check-input:checked {
    background-color: #c9a03d;
    border-color: #b88712;
}

[data-bs-theme='dark'] .permission-switch .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(201, 160, 61, 0.25);
}

/* Dark mode - Icons */
[data-bs-theme='dark'] .permission-switch-item .switch-icon {
    color: #8a8a8a;
}

[data-bs-theme='dark'] .permission-switch-item .switch-icon.view { color: #6ea8fe; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.create { color: #75b798; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.edit { color: #ffda6a; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.delete { color: #ea868f; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.detail { color: #6edff6; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.approve { color: #75b798; }
[data-bs-theme='dark'] .permission-switch-item .switch-icon.print { color: #a0a0a0; }
/* Force dark mode background */
[data-bs-theme='dark'] .accordion-permission,
[data-bs-theme='dark'] .accordion-permission * {
    background-color: #1a2428 !important;
}

[data-bs-theme='dark'] .accordion-permission .accordion-header {
    background-color: #1e2a2e !important;
}

[data-bs-theme='dark'] .accordion-permission .accordion-body {
    background-color: #1a2428 !important;
}

[data-bs-theme='dark'] .permission-menu-item {
    background-color: #1a2428 !important;
}

[data-bs-theme='dark'] .permission-menu-item:hover {
    background-color: #222e32 !important;
}
/* Dark mode - Accordion Header */
[data-bs-theme='dark'] .accordion-permission .accordion-body,
[data-bs-theme='dark'] .accordion-button {
    background-color: #222e32 !important;
    color: #ffffff !important;
}

[data-bs-theme='dark'] .accordion-button::after {
    filter: brightness(0) invert(1);
}

[data-bs-theme='dark'] .accordion-button:not(.collapsed) {
    background-color: #0d3b1f !important;
    color: #ffffff !important;
}
/* ============================================
   DARK MODE - ACCORDION BODY & PERMISSION ITEMS
   ============================================ */

/* Dark mode - Accordion body */
[data-bs-theme='dark'] .accordion-body,
[data-bs-theme='dark'] .accordion-body.p-0 {
    background-color: #12181c !important;
}

/* Dark mode - Permission menu items */
[data-bs-theme='dark'] .accordion-body .d-flex.align-items-center.border-bottom {
    background-color: #12181c !important;
    border-bottom-color: #2a3338 !important;
}

[data-bs-theme='dark'] .accordion-body .d-flex.align-items-center.border-bottom:hover {
    background-color: #1a2428 !important;
}

/* Dark mode - Menu text */
[data-bs-theme='dark'] .accordion-body .text-muted,
[data-bs-theme='dark'] .accordion-body .uil-calendar-alt,
[data-bs-theme='dark'] .accordion-body .uil-user,
[data-bs-theme='dark'] .accordion-body .uil-shield-check {
    color: #8a8a8a !important;
}

[data-bs-theme='dark'] .accordion-body span[style*="font-size:12px"] {
    color: #e0e0e0 !important;
}

[data-bs-theme='dark'] .accordion-body span[style*="color:#9fa6bc"] {
    color: #6c757d !important;
}

/* Dark mode - Switch container */
[data-bs-theme='dark'] .accordion-body .form-check.form-switch {
    background-color: transparent !important;
}

/* Dark mode - Icons dalam permission */
[data-bs-theme='dark'] .accordion-body .fa-eye,
[data-bs-theme='dark'] .accordion-body .fa-plus-circle,
[data-bs-theme='dark'] .accordion-body .fa-edit,
[data-bs-theme='dark'] .accordion-body .fa-trash,
[data-bs-theme='dark'] .accordion-body .fa-info-circle,
[data-bs-theme='dark'] .accordion-body .fa-check-circle,
[data-bs-theme='dark'] .accordion-body .fa-print {
    opacity: 0.8;
}

[data-bs-theme='dark'] .accordion-body .fa-eye {
    color: #6ea8fe !important;
}

[data-bs-theme='dark'] .accordion-body .fa-plus-circle {
    color: #75b798 !important;
}

[data-bs-theme='dark'] .accordion-body .fa-edit {
    color: #ffda6a !important;
}

[data-bs-theme='dark'] .accordion-body .fa-trash {
    color: #ea868f !important;
}

[data-bs-theme='dark'] .accordion-body .fa-info-circle {
    color: #6edff6 !important;
}

[data-bs-theme='dark'] .accordion-body .fa-check-circle {
    color: #75b798 !important;
}

[data-bs-theme='dark'] .accordion-body .fa-print {
    color: #a0a0a0 !important;
}
/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-mal {
    background-color: #065835 !important;
    border-color: #065a14 !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #D9A520 !important;
    border-color: #F2C94C !important;
}

.btn-primary:hover {
    background-color: #B88712 !important;
    border-color: #F2C94C !important;
}

.btn-gold,
.btn-submit-gold {
    background: linear-gradient(135deg, #c9a03d 0%, #b88a2a 100%);
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-gold:hover,
.btn-submit-gold:hover {
    background: linear-gradient(135deg, #b88a2a 0%, #a07820 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(201, 160, 61, 0.3);
    color: #fff;
}

.btn-gold:disabled,
.btn-submit-gold:disabled {
    background: #b0a07c;
    transform: none;
    cursor: not-allowed;
}

.btn-outline-green {
    background: transparent;
    border: 2px solid #1a4d2a;
    color: #1a4d2a;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.btn-outline-green:hover {
    background: #1a4d2a;
    color: #fff;
    transform: translateY(-2px);
}

/* Phoenix theme disabled button */
.btn-phoenix-primary:disabled,
.btn-phoenix-primary.disabled {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #999 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    opacity: 0.6;
}

.btn-phoenix-secondary:disabled,
.btn-phoenix-secondary.disabled {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #bbb !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-switch .form-check-input:checked {
    background-color: #D9A520;
    border-color: #B88712;
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.form-label {
    padding-left: 0;
}

.form-check-input:checked {
    background-color: #c9a03d;
    border-color: #c9a03d;
}

.form-check-input:focus {
    border-color: #c9a03d;
    box-shadow: 0 0 0 0.2rem rgba(201, 160, 61, 0.25);
}

/* ============================================
   BACKGROUND & TEXT STYLES
   ============================================ */
.bg-mal {
    background-color: #B88712 !important;
    border-color: #F2C94C !important;
}

.bg-bait {
    background-color: var(--phoenix-nav);
    color: var(--phoenix-navbar-text);
}

.bg-bait,
.bg-bait .modal-title,
.bg-bait h5 {
    color: #fff !important;
}

.bg-bait-light {
    background-color: #dfffe9;
    border-color: #065a14;
}

.text-bait {
            color: #004227;
        
}

/* ============================================
   LIST GROUP STYLES
   ============================================ */
.list-group-item.active {
    background-color: var(--phoenix-nav);
    border-color: #065a14;
}

/* ============================================
   DATA TABLES STYLES
   ============================================ */
.table-wrapper {
    padding-bottom: 12px;
}

.dataTables_wrapper .table-responsive {
    margin-bottom: 2rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dataTables_wrapper .pagination .page-link {
    background-color: #ffffff;
    color: #065a14;
    border: 1px solid #b7d9bd;
    border-radius: 8px;
    margin: 0 2px;
    transition: all .2s ease;
    box-shadow: none !important;
    outline: none !important;
}

.dataTables_wrapper .pagination .page-link:hover {
    background-color: #08751b;
    border-color: #08751b;
    color: #ffffff;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #065a14;
    border-color: #065a14;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(6, 90, 20, 0.25);
}

.dataTables_wrapper .pagination .page-link:focus {
    color: #065a14;
    background-color: #ffffff;
    border-color: #065a14;
    box-shadow: 0 0 0 0.15rem rgba(6, 90, 20, 0.15) !important;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    background-color: #4a6d57 !important;
    color: #c8d6cb;
    border-color: #e3ebe5;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
/* Matikan dropdown saat hover di navbar */
.navbar-top .nav-item.dropdown:hover>.navbar-dropdown-caret,
.navbar-vertical .nav-item.dropdown:hover>.navbar-dropdown-caret,
li.nav-item.dropdown:hover>ul.navbar-dropdown-caret {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Tampil hanya saat .show aktif via click */
.navbar-top .nav-item.dropdown>.navbar-dropdown-caret.show,
li.nav-item.dropdown>ul.navbar-dropdown-caret.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   GLOBAL MODAL STYLE - ISLAMIC GREEN & GOLD
   ============================================ */

/* Modal Container */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal Header - Green */
.modal-header-custom,
.modal-header.green-header {
    background: linear-gradient(135deg, #1a4d2a 0%, #0d3b1f 100%);
    padding: 1rem 1.5rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom .modal-title,
.modal-header.green-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0;
}

/* Tombol close di modal header */
.modal-header-custom .btn-close,
.modal-header.green-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    /* 🔥 Reset margin */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.2s;
    filter: brightness(0) invert(1);
    position: relative;
    top: 0;
    transform: none;
}

.modal-header-custom .btn-close:hover,
.modal-header.green-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    
    /* transform: rotate(90deg); */
}

/* Untuk modal header dengan class bg-bait */
.modal-header.bg-bait .btn-close {
    filter: brightness(0) invert(1);
}

/* Modal Body */
.modal-body.custom-body,
.modal-body.green-body {
    background: #fafaf5;
    padding: 1.5rem;
}

/* Modal Body Form Elements */
.modal-body .form-label {
    color: #1a4d2a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-color: #e0d5b7;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #c9a03d;
    box-shadow: 0 0 0 3px rgba(201, 160, 61, 0.25);
}

.modal-body .input-group-text {
    background: #1a4d2a;
    color: #fff;
    border: none;
    border-radius: 12px 0 0 12px;
}

/* Modal Footer */
.modal-footer-custom,
.modal-footer.green-footer {
    background: #fafaf5;
    border-top: 1px solid #e8debf;
    padding: 1rem 1.5rem;
}

/* ============================================
   STEP NUMBER STYLE
   ============================================ */
.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a4d2a 0%, #0d3b1f 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-number.active {
    background: linear-gradient(135deg, #c9a03d 0%, #b88a2a 100%);
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.3);
}

.step-number.completed {
    background: #2e7d32;
}

/* ============================================
   INFO CARD STYLE
   ============================================ */
.info-program-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #c9a03d;
    border-radius: 16px;
    padding: 1rem;
}

/* ============================================
   ALERT STYLE
   ============================================ */
.alert-custom {
    background: #e8f5e9;
    border-left: 4px solid #c9a03d;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.alert-custom .alert-icon {
    color: #1a4d2a;
    margin-right: 0.5rem;
}

/* ============================================
   SELECTED COUNTER BADGE
   ============================================ */
.selected-counter {
    background: #e8f5e9;
    color: #1a4d2a;
    border-radius: 30px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.selected-counter span {
    font-weight: bold;
    color: #c9a03d;
}

/* ============================================
   DATA TABLE INSIDE MODAL
   ============================================ */
.modal-body .table-mustahik {
    border-radius: 16px;
    overflow: hidden;
}

.modal-body .table-mustahik thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e8debf;
}

.modal-body .table-mustahik th {
    background: #f8f9fa;
    color: #1a4d2a;
    font-weight: 600;
    padding: 0.75rem;
}

.modal-body .table-mustahik td {
    padding: 0.75rem;
    vertical-align: middle;
}


.swal-validation {
    border-radius: 16px !important;
}

.swal-validation ul {
    color: #dc3545;
}

.swal-validation .swal2-confirm {
    background-color: #c9a03d !important;
    border-radius: 30px !important;
}

/* ============================================
   TABLE BORDERED STYLES
   ============================================ */
.table-bordered {
    border: 1px solid var(--phoenix-gold-light, #e8debf);
}

.table-bordered th,
.table-bordered td {
    border-color: var(--phoenix-gold-light, #e8debf) !important;
    padding: 12px 10px;
}

.table thead th {
    border-bottom: 2px solid var(--primary-gold, #c9a03d);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #050505;
}

.table tfoot td {
    border-top: 2px solid var(--primary-gold, #c9a03d);
    background: #fff8e7;
}

/* ============================================
   MUSTAHIK CARD STYLES
   ============================================ */
.mustahik-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--phoenix-gold-light, #e8debf);
    border-radius: 16px;
    background: white;
}

.mustahik-card:hover {
    background-color: #fff8e7;
    border-color: var(--primary-gold, #c9a03d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.15);
}

.mustahik-card.selected {
    background: linear-gradient(135deg, #fff8e7 0%, #fffcf0 100%);
    border-color: var(--primary-gold, #c9a03d);
    border-width: 2px;
}

/* ============================================
   ITEM ROW STYLES
   ============================================ */
.item-row {
    transition: all 0.2s ease;
    border: 1px solid var(--phoenix-gold-light, #e8debf);
    border-radius: 12px;
    background: white;
}

.item-row:hover {
    background-color: #fff8e7;
    border-color: var(--primary-gold, #c9a03d);
}

/* ============================================
   STEP SECTION ACTIVE
   ============================================ */
.step-section.active .step-number {
    background: var(--primary-gold, #c9a03d) !important;
    color: white !important;
}

/* ============================================
   BADGE ASNAF
   ============================================ */
.badge-asnaf {
    background: var(--phoenix-gold-light, #e8debf);
    color: var(--phoenix-nav, #1a4d2a);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
}

/* ============================================
   TIMELINE STYLES
   ============================================ */
.timeline-container {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-gold, #c9a03d) 0%, var(--phoenix-gold-light, #e8debf) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-gold, #c9a03d);
    border: 2px solid #fffcf0;
    box-shadow: 0 0 0 2px var(--phoenix-gold-light, #e8debf);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   MUSTAHIK INFO ALERT
   ============================================ */
#infoMustahikSimple .alert {
    background: #052508;
    border-left: 4px solid var(--phoenix-nav, #1a4d2a);
    border-radius: 12px;
}

/* ============================================
   NAV TABS STYLES
   ============================================ */
.nav-tabs .nav-link {
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-gold, #c9a03d) 0%, #b3862a 100%) !important;
    color: white !important;
    border: none !important;
}

.nav-tabs .nav-link:hover:not(.active) {
    background: #fff8e7;
    color: var(--phoenix-nav, #1a4d2a);
    border-color: var(--phoenix-gold-light, #e8debf) var(--phoenix-gold-light, #e8debf) transparent;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        scrollbar-width: thin;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .tab-content {
        min-height: 450px;
        max-height: 55vh;
    }
}

/* ============================================
   CARD HOVER EFFECT
   ============================================ */
#rekeningContainer .card,
#itemsContainerDetail .card {
    transition: all 0.3s ease;
    cursor: default;
}

#rekeningContainer .card:hover,
#itemsContainerDetail .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* ============================================
   PENGAJUAN MANDIRI STYLES
   ============================================ */

/* Step Section */
.step-section .step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    background: #e0d5b7;
    color: #1a4d2a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-section.active .step-number {
    background: #c9a03d !important;
    color: #fff !important;
}

.step-section h6 {
    color: #1a4d2a;
}

.step-section .text-muted {
    color: #6c757d;
}

/* Form Controls */
.form-select,
.form-control {
    border-color: #e0d5b7;
    border-radius: 12px;
}

.form-select:focus,
.form-control:focus {
    border-color: #c9a03d;
    box-shadow: 0 0 0 0.2rem rgba(201, 160, 61, 0.25);
}

/* Input Group */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group-text {
    background: white;
    border-color: #e0d5b7;
}

.input-group-text .fa-search {
    color: #c9a03d;
}

/* Info Program Card */
.info-program-card {
    background: linear-gradient(135deg, #fff8e7 0%, #fffcf0 100%);
    border-radius: 16px;
    border-left: 4px solid #c9a03d;
}

.info-program-card .text-gold {
    color: #c9a03d;
}

.info-program-card strong {
    color: #1a4d2a;
}

/* Total Card */
.total-card {
    background: linear-gradient(135deg, #1a4d2a 0%, #0d3b1f 100%);
    border-radius: 16px;
}

.total-card .text-white {
    color: #fff;
}

/* Modal Footer */
.modal-footer-custom {
    background: #fafaf5;
    border-top: 1px solid #e8debf;
}

/* Button Gold */
.btn-gold {
    background: linear-gradient(135deg, #c9a03d 0%, #b3862a 100%);
    border: none;
    border-radius: 30px;
    color: #fff;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b3862a 0%, #9a6e20 100%);
    color: #fff;
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Outline Secondary */
.btn-outline-secondary-custom {
    border-radius: 30px;
    border-color: #e0d5b7;
    color: #1a4d2a;
}

.btn-outline-secondary-custom:hover {
    background: #e8debf;
    border-color: #c9a03d;
}

/* Green Button */
.btn-green {
    background: #1a4d2a;
    color: #fff;
    border-radius: 20px;
}

.btn-green:hover {
    background: #0d3b1f;
    color: #fff;
}

/* Item Row */
.item-row {
    border: 1px solid #e8debf;
    border-radius: 12px;
    padding: 12px;
    background: white;
    transition: all 0.2s ease;
}

.item-row:hover {
    background-color: #fff8e7;
    border-color: #c9a03d;
}

/* Mustahik Card */
.mustahik-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8debf;
    border-radius: 16px;
    background: white;
}

.mustahik-card:hover {
    background-color: #fff8e7;
    border-color: #c9a03d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.15);
}

.mustahik-card.selected {
    background: linear-gradient(135deg, #fff8e7 0%, #fffcf0 100%);
    border-color: #c9a03d;
    border-width: 2px;
}

/* Badge Asnaf */
.badge-asnaf {
    background: #e8debf;
    color: #1a4d2a;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Detail Card */
.detail-card {
    border-radius: 16px;
    border-left: 4px solid #c9a03d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-card .card-title {
    color: #1a4d2a;
}

.detail-card .text-gold {
    color: #c9a03d;
}

/* Table Bordered */
.table-bordered {
    border: 1px solid #e8debf;
}

.table-bordered th,
.table-bordered td {
    border-color: #e8debf !important;
    padding: 12px 10px;
}

.table-bordered thead th {
    background: #1a4d2a;
    color: white;
    border-bottom: none;
}

.table-bordered tfoot td {
    background: #fff8e7;
    border-top: 2px solid #c9a03d;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #c9a03d 0%, #e8debf 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c9a03d;
    border: 2px solid #fffcf0;
    box-shadow: 0 0 0 2px #e8debf;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Dark Mode - Pengajuan Mandiri */
[data-bs-theme='dark'] .step-section h6 {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .form-select,
[data-bs-theme='dark'] .form-control {
    background-color: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: var(--input-text-dark);
}

[data-bs-theme='dark'] .input-group-text {
    background-color: var(--input-bg-dark);
    border-color: var(--input-border-dark);
}

[data-bs-theme='dark'] .info-program-card {
    background: linear-gradient(135deg, #1a2a1a 0%, #0f1f0f 100%);
}

[data-bs-theme='dark'] .info-program-card strong {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .item-row {
    background: var(--input-bg-dark);
    border-color: var(--border-color-dark);
}

[data-bs-theme='dark'] .item-row:hover {
    background-color: #1e2a2e;
}

[data-bs-theme='dark'] .mustahik-card {
    background: var(--input-bg-dark);
    border-color: var(--border-color-dark);
}

[data-bs-theme='dark'] .mustahik-card:hover {
    background-color: #1e2a2e;
}

[data-bs-theme='dark'] .mustahik-card.selected {
    background: linear-gradient(135deg, #1a2a1a 0%, #0f1f0f 100%);
}

[data-bs-theme='dark'] .badge-asnaf {
    background: #2d3a3e;
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .detail-card {
    background: var(--card-bg-dark);
}

[data-bs-theme='dark'] .table-bordered {
    border-color: var(--border-color-dark);
}

[data-bs-theme='dark'] .table-bordered th,
[data-bs-theme='dark'] .table-bordered td {
    border-color: var(--border-color-dark) !important;
}

[data-bs-theme='dark'] .table-bordered tfoot td {
    background: var(--input-bg-dark);
}

[data-bs-theme='dark'] .modal-footer-custom {
    background: var(--modal-body-dark);
    border-top-color: var(--divider-dark);
}

[data-bs-theme='dark'] .btn-outline-secondary-custom {
    border-color: var(--input-border-dark);
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .timeline-container::before {
    background: linear-gradient(180deg, var(--primary-gold) 0%, #2d3a3e 100%);
}

[data-bs-theme='dark'] .timeline-item::before {
    background: var(--primary-gold);
    box-shadow: 0 0 0 2px #2d3a3e;
}
/* ============================================
   DETAIL PENGAJUAN - TABS STYLES
   ============================================ */

/* Tab Container */
.detail-tabs-container {
    background: #fffcf0;
    border-bottom: 1px solid #e8debf;
}

[data-bs-theme='dark'] .detail-tabs-container {
    background: #1a2428;
    border-bottom-color: #2d3a3e;
}

/* Nav Tabs */
.nav-tabs.detail-tabs {
    gap: 0.25rem;
    border-bottom: none;
    padding: 0 1.5rem;
    padding-top: 0.5rem;
}

.nav-tabs.detail-tabs .nav-link {
    color: #1a4d2a;
    border-radius: 12px 12px 0 0;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.nav-tabs.detail-tabs .nav-link:hover {
    background: #fff8e7;
    color: #1a4d2a;
}

.nav-tabs.detail-tabs .nav-link.active {
    background: linear-gradient(135deg, #c9a03d 0%, #b3862a 100%);
    color: #fff;
    border: none;
}

/* Dark Mode - Tabs */
[data-bs-theme='dark'] .nav-tabs.detail-tabs .nav-link {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .nav-tabs.detail-tabs .nav-link:hover {
    background: #1e2a2e;
    color: var(--primary-gold);
}

[data-bs-theme='dark'] .nav-tabs.detail-tabs .nav-link.active {
    background: linear-gradient(135deg, #c9a03d 0%, #b3862a 100%);
    color: #fff;
}

/* ============================================
   DETAIL CARD STYLES
   ============================================ */

.detail-card {
    border: none;
    border-radius: 16px;
    border-left: 4px solid #c9a03d;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.detail-card .card-body {
    padding: 1.25rem;
}

.detail-card .card-title {
    color: #1a4d2a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8debf;
}

/* Dark Mode - Detail Card */
[data-bs-theme='dark'] .detail-card {
    background: #1e2a2e;
    border-left-color: var(--primary-gold);
}

[data-bs-theme='dark'] .detail-card .card-title {
    color: var(--text-primary-dark);
    border-bottom-color: #2d3a3e;
}

/* ============================================
   DETAIL TABLE STYLES
   ============================================ */

.detail-table {
    width: 100%;
    margin-bottom: 0;
}

.detail-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table td {
    padding: 0.75rem 0;
    vertical-align: top;
}

.detail-table td:first-child {
    width: 35%;
    color: #6c757d;
    font-size: 0.85rem;
}

.detail-table td:last-child {
    color: #1a4d2a;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dark Mode - Detail Table */
[data-bs-theme='dark'] .detail-table tr {
    border-bottom-color: #2d3a3e;
}

[data-bs-theme='dark'] .detail-table td:first-child {
    color: var(--text-muted-dark);
}

[data-bs-theme='dark'] .detail-table td:last-child {
    color: var(--text-primary-dark);
}

/* ============================================
   DETAIL NOMINAL STYLES
   ============================================ */

.detail-nominal {
    font-size: 1.5rem;
    font-weight: 700;
    color: #198754;
}

/* ============================================
   DETAIL LOG/TIMELINE STYLES
   ============================================ */

.detail-timeline {
    position: relative;
    padding-left: 1.75rem;
}

.detail-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #c9a03d 0%, #e8debf 100%);
}

.detail-timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.detail-timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c9a03d;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e8debf;
}

.detail-timeline-item:last-child {
    padding-bottom: 0;
}

/* Dark Mode - Timeline */
[data-bs-theme='dark'] .detail-timeline::before {
    background: linear-gradient(180deg, var(--primary-gold) 0%, #2d3a3e 100%);
}

[data-bs-theme='dark'] .detail-timeline-item::before {
    background: var(--primary-gold);
    border-color: #1a2428;
    box-shadow: 0 0 0 2px #2d3a3e;
}

/* ============================================
   MODAL DETAIL RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-tabs.detail-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        scrollbar-width: thin;
    }

    .nav-tabs.detail-tabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .detail-table td {
        display: block;
        width: 100%;
    }

    .detail-table td:first-child {
        width: 100%;
        padding-bottom: 0.25rem;
    }

    .detail-table td:last-child {
        padding-top: 0;
    }

    .detail-nominal {
        font-size: 1.2rem;
    }
}

/* ============================================
   STRUK MINIMALIS STYLES
   ============================================ */

.struk-container {
    background: transparent;
}

.struk-header {
    text-align: center;
    padding: 0 0 0.75rem 0;
    border-bottom: 1px dashed #c9a03d;
}

.struk-header h5 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: #1a4d2a;
    font-size: 0.9rem;
}

.struk-items {
    padding: 0.75rem 0;
}

.struk-item-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e8debf;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
}

.struk-item-header span:first-child { flex: 3; }
.struk-item-header span:nth-child(2) { flex: 1; text-align: center; }
.struk-item-header span:last-child { flex: 1; text-align: right; }

.struk-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.struk-item span:first-child { 
    flex: 3; 
    color: #1a4d2a;
    word-break: break-word;
}
.struk-item span:nth-child(2) { 
    flex: 1; 
    text-align: center;
    color: #1a4d2a;
}
.struk-item span:last-child { 
    flex: 1; 
    text-align: right;
    font-weight: 600;
    color: #1a4d2a;
}

.struk-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a03d, transparent);
    margin: 0.5rem 0;
}

.struk-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.25rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.struk-total-value {
    color: #c9a03d;
    font-size: 1rem;
}

/* Dark Mode */
[data-bs-theme='dark'] .struk-header h5 {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .struk-item span:first-child,
[data-bs-theme='dark'] .struk-item span:nth-child(2),
[data-bs-theme='dark'] .struk-item span:last-child {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .struk-item-header {
    border-bottom-color: #2d3a3e;
    color: var(--text-muted-dark);
}

/* Responsive */
@media (max-width: 576px) {
    .struk-item {
        flex-wrap: wrap;
    }
    .struk-item span:first-child {
        flex: 100%;
        margin-bottom: 0.25rem;
    }
    .struk-item span:nth-child(2) {
        text-align: left;
    }
    .struk-item span:nth-child(2)::before {
        content: "Qty: ";
        font-weight: normal;
        color: #6c757d;
    }
    .struk-item span:last-child::before {
        content: "Subtotal: ";
        font-weight: normal;
        color: #6c757d;
    }
}
/* ============================================
   STRUK MINIMALIS STYLES
   ============================================ */



/* Header Struk */
.struk-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px dashed #c9a03d;
}

.struk-header h5 {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
    color: #1a4d2a;
}

.struk-header small {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Info Row */
.struk-info {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e8debf;
}

.struk-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.struk-info-row:last-child {
    margin-bottom: 0;
}

.struk-info-label {
    color: #6c757d;
}

.struk-info-value {
    font-weight: 600;
    color: #1a4d2a;
}

/* Item List */
.struk-items {
    padding: 0.75rem 0;
}

.struk-item-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e8debf;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.struk-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.struk-item-name {
    flex: 3;
    color: #1a4d2a;
    word-break: break-word;
}

.struk-item-qty {
    flex: 1;
    text-align: center;
    color: #1a4d2a;
}

.struk-item-subtotal {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: #1a4d2a;
}

.struk-item-detail {
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

/* Divider */
.struk-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a03d, transparent);
    margin: 0.75rem 0;
}

/* Total */
.struk-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.struk-total-label {
    color: #1a4d2a;
}

.struk-total-value {
    color: #c9a03d;
    font-size: 1.2rem;
}

/* Footer */
.struk-footer {
    text-align: center;
    padding: 0.75rem 0;
    border-top: 1px dashed #e8debf;
    font-size: 0.65rem;
    color: #6c757d;
}

/* Dark Mode */
[data-bs-theme='dark'] .struk-header h5 {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .struk-info-value {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .struk-item-name,
[data-bs-theme='dark'] .struk-item-qty,
[data-bs-theme='dark'] .struk-item-subtotal {
    color: var(--text-primary-dark);
}

[data-bs-theme='dark'] .struk-total-label {
    color: var(--text-primary-dark);
}

/* Responsive */
@media (max-width: 576px) {
    .struk-item {
        flex-wrap: wrap;
    }

    .struk-item-name {
        flex: 100%;
        margin-bottom: 0.25rem;
    }

    .struk-item-qty {
        text-align: left;
    }

    .struk-item-qty::before {
        content: "× ";
    }
}
/* ============================================
   DATATABLE DARK MODE - HEADER FIX
   ============================================ */

/* Dark mode - DataTable header */
[data-bs-theme='dark'] .dataTables_wrapper .table thead th,
[data-bs-theme='dark'] .dataTables_wrapper .table thead td,
[data-bs-theme='dark'] table.dataTable thead th,
[data-bs-theme='dark'] table.dataTable thead td {
    background-color: #1a2428 !important;
    color: #e0e0e0 !important;
    border-bottom: 2px solid #c9a03d !important;
}

/* Dark mode - DataTable header hover */
[data-bs-theme='dark'] .dataTables_wrapper .table thead th:hover,
[data-bs-theme='dark'] table.dataTable thead th:hover {
    background-color: #1e2a2e !important;
    color: #ffffff !important;
}

/* Dark mode - DataTable body */
[data-bs-theme='dark'] .dataTables_wrapper .table tbody td,
[data-bs-theme='dark'] table.dataTable tbody td {
    background-color: #12181c !important;
    color: #c0c0c0 !important;
    border-bottom-color: #2a3338 !important;
}

/* Dark mode - DataTable row hover */
[data-bs-theme='dark'] .dataTables_wrapper .table tbody tr:hover td,
[data-bs-theme='dark'] table.dataTable tbody tr:hover td {
    background-color: #1e2a2e !important;
    color: #ffffff !important;
}

/* Dark mode - DataTable striped rows */
[data-bs-theme='dark'] .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #1a2428 !important;
}

[data-bs-theme='dark'] .table-striped tbody tr:nth-of-type(even) td {
    background-color: #12181c !important;
}

/* Dark mode - DataTable info & pagination text */
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_info,
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_length,
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_filter label {
    color: #a0a0a0 !important;
}

/* Dark mode - DataTable search input */
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_filter input {
    background-color: #1a2428 !important;
    border-color: #2a3338 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme='dark'] .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #c9a03d !important;
    box-shadow: 0 0 0 2px rgba(201, 160, 61, 0.25) !important;
}

/* Dark mode - DataTable select (length menu) */
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_length select {
    background-color: #1a2428 !important;
    border-color: #2a3338 !important;
    color: #e0e0e0 !important;
}

/* Dark mode - DataTable pagination */
[data-bs-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #a0a0a0 !important;
    background: #1a2428 !important;
    border-color: #2a3338 !important;
}

[data-bs-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #c9a03d !important;
    color: #ffffff !important;
    border-color: #c9a03d !important;
}

[data-bs-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #c9a03d !important;
    color: #ffffff !important;
    border-color: #c9a03d !important;
}

[data-bs-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    background: #1a2428 !important;
}
/* Sembunyikan kolom nominal di datatable pengajuan mandiri */
/* #mandiriTable th:nth-child(9),
#mandiriTable td:nth-child(9) {
    display: none;
} */

/* Tambahkan ini di dalam .struk-item-header yang sudah ada */
.struk-item-header span:first-child {
    flex: 3;
    text-align: left;
}

.struk-item-header span:nth-child(2) {
    flex: 1;
    text-align: center;
}

.struk-item-header span:nth-child(3) {
    flex: 1;
    text-align: center;
}

/* 🔥 BARU: SATUAN */
.struk-item-header span:last-child {
    flex: 1.5;
    text-align: right;
}

/* Tambahkan ini di dalam .struk-item yang sudah ada */
.struk-item span:first-child {
    flex: 3;
    color: #1a4d2a;
    word-break: break-word;
}

.struk-item span:nth-child(2) {
    flex: 1;
    text-align: center;
    color: #1a4d2a;
}

.struk-item span:nth-child(3) {
    flex: 1;
    text-align: center;
    color: #1a4d2a;
}

/* 🔥 BARU: SATUAN */
.struk-item span:last-child {
    flex: 1.5;
    text-align: right;
    font-weight: 600;
    color: #1a4d2a;
}

