.cursor-pointer {
    cursor: pointer;
}

/* ==========================================================
   GLOBAL ZEROFY DATATABLE — Premium Styled Header & Rows
   Applies to ALL tables with class .zerofy-datatable
   ========================================================== */

/* --- Table Structure --- */
table.zerofy-datatable {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    width: 100% !important;
}

/* --- Thead: Purple/Blue Gradient Header --- */
table.zerofy-datatable thead tr {
    background: linear-gradient(135deg, #435ebe 0%, #2e49a1 100%);
    box-shadow: 0 4px 12px rgba(67, 94, 190, 0.3);
}

table.zerofy-datatable thead th {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.775rem;
    letter-spacing: 0.6px;
    border: none !important;
    padding: 13px 12px;
    white-space: nowrap;
}

/* First and last th rounded corners */
table.zerofy-datatable thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table.zerofy-datatable thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Sort icons in white */
table.zerofy-datatable thead th.sorting:before,
table.zerofy-datatable thead th.sorting:after,
table.zerofy-datatable thead th.sorting_asc:before,
table.zerofy-datatable thead th.sorting_asc:after,
table.zerofy-datatable thead th.sorting_desc:before,
table.zerofy-datatable thead th.sorting_desc:after {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

table.zerofy-datatable thead th.sorting_asc:after,
table.zerofy-datatable thead th.sorting_desc:after {
    color: #ffffff !important;
}

/* --- Header Checkbox --- */
table.zerofy-datatable thead .form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

table.zerofy-datatable thead .form-check-input:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #ffffff !important;
}

table.zerofy-datatable thead .form-check-input:checked {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23435ebe' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

table.zerofy-datatable thead .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
    border-color: #ffffff !important;
}

/* --- Tbody Rows --- */
table.zerofy-datatable tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

table.zerofy-datatable tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(67, 94, 190, 0.1);
    background-color: #f5f7ff !important;
}

table.zerofy-datatable tbody td {
    padding: 13px 12px;
    border-top: 1px solid #f0f2f8 !important;
    border-bottom: 1px solid #f0f2f8 !important;
    vertical-align: middle;
}

table.zerofy-datatable tbody tr td:first-child {
    border-left: 1px solid #f0f2f8 !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table.zerofy-datatable tbody tr td:last-child {
    border-right: 1px solid #f0f2f8 !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Stripe the child (responsive collapsed) rows */
table.zerofy-datatable tbody tr.child {
    box-shadow: none;
    transform: none !important;
    background-color: #fafbff !important;
}

table.zerofy-datatable tbody tr.child td {
    border: none !important;
    padding-left: 30px;
}

/* --- Search & Length Controls --- */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #435ebe;
    box-shadow: 0 0 0 3px rgba(67, 94, 190, 0.15);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 30px 6px 10px;
    outline: none;
    font-size: 0.875rem;
}

/* --- Pagination --- */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #435ebe 0%, #2e49a1 100%) !important;
    border-color: #435ebe !important;
    color: #fff !important;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eef1fd !important;
    border-color: #435ebe !important;
    color: #435ebe !important;
    border-radius: 6px;
}

/* --- Info text --- */
.dataTables_wrapper .dataTables_info {
    font-size: 0.82rem;
    color: #6b7280;
}

/* ==========================================================
   END GLOBAL ZEROFY DATATABLE
   ========================================================== */

.right_section_logo{
	width:250px;
	height:auto;
}

@media (max-width: 576px) {
    .dataTables_wrapper .dataTables_paginate .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .dataTables_wrapper .dataTables_paginate .pagination li {
        margin: 2px;
    }

    .dataTables_wrapper .dataTables_paginate {
        white-space: normal !important;
    }
}

/* Make responsive child row wrap and fit the table */
table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before {
    top: 16px; /* adjust vertical position of the arrow if needed */
}

/* Wrap content in child row to prevent huge width */
table.dataTable tbody tr.child td {
    white-space: normal;       /* allow line breaks */
    word-break: break-word;    /* wrap long text like Message */
    max-width: 100%;           /* fit table width */
}

#dataTable_1 td.dt-nowrap,
#dataTable_1 th.dt-nowrap {
    white-space: nowrap;
}

/* Optional: make table look cleaner when responsive hides columns */
table.dataTable td {
    word-break: break-word;
}

/*error/succss msg*/
/* top alert positioning */
.top-alert {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1050;
    max-width: 95%;
}

/* optional: better desktop width */
@media (min-width: 768px) {
    .top-alert {
        max-width: 600px;
    }
}

/* Sidebar Profile Card Styles (moved from print_tpl.php) */
.sidebar-profile-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0 15px 20px 15px;
    border-radius: 12px;
    background: rgba(67, 94, 190, 0.06);
    border: 1px solid rgba(67, 94, 190, 0.1);
    transition: all 0.3s ease;
}
html.theme-dark .sidebar-profile-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.sidebar-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 94, 190, 0.08);
}
.sidebar-profile-card .avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    flex-shrink: 0;
}
html.theme-dark .sidebar-profile-card .avatar-circle {
    border-color: #1e1e2d;
}
.sidebar-profile-card .user-info {
    margin-left: 12px;
    min-width: 0;
    flex-grow: 1;
}
.sidebar-profile-card .user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #25396f;
    margin-bottom: 2px;
}
html.theme-dark .sidebar-profile-card .user-name {
    color: #e3e3e3;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.sidebar-profile-card .role-badge {
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* ==========================================================
   GLOBAL CARD HEADER — Management Badge Style
   Applies to all datatable management page card headers
   ========================================================== */

/* Ensure card-header flex layout aligns nicely */
.card-header.d-flex {
    padding: 14px 20px;
    min-height: 56px;
}

.card-header .card-title.mb-0 {
    font-size: 1rem;
    font-weight: 700;
    color: #25396f;
    display: flex;
    align-items: center;
    gap: 0;
}

.card-header .card-title.mb-0 i {
    font-size: 1.05rem;
    opacity: 0.85;
}

/* Management badge pill in card header */
.card-header .badge.bg-light-primary {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================
   END GLOBAL CARD HEADER
   ========================================================== */

/* ==========================================================
   AUTH & VERIFICATION PAGES (CSP COMPLIANT STYLES)
   ========================================================== */
#auth {
    font-family: 'Outfit', 'Segoe UI', sans-serif !important;
    background: radial-gradient(circle at 0% 0%, rgba(67, 94, 190, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(37, 57, 111, 0.08) 0%, transparent 50%),
                #f2f7ff;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
#auth .container {
    flex-shrink: 0;
    z-index: 5;
}
.bg-shape-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 94, 190, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: float-slow 20s infinite alternate;
}
.bg-shape-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 57, 111, 0.09) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    animation: float-slow 25s infinite alternate-reverse;
}
@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(30px) rotate(10deg); }
}
.login-card-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(37, 57, 111, 0.06), 0 5px 15px rgba(0, 0, 0, 0.03);
    padding: 25px 30px;
    z-index: 5;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(37, 57, 111, 0.1), 0 8px 20px rgba(0, 0, 0, 0.04);
}
.auth-logo {
    text-align: center;
    margin-bottom: 15px;
    height: 50px;
}
.auth-logo img {
    height: 50px;
    max-height: 50px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.03));
    transition: transform 0.3s ease;
}
.auth-logo img:hover {
    transform: scale(1.03);
}
.verify-title, .auth-title-premium {
    font-size: 1.65rem;
    font-weight: 800;
    color: #25396f;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.auth-subtitle-premium {
    font-size: 0.9rem;
    color: #727e8c;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}
.form-group-premium {
    margin-bottom: 12px;
    position: relative;
}
.form-control:focus {
    border-color: #435ebe !important;
    box-shadow: 0 0 0 4px rgba(67, 94, 190, 0.12) !important;
}
.btn-login-premium {
    background: linear-gradient(135deg, #435ebe 0%, #2e49a1 100%);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 8px 20px rgba(67, 94, 190, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    margin-top: 15px;
}
.btn-login-premium:hover {
    background: linear-gradient(135deg, #2e49a1 0%, #1c3275 100%);
    box-shadow: 0 10px 24px rgba(67, 94, 190, 0.3);
    transform: translateY(-2px);
}
.btn-login-premium:active {
    transform: translateY(0);
}
/* Login specific styling */
.input-premium {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #dcdfe6;
    border-radius: 12px;
    padding: 14px 20px 14px 45px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}
.input-premium:focus {
    border-color: #435ebe;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 94, 190, 0.12);
    outline: none;
    color: #1f2937;
}
.input-icon-premium {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #909399;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 5;
}
.input-premium:focus + .input-icon-premium {
    color: #435ebe;
}
.password-toggle-premium {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #909399;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}
.password-toggle-premium:hover {
    color: #435ebe;
}
.select-premium {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23909399' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px !important;
}
/* Info alert styling overrides for CSP compliance */
.alert-premium-compact {
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    border-left: 5px solid #0dcaf0 !important;
    padding: 10px 15px !important;
}

/* Premium Change Password / Card Styles */
.card-title-premium {
    font-weight: 700;
    color: #25396f;
    border-bottom: 2px solid #f2f7ff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #435ebe;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #e9ecef;
}
.submit-btn-premium {
    background: linear-gradient(135deg, #435ebe 0%, #2e49a1 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(67, 94, 190, 0.3);
    transition: all 0.3s ease;
}
.submit-btn-premium:hover {
    background: linear-gradient(135deg, #2e49a1 0%, #1c3275 100%);
    box-shadow: 0 6px 18px rgba(67, 94, 190, 0.4);
    transform: translateY(-2px);
}

/* Stats card overrides for member profile dashboard */
.stats-card {
    background: linear-gradient(135deg, #435ebe 0%, #647ecc 100%);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(67, 94, 190, 0.25);
    transition: all 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(67, 94, 190, 0.4);
}
.stats-card-2 {
    background: linear-gradient(135deg, #198754 0%, #2bd47d 100%);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.25);
    transition: all 0.3s ease;
}
.stats-card-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.4);
}

/* Lock Screen overrides for CSP compliance */
body.lock-screen-body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background: rgba(15, 23, 42, 0.95);
    margin: 0;
    padding: 0;
}
.lock-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(67, 94, 190, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(37, 57, 111, 0.15) 0%, transparent 50%),
                #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 15px;
}
.lock-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.lock-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #435ebe 0%, #2e49a1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(67, 94, 190, 0.3);
    animation: lock-pulse 2s infinite;
}
@keyframes lock-pulse {
    0% { transform: scale(1); box-shadow: 0 8px 20px rgba(67, 94, 190, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 28px rgba(67, 94, 190, 0.5); }
    100% { transform: scale(1); box-shadow: 0 8px 20px rgba(67, 94, 190, 0.3); }
}
#lock_password:focus {
    border-color: #435ebe !important;
    box-shadow: 0 0 0 3px rgba(67, 94, 190, 0.15) !important;
    outline: none;
}

/* User profiles role-specific background classes */
.role-badge-admin { background: linear-gradient(135deg, #435ebe, #2e49a1) !important; }
.role-badge-merchant { background: linear-gradient(135deg, #198754, #12633d) !important; }
.role-badge-member { background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important; }
.role-badge-dealer { background: linear-gradient(135deg, #fd7e14, #d96200) !important; }
.role-badge-consultant { background: linear-gradient(135deg, #6f42c1, #563396) !important; }
.role-badge-pp { background: linear-gradient(135deg, #ff9900, #e57e00) !important; }

.avatar-admin { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%) !important; }
.avatar-merchant { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important; }
.avatar-member { background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%) !important; }
.avatar-dealer { background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%) !important; }
.avatar-consultant { background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%) !important; }
.avatar-pp { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important; }

/* Layout/Dimension helpers for CSP compliance */
.icon-large {
    font-size: 2.2rem !important;
}
.icon-medium {
    font-size: 1.5rem !important;
}
.modal-body-scrollable {
    max-height: 70vh !important;
    overflow-y: auto !important;
}
.modal-body-scrollable-lg {
    max-height: 80vh !important;
    overflow-y: auto !important;
}
.iframe-email-preview {
    width: 100% !important;
    height: 500px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
}
.fs-xs {
    font-size: 0.65rem !important;
}
.fs-sm-78 {
    font-size: 0.78rem !important;
}
.btn-xs {
    font-size: 0.75rem !important;
}
.avatar-70 {
    width: 70px !important;
    height: 70px !important;
}

/* Iframe email inspector preview */
.email-body-iframe-inspector {
    width: 100% !important;
    height: 400px !important;
    border: none !important;
    display: block !important;
}

/* Wallet filters button border styling */
.wallet-dropdown-btn-border {
    border-color: #dee2e6 !important;
}

/* Wallet dropdown menu scrolling and sizing */
.wallet-dropdown-menu-scroll {
    max-height: 250px !important;
    overflow-y: auto !important;
    min-width: 100% !important;
    width: max-content !important;
}

/* Avatar layout for QR premium code card */
.avatar-qr-premium {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
}

/* Tab content active display and animation */
.auth-tabcontent-active {
    display: block !important;
    animation: fadeEffect 0.3s !important;
}

/* Custom rounded avatar circle for merchant profile detail popups */
.merchant-detail-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    background-color: #ebf3ff !important;
    color: #435ebe !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.merchant-detail-avatar i {
    font-size: 2rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Nudge modal header title icons up slightly to align with text */
.modal-header .modal-title i {
    position: relative !important;
    top: -2px !important;
}

/* Fix mobile Chrome sidebar scrolling issue */
@media (max-width: 1199.98px) {
    .sidebar-wrapper {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}


