/* ----- Base layout & typography ----- */
:root {
    --brand: #6f42c1; /* primary violet */
    --brand-600: #5b35a6; /* darker variant */
    --bs-primary: var(--brand);
    --bs-primary-rgb: 111,66,193;
    --bs-primary-bg-subtle: rgba(111,66,193,.12);
    --bs-primary-border-subtle: rgba(111,66,193,.32);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-600);
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* No flex, no bottom margin hacks */
body {
    margin: 0;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-600);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}
/* Footer is in normal flow, after content */
.footer {
    position: static; /* important: NOT fixed or absolute */
    width: 100%;
    border-radius: 0;
    line-height: normal;
    margin-top: 3rem; /* little spacing above footer */
}

/* Keep your violet gradient helper */
.bg-gradient-violet {
    background: radial-gradient(800px 320px at 5% 0%, rgba(111,66,193,.18), transparent 60%), radial-gradient(700px 300px at 95% 10%, rgba(146,99,230,.14), transparent 60%), linear-gradient(180deg, #6f42c1 0%, #5b35a6 100%);
}


:root {
    --withdraw-brand: #6f42c1;
    --withdraw-brand-soft: rgba(111, 66, 193, 0.1);
    --withdraw-success: #16a34a;
    --withdraw-border: #e5e7eb;
    --withdraw-text-muted: #6b7280;
    --withdraw-card-bg: #ffffff;
}

/* Backdrop */
.withdraw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* dim page; reduce alpha if too dark */
    backdrop-filter: blur(4px); /* remove if you don’t want blur */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9998;
}

    .withdraw-modal-backdrop.show {
        display: flex;
    }

/* Modal card */
.withdraw-modal-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    color: #111827;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 9999;
}

.withdraw-modal-header {
    padding: 20px 24px 12px;
    text-align: center;
}

.withdraw-modal-icon-wrapper {
    margin: 0 auto 12px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--withdraw-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--withdraw-brand);
}

.withdraw-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.platform-text {
    color: #6f42c1;
}

.withdraw-modal-description {
    font-size: 0.9rem;
    color: var(--withdraw-text-muted);
    margin: 0;
}

.withdraw-modal-body {
    padding: 12px 24px 20px 24px;
}

.withdraw-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.withdraw-input-wrapper {
    position: relative;
}

.withdraw-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--withdraw-text-muted);
}

.withdraw-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--withdraw-border);
    padding: 10px 14px 10px 34px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .withdraw-input:focus {
        border-color: var(--withdraw-brand);
        box-shadow: 0 0 0 1px rgba(111, 66, 193, 0.3);
    }

.withdraw-space-y-4 > * + * {
    margin-top: 16px;
}

.withdraw-summary-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid var(--withdraw-border);
    font-size: 0.9rem;
}

.withdraw-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

    .withdraw-summary-row:last-child {
        margin-bottom: 0;
    }

.withdraw-summary-label {
    color: var(--withdraw-text-muted);
}

.withdraw-summary-value-strong {
    font-weight: 600;
}

.withdraw-summary-highlight {
    color: var(--withdraw-success);
    font-weight: 600;
}

.withdraw-modal-footer {
    padding: 12px 24px 20px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Scoped buttons (doesn’t touch Bootstrap .btn) */
.withdraw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

    .withdraw-btn:active {
        transform: translateY(1px);
        box-shadow: none;
    }

.withdraw-btn-primary {
    background: var(--withdraw-brand);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.25);
}

    .withdraw-btn-primary:hover {
        background: #5b35a6;
    }

.withdraw-btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid var(--withdraw-border);
}

    .withdraw-btn-secondary:hover {
        background: #f3f4f6;
    }

.withdraw-text-muted {
    color: var(--withdraw-text-muted);
}

.withdraw-hidden {
    display: none !important;
}

/* Makes modal-body scrollable */
.modal-dialog-scrollable .modal-body {
    max-height: 70vh; /* Adjust as needed */
    overflow-y: auto;
}

/* ================================
   SCROLLBAR — FIREFOX
   ================================ */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--bs-primary-bg-subtle);
}

/* ================================
   SCROLLBAR — CHROME/EDGE/SAFARI
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bs-primary-bg-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--brand-600);
    }


/* Hide everything by default when printing */
@media print {
    body * {
        visibility: hidden !important;
    }

    /* Show only the receipt and its children */
    #withdrawalReceipt, #withdrawalReceipt * {
        visibility: visible !important;
    }

    /* Place the receipt at the top-left of the page */
    #withdrawalReceipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none !important; /* Avoid shadow artifacts on paper */
        background: #fff; /* Ensure white background on paper */
    }

        /* Optional: hide buttons inside the receipt when printing */
        #withdrawalReceipt.btn {
            display: none !important;
        }
}
/*Agency Payment UI*/
tr.selected {
    background-color: #e8f3ff;
}

/* Pagination – active page */
.page-item.active .page-link {
    color: #fff;
    background-color: var(--brand);
    border-color: var(--brand);
}

/* Hover state */
.page-link:hover {
    color: #fff;
    background-color: var(--brand-600);
    border-color: var(--brand-600);
}

/* Normal (inactive) page links */
.page-link {
    color: var(--brand);
}

    /* Focus state (keyboard / accessibility) */
    .page-link:focus {
        color: #fff;
        background-color: var(--brand);
        box-shadow: 0 0 0 0.25rem var(--bs-primary-bg-subtle);
    }

.platform-text {
    color: var(--brand);
}

.form-check-input {
    accent-color: var(--brand);
}
    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    }

    .form-check-input:hover {
        cursor: pointer;
    }