/* =====================================================
   [1] VARIABLES & CORE RESET
   ===================================================== */
:root {
    /* Primary Colors (Modern Purple) */
    --primary: #664EFF;
    --primary-hover: #553ce6;
    --primary-soft: rgba(102, 78, 255, 0.1);
    --primary-glow: rgba(102, 78, 255, 0.2);

    /* Status Colors */
    --success: #1cc88a;
    --success-soft: rgba(28, 200, 138, 0.1);
    --danger: #e74a3b;
    --danger-soft: rgba(231, 74, 59, 0.1);
    --warning: #f6c23e;
    --warning-soft: rgba(246, 194, 62, 0.1);
    --info: #36b9cc;
    --info-soft: rgba(54, 185, 204, 0.1);

    /* Grays & Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Backgrounds */
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-navbar: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #E5E7EB;

    /* Styling Tokens */
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-pill: 50rem;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Brand Colors */
    --brand-dana: #118EEA;
    --brand-ovo: #4C2A86;
    --brand-shopee: #EE4D2D;
    --brand-linkaja: #ED1C24;
}

[data-theme="dark"] {
    --bg-body: #0a0a0f;
    --bg-card: #141424;
    --bg-navbar: #141424;
    --bg-glass: rgba(20, 20, 36, 0.85);
    --border-color: #212135;
    --text-color: #f8fafc;
    --text-color-secondary: #cccccc;

    --gray-900: #f8fafc;
    --gray-800: #f1f5f9;
    --gray-700: #e2e8f0;
    --gray-600: #cbd5e1;
    --gray-500: #94a3b8;
    --gray-400: #64748b;
    --gray-300: #475569;
    --gray-200: #334155;
    --gray-100: #1e293b;
    --gray-50: #0f172a;
    
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);

    color-scheme: dark;
}

[data-theme="dark"] .text-gray-900 {
    color: #f8fafc !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

/* ── Global Scrollbar Modernization ── */

[data-theme="dark"] footer.sticky-footer {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* ── Global Scrollbar Modernization ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 20px;
    border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}


html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body) !important;
}

.container {
    max-width: 100% !important;
}

.container-fluid {
    max-width: 100% !important;
    padding: 1.5rem !important;
}

/* ── Layout & Footer Fix ── */
#wrapper {
    min-height: 100vh !important;
    display: flex;
}

#content-wrapper {
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

footer.sticky-footer {
    flex-shrink: 0;
    padding: 2rem 0;
}

/* ── Global Theme Overrides ── */
.navbar-premium {
    background: var(--bg-navbar) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

body {
    color: var(--gray-700);
}

.text-dark, .text-gray-900 {
    color: var(--gray-900) !important;
}

.text-muted, .text-gray-500 {
    color: var(--gray-500) !important;
}

.text-gray-800 {
    color: var(--gray-800) !important;
}

/* Navbar & User Profiles */
.navbar-user-info img {
    border: 1.6px dotted var(--bs-dark) !important;
}

.navbar-user-info span {
    color: var(--gray-800) !important;
}

.navbar-user-info .text-xs {
    color: var(--gray-500) !important;
}

/* ══════════════════════════════════════
   GLOBAL DARK MODE SANITIZER
   Covers all Bootstrap utility classes, tables,
   buttons, FullCalendar, and component overrides
   ══════════════════════════════════════ */

/* ── Legacy Utility Overrides ── */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
    background-color: var(--bg-card) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-gray-900 {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-gray-500 {
    color: var(--gray-500) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-left,
[data-theme="dark"] .border-right {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-warning-light {
    background-color: rgba(246, 194, 62, 0.15) !important;
}

[data-theme="dark"] hr {
    border-color: var(--border-color) !important;
}

/* ── Button Normalization ── */
[data-theme="dark"] .btn-light {
    background-color: var(--gray-100) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .btn-light:hover {
    background-color: var(--gray-200) !important;
    color: var(--gray-900) !important;
}

[data-theme="dark"] .btn-default {
    background-color: var(--gray-100) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--border-color) !important;
    color: var(--gray-600) !important;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--gray-100) !important;
    color: var(--gray-900) !important;
}

/* ── Table Normalization ── */
[data-theme="dark"] .table {
    color: var(--gray-800) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .table thead td,
[data-theme="dark"] thead.thead-light th,
[data-theme="dark"] thead.thead-light td {
    background-color: var(--bg-body) !important;
    color: var(--gray-600) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table tbody tr {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] .table tbody th {
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.03) !important;
}

[data-theme="dark"] .table-hover tbody tr:hover,
[data-theme="dark"] .table tbody tr.table-active {
    background-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .table-bordered,
[data-theme="dark"] .table-bordered td,
[data-theme="dark"] .table-bordered th {
    border-color: var(--border-color) !important;
}

/* ── Nav & Tabs ── */
[data-theme="dark"] .nav-tabs {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--gray-600) !important;
    border-color: transparent !important;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    color: var(--gray-800) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active,
[data-theme="dark"] .nav-tabs .nav-item.show .nav-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) var(--border-color) var(--bg-card) !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .nav-pills .nav-link {
    color: var(--gray-600) !important;
}

[data-theme="dark"] .nav-pills .nav-link.active {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* ── Form Checks & Radios ── */
[data-theme="dark"] .form-check-label {
    color: var(--gray-700) !important;
}

[data-theme="dark"] .form-check-input {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-switch .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* ── List Groups ── */
[data-theme="dark"] .list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .list-group-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ── Alerts ── */
[data-theme="dark"] .alert-light {
    background-color: var(--gray-100) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

/* ── Page Header Visibility ── */
[data-theme="dark"] .dt-page-title {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .dt-page-subtitle {
    color: var(--gray-500) !important;
}

/* ── FullCalendar (Holiday Page) ── */
[data-theme="dark"] .fc-multimonth-month,
[data-theme="dark"] .fc-view-harness,
[data-theme="dark"] .fc {
    background-color: var(--bg-card) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .fc-multimonth-header,
[data-theme="dark"] .fc-col-header-cell {
    background-color: var(--bg-body) !important;
    color: var(--gray-600) !important;
}

[data-theme="dark"] .fc-daygrid-day,
[data-theme="dark"] .fc-multimonth-daygrid-table td {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .fc-daygrid-day:hover,
[data-theme="dark"] .fc-day:hover {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .fc-day-today {
    background-color: rgba(78, 115, 223, 0.15) !important;
}

[data-theme="dark"] .fc-scrollgrid,
[data-theme="dark"] .fc-scrollgrid td,
[data-theme="dark"] .fc-scrollgrid th {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .fc-button,
[data-theme="dark"] .fc-button-primary {
    background-color: var(--gray-100) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .fc-button:hover,
[data-theme="dark"] .fc-button-primary:hover {
    background-color: var(--gray-200) !important;
    color: var(--gray-900) !important;
}

[data-theme="dark"] .fc-button-active,
[data-theme="dark"] .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

[data-theme="dark"] .fc-toolbar-title {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .fc-list-event:hover td {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .fc-list-day-cushion,
[data-theme="dark"] .fc-list-day .fc-list-day-text,
[data-theme="dark"] .fc-list-day .fc-list-day-side-text {
    color: var(--gray-600) !important;
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .fc-multimonth-title {
    color: var(--gray-800) !important;
    background-color: var(--bg-body) !important;
}

/* ── Date Filter Buttons (Analytics page) ── */
[data-theme="dark"] .btn-group-toggle .btn,
[data-theme="dark"] .filter-btn {
    background-color: var(--gray-100) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-700) !important;
}

[data-theme="dark"] .btn-group-toggle .btn.active,
[data-theme="dark"] .btn-group-toggle .btn:active,
[data-theme="dark"] .filter-btn.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ── Status Badges/Indicators ── */
[data-theme="dark"] .status-online,
[data-theme="dark"] .badge.bg-success-soft {
    background-color: rgba(28, 200, 138, 0.2) !important;
    color: #1cc88a !important;
}

/* ── Role Access Table ── */
[data-theme="dark"] .table tbody tr.bg-light,
[data-theme="dark"] .table tbody tr.bg-white {
    background-color: rgba(255,255,255,0.03) !important;
}

[data-theme="dark"] .fw-bold,
[data-theme="dark"] .font-weight-bold {
    color: inherit;
}

/* ── Pagination ── */
[data-theme="dark"] .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-700) !important;
}

[data-theme="dark"] .page-link:hover {
    background-color: var(--bg-body) !important;
    color: var(--gray-900) !important;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-400) !important;
}

/* ── Progress Bars ── */
[data-theme="dark"] .progress {
    background-color: var(--gray-100) !important;
}

/* ── Popover & Tooltip ── */
[data-theme="dark"] .popover {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .popover-body {
    color: var(--gray-800) !important;
}

[data-theme="dark"] .tooltip-inner {
    background-color: var(--gray-200) !important;
    color: var(--gray-900) !important;
}

/* ── Close Button ── */
[data-theme="dark"] .close,
[data-theme="dark"] button.close {
    color: var(--gray-600) !important;
    text-shadow: none !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .close:hover,
[data-theme="dark"] button.close:hover {
    color: var(--gray-900) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .btn-dt-cancel {
    border-color: var(--gray-300) !important;
    color: var(--gray-900) !important;
}

[data-theme="dark"] .btn-dt-cancel:hover {
    border-color: var(--gray-500) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ── DataTable Mobile Modernization ── */
[data-theme="dark"] .dt-mobile-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .dt-mobile-label {
    color: var(--gray-500) !important;
}

[data-theme="dark"] .dt-mobile-value {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .dt-mobile-item .dropdown-item.edit-cashout {
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    margin-top: 5px;
}

/* ── Global Search Polish ── */
.dt-search-input,
[data-theme="dark"] .dt-search-input {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--gray-800) !important;
}

.dt-search-input:focus,
.dt-search-input:active,
[data-theme="dark"] .dt-search-input:focus,
[data-theme="dark"] .dt-search-input:active {
    background-color: var(--bg-card) !important;
    color: var(--gray-900) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    outline: none !important;
}

/* ── Modal Utility Overrides (Reinforced) ── */
[data-theme="dark"] .modal-body .bg-white,
[data-theme="dark"] .modal-content .bg-white,
[data-theme="dark"] .modal-body .bg-light,
[data-theme="dark"] .modal-content .bg-light {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-body .text-dark,
[data-theme="dark"] .modal-content .text-dark {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .modal-body .text-muted,
[data-theme="dark"] .modal-content .text-muted {
    color: var(--gray-500) !important;
}

/* ── Mobile View Reinforcement ── */
@media (max-width: 991.98px) {
    [data-theme="dark"] #content-wrapper {
        background-color: var(--bg-body) !important;
    }

    [data-theme="dark"] .dt-mobile-item {
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
    }

    [data-theme="dark"] .dt-mobile-label {
        color: var(--gray-500) !important;
    }

    [data-theme="dark"] .dt-mobile-value {
        color: var(--gray-900) !important;
    }
}



[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--gray-700) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-body) !important;
    color: var(--gray-900) !important;
}

/* Cards */
.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.card-header {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--gray-800) !important;
}

/* Sticky Footer */
.sticky-footer {
    background-color: var(--bg-card) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--gray-600) !important;
}


/* Modals */
.modal-content {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

.modal-header {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-body {
    background-color: var(--bg-card) !important;
}

.modal-footer {
    /* background-color: var(--bg-body) !important; */
    border-top: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .modal-content .form-control,
[data-theme="dark"] .modal-content select,
[data-theme="dark"] .modal-content textarea {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

[data-theme="dark"] .modal-content .form-control:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}


/* ── Dark Mode Layout Refinement ── */
[data-theme="dark"] #content-wrapper {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .navbar-premium {
    background-color: #000000 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .dt-breadcrumb {
    background: transparent !important;
}

[data-theme="dark"] #sidebarToggleTop {
    color: var(--primary) !important;
}

[data-theme="dark"] .topbar-divider {
    border-left: 1px solid var(--border-color) !important;
}


/* Forms */
[data-theme="dark"] label:not(.custom-control-label):not(.custom-file-label) {
    color: var(--gray-700) !important;
}

.form-control {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

.form-control:focus,
.form-control:active,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-control:active {
    /* background-color: var(--bg-card) !important; */
    color: var(--gray-900) !important;
    /* border-color: var(--primary) !important; */
    box-shadow: none !important;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--gray-600) !important;
}



.custom-select {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--gray-800) !important;
}

.custom-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem var(--primary-glow) !important;
}

/* ── Badges Refinement ── */
[data-theme="dark"] .badge-primary { background-color: var(--primary) !important; color: #fff !important; }
[data-theme="dark"] .badge-success { background-color: rgba(28, 200, 138, 0.2) !important; color: #1cc88a !important; border: 1px solid rgba(28, 200, 138, 0.3); }
[data-theme="dark"] .badge-danger  { background-color: rgba(231, 74, 59, 0.2) !important; color: #e74a3b !important; border: 1px solid rgba(231, 74, 59, 0.3); }
[data-theme="dark"] .badge-warning { background-color: rgba(246, 194, 62, 0.2) !important; color: #f6c23e !important; border: 1px solid rgba(246, 194, 62, 0.3); }
[data-theme="dark"] .badge-info    { background-color: rgba(54, 185, 204, 0.2) !important; color: #36b9cc !important; border: 1px solid rgba(54, 185, 204, 0.3) !important; }
[data-theme="dark"] .badge-secondary { background-color: var(--gray-200) !important; color: var(--gray-700) !important; }
[data-theme="dark"] .badge-light { background-color: var(--gray-100) !important; color: var(--gray-700) !important; border: 1px solid var(--border-color) !important; }

/* Global Input Group Modernization */
.input-group-text {
    background-color: var(--bg-body);
    border: 1.5px solid var(--border-color);
    color: var(--gray-600);
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    font-weight: 600;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--gray-100);
    border-color: var(--border-color);
    color: var(--gray-700);
}

.badge {
    padding: 0.5em 0.85em !important;
    font-weight: 600 !important;
}

.badge-pill {
    padding-left: 1em !important;
    padding-right: 1em !important;
}

/* ── Select2 Global Theme Overrides ── */
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gray-800) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--gray-500) !important;
}

[data-theme="dark"] .select2-dropdown {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .select2-search__field {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .select2-results__option {
    color: var(--gray-700) !important;
}

[data-theme="dark"] .select2-results__option[aria-selected="true"] {
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Breadcrumbs */
.dt-breadcrumb-item:last-child {
    font-weight: 700 !important;
}
[data-theme="dark"] .dt-breadcrumb-item a {
    color: var(--text-color-secondary) !important;
}

[data-theme="dark"] .dt-breadcrumb-item a:hover {
    color: var(--primary) !important;
}

[data-theme="dark"] .dt-breadcrumb-item span {
    color: var(--text-color) !important;
}

.dt-breadcrumb-item a {
    color: var(--gray-500) !important;
}

.dt-breadcrumb-item span {
    color: var(--gray-900) !important;
}

.dt-breadcrumb-separator {
    color: var(--gray-300) !important;
}


#content-wrapper {
    width: 100%;
    overflow: visible !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1; /* Stretch to fill wrapper height */
}


#content {
    flex: 1 0 auto !important;
}

.sticky-footer {
    flex-shrink: 0 !important;
    background: var(--bg-card) !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid var(--border-color) !important;
}

.sticky-footer span {
    color: var(--gray-500) !important;
}




/* =====================================================
   [5] PAGE-SPECIFIC STYLES (Login)
   ===================================================== */
.login-wrapper {
    min-height: 100vh;
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-inter);
    /* padding: 20px; */
    width: 100%;
}


.login-card {
    background: linear-gradient(135deg, #F44336 0%, #9C27B0 100%);
    /* border-radius: var(--radius-xl); */
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 1050%;
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.login-left {
    width: 50%;
    position: relative;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}
.login-animation {
    position: absolute;
    top: auto;
    left:0;
    right: 0;
    bottom: 0;
    width: 115%;
    height: 100%;
    background-image: url('../../public/image/login-illustation.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20;
}
.login-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, #F44336 0%, #9C27B0 100%);
    width:100%;
    height: 100%;
    transform: skew(5deg);
    transform-origin: top right;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 19;
}

.login-left-content {
    position: relative;
    z-index: 99;
}

.login-right {
    width: 60%;
    padding: 70px 100px 70px 200px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: linear-gradient(135deg, #F44336 0%, #9C27B0 100%);
    /* border-radius: var(--radius-xl); */
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 1050%;
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.login-right > form {
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.quote-text {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.quote-author {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.quote-title {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 400;
}

.login-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.8px;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    text-align: center;
    margin-bottom: 45px;
    line-height: 1.5;
    font-weight: 400;
    padding: 0 20px;
}

.login-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 25px;
}

.login-mobile-logo img {
    height: 60px;
    width: auto;
}

.g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

.form-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-control-custom {
    width: 100%;
    padding: 26px 20px 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--gray-900);
    background: var(--bg-card);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control-custom::placeholder {
    color: var(--gray-300);
    font-weight: 400;
}

.form-label-custom {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 12px;
    color: var(--gray-400);
    pointer-events: none;
    font-weight: 500;
}

.btn-login {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s ease;
    box-shadow: 0 4px 6px rgba(102, 78, 255, 0.2);
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    color: white;
    box-shadow: 0 6px 12px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-google {
    background-color: #F9FAFB;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-google svg {
    margin-right: 12px;
}

.btn-google:hover {
    background-color: #F3F4F6;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── SaaS Fintech Soft Badges ── */
.badge-primary-soft { background-color: rgba(99, 102, 241, 0.1) !important; color: #6366f1 !important; }
.badge-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.badge-danger-soft  { background-color: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }
.badge-warning-soft { background-color: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
.badge-info-soft    { background-color: rgba(6, 182, 212, 0.1) !important; color: #06b6d4 !important; }
.badge-secondary-soft { background-color: rgba(107, 114, 128, 0.1) !important; color: #6b7280 !important; }

/* ── SaaS Fintech KPI Cards ── */
.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.02) !important;
}
.dash-kpi-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
    border: none !important;
}
.dash-kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

/* ── Deposit/QRIS/Retail Process Styles ── */
.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.preset-amount:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}
.outlet-choice {
    transition: all 0.2s ease;
}
.outlet-choice:hover {
    border-color: var(--primary) !important;
    background: var(--primary-soft);
}
.outlet-choice.active {
    border-color: var(--primary) !important;
    background: var(--primary-soft);
    box-shadow: var(--shadow-sm);
}
.outlet-choice.active .selection-indicator {
    display: block !important;
}
.opacity-20 { opacity: 0.2; }

/* ── Avatar Hub Style ── */
.avatar-hub {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
tr:hover .avatar-hub {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary) !important;
    color: white !important;
}

/* ── Premium DataTables Standard Styles ── */
.dt-table thead th {
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}
.dt-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-700);
}
.dt-search-active {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ── BI-FAST / Transfer Premium Styles ── */
.bg-primary-soft-10 { background: rgba(78, 115, 223, 0.05) !important; }
.bg-white-10 { background: rgba(255, 255, 255, 0.1) !important; }
.rounded-xxl { border-radius: 28px !important; }
.italic { font-style: italic; }

/* ── Select2 Premium Overrides ── */
.select2-premium + .select2-container .select2-selection--single {
    height: 50px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    background: var(--bg-card) !important;
}
.select2-premium + .select2-container .select2-selection__arrow {
    height: 48px !important;
}
[data-theme="dark"] .select2-premium + .select2-container .select2-selection--single {
    background: var(--bg-card) !important;
    color: var(--gray-800) !important;
}
[data-theme="dark"] .select2-premium + .select2-container .select2-selection__rendered {
    color: var(--gray-800) !important;
}
.alert-info-soft { background: rgba(54, 185, 204, 0.05) !important; color: #2c9faf !important; }

/* ── Premium Form Inputs ── */
.premium-form .dt-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: block;
}
.premium-form .dt-input {
    height: 48px !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--border-color) !important;
    padding: 0 16px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    background: var(--bg-card);
}
.premium-form .dt-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-soft) !important;
    background: var(--bg-card) !important;
}

/* ── Typography Utilities ── */
.x-small { font-size: 11px !important; }

/* ── Interactive Table Links ── */
.dt-link { color: var(--primary) !important; transition: all 0.2s !important; text-decoration: none !important; }
.dt-link:hover { color: var(--primary-hover) !important; text-decoration: underline !important; }

/* ── RBAC / Permission Management ── */
.perm-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; border: 1.5px solid transparent !important; }
.perm-card:hover { transform: translateY(-3px); background: var(--bg-body) !important; border-color: var(--primary) !important; box-shadow: var(--shadow-md) !important; }

.premium-radio-group .btn {
    background: var(--bg-card);
    color: var(--gray-600);
    border-color: var(--border-color) !important;
    font-weight: 700;
    padding: 8px 10px;
    transition: all 0.2s;
}
.premium-radio-group .btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px var(--primary-glow) !important;
    z-index: 2;
}
.premium-radio-group .btn:hover:not(.active) {
    background: var(--bg-body);
    color: var(--gray-800);
}

/* ── Deposit Choice Premium Cards ── */
.premium-choice-card .p-3 {
    border-color: var(--border-color) !important;
    background: var(--bg-card);
}
.premium-choice-card:hover .p-3 {
    border-color: var(--primary) !important;
    background: var(--primary-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Layout & Spacing Utilities ── */
.space-y-4 > * + * { margin-top: 1rem !important; }
.border-white-05 { border-color: rgba(255, 255, 255, 0.05) !important; }
.uppercase { text-transform: uppercase !important; }
.transition-all { transition: all 0.2s ease !important; }
.cursor-pointer { cursor: pointer !important; }

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.text-purple {
    color: #664EFF !important;
    font-weight: 600;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: #664EFF;
    background-color: #664EFF;
}

.forgot-pass {
    font-size: 14.5px;
    text-decoration: none;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.btm-links {
    text-align: center;
    margin-top: 35px;
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
}

@media (max-width: 991px) {
    .login-card {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        width: 100%;
        min-height: 400px;
        padding: 40px;
    }

    .login-right {
        width: 100%;
        padding: 50px 30px;
    }
}

/* =====================================================
   [2] LAYOUT COMPONENTS (Sidebar & Navigation) — Refactored
   ===================================================== */

/* ── Sidebar Shell ── */
.sb-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 14.5rem;
    background-color: #1c1c2e;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    overflow: hidden;
    /* border-right: 1px solid rgba(255,255,255,0.05); */
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sb-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark gradient overlay to ensure text legibility */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../../assets/cover/sidebar-dark-blue.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    opacity: 1;
    z-index: -1;
}
/* ── Brand ── */
.sb-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem 0.8rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
    height: 70px;
}

.sb-brand-link {
    display: flex;
    align-items: center;
    gap: 1px;
    text-decoration: none !important;
}

.sb-brand-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.sb-brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: opacity 0.3s, width 0.3s;
}

.sb-mobile-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.sb-mobile-close:hover { color: #fff; }

/* ── Nav Wrapper (scrollable, no visible scrollbar) ── */
.sb-nav-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* padding: 0 0.6rem; */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
    scroll-behavior: smooth;
}
.sb-nav-wrapper::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* ── Nav List ── */
.sb-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Group Label ── */
.sb-group-label {
    list-style: none;
    padding: 0.8rem 0.8rem 0.3rem;
    text-align: left;
}
.sb-group-label.mt-2 { margin-top: 0.6rem; }
.sb-group-label span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}

/* ── Nav Item ── */
.sb-nav-item {
    list-style: none;
    margin-bottom: 2px;
}

/* ── Nav Link ── */
.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 0.8rem 6px;
}

.sb-nav-link:hover {
    background: linear-gradient(90deg, rgba(7, 11, 255, 0.15) 0%, transparent 100%) !important;
    color: #ffffff;
    /* transform: translateX(4px); */
}

.sb-nav-item.active > .sb-nav-link,
.sb-nav-link:not(.collapsed)[data-toggle="collapse"] {
    /* background: linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, transparent 100%) !important; */
    color: #ffffff;
    font-weight: 700;
    /* backdrop-filter: blur(10px); */
}

.sb-nav-item.active > .sb-nav-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: linear-gradient(to bottom, #070fff, #3e34d2);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 15px rgba(32, 7, 255, 0.6);
}

/* ── Nav Icon ── */
.sb-nav-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.4s;
}

.sb-nav-link:hover .sb-nav-icon,
.sb-nav-item.active .sb-nav-icon {
    opacity: 1;
    color: #ffffff;
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.1) rotate(-5deg);
}

/* ── Nav Label ── */
.sb-nav-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
    text-align: left;
}

/* ── Nav Arrow (for submenu) ── */
.sb-nav-arrow {
    font-size: 0.6rem;
    transition: transform 0.25s;
    opacity: 0.5;
    flex-shrink: 0;
}

.sb-nav-link:not(.collapsed) .sb-nav-arrow,
.sb-nav-link[aria-expanded="true"] .sb-nav-arrow {
    transform: rotate(90deg);
    opacity: 1;
}

/* ── Subnav Container ── */
.sb-subnav {
    list-style: none;
    padding: 8px;
    margin: 4px 1rem 12px 1rem;
    /* background: rgba(0, 0, 0, 0.15); */
    /* border-radius: 14px; */
    /* border-left: 1px solid rgba(255, 255, 255, 0.05); */
}

.sb-subnav-item {
    margin-bottom: 5px;
}

.sb-subnav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sb-subnav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    /* transform: translateX(4px); */
}

.sb-subnav-item.active .sb-subnav-link {
    background: #c7d3e3;
    color: #334685;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
}

.sb-subnav-icon {
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.sb-subnav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-subnav-item.active .sb-subnav-dot {
    background: #5674f8;
    box-shadow: 0 0 10px #5674f8;
    transform: scale(1.3);
}

/* ── Logout ── */
.sb-logout-link {
    color: rgba(231, 74, 59, 0.75) !important;
}
.sb-logout-link:hover {
    background: rgba(231, 74, 59, 0.12) !important;
    color: #e74a3b !important;
}

/* ── User Block (Pinned Bottom) ── */
.sb-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    /* background: rgba(0, 0, 0, 0.3); */
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    transition: all 0.3s;
    overflow: hidden;
    min-width: 0;
}

.sb-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,193,7,0.4);
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.sb-user-info {
    flex: 1;
    overflow: hidden;
    transition: opacity 0.3s, width 0.3s;
    min-width: 0;
}

.sb-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.sb-user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-align: left;
}

.sb-user-actions {
    flex-shrink: 0;
}

.sb-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1cc88a;
    box-shadow: 0 0 0 2px rgba(28,200,138,0.25);
}

/* ── Toggle Button ── */
.sb-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.8rem;
    /* background: #1c1c2e; */
    flex-shrink: 0;
    transition: padding 0.3s, justify-content 0.3s;
}

.sb-sidebar.toggled .sb-toggle-wrap {
    justify-content: center;
    padding: 0.5rem 0;
}

.sb-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.3s;
}
.sb-toggle-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
/* ── TOGGLED STATE (mini sidebar) - DESKTOP ONLY ── */
@media (min-width: 768px) {
    .sb-sidebar.toggled {
        width: 4.5rem;
    }

    /* Hide text elements, keep layout stable */
    .sb-sidebar.toggled .sb-brand-text,
    .sb-sidebar.toggled .sb-nav-label,
    .sb-sidebar.toggled .sb-nav-arrow,
    .sb-sidebar.toggled .sb-group-label span,
    .sb-sidebar.toggled .sb-user-info,
    .sb-sidebar.toggled .sb-user-actions {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
        flex-shrink: 0;
        display: none;
    }

    /* Center all nav links and make icon fill the row */
    .sb-sidebar.toggled .sb-nav-link {
        justify-content: center;
        padding: 0.65rem 0;
        gap: 0;
        border-radius: 10px;
    }

    /* Enlarge icon slightly and center it */
    .sb-sidebar.toggled .sb-nav-icon {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        margin: 0;
    }

    /* Rotate toggle arrow */
    .sb-sidebar.toggled .sb-toggle-btn {
        transform: rotate(180deg);
    }

    /* Group label becomes a thin divider line */
    .sb-sidebar.toggled .sb-group-label {
        padding: 0.5rem 0.75rem 0.25rem;
        text-align: center;
    }

    .sb-sidebar.toggled .sb-group-label::after {
        content: '';
        display: block;
        height: 1px;
        background: rgba(255,255,255,0.08);
        margin: 0 auto;
        width: 60%;
    }

    /* Center the user avatar when toggled */
    .sb-sidebar.toggled .sb-user-block {
        justify-content: center;
        padding: 0.85rem 0.5rem;
    }

    /* Navigation wrapper in toggled mode — keep padding balanced */
    .sb-sidebar.toggled .sb-nav-wrapper {
        padding: 0 0.45rem;
    }

    /* Hide submenus in toggled/mini mode */
    .sb-sidebar.toggled .sb-subnav {
        display: none !important;
    }

    /* Active indicator still visible in mini mode */
    .sb-sidebar.toggled .sb-nav-item.active > .sb-nav-link::before {
        top: 15%;
        bottom: 15%;
    }
}

/* ── Mini Sidebar Flyout Popup ── */
.sb-flyout {
    display: none;
    position: fixed;
    left: 4.6rem;
    top: 0; /* overridden by JS */
    min-width: 200px;
    max-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14), 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 1070;
    padding: 6px 0 8px;
    pointer-events: auto;
    animation: sbFlyoutIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sb-flyout.active {
    display: block;
}

@keyframes sbFlyoutIn {
    from { opacity: 0; transform: translateX(-10px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.sb-flyout-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #9ca3af;
    padding: 6px 14px 5px;
    border-bottom: 1px solid #f0f0f5;
    margin-bottom: 4px;
    white-space: nowrap;
}

.sb-flyout-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-flyout-item {
    margin: 0 6px 1px;
}

.sb-flyout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.sb-flyout-link:hover {
    background: var(--bg-body);
    color: var(--gray-900);
    text-decoration: none;
}

.sb-flyout-item.active .sb-flyout-link {
    background: rgba(102, 78, 255, 0.08);
    color: #664EFF;
    font-weight: 600;
}

.sb-flyout-icon {
    width: 16px;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.65;
    flex-shrink: 0;
}

.sb-flyout-item.active .sb-flyout-icon {
    opacity: 1;
    color: #664EFF;
}

.sb-flyout-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    margin-left: 4px;
}

.sb-flyout-item.active .sb-flyout-dot {
    background: #664EFF;
}

/* ── Flyout Dark Mode ── */
[data-theme="dark"] .sb-flyout {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .sb-flyout-title {
    color: var(--gray-500) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .sb-flyout-link {
    color: var(--gray-600) !important;
}

[data-theme="dark"] .sb-flyout-link:hover {
    background: var(--gray-100) !important;
    color: var(--gray-900) !important;
}

[data-theme="dark"] .sb-flyout-item.active .sb-flyout-link {
    background: rgba(102, 78, 255, 0.15) !important;
    color: #c8bfff !important;
}

[data-theme="dark"] .sb-flyout-dot {
    background: var(--gray-300) !important;
}

[data-theme="dark"] .sb-flyout-item.active .sb-flyout-dot {
    background: var(--primary) !important;
}


/* Invisible backdrop to close flyout on outside click */
.sb-flyout-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1039;
}

.sb-flyout-backdrop.active {
    display: block;
}


@media (max-width: 767.98px) {
    .sb-sidebar {
        transform: translateX(-100%);
        width: 15rem !important;
        z-index: 1055;
    }
    .sb-sidebar.mobile-open {
        transform: translateX(0);
    }
    .sb-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1054;
    }
    .sb-mobile-overlay.active {
        display: block;
    }
}

/* ── Desktop Main Content Offset ── */
@media (min-width: 768px) {
    #wrapper {
        display: flex;
    }
    #content-wrapper {
        margin-left: 14.5rem;
        flex: 1;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 0;
    }
    #wrapper.sb-toggled #content-wrapper {
        margin-left: 4.5rem;
    }
}

/* ── Collapse animation override ── */
.sb-sidebar .collapse.show,
.sb-sidebar .collapsing {
    background: transparent;
}

/* ─── Legacy compatibility (keep old classes working if still referenced) ─── */
.sidebar-heading-custom {
    padding: 0 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.user-profile-block { display: none; }  /* replaced by sb-user-block */

/* ─── Neutralize SB Admin 2 legacy .sidebar if still loaded ─── */
ul.sidebar {
    display: none !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.glass-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    min-width: 48px;
}

/* =====================================================
   [6] MODERN UTILITY CLASSES (Soft BG, Spacing, FW)
   ===================================================== */
/* Soft Backgrounds */
.bg-primary-soft {
    background-color: var(--primary-soft) !important;
}

.bg-success-soft {
    background-color: var(--success-soft) !important;
}

.bg-warning-soft {
    background-color: var(--warning-soft) !important;
}

.bg-info-soft {
    background-color: var(--info-soft) !important;
}

.chart-area {
    height: 340px;
    position: relative;
}

.chart-pie {
    height: 300px;
    position: relative;
}

.badge-outline-secondary {
    border: 1px solid #e3e6f0;
    color: #858796;
    background: #f8f9fc;
    font-weight: 600;
    font-size: 0.75rem;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Layout Fixes */
.card-body.p-4 {
    padding: 1.5rem !important;
}

.h4.font-weight-bold {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.text-gray-800 {
    color: #2d3748 !important;
}


/* =====================================================
   [4] CORE DESIGN SYSTEM (Premium DT System)
   ===================================================== */

/* Page Header */
.dt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.25rem;
}

.dt-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    letter-spacing: -0.4px;
}

.dt-page-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* Download Report button — green pill in page header */
.btn-dt-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 12px;
    background: #1cc88a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-dt-download:hover {
    background: #17a673;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Card Container */
.dt-card {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--bg-card) !important;
    overflow: visible;
}

/* Help & Support Standout Card */
.help-card {
    background:linear-gradient(135deg, #16165c 0%, #16213e 100%) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.help-card .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.help-card .bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.help-card .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.help-card .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ── Toolbar ── */
.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px 14px 0 0;
    overflow: visible;
}

.dt-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Search Input */
.dt-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    /* grow to fill left side */
    max-width: 320px;
    /* don't overpower the filter chips */
}

.dt-search-icon {
    position: absolute;
    left: 12px;
    color: #a0aec0;
    font-size: 13px;
    pointer-events: none;
}

.dt-search-input {
    height: 42px;
    padding: 0 14px 0 34px;
    border: 1.5px solid var(--border-color);
    border-radius: 50rem;
    font-size: 13.5px;
    color: var(--gray-700);
    background: var(--bg-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.dt-search-input:focus {
    border-color: #4e73df;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.12);
}

/* Filter Chips */
.dt-filter-chip {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-body);
    font-size: 13px;
    color: var(--gray-600);
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.dt-chip-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--gray-600);
    min-width: 80px;
    width: 100%;
}

.dt-chip-select {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    color: #4a5568;
}

/* Override Select2 inside chips */
.select2-results__option--selectable{
    font-size: 0.75rem;
}

/* =====================================================
   [3] GLOBAL LIBRARY OVERRIDES (Select2, FullCalendar)
   ===================================================== */

/* =====================================================
   GLOBAL SELECT2 PREMIUM THEME OVERRIDE
   Matches the project's premium SaaS design system
   ===================================================== */

/* -- Trigger Box (closed state) -- */
.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px;
    height: 42px !important;
    background: var(--bg-body) !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--gray-400) !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gray-800) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 42px !important;
    padding-left: 14px !important;
    padding-right: 30px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    top: 0 !important;
    right: 10px !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-top: 2px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* -- Dropdown Container -- */
.select2-dropdown {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden !important;
    background: var(--bg-card) !important;
    z-index: 9999 !important;
}

/* -- Search input inside dropdown -- */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: var(--gray-800) !important;
    background: var(--bg-body) !important;
    outline: none !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background: var(--bg-card) !important;
}

/* -- Options list -- */


.select2-results__option {
    padding: 9px 12px !important;
    font-size: 13px !important;
    color: var(--gray-700) !important;
    transition: background 0.15s !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary-soft, rgba(102, 78, 255, 0.08)) !important;
    color: var(--primary, #664EFF) !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--primary-soft, rgba(102, 78, 255, 0.08)) !important;
    color: var(--primary, #664EFF) !important;
    font-weight: 600 !important;
}

.select2-results__option--selectable {
    font-size: 13px !important;
}

.dt-filter-chip .select2-container {
    min-width: 100px;
}

.dt-filter-chip .select2-container--default .select2-selection--single {
    border: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.dt-filter-chip .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    font-size: 13px;
    color: var(--gray-700);
}

.dt-filter-chip .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
}

/* Chip Action Buttons */
.btn-dt-chip-action {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    gap:6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-dt-primary {
    background: #4e73df;
    color: #fff;
}

.btn-dt-primary:hover {
    background: #2e59d9;
    color: #fff;
}

.btn-dt-secondary {
    color: var(--gray-600);
    text-decoration: none;
}

.btn-dt-secondary:hover {
    color: var(--gray-800);
    text-decoration: none;
}

/* Header Action Buttons */
.btn-dt-action {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.btn-dt-action-success {
    background: #1cc88a;
    color: #fff;
}

.btn-dt-action-success:hover {
    background: #17a673;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 200, 138, 0.3);
}

/* ── Table ── */
.dt-table {
    font-size: 13.5px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    min-width: 100% !important;
    width: 100%;
}

.dt-table thead tr {
    background: var(--bg-body) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.dt-table thead tr th {
    color: var(--gray-600) !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 16px 16px !important;
    white-space: nowrap !important;
    border-bottom: none !important;
    border-top: none !important;
}

.dt-table tbody tr td {
    /* padding: 16px 16px !important; */
    vertical-align: middle !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--gray-700) !important;
    transition: background 0.15s !important;
}

.dt-table tbody tr:hover td {
    background: var(--bg-body) !important;
}

.dt-table tbody tr:first-child td {
    border-top: none !important;
}
.dt-summary-sub{
    display: none;
}
/* Mobile Stacking Table (Automatic Card view on very small screens) */
@media (max-width: 575.98px) {
    .dt-table, .dt-table thead, .dt-table tbody, .dt-table th, .dt-table td, .dt-table tr {
        display: block !important;
    }
    .dt-table thead {
        display: none !important; /* Hide standard headers */
    }
    .dt-table tr {
        /* margin: 12px 12px !important; */
        /* border-radius: 12px !important; */
        /* padding: 8px !important; */
        background: var(--bg-card) !important;
    }
    .dt-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 10px !important;
        border-bottom: 1px solid var(--border-color) !important;
        text-align: right !important;
        text-wrap: wrap !important;
    }
    .dt-table td:last-child {
        border-bottom: none !important;
    }
    /* Add labels on mobile */
    .dt-table td::before {
        content: attr(data-label);
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 10px !important;
        color: #a0aec0 !important;
        margin-right: 15px !important;
        text-align: left !important;
    }
}

.dt-table tbody tr:first-child td {
    border-top: none;
}

/* ── DataTables Footer (Pagination + Info) ── */
.dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--gray-500);
    padding: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50rem !important;
    padding: 5px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    background: #fff !important;
    margin: 0 4px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #c0c8d4 !important;
    border-color: #e2e8f0 !important;
    cursor: default !important;
}

.dataTables_wrapper .dataTables_processing {
    
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: none !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    color: #fff;
}
/* Premium DataTables Processing Loader */
.dt-card, .dt-card .card-body, .table-responsive, .dataTables_wrapper { position: relative !important; }

div.dataTables_processing {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    box-shadow: none !important;
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: #fff;
}
div.dataTables_processing[style*="display: block"] {
    display: flex !important;
}
.dt-loader-inner {
    background: #1e293b;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Filter group: label stacked above chip */
.dt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dt-filter-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding-left: 4px;
    white-space: nowrap;
}

/* Toolbar filters form — right side, stays compact */
.dt-toolbar-filters {
    display: flex;
    align-items: flex-start;
    /* align tops to support label+chip stacking */
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* ── More Filters Trigger Button ── */
.dt-more-filters-wrapper {
    position: relative;
}

.dt-more-filters-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    gap: 5px;
    padding: 0 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
}

.dt-more-filters-btn:hover,
.dt-more-filters-btn.dt-more-filters-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.dt-more-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 12px;
    background: #4e73df;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.dt-more-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.dt-more-filters-btn.dt-open .dt-more-arrow {
    transform: rotate(180deg);
}

/* ── More Filters Dropdown Panel ── */
.dt-more-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 999;
    width: 320px;
    /* max-height: calc(100vh - 120px); */
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden; /* Clip to rounded corners; body handles its own scroll */
}

.dt-more-panel.dt-panel-open {
    display: flex;
    flex-direction: column;
    animation: dtPanelFadeIn 0.15s ease;
}

@keyframes dtPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dt-more-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #f0f0f5;
    border-radius: 14px 14px 0 0; /* Compensate for overflow:visible on parent */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.dt-more-panel-title {
    font-size: 13px;
    font-weight: 700;
    /* color: #2d3748; */
}

.dt-more-clear {
    font-size: 12px;
    font-weight: 600;
    color: #eee;
    text-decoration: none;
}

.dt-more-clear:hover {
    text-decoration: underline;
    color: white;
}

.dt-more-panel-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto; /* Shrink to allow footer to remain visible */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* Required for flex child to scroll properly */
}

.dt-more-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dt-more-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
}

.dt-more-select,
.dt-more-input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-800);
    background: var(--bg-body);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dt-input-group .select2-container--default .select2-selection--single {
    border-radius: 8px 0px 0px 8px !important;
    border-right: 0 !important;
}

.dt-more-select:focus,
.dt-more-input:focus,
[data-theme="dark"] .dt-more-select:focus,
[data-theme="dark"] .dt-more-input:focus {
    border-color: var(--primary) !important;
    background: var(--bg-card) !important;
    color: var(--gray-900) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* ── Select2 Premium Integration for dt-more-select ── */
.dt-more-select + .select2-container--default .select2-selection--single {
    height: 42px !important;
    padding: 7px 12px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 8px !important;
    background-color: var(--bg-body) !important;
    transition: all 0.2s !important;
}

.dt-more-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gray-800) !important;
    font-size: 13px !important;
    line-height: 24px !important;
    padding-left: 0 !important;
}

.dt-more-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.dt-more-select + .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    background: var(--bg-card) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

[data-theme="dark"] .dt-more-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}

/* ── Select2 Dropdown Results Premium Theme ── */
.select2-dropdown {
    background-color: #1e293b !important; /* Match dark theme popup */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    margin-top: 5px !important;
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    margin-bottom: 5px !important;
}


.select2-results__option {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #cbd5e1 !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* ── Optgroup Styling ── */
.select2-results__group {
    display: block !important;
    padding: 10px 12px 5px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--primary) !important;
    background-color: rgba(78, 115, 223, 0.05) !important;
    margin: 5px -5px 5px -5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.select2-results__options--nested .select2-results__option {
    padding-left: 20px !important;
}

.select2-results__options--nested .select2-results__option::before {
    content: 'ㄴ';
    margin-right: 8px;
    opacity: 0.3;
}

/* Light Mode Overrides for Dropdown */
[data-theme="light"] .select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .select2-results__option {
    color: #475569 !important;
}

[data-theme="light"] .select2-results__group {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-top-color: #f1f5f9 !important;
}

[data-theme="light"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}


.dt-more-panel-footer {
    display: flex;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border-color);
}

.btn-dt-apply {
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: #4e73df;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.btn-dt-apply:hover {
    background: #3e60c1;
}

.btn-dt-cancel {
    padding: 9px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dt-cancel:hover {
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* ── Custom Prev/Next Pagination ── */
.dt-footer-pager {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

.dt-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dt-nav-btn:hover:not([disabled]) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.dt-nav-btn[disabled] {
    color: var(--gray-300);
    border-color: var(--border-color);
    cursor: default;
}

.dt-page-counter {
    font-size: 13px;
    color: var(--gray-600);
    padding: 0 10px;
    white-space: nowrap;
}


/* ── KPI Summary Cards ── */
.dt-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 5px 1.5rem 15px 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.dt-summary-card {
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--border-color);
}

.dt-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dt-summary-body {
    flex: 1;
}

.dt-summary-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.dt-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    white-space: nowrap;
}

.dt-summary-sub {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 6px;
    font-style: italic;
}

.dt-summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-left: 1rem;
    filter: brightness(0.95);
}


/* Color Variants */
.dt-summary-blue {
    border-left-color: var(--primary);
}

.dt-icon-blue {
    background: var(--primary-soft);
    color: var(--primary);
}

.dt-summary-green {
    border-left-color: var(--success);
}

.dt-icon-green {
    background: var(--success-soft);
    color: var(--success);
}

.dt-summary-yellow {
    border-left-color: var(--warning);
}

.dt-icon-yellow {
    background: var(--warning-soft);
    color: var(--warning);
}

.dt-summary-red {
    border-left-color: var(--danger);
}

.dt-icon-red {
    background: var(--danger-soft);
    color: var(--danger);
}

/* -- Premium Skeleton Loader -- */
.skeleton-text {
    display: inline-block;
    height: 1.25rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0)
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 6px;
    vertical-align: middle;
}

.skeleton-text-dark {
    display: inline-block;
    height: 1rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    background-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0)
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Theme Utilities */
.modal-header-primary { background: var(--primary) !important; color: white !important; }
.modal-header-success { background: var(--success) !important; color: white !important; }
.modal-header-danger { background: var(--danger) !important; color: white !important; }
.modal-header-warning { background: var(--warning) !important; color: var(--gray-900) !important; }
.modal-header-info { background: var(--info) !important; color: white !important; }

.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

.btn-dt-action-primary {
    background: var(--primary);
    color: #fff;
}
.btn-dt-action-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}


/* ══════════════════════════════════════════
   RESPONSIVE: Tablet (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* KPI cards: 2 per row on tablet */
    .dt-summary-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }

    /* Toolbar: stack vertically */
    .dt-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
    }
    .dt-toolbar-left{
        width: 100%;
    }

    /* Search fills full width */
    .dt-search-wrapper {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .dt-search-input {
        width: 100%;
    }

    /* Filters: wrap to full row */
    .dt-toolbar-filters {
        flex-wrap: wrap;
        margin-left: 0;
        width: 100%;
        gap: 6px;
        align-items: flex-start;
    }

    /* Date range chip: inline, fills row */
    .dt-filter-group {
        flex-shrink: 1;
    }

    .dt-filter-chip {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .dt-chip-input[type="date"] {
        min-width: 100px;
        width: 100px;
        padding: 7px 6px;
        font-size: 12px;
    }

    /* More Filters panel on tablet */
    .dt-more-panel {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        width: 92vw;
        max-width: 360px;
    }

    /* Footer */
    .dt-footer {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        text-align: center;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE: Mobile (≤ 576px)
   — matches reference screenshot exactly —
══════════════════════════════════════════ */
@media (max-width: 576px) {

    /* Page header: stack title & button */
    .dt-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* KPI cards: 1 per row (full width) */
    .dt-summary-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* ── Compact Toolbar (Mobile) ── */
    .dt-toolbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    /* Search: Expanded in row */
    .dt-search-wrapper {
        flex: 1 !important;
        max-width: none !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    .dt-search-input {
        width: 100% !important;
        height: 42px !important;
        padding-left: 38px !important;
    }

    /* Filters: Compact Icon Row */
    .dt-toolbar-filters {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        width: auto !important;
        margin: 0 !important;
        gap: 6px !important;
        align-items: center !important;
    }

    /* Hide standard filter groups in main toolbar ONLY IF they were successfully ported to drawer via JS */
    .dt-toolbar-filters.filters-ported > .dt-filter-group:not(.dt-more-filters-wrapper) {
        display: none !important;
    }

    /* Fallback: If not ported, stack them compactly */
    .dt-toolbar-filters:not(.filters-ported) > .dt-filter-group {
        display: flex !important;
        margin: 0 !important;
    }

    /* Show ported filters only inside drawer */
    .dt-more-panel-body .dt-filter-group.ported-filter {
        display: block !important;
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    /* EXCLUDE original buttons from drawer body */
    .dt-more-panel-body .dt-filter-group.ported-filter .d-flex {
        display: none !important; /* Hide the Filter/Reset buttons if they are part of a ported group */
    }

    .dt-more-panel-body .dt-filter-group.ported-filter label:empty,
    .dt-more-panel-body .dt-filter-group.ported-filter label[label="&nbsp;"] {
        display: none !important;
    }

    /* Unified Field Containers in Drawer (Tightened spacing) */
    .dt-more-panel-body .dt-more-field,
    .dt-more-panel-body .dt-filter-group.ported-filter {
        margin-bottom: 12px !important;
        display: block !important;
    }

    .dt-more-label {
        margin-bottom: 4px !important;
        display: block !important;
    }

    /* The White Box Container (Shared Logic) */
    .dt-more-field-container,
    .dt-more-panel-body .dt-more-input,
    .dt-more-panel-body .dt-more-select {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: #fdfdfd !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
        min-height: 44px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* SPECIAL CASE: If it's a Select2 inside a container, remove the container's border to avoid double lines */
    .dt-more-field-container:has(.select2-container),
    .dt-more-field-container:has(.select2) {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Style the actual Select2 selection as the box */
    .select2-container--default .select2-selection--single {
        display: flex !important;
        align-items: center !important;
        background: var(--bg-body) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        height: 41px !important;
        width: 100% !important;
        padding: 0 12px !important;
        outline: none !important;
    }


    /* Remove borders from actual input/select tags */
    .dt-more-panel-body input, 
    .dt-more-panel-body select {
        border: none !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .dt-more-field-container input[type="date"] {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        font-size: 13px !important;
        padding: 4px 0 !important;
        color: var(--gray-800) !important;
        min-width: 0 !important;
    }


    .dt-more-field-container select {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        font-size: 14px !important;
        color: var(--gray-800) !important;
        width: 100% !important;
    }


    /* Select2 Fix: Ensure dropdown is always on top of drawer (z-2000+) */
    .select2-container--open {
        z-index: 9999 !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: var(--gray-800) !important;
        font-size: 14px !important;
        padding-left: 0 !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 41px !important;
        right: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }


    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #9ca3af transparent transparent transparent !important;
        border-width: 6px 4px 0 4px !important;
        margin-top: 0 !important;
        position: static !important;
    }

    /* Hide native arrow for ANY select in drawer if it leaks */
    .dt-more-panel-body select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    .dt-chip-input[type="date"] {
        flex: 1;
        width: auto;
        min-width: 0;
        font-size: 11px; /* Slightly smaller for mobile ranges */
        padding: 6px 0;
        background: transparent;
        text-align: center;
    }

    /* More Filters & Reset Icons */
    .dt-more-filters-btn, .dt-mobile-reset-icon {
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        padding: 0 !important;
        font-size: 0 !important;
        margin: 0 !important;
        background: var(--bg-body) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--gray-600) !important;
        transition: all 0.2s;
    }

    .dt-more-filters-btn i, .dt-mobile-reset-icon i {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .dt-more-arrow, .dt-more-badge { display: none !important; }

    .dt-more-filters-wrapper {
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
    }

    /* Glassmorphism Overlay */
    .dt-panel-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 1900 !important; /* Increased to be above almost everything else */
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .dt-panel-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    /* Advanced Filters Panel (Bottom Sheet) */
    .dt-more-panel {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: 85vh !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        z-index: 2000 !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(100%);
        visibility: hidden;
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
    }

    .dt-more-panel.dt-panel-open {
        transform: translateY(0);
        visibility: visible;
    }

    .dt-more-panel-header {
        padding: 16px 20px !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .dt-more-panel-body {
        padding: 20px !important;
        overflow-y: auto !important;
        flex: 1 1 auto !important;
        background-color: var(--bg-card) !important;
        -webkit-overflow-scrolling: touch;
    }

    .dt-more-panel-footer {
        padding: 16px 20px !important;
        border-top: 1px solid var(--border-color) !important;
        background: var(--bg-body) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        gap: 10px !important;
    }

    /* Primary Submit in Drawer */
    .dt-more-panel-footer .btn-block {
        height: 48px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important; /* Allow it to share space with Cancel */
    }

    /* Safety Hide: Only hide reset-related elements, NOT generic secondary buttons like Cancel */
    .dt-more-panel .dt-mobile-reset-icon,
    .dt-more-panel-footer .dt-mobile-reset-icon,
    .dt-more-panel-footer i.fa-undo {
        display: none !important;
    }

    /* Footer: center pagination */
    .dt-footer {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    .dt-footer-info {
        display: none;
    }

    /* Pagination compact */
    .dt-nav-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .dt-page-counter {
        font-size: 12px;
    }
}
/* Targeted cleanup: removing old duplicate topbar/breadcrumb block. 
   Newer definitive version is maintained at the bottom of the file. */

/* ── Mobile Responsive KPI Cards ── */
@media (max-width: 768px) {
    .dt-summary-row {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px 1.5rem 15px 1.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .dt-summary-row::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .dt-summary-card {
        flex: 0 0 280px;
        min-width: 280px;
        margin-bottom: 0;
    }
}
@media (min-width: 768px) {
    .sidebar {
        width: 20rem !important;
    }
    .sidebar .nav-item .collapse, .sidebar .nav-item .collapsing {
        margin: 0;
    }
    .sidebar .nav-item .collapse .collapse-inner .collapse-item, .sidebar .nav-item .collapsing .collapse-inner .collapse-item{
        margin:0 1rem 0 2rem !important;
    }
    .sidebar .nav-item .nav-link[data-toggle=collapse]::after{
        position: absolute;
        right: 15px !important;
    }
    .sidebar .nav-item .nav-link{
        width: 100% !important;
    }
}

/* Hide Sidebar by default on mobile/tablet load */
/* Premium Full-Width Mobile Sidebar with Glassmorphism */
@media (max-width: 768px) {
    #accordionSidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100% !important;
        z-index: 10000 !important;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        background: rgba(26, 32, 44, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        flex-direction: column;
        overflow-y: auto;
        /* padding-top: 2rem; */
        text-align: center;
        border: none !important;
    }

    body.sidebar-toggled #accordionSidebar,
    #accordionSidebar.toggled {
        transform: translateX(0);
        display: flex !important;
    }

    /* Mobile Close Button Style */
    .mobile-sidebar-close {
        position: absolute;
        top: 1rem !important;
        right: 1rem !important;
        font-size: 1.5rem !important;
        color: #fff !important;
        opacity: 0.8;
        background: none !important;
        border: none !important;
        z-index: 10001 !important;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-items: center;
        transition: all 0.2s;
        line-height: 1;
    }

    /* Desktop-style row layout for Mobile Sidebar Items */
    #accordionSidebar .nav-item .nav-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 1.25rem 2.5rem !important;
        color: rgba(255,255,255,0.85) !important;
        text-align: left !important;
    }

    #accordionSidebar .nav-item .nav-link i {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        margin-right: 1.5rem !important;
        width: 30px;
        text-align: center;
    }

    #accordionSidebar .nav-item .nav-link span {
        display: inline-block !important;
        font-size: 1.15rem !important;
        font-weight: 500 !important;
    }

    /* Mobile Submenu Styling */
    #accordionSidebar .collapse {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
    }

    #accordionSidebar .collapse-inner {
        background: rgba(255, 255, 255, 0) !important;
        box-shadow: none !important;
        margin: 10px 0 !important;
        /* padding: 5px 0 15px 0 !important; */
        border-radius: 0 !important;
        display: block !important;
        border: none !important;
    }

    #accordionSidebar .collapse-item {
        color: rgba(255, 255, 255, 0.7) !important;
        margin: 0 0 0 5rem !important;
        display: block !important;
        font-size: 1.05rem !important;
        text-align: left !important;
        text-decoration: none !important;
        transition: all 0.2s;
        background: transparent !important;
    }

    #accordionSidebar .collapse-item:active,
    #accordionSidebar .collapse-item:hover {
        background: rgba(255, 255, 255, 0) !important;
        color: #fff !important;
    }

    .dt-table tbody td.dataTables_empty:before {
        display: none !important; /* Hide "NO" label on empty row */
    }
} /* Close Sidebar Media Query */

/* ── Global Table Action Buttons ── */
.dt-table tbody td:last-child {
    white-space: nowrap !important;
    width: 1% !important; /* Shrink to fit content */
}

.dt-table tbody td:last-child .btn,
.dt-table tbody td:last-child a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    border-radius: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin: 0 4px !important;
    transition: all 0.2s;
    text-decoration: none !important;
}

/* ── Themed Action Variants (Vibrant Solid) ── */
.btn:hover{
    cursor: pointer!important;
}
.btn-action-detail {
    background: #4e73df !important;
    color: #ffffff !important;
    border: 1px solid #2e59d9 !important;
    box-shadow: 0 2px 4px rgba(78, 115, 223, 0.2) !important;
}
.btn-action-detail:hover {
    background: #2e59d9 !important;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3) !important;
    transform: translateY(-1px);
}

.btn-action-resend {
    background: #f6c23e !important;
    color: #ffffff !important;
    border: 1px solid #dda20a !important;
    box-shadow: 0 2px 4px rgba(246, 194, 62, 0.2) !important;
}
.btn-action-resend:hover {
    background: #e2ae1e !important;
    box-shadow: 0 4px 12px rgba(246, 194, 62, 0.3) !important;
    transform: translateY(-1px);
}

.dt-filter-label{
    display: none !important;
}

/* ── Merchant Delegation Button Tidy-Up ── */
.delegation-toggle-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.delegation-btn {
    min-width: 75px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.delegation-btn.btn-link {
    text-decoration: none !important;
    border: 1px solid transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.delegation-btn.btn-success:not(.btn-link),
.delegation-btn.btn-danger:not(.btn-link) {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── Premium Responsive DataTables (Stacked Card Layout) ── */
@media (max-width: 768px) {
    
    .dt-table,table.dataTable {
        border: none !important;
        width: 100% !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }

    .dt-table thead {
        display: none !important; /* Hide headers on mobile */
    }

    .dt-table tbody tr {
        display: block !important;
        background: var(--bg-card) !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        border: 1px solid rgba(0,0,0,0.03) !important;
        position: relative;
    }

    .dt-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: start !important;
        flex-direction: column;
        border: none !important;
        gap: 10px !important;
        padding: 10px 5px !important;
        border-bottom: 1px solid rgba(26, 32, 44, 0.05) !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }

    .dt-table tbody td:last-child {
        border-bottom: none !important;
    }

    /* Add Label from data-label attribute injected via JS */
    .dt-table tbody td:before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        color: #9CA3AF;
        letter-spacing: 1px;
        margin-right: 15px;
        text-align: left !important;
        flex: 1;
    }

    /* Specific enhancements for a premium look */
    .dt-table tbody td:first-child {
        display: none !important; /* Hide NO column on mobile as requested */
        border-bottom: none !important;
    }

    /* Action buttons: Twin-button block with flex-between */
    .dt-table tbody td:last-child {
        display: flex !important;
        /* padding: 5px !important;  */
        background: transparent !important;
        /* margin-top: 5px !important; */
        border-top: 1px solid rgba(26, 32, 44, 0.05) !important;
        border-bottom: none !important;
        flex-direction: row !important;
        width: 100% !important;
    }

    .dt-table tbody td:last-child:before {
        display: none !important; /* Hide ACTIONS label */
    }

    .dt-table tbody td:last-child .dropdown,
    .dt-table tbody td:last-child {
        width: 100% !important;
        display: flex; /* Remove !important to respect d-none */
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 5px !important;
    }

    /* Merchant Info / Multi-line content alignment */
    .dt-table tbody td div.d-flex.flex-column {
        width: 100% !important;
        text-align: justify !important;
    }

    /* ── Empty State Handling ── */
    .dt-table tbody td.dataTables_empty {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        /* padding: 4rem 2rem !important; */
        background: transparent !important;
        color: #9CA3AF !important;
        font-weight: 500 !important;
        border: none !important;
    }

    .dt-table tbody td.dataTables_empty:before {
        display: none !important; /* Hide "NO" label on empty row */
    }

    /* ── Mobile Bottom Drawer Component ── */
    body.drawer-open {
        overflow: hidden !important; /* Prevent scroll when open */
    }

    body.drawer-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 32, 44, 0.4);
        backdrop-filter: blur(5px);
        z-index: 1045;
        display: block;
    }

    /* Target dropdown menus within DataTables on mobile */
    .dt-table .dropdown-menu {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        position: fixed !important;
        bottom: -100% !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        z-index: 1050 !important;
        padding: 30px 15px 40px 15px !important;
        border: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.1) !important;
    }

    .dt-table .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        bottom: 0 !important;
        transform: none !important;
    }

    /* Grab Handle for the Drawer */
    .dt-table .dropdown-menu::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 5px;
        background: #E5E7EB;
        border-radius: 10px;
    }

    .dt-table .dropdown-item {
        padding: 12px 15px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 12px !important;
        margin-bottom: 2px;
    }

    .dt-table .dropdown-item i {
        font-size: 1.1rem !important;
        width: 30px;
        text-align: center;
    }

    /* Hide divider on mobile if needed */
    .dt-table .dropdown-divider {
        margin: 10px 0 !important;
        opacity: 0.5;
    }
}


.navbar-premium {
    background-color: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid rgba(231, 234, 243, 0.7) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1040 !important;
    height: 70px !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    align-items: center !important;
}
.navbar-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url(../../assets/cover/sidebar-default.jpg) !important; */
    background-size: cover !important;
    background-position:center !important;
    z-index: -1 !important;
}
.dt-breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.dt-breadcrumb-item {
    display: flex !important;
    align-items: center !important;
    color: #6B7280 !important;
}
.dt-breadcrumb-item a { color: #6B7280 !important; text-decoration: none !important; }
.dt-breadcrumb-item a:hover { color: #664EFF !important; }
.dt-breadcrumb-separator { color: #D1D5DB !important; font-size: 10px !important; margin: 0 4px !important; }
.custom-switch-premium { padding-left: 2.25rem !important; }
.custom-switch-premium .custom-control-label {
    cursor: pointer !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #6B7280 !important;
    padding-top: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.navbar-user-info span { font-weight: 700 !important;color: var(--bg-body); font-size: 14px !important; }
.navbar-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #fff !important;
}

/* =====================================================
   MOBILE ACTIONS OVERRIDE (< 3 ITEMS = INLINE)
   ===================================================== */
@media (max-width: 768px) {
    .dt-table .child .dtr-data {
        display: block !important;
        width: 100% !important;
    }
    
    .dropdown.mobile-inline-actions {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    .dropdown.mobile-inline-actions > [data-toggle="dropdown"] {
        display: none !important;
    }
    .dropdown.mobile-inline-actions .dropdown-menu {
        display: flex !important;
        position: static !important;
        flex-direction: column !important;
        gap: 8px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        transform: none !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .dropdown.mobile-inline-actions .dropdown-menu::before,
    .dropdown.mobile-inline-actions .dropdown-menu::after {
        display: none !important;
        content: none !important;
    }
    
    .dropdown.mobile-inline-actions .dropdown-menu > li {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .dropdown.mobile-inline-actions .dropdown-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
        background: #f8f9fc !important;
        color: #4e73df !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border: 1px solid #e3e6f0 !important;
        width: 100% !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
    }
    
    .dropdown.mobile-inline-actions .dropdown-item i {
        margin-right: 4px !important;
    }
    
    /* Global refresh text mobile hider */
    .btn-text-mobile-hide {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .btn-text-mobile-hide {
        display: inline !important;
        margin-left: 4px;
    }
}

.gap-1{
    gap: 6px !important;
}

.gap-2{
    gap: 12px !important;
}

.gap-3{
    gap: 18px !important;
}

.gap-4{
    gap: 24px !important;
}

.gap-5{
    gap: 30px !important;
}

.gap-6{
    gap: 36px !important;
}

.gap-7{
    gap: 42px !important;
}

.gap-8{
    gap: 48px !important;
}

.gap-9{
    gap: 54px !important;
}

.gap-10{
    gap: 60px !important;
}

.gap-11{
    gap: 66px !important;
}

.gap-12{
    gap: 72px !important;
}

.fw-light{
    font-weight: 300 !important;
}

.fw-regular{
    font-weight: 400 !important;
}

.fw-medium{
    font-weight: 500 !important;
}

.fw-normal{
    font-weight: 600 !important;
}

.fw-semibold{
    font-weight: 700 !important;
}

.fw-bold{
    font-weight: 800 !important;
}
.fw-extra-bold{
    font-weight: 900 !important;
}
.fc-card{
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bg-card);
    background-clip: border-box;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.fc .fc-button-group{
    gap:6px
}
#calendar {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.fc .fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    letter-spacing: -0.02em !important;
}
.fc .fc-button {
    background: var(--bg-body) !important;
    /* border: 1px solid var(--border-color) !important; */
    color: var(--text-color) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 7px 15px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: capitalize !important;
}
.fc .fc-button:hover {
    background: #f8fafc !important;
    color: #1a202c !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-1px);
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--primary-glow) !important;
}
.fc .fc-today-button {
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--primary) !important;
    background: var(--primary-soft) !important;
    border: none !important;
}
.fc .fc-daygrid-day:hover {
    background: #f8fafc !important;
    cursor: pointer;
}
.fc .fc-day-today {
    background: var(--primary-soft) !important;
}
.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px !important;
    box-shadow: 0 2px 6px var(--primary-glow) !important;
}
.fc .fc-daygrid-day-number {
    font-weight: 700 !important;
    color: #4a5568 !important;
    padding: 10px !important;
    font-size: 13px;
}
.fc .fc-col-header-cell {
    background: var(--bg-body) !important;
    padding: 12px 0 !important;
}
.fc .fc-col-header-cell-cushion {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--gray-600) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}
.fc .fc-event {
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    transition: transform 0.2s ease;
}
.fc .fc-event:hover {
    transform: scale(1.02);
}
.fc-theme-standard td, .fc-theme-standard th{
    border-color: var(--border-color) !important;
    
}
/* Event Status Coloring */
.holiday-active {
    background: linear-gradient(135deg, var(--primary) 0%, #4433ff 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px var(--primary-glow) !important;
}
.holiday-inactive {
    background: #f1f5f9 !important;
    color: #64748b !important;
    /* border: 1px solid #e2e8f0 !important; */
}
.fc .fc-multimonth {
    border: none !important;
}
/* FullCalendar Layout Adjustments */
.fc .fc-multimonth-month {
    border: none !important;
    /* padding: 20px !important; */
}
.fc .fc-multimonth-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    padding: 20px 0 !important;
}
.fc .fc-multimonth-daygrid {
    /* border-radius: 16px !important; */
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}


.bg-light-subtle { background-color: var(--bg-body) }

/* FullCalendar Responsive Overrides (Premium Redesign) */
@media (max-width: 767.98px) {
    .fc .fc-toolbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
        margin-bottom: 1.5rem !important;
    }
    .fc .fc-toolbar-chunk {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
    }
    .fc .fc-toolbar-title {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }
    .fc .fc-button {
        padding: 6px 10px !important;
        font-size: 10px !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary) !important;
        box-shadow: none !important;
    }
    .fc .fc-today-button {
        background: var(--primary-soft) !important;
        border-radius: 8px !important;
        text-transform: uppercase !important;
        font-weight: 800 !important;
    }

    /* Circular Calendar Grid Overrides */
    .fc-theme-standard td, .fc-theme-standard th {
        border: none !important;
    }
    .fc .fc-scrollgrid {
        border: none !important;
    }
    .fc-mobile-card {
        background: #fff;
        border-radius: 24px;
        padding: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    }
    .fc .fc-daygrid-day-frame {
        min-height: 45px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .fc .fc-daygrid-day-number {
        padding: 0 !important;
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }
    
    /* Turn events into dots */
    .fc-daygrid-event-harness {
        margin: 0 !important;
        display: flex;
        justify-content: center;
    }
    .fc .fc-event {
        padding: 0 !important;
        width: 6px !important;
        height: 6px !important;
        min-height: 6px !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        margin: 0 auto !important;
    }
    .fc .fc-day-today {
        background: transparent !important;
    }
    .fc .fc-day-today .fc-daygrid-day-number {
        background: var(--primary) !important;
        color: #fff !important;
        border-radius: 50% !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Event List Styling */
    .mobile-event-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 80px; 
    }
    .mobile-event-item {
        background: #fff;
        border-radius: 20px;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        transition: transform 0.2s ease;
    }
    .mobile-event-item:active {
        transform: scale(0.98);
    }
    .mobile-event-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 50px;
        height: 50px;
        background: var(--primary-soft);
        color: var(--primary);
        border-radius: 14px;
    }
    .mobile-event-date .day {
        font-size: 16px;
        font-weight: 800;
        line-height: 1;
    }
    .mobile-event-date .month {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        margin-top: 2px;
    }
    .mobile-event-content {
        flex: 1;
    }
    .mobile-event-content .title {
        font-size: 13px;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 4px;
    }
    .mobile-event-content .status .badge {
        font-size: 9px;
        font-weight: 700;
        padding: 4px 8px;
    }
    .mobile-event-arrow {
        color: #cbd5e0;
        font-size: 12px;
    }

    /* FAB Button */
    .fab-btn {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        background: var(--primary);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 10px 25px var(--primary-glow);
        z-index: 1050;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .fab-btn:active {
        transform: scale(0.9) rotate(90deg);
    }
}
.btn-icon-only { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: 0.2s; }
.btn-icon-only:hover { background-color: #f1f3f9; }

.dt-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.dt-toggle-switch input { display: none; }
.dt-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #e0e0e0;
    border-radius: 24px;
    transition: .25s;
}
.dt-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: .25s;
}
.dt-toggle-switch input:checked + .dt-toggle-slider { background-color: #1cc88a; }
.dt-toggle-switch input:checked + .dt-toggle-slider:before { transform: translateX(20px); }

/* Dim saving feedback */
tr.saving { opacity: 0.5; pointer-events: none; transition: opacity .2s; }
tr.saved  { opacity: 1; }

/* =====================================================
   [7] UI COMPONENTS (Radio Toggles & Button Checks)
   ===================================================== */
.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* Base style for labels acting as buttons */
.btn-check + .btn {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 2px !important;
    border: 1.5px solid transparent !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Checked states with premium elevation */
.btn-check:checked + .btn-outline-success {
    color: #fff !important;
    background-color: #1cc88a !important; /* var(--success) fallback */
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    box-shadow: 0 4px 12px var(--success-soft) !important;
    transform: translateY(-1px);
}

.btn-check:checked + .btn-outline-danger {
    color: #fff !important;
    background-color: #e74a3b !important; /* var(--danger) fallback */
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
    box-shadow: 0 4px 12px var(--danger-soft) !important;
    transform: translateY(-1px);
}

/* Unchecked outline states */
.btn-outline-success {
    color: var(--success) !important;
    border-color: var(--success) !important;
    background-color: transparent !important;
}

.btn-outline-danger {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
    background-color: transparent !important;
}

.btn-outline-success:hover {
    background-color: var(--success-soft) !important;
    color: var(--success) !important;
}

.btn-outline-danger:hover {
    background-color: var(--danger-soft) !important;
    color: var(--danger) !important;
}

/* Button Group Alignment Fix */
.btn-group .btn-check + .btn {
    flex: 1;
}

/* =====================================================
   [LOGIN PAGE MOBILE OVERRIDES]
   Isolated fixes for mobile responsiveness
   ===================================================== */
@media (max-width: 991px) {
    .login-left {
        display: none !important;
    }
    .login-right {
        width: 100% !important;
        padding: 40px 20px !important;
    }
    .login-mobile-logo {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 0 !important;
        height: 100vh;
        overflow-y: auto;
        display: flex;
        align-items: center;
    }
    .login-card {
        border-radius: 0 !important;
        min-height: 100vh !important;
        margin: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .login-right {
        min-height: 100vh;
        justify-content: center !important;
        padding: 40px 24px !important;
    }
}

.modal-title{
    display: flex;
    gap: 6px;
    align-items: center;
}

/* =====================================================
   [8] PERMISSION MODAL RESPONSIVENESS
   ===================================================== */
.delegate-permissions-wrapper {
    overflow-x: hidden !important;
    width: 100%;
}

@media (max-width: 575.98px) {
    /* Target the permissions list specifically */
    .delegate-permissions-table,
    .delegate-permissions-table tbody,
    .delegate-permissions-table tr,
    .delegate-permissions-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .delegate-permissions-table tr {
        padding: 18px 0 !important; /* Reset horizontal padding */
        border-bottom: 2px solid #f1f3f9 !important;
        background: transparent !important;
    }

    .delegate-permissions-table td {
        padding: 0 !important;
        border: none !important;
        white-space: normal !important; /* OVERRIDE NOWRAP */
        text-wrap: balance !important;
    }

    .delegate-permissions-table td:first-child {
        margin-bottom: 12px !important;
    }

    .delegate-permissions-table .btn-group {
        display: flex !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .delegate-permissions-table .btn-group .btn {
        flex: 1 !important;
        margin: 0 !important;
        padding: 12px 6px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    /* Stack buttons vertically on ultra-narrow screens */
    @media (max-width: 480px) {
        .delegate-permissions-table .btn-group {
            flex-direction: column !important;
            gap: 6px !important;
        }
        .delegate-permissions-table .btn-group .btn {
            width: 100% !important;
            flex: none !important;
        }
    }
}

.input-group{
    flex-wrap: nowrap;
}

/* Prevent table clipping for dropdowns (Only if not using responsive scroll) */
.dt-card { overflow: visible !important; }
.card-body { overflow: visible !important; }
.table-responsive { overflow-x: auto !important; }
table.dataTable{
    margin-top: 0!important;
    margin-bottom: 0!important;
}
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Delegation Modal Responsive */
@media (max-width: 575.98px) {
    #permissionsList .table thead {
        display: none;
    }
    #permissionsList .table tbody tr {
        display: block;
        padding: 1rem 0.5rem;
        border-bottom: 1px solid #edf2f9;
    }
    #permissionsList .table td {
        display: block;
        width: 100% !important;
        padding: 0.25rem 0 !important;
        border: none !important;
    }
    #permissionsList .table td:last-child {
        margin-top: 0.75rem;
    }
    #permissionsList .btn-group {
        margin-top: 5px;
    }
    #permissionsList .btn-group .btn {
        padding: 0.5rem;
        font-size: 11px;
    }
}


/* =====================================================
   [9] PREMIUM MODAL HEADERS (BI-FAST STYLE)
   ===================================================== */
.mh-premium {
    background: linear-gradient(135deg, #761818 0%, #BF360C 100%) !important;
    padding: 1.1rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    border-radius: 0 !important;
}

.mh-icon-badge {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-icon-badge i {
    color: #ffffff !important;
    font-size: 16px !important;
}

.mh-icon-badge .mh-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 11px !important; /* Slightly less than parent for perfect fit */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-title-wrap {
    min-width: 0;
    flex: 1;
}

.mh-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 10.5px !important;
    display: block !important;
    font-weight: 400 !important;
}

.mh-premium .close {
    margin: -1rem -1rem -1rem auto !important;
    color: #fff !important;
    text-shadow: none !important;
    opacity: 0.7 !important;
    transition: all 0.2s;
}

.mh-premium .close:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}


/* Unified Premium DataTables Processing Loader */
.dataTables_wrapper { position: relative !important; }
div.dataTables_processing {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
div.dataTables_processing[style*="display: block"] {
    display: flex !important;
}
.dt-loader-inner {
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray-900);
}
.dt-loader-inner .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* ── Premium Pagination Pill System ── */
.dt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    /* padding: 0.75rem 1.5rem; */
    /* border-radius: 100px; */
    /* margin: 1.5rem; */
    gap: 1rem;
}

.dt-footer-pager {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1.5rem;
    flex: 1;
}

.dt-pager-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dt-pager-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dt-pager-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
}

.dt-pager-link:hover:not(.disabled):not(.active) {
    background: #f3f4f6;
    color: #111827;
}

.dt-pager-link.active {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: scale(1.1);
}

.dt-pager-link.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.dt-pager-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
    font-weight: 700;
}

.dt-pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.dt-pager-btn i {
    font-size: 12px;
}

.dt-pager-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.03);
    color: var(--primary);
}

.dt-footer-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ── Responsive Pagination Adaptation ── */

/* Desktop (Default Layout) */
@media (min-width: 992px) {
    .dt-pager-btn-txt { display: inline; }
    .dt-pager-numbers { display: flex; }
}

/* Tablet (Hide texts, keep numbers) */
@media (min-width: 768px) and (max-width: 991px) {
    .dt-footer {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .dt-footer-pager {
        justify-content: center;
        gap: 1rem;
    }
    .dt-pager-btn-txt { display: none; }
    .dt-footer-info { display: none; } /* Hide info on tablet to focus on pager */
    .dt-pager-btn { padding: 0; width: 36px; height: 36px; justify-content: center; }
}

/* Mobile (Arrows + Info Only) */
@media (max-width: 767px) {
    .dt-footer {
        padding: 0.6rem 1rem;
        margin: 1rem;
        border-radius: 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    .dt-footer-pager {
        flex: 0 0 auto;
        gap: 0.5rem;
    }
    .dt-pager-numbers { display: none; } /* Hide numbers on mobile */
    .dt-pager-btn-txt { display: none; }
    .dt-pager-btn { 
        width: 40px; 
        height: 40px; 
        border-radius: 50%; 
        background: #f1f5f9;
        justify-content: center;
        padding: 0;
    }
    .dt-pager-btn:not(:disabled).dt-next-btn {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 4px 10px var(--primary-glow);
    }
    .dt-pager-btn i { font-size: 14px; }
    .dt-footer-info {
        font-size: 12px;
        flex: 1;
        text-align: right;
    }
}


/* Custom Select2 & Modal Styles for External Mapping */
.dt-card { overflow: visible !important; }
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}
.form-control {
    height: 38px !important;
    border-radius: 6px !important;
}
.card.h-100 { height: auto !important; }
.g-4, .gy-4 { --bs-gutter-y: 1.5rem; --bs-gutter-x: 1.5rem; }
.modal-body .row > [class*='col-'] { margin-bottom: 15px; }
.modal-body .card { padding: 20px !important; }
.select2-results__option--highlighted[aria-selected] {
    background-color: #4e73df !important;
    color: white !important;
}
.select2-results__option[aria-selected=true] {
    background-color: transparent !important;
    color: #4e73df !important;
    font-weight: bold;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #020202 !important;
    font-weight: 600 !important;
}
.select2-results__option--selected {
    background-color: #4e73df !important;
    color: white !important;
}
.input-group-lg>.custom-select, .input-group-lg>.form-control, .input-group-lg>.input-group-append>.btn, .input-group-lg>.input-group-append>.input-group-text, .input-group-lg>.input-group-prepend>.btn, .input-group-lg>.input-group-prepend>.input-group-text{
    font-size: 13px !important;
}
/* Welcome Page Animation & Assets */
.welcome-container { max-width: 900px; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.welcome-avatar-wrap { position: relative; display: inline-block; }
.welcome-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid white; position: relative; z-index: 2; }
.avatar-ring { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border: 2px dashed var(--primary); border-radius: 50%; animation: rotate 20s linear infinite; opacity: 0.3; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.quick-access-card { background: var(--bg-card); border-radius: 20px; min-height: 140px; text-decoration: none !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.quick-access-card:hover { transform: translateY(-8px); background: var(--primary); box-shadow: 0 20px 25px -5px var(--primary-glow) !important; }
.card-icon-circle { width: 50px; height: 50px; background: var(--gray-50); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; transition: all 0.3s ease; }
.quick-access-card:hover .card-icon-circle { background: rgba(255, 255, 255, 0.2); color: white; }
.card-label { color: var(--gray-700); font-size: 13px; text-align: center; transition: all 0.3s ease; }
.quick-access-card:hover .card-label { color: white; }
.card-hover-hint { position: absolute; bottom: -20px; font-size: 9px; color: rgba(255, 255, 255, 0.8); font-weight: bold; text-transform: uppercase; transition: all 0.3s ease; opacity: 0; }
.quick-access-card:hover .card-hover-hint { bottom: 12px; opacity: 1; }
.status-indicator-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-indicator-dot.online { background: #10b981; box-shadow: 0 0 10px #10b981; }
.welcome-subtitle { font-size: 15px; color: var(--gray-600); }

/* Dashboard KPI & Pulse */
.dash-kpi-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default; }
.dash-kpi-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg) !important; }
.text-emerald { color: #10b981; }
.text-rose { color: #f43f5e; }
.pulse { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { opacity: 0; } }
.pulse-ring:before { content: ''; position: absolute; width: 300px; height: 300px; top: -40px; left: -40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; animation: pulse-ring 4s infinite cubic-bezier(0.215, 0.61, 0.355, 1); }
#recentActivityTable tbody tr { transition: background 0.2s; }
#recentActivityTable tbody tr:hover { background-color: var(--gray-100) !important; }
#recentActivityTable td { padding: 20px 24px; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--border-color); vertical-align: middle; }

/* Utility Classes */
.letter-spacing-1 { letter-spacing: 1px; }
.opacity-75 { opacity: 0.75; }
.section-title { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.custom-select { height: auto !important; padding: 0.5rem 1rem !important; border-radius: 8px !important; }

/* Smooth Modal Entrance */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.modal.show .modal-dialog {
    transform: scale(1);
}

/* Enhanced Table Hover Experience */
.table-hover tbody tr {
    transition: all 0.2s ease;
    border-left: 3px solid transparent !important;
}
.table-hover tbody tr:hover {
    background-color: var(--primary-soft) !important;
    border-left: 3px solid var(--primary) !important;
}

/* Global Page Fade-In */
#content-wrapper {
    animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skeleton Shimmer Loader */
.dt-skeleton-loader {
    height: 400px;
    width: 100%;
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.dt-skeleton-loader::after {
    content: ''PROCESSING SECURE DATA'';
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Prevent scrolling while DataTables is processing */
.table-responsive.dt-processing-active {
    overflow: visible !important;
    max-height: 400px !important; /* Optional: limit height while loading to keep indicator visible */
    width: 100% !important;
}

/* =====================================================
   [SWAL2 PREMIUM MODAL STYLES]
   ===================================================== */
.swal2-premium-popup {
    border-radius: 32px !important;
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
    padding: 2.5rem 2rem !important;
    max-width: 400px !important;
}

[data-theme="dark"] .swal2-premium-popup {
    background: #111827 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
}

[data-theme="dark"] .swal2-premium-popup .swal2-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .swal2-premium-popup .swal2-html-container {
    color: #94a3b8 !important;
}

.swal2-premium-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom Icon Styles */
.swal-premium-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.swal-premium-icon-box i {
    font-size: 32px;
}

.swal-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.swal-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.swal-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.swal-icon-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

/* Custom Icon Styles (Squircle like Image 2) */
.swal-premium-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s ease;
}

.swal-premium-icon-box i {
    font-size: 24px;
}

.swal-icon-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.swal-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.swal-icon-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.swal2-premium-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 2rem !important;
}

.swal2-premium-confirm {
    width: 100% !important;
    border-radius: 20px !important;
    padding: 16px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    order: 1;
}

.swal-type-success .swal2-premium-confirm,
.swal-type-info .swal2-premium-confirm {
    background: #10b981 !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4) !important;
}

.swal2-premium-cancel {
    width: 100% !important;
    border-radius: 20px !important;
    padding: 16px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #64748b !important;
    border: none !important;
    transition: all 0.2s !important;
    cursor: pointer;
    order: 2;
}

.swal2-premium-confirm:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

.swal2-premium-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.swal2-container {
    backdrop-filter: blur(4px) !important;
    background: rgba(0,0,0,0.25) !important;
}


button[type="submit"][disabled] , button[type="submit"][disabled]:hover {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transition: all 0.2s ease-in-out;
    background-color:var(--bg-body);
    border-color:var(--border-color);
    color:var(--text-color);
}

button:not([disabled]) {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button:not([disabled]):hover {
    transform: translateY(-1px);
}

button:disabled:hover {
    transform: none;
}

/* Premium Choice Cards (Radio Replacement) */
.update-choice-card {
    cursor: pointer;
    display: block;
}

.update-choice-card .choice-content {
    background: #fff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e2e8f0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.choice-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -20px;
    top: 0;
    z-index: 0;
    overflow: hidden;
}
.choice-icon i {
    display: flex;
    font-size: 120px;
    opacity: 0.12;
    justify-content: flex-end;
    align-items: center;
    transition: all 0.3s ease;
    filter: brightness(0);
    transition: all 0.3s ease;
}


.update-choice-card:hover .choice-content {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.update-choice-card:hover .choice-icon i {
    opacity: 0.17;
    transform: scale(1.05);
}

.update-choice-card input:checked + .choice-content {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.update-choice-card .check-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.update-choice-card input:checked + .choice-content .check-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.update-choice-card input:checked + .choice-content .check-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
[data-theme="dark"] .choice-icon i {
    filter: brightness(1);
}

[data-theme="dark"] .update-choice-card .choice-content {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .update-choice-card:hover .choice-content {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary) !important;
}

[data-theme="dark"] .update-choice-card input:checked + .choice-content {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary) !important;
}

[data-theme="dark"] .update-choice-card .check-circle {
    background: var(--bg-body);
    border-color: #475569;
}

[data-theme="dark"] .choice-text .text-muted {
    color: var(--gray-500) !important;
}
.choice-text {
    position: relative;
    z-index: 1;
}

.update-choice-card:hover .choice-content {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.update-choice-card input:checked + .choice-content {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.update-choice-card .check-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.update-choice-card input:checked + .choice-content .check-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.update-choice-card input:checked + .choice-content .check-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="dark"] .update-choice-card .choice-content {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .update-choice-card:hover .choice-content {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary) !important;
}

[data-theme="dark"] .update-choice-card input:checked + .choice-content {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary) !important;
}

[data-theme="dark"] .update-choice-card .check-circle {
    background: var(--bg-body);
    border-color: #475569;
}

[data-theme="dark"] .choice-text .text-muted {
    color: var(--gray-500) !important;
}

[data-theme="dark"] .choice-text .fw-bold {
    color: var(--gray-900);
}
.smaller{
    font-size: 80% !important;
    
}

/* ── Dropdown & Profile Utilities ── */
.avatar-glow-sm {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(78, 115, 223, 0.15);
    border: 1px solid rgba(0,0,0,0.05);
}
.dropdown-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.dropdown-item:hover .dropdown-icon-wrap {
    transform: scale(1.1);
}
.bg-light-subtle { background-color: rgba(0,0,0,0.015); }

/* Ensure dropdown-item has nice transitions */
.dropdown-item {
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: #f8f9fc;
}

/* ── Premium Theme Switcher ── */
.premium-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.theme-pill-switch {
    width: 58px;
    height: 30px;
    background: rgba(0, 0, 0, 0.05);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    outline: none !important;
}

.switch-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.switch-knob {
    position: absolute;
    left: 4px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.knob-icon-dark, .knob-icon-light {
    font-size: 11px;
    position: absolute;
    transition: all 0.4s ease;
}

.knob-icon-dark { color: #4e73df; opacity: 1; transform: rotate(0); }
.knob-icon-light { color: #f6c23e; opacity: 0; transform: rotate(-90deg); }

.switch-bg-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
    pointer-events: none;
}

.icon-bg-light { color: #f6c23e; opacity: 0.4; }
.icon-bg-dark { color: #858796; opacity: 0.4; }

/* Dark Mode Logic */
[data-theme="dark"] .theme-pill-switch {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .switch-knob {
    left: 30px;
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .knob-icon-dark { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .knob-icon-light { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .icon-bg-light { opacity: 0.2; }
[data-theme="dark"] .icon-bg-dark { opacity: 0.8; color: #fff; }

.theme-pill-switch:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .theme-pill-switch:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Premium Balance Display ── */
.premium-balance-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0,0,0,0.03);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    min-width: 220px;
}
.premium-balance-pill:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--primary-glow);
}
.balance-icon-wrap {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}
.balance-amount {
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    text-wrap-mode: nowrap;
}

[data-theme="dark"] .premium-balance-pill {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .premium-balance-pill:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .balance-amount {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .premium-balance-pill .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .balance-icon-wrap {
    background: #795548;
}

/* ── Sidebar Logout Special Style ── */
.sb-nav-link[data-target="#logoutModal"] {
    /* margin-top: 15px; */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* padding-top: 1.2rem; */
    color: rgba(255, 100, 100, 0.8) !important;
}

.sb-nav-link[data-target="#logoutModal"]:hover {
    background: rgba(231, 74, 59, 0.1) !important;
    color: #e74a3b !important;
}

.sb-nav-link[data-target="#logoutModal"]:hover .sb-nav-icon {
    color: #e74a3b !important;
    transform: translateX(3px);
}

/* ── Profile Avatar Premium Polish ── */
.profile-avatar-glow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-user-info:hover .profile-avatar-glow {
    transform: translateY(-2px) scale(1.05);
}

.navbar-user-info:hover .navbar-avatar {
    border-color: var(--primary) !important;
    box-shadow: 0 8px 25px rgba(102, 78, 255, 0.25) !important;
}

/* =====================================================
   PREMIUM MODAL HEADERS (REFERENCE: DIGI-CI3)
   ===================================================== */
.mh-premium {
    background:linear-gradient(135deg, #761818 0%, #BF360C 100%) !important;
    padding: 1.1rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    border-radius: 0 !important;
}

.mh-icon-badge {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-icon-badge i {
    color: #ffffff !important;
    font-size: 16px !important;
}

.mh-title-wrap {
    min-width: 0;
    flex: 1;
}

.mh-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 10.5px !important;
    display: block !important;
    font-weight: 400 !important;
}

.mh-premium .close {
    margin: -1rem -1rem -1rem auto !important;
    color: #fff !important;
    text-shadow: none !important;
    opacity: 0.7 !important;
    transition: all 0.2s;
}

.mh-premium .close:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* =====================================================
   STANDARD HEADER ACTION BUTTONS (REFERENCE: DIGI-CI3)
   ===================================================== */
.btn-dt-action {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-dt-chip-action {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-dt-action-success {
    background: #1cc88a;
    color: #fff;
}

.btn-dt-action-success:hover {
    background: #17a673;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 200, 138, 0.3);
}

.btn-dt-action-primary {
    background: var(--primary);
    color: #fff;
}

.btn-dt-action-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ── Modal Action Buttons ── */
.btn-dt-apply {
    padding: 9px 24px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-dt-apply:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-dt-cancel {
    padding: 9px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dt-cancel:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-300);
}

/* ── Premium Profile Styles ── */

.profile-card {
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), #8B77FF);
    position: relative;
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: -65px auto 1rem;
    z-index: 1;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--bg-card);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
}

.avatar-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--bg-card);
    transition: transform 0.2s;
}

.avatar-edit-badge:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.form-label-premium {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.input-premium {
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
}

.btn-premium-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-premium-save:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: white;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
}

[data-theme="dark"] .avatar-preview {
    border-color: var(--bg-card);
}

/* ── Stat Card Styles ── */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-icon {
    min-width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.icon-primary { background: rgba(107, 70, 193, 0.1); color: var(--primary); }
.icon-warning { background: rgba(246, 173, 85, 0.1); color: var(--warning); }
.icon-info { background: rgba(66, 153, 225, 0.1); color: var(--info); }
.icon-success { background: rgba(72, 187, 120, 0.1); color: var(--success); }

.btn-premium-cancel {
    background: var(--gray-50);
    color: var(--gray-500);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-premium-cancel:hover {
    background: var(--gray-100);
    color: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ── SaaS Fintech Profile Styles ── */

.profile-container {
    margin: -2rem -1.5rem 0 -1.5rem; /* Push to top and sides (adjusting for typical SB Admin padding) */
}

.profile-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 40px 40px; /* Only round the bottom corners */
    padding: 4rem 3rem 6rem;
    position: relative;
    color: white;
    overflow: hidden;
    margin-bottom: -4rem;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-15deg);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
}

.hero-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 700;
}

.hero-stat-value {
    font-size: 1rem;
    font-weight: 800;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    padding: 2rem;
}

.profile-main-layout {
    position: relative;
    z-index: 2;
}

.avatar-hub {
    width: 150px;
    height: 150px;
    border-radius: 40px;
    border: 8px solid var(--bg-card);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.avatar-hub-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-hub-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
    cursor: pointer;
    border: 4px solid var(--bg-card);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-hub-badge:hover {
    transform: scale(1.2) rotate(15deg);
}

.premium-input-group {
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.premium-input-group:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
}

.premium-input-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.premium-input-group input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 700;
    color: var(--gray-900);
    outline: none;
}

/* ── Unified Settings Hub Styles ── */

.settings-hub-card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
}

.settings-sidebar {
    width: 300px;
    background: #f8f9ff;
    border-right: 1px solid rgba(0,0,0,0.03);
    padding: 3rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.settings-content {
    flex: 1;
    padding: 4rem;
    background: white;
    position: relative;
}

.settings-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.03) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-radius: 18px;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
}

.settings-nav-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.settings-nav-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.settings-nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.settings-nav-item.active i {
    color: white;
}

.settings-header {
    margin-bottom: 2.5rem;
}

.settings-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.settings-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.profile-summary-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: auto;
    text-align: center;
}

/* ── Premium Switch Styles ── */

.premium-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-200);
    transition: .4s;
    border-radius: 34px;
}

.premium-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.premium-switch input:checked + .premium-slider {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.premium-switch input:checked + .premium-slider:before {
    transform: translateX(24px);
}

.notification-item-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border-color: var(--primary-light);
}

.notification-icon-wrapper {
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.35rem;
    transition: all 0.3s ease;
}

.notification-item-card:hover .notification-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

/* ── Settings Hub Dark Mode Overrides ── */
[data-theme="dark"] .settings-hub-card {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

[data-theme="dark"] .settings-sidebar {
    background: #1e293b;
    border-right-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .settings-sidebar {
    background: #1a202c;
    border-right-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .settings-content {
    background: #111827;
}

[data-theme="dark"] .settings-content::after {
    background: radial-gradient(circle, rgba(107, 70, 193, 0.1) 0%, rgba(17,24,39,0) 70%);
}

[data-theme="dark"] .settings-title {
    color: white;
}

[data-theme="dark"] .settings-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .profile-summary-card {
    background: #1a202c;
    border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .profile-summary-card h6 {
    color: white !important;
}

[data-theme="dark"] .settings-nav-item:hover {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .notification-item-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

[data-theme="dark"] .notification-item-card:hover {
    background: #334155;
    border-color: var(--primary);
}

[data-theme="dark"] .notification-item-card h6 {
    color: #f8fafc !important;
}

[data-theme="dark"] .input-premium {
    background: #1f2937 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

[data-theme="dark"] .input-premium:focus {
    border-color: var(--primary) !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .text-gray-900 {
    color: white !important;
}

[data-theme="dark"] .border-top {
    border-top-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .form-label-premium {
    color: #cbd5e1;
}

[data-theme="dark"] .avatar-hub-wrapper img {
    border-color: #1f2937 !important;
}

[data-theme="dark"] .avatar-hub-badge {
    border-color: #1a202c !important;
}

/* === PREMIUM STYLES === */

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.premium-bg-dot {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}
.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05) !important;
}

.product-card {
    border-radius: 24px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* border: 1px solid #f1f5f9 !important; */
    background: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
    z-index: 2;
}
.product-card:active { transform: scale(0.96); }

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.03;
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: -1;
}

.product-card:hover::after {
    width: 300px;
    height: 300px;
    top: -20%;
    right: -20%;
    opacity: 0.05;
}

.card-icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card:hover .card-icon-wrap {
    transform: rotate(10deg) scale(1.1);
}
.rounded-xl { border-radius: 14px !important; }
.bg-warning-soft { background: rgba(246, 194, 62, 0.1); color: #f6c23e; }
.alert-primary-soft { background: #f0f7ff; border-left: 4px solid var(--primary) !important; }
.alert-warning-soft { background: #fff9e6; color: #856404; }

.input-premium:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.15) !important;
    background: #fff !important;
    transform: scale(1.01);
}

.bg-purple-soft { background: rgba(102, 126, 234, 0.1); }

/* Dark Mode Overrides */
[data-theme="dark"] .product-card {
    background: #151921 !important;
    border-color: #242b38 !important;
}
[data-theme="dark"] .product-card .text-dark {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .product-card .border-top {
    border-color: #242b38 !important;
}
[data-theme="dark"] .alert-primary-soft {
    background: rgba(78, 115, 223, 0.1) !important;
    color: #fff !important;
}
[data-theme="dark"] .alert-primary-soft .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
[data-theme="dark"] .alert-primary-soft .text-primary {
    color: #72a1ff !important;
}
[data-theme="dark"] .card-icon-wrap {
    background: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .bg-warning-soft { background: rgba(246, 194, 62, 0.15) !important; }
[data-theme="dark"] .bg-blue-soft { background: rgba(0, 123, 255, 0.15) !important; }
[data-theme="dark"] .bg-green-soft { background: rgba(40, 167, 69, 0.15) !important; }
[data-theme="dark"] .bg-purple-soft { background: rgba(102, 126, 234, 0.15) !important; }
[data-theme="dark"] .bg-pink-soft { background: rgba(232, 62, 140, 0.15) !important; }
[data-theme="dark"] .bg-red-soft { background: rgba(220, 53, 69, 0.15) !important; }
[data-theme="dark"] .bg-yellow-soft { background: rgba(255, 193, 7, 0.15) !important; }
[data-theme="dark"] .bg-orange-soft { background: rgba(253, 126, 20, 0.15) !important; }
[data-theme="dark"] .bg-google-soft { background: rgba(66, 133, 244, 0.15) !important; }
[data-theme="dark"] .alert-info-soft { background: rgba(23, 162, 184, 0.1) !important; color: #fff !important; }
[data-theme="dark"] .alert-success-soft { background: rgba(40, 167, 69, 0.1) !important; color: #fff !important; }
[data-theme="dark"] .alert-warning-soft { background: rgba(255, 193, 7, 0.1) !important; color: #fff !important; }
[data-theme="dark"] .alert-danger-soft { background: rgba(220, 53, 69, 0.1) !important; color: #fff !important; }
[data-theme="dark"] .alert-purple-soft { background: rgba(102, 126, 234, 0.1) !important; color: #fff !important; }
[data-theme="dark"] .alert-info-soft .text-muted, [data-theme="dark"] .alert-success-soft .text-muted, [data-theme="dark"] .alert-warning-soft .text-muted, [data-theme="dark"] .alert-danger-soft .text-muted { color: rgba(255, 255, 255, 0.6) !important; }
[data-theme="dark"] .input-premium {
    background: #151921 !important;
    border-color: #242b38 !important;
    color: #fff !important;
}
[data-theme="dark"] .input-premium:focus {
    background: #151921 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.25) !important;
}
.text-purple { color: #667eea; }

/* ── Standard Page Action Buttons ── */
.btn-page-action {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    height: 42px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-page-action-light {
    background: #ffffff;
    color: #4e73df;
    border: 1.5px solid #e3e6f0 !important;
}

.btn-page-action-light:hover {
    background: #f8f9fc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #2e59d9;
}

.btn-page-action-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-page-action-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px 0 var(--primary-glow);
    color: #ffffff;
}

[data-theme="dark"] .btn-page-action-light {
    background: #1a1f2b;
    border-color: #2d3748 !important;
    color: #72a1ff;
}

[data-theme="dark"] .btn-page-action-light:hover {
    background: #242b38;
    color: #a0c4ff;
}

.btn-page-action-success {
    background: #1cc88a;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(28, 200, 138, 0.39);
}

.btn-page-action-success:hover {
    background: #17a673;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px 0 rgba(28, 200, 138, 0.39);
    color: #ffffff;
}

.btn-page-action-danger {
    background: #e74a3b;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(231, 74, 59, 0.39);
}

.btn-page-action-danger:hover {
    background: #be2617;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px 0 rgba(231, 74, 59, 0.39);
    color: #ffffff;
}

.swal2-premium-image {
    border-radius: 20px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    margin-top: 2rem !important;
}

/* ── External Log Visualization ── */
.external-log-container {
    background: var(--bg-card) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    border: 1px solid var(--border-color) !important;
}

.external-log-code-block {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    line-height: 1.6 !important;
    font-size: clamp(10px, 1.2vw, 11.5px) !important;
    border-radius: 10px !important;
}

[data-theme="dark"] .external-log-code-block {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #1e293b !important;
}

.external-log-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-bottom: 4px !important;
    display: block;
}

[data-theme="dark"] .external-log-label {
    color: #94a3b8 !important;
}

.external-log-metadata {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem) !important;
}

[data-theme="dark"] .external-log-metadata {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-body.bg-light {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .nav-pills .nav-link.text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Premium Modal Close Button ── */
.btn-modal-close {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 12px 35px !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-close:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #ef4444 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] .btn-modal-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .btn-modal-close:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ff6b6b !important;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2) !important;
}

/* ── Global Search Premium Styles ── */
.premium-search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
}
.premium-search-input {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    padding: 0.6rem 1rem 0.6rem 2.8rem !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #111111 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    height: 42px !important;
}
[data-theme="dark"] .premium-search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #d9d9d9 !important;
}
.premium-search-input:focus {
    /* background: var(--bg-card) !important; */
    border-color: #f0e6f0 !important;
    width: 100% !important;
    font-weight: 700 !important;
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}
[data-theme="dark"] .search-icon {
    color: #a3a3a3 !important;
}
.premium-search-input:focus + .search-icon {
    /* color: var(--primary); */
    transform: scale(1.1);
}

.search-loader {
    position: absolute;
    left: 1.1rem;
    color: var(--secondary);
    font-size: 0.9rem;
    pointer-events: none;
}
.search-badge {
    position: absolute;
    right: 0.8rem;
    background: var(--gray-200);
    color: var(--gray-500);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    pointer-events: none;
    border: 1px solid var(--border-color);
}
[data-theme="dark"] .search-badge {
    background: #eaeaea !important;
    border-color: #cacaca !important;
    color: #000000 !important;
}
.premium-search-input:focus ~ .search-badge {
    opacity: 1;
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 420px;
    overflow-y: auto;
    z-index: 9999;
    padding: 8px;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Search Loading Animation ── */
.search-loading-pulse {
    animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.search-result-item:hover {
    background: var(--primary-soft);
}
.result-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.search-result-item:hover .result-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.result-info {
    flex: 1;
    min-width: 0;
}
.result-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-900);
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-category {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* =====================================================
   [24] QRIS DETAIL PREMIUM UI (GLASSMORPHISM)
   ===================================================== */
.premium-detail-container { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.glass-card { background: var(--bg-glass) !important; backdrop-filter: blur(12px); border: 1px solid var(--border-color) !important; border-radius: 24px !important; box-shadow: var(--shadow-lg) !important; transition: all 0.3s ease; overflow: hidden; }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 25px 50px rgba(0,0,0,0.12) !important; }

.detail-hero-section { background: linear-gradient(135deg, var(--primary) 0%, #8a7cff 100%); border-radius: 24px; padding: 3rem 2rem; position: relative; overflow: hidden; margin-bottom: -4rem; z-index: 1; }
.detail-hero-section::after { content: '\f029'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -20px; font-size: 180px; opacity: 0.1; color: #fff; pointer-events: none; }

.hero-amount-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; opacity: 0.8; margin-bottom: 0.5rem; color: rgba(255,255,255,0.9); }
.hero-amount-value { font-size: 3rem; font-weight: 900; color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.status-pill-lg { padding: 0.6rem 1.5rem; border-radius: 50rem; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid transparent; }
.status-paid-glow { background: var(--success-soft) !important; color: var(--success) !important; border-color: rgba(28, 200, 138, 0.3) !important; box-shadow: 0 0 15px rgba(28, 200, 138, 0.1) !important; }
[data-theme="dark"] .status-paid-glow { background: rgba(28, 200, 138, 0.15) !important; box-shadow: 0 0 20px rgba(28, 200, 138, 0.2) !important; }

.detail-top-banner { background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(138, 124, 255, 0.12) 100%); border-bottom: 1px solid var(--border-color); padding: 3.5rem 4rem !important; position: relative; }
.amount-premium { font-size: 3.2rem; letter-spacing: -2px; line-height: 1; color: var(--gray-900); font-weight: 900; }
[data-theme="dark"] .amount-premium { color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }

.info-grid-premium { padding: 0; }
.info-row-premium { display: flex; border-bottom: 1px solid var(--border-color); }
.info-row-premium:last-child { border-bottom: none; }
.info-item-premium { flex: 1; padding: 2rem 2.5rem; border-right: 1px solid var(--border-color); transition: background 0.2s ease; }
.info-item-premium:last-child { border-right: none; }
.info-item-premium:hover { background: rgba(0,0,0,0.015); }
[data-theme="dark"] .info-item-premium:hover { background: rgba(255,255,255,0.015); }
.info-label-premium { font-size: 0.6rem; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; display: block; opacity: 0.7; }
.info-value-premium { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); display: block; word-break: break-all; }
[data-theme="dark"] .info-value-premium { color: #f1f5f9; }
.monospace-premium { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; font-size: 0.75rem; color: var(--primary); background: var(--primary-soft); padding: 6px 10px; border-radius: 8px; display: inline-block; border: 1px solid rgba(102, 78, 255, 0.1); }

.merchant-sidebar-card { background: linear-gradient(135deg, #ffffff 0%, #f9faff 100%); border: 1px solid var(--border-color); border-radius: 24px; padding: 2rem; }
[data-theme="dark"] .merchant-sidebar-card { background: linear-gradient(135deg, #141424 0%, #1a1a2e 100%); }

.action-btn-premium { border-radius: 12px !important; padding: 0.6rem 1.2rem !important; font-weight: 700 !important; font-size: 0.75rem !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; transition: all 0.3s ease !important; border: none !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.action-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; }

.receipt-ribbon { position: absolute; top: 1.5rem; right: 0; background: var(--warning); color: #000; padding: 0.4rem 1.2rem; font-weight: 900; font-size: 0.65rem; border-radius: 12px 0 0 12px; box-shadow: -4px 4px 10px rgba(0,0,0,0.1); z-index: 10; letter-spacing: 1px; }
.settlement-box-premium { background: rgba(0,0,0,0.02); border-radius: 0 0 24px 24px; margin: 0; padding: 2.5rem 1.5rem; border-top: 1px solid var(--border-color); }
[data-theme="dark"] .settlement-box-premium { background: rgba(255,255,255,0.02); }
.settlement-title-premium { font-size: 0.85rem; font-weight: 800; color: var(--primary) !important; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 1px; }
[data-theme="dark"] .settlement-title-premium { color: #a594ff !important; }
.settlement-icon { font-size: 1.4rem; opacity: 0.8; }
/* -- Professional Receipt Print Styles (Moved from View) -- */
@media print {
    body * { visibility: hidden !important; }
    #professional-receipt, #professional-receipt * { visibility: visible !important; }
    #professional-receipt { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; display: block !important; background: white !important; z-index: 9999 !important; }
    .receipt-container { max-width: 450px; margin: 40px auto !important; padding: 40px !important; border: 1px solid #eee; border-radius: 24px; background: #fff !important; }
    .receipt-header { text-align: center; margin-bottom: 30px !important; }
    .receipt-logo { height: 50px !important; width: auto !important; margin-bottom: 15px !important; }
    .receipt-title { font-size: 12px !important; color: #888 !important; letter-spacing: 3px !important; font-weight: 700 !important; text-transform: uppercase !important; }
    .receipt-status.success { font-size: 28px !important; color: #1cc88a !important; font-weight: 900 !important; margin-top: 5px !important; }
    .receipt-section { margin-bottom: 20px !important; }
    .receipt-row { display: flex !important; justify-content: space-between !important; margin-bottom: 12px !important; font-size: 14px !important; border-bottom: 1px solid #f8f9fc !important; padding-bottom: 8px !important; }
    .receipt-row .label { color: #666 !important; font-weight: 500 !important; }
    .receipt-row .value { color: #000 !important; font-weight: 700 !important; text-align: right !important; }
    .receipt-divider { border-bottom: 2px dashed #e3e6f0 !important; margin: 30px 0 !important; }
    .total-label { font-size: 18px !important; font-weight: 800 !important; color: #333 !important; }
    .total-amount { font-size: 32px !important; font-weight: 900 !important; color: #4e73df !important; }
    .receipt-footer { text-align: center !important; margin-top: 60px !important; border-top: 2px solid #f8f9fc !important; padding-top: 30px !important; }
    .receipt-note { font-weight: 700 !important; color: #444 !important; font-size: 15px !important; }
    .receipt-powered-by { font-weight: 800 !important; color: #4e73df !important; font-size: 18px !important; margin-top: 8px !important; }
    .receipt-timestamp { margin-top: 15px !important; font-size: 12px !important; color: #b7b9cc !important; font-family: monospace !important; }
}

/* E-Wallet Brand Backgrounds */
.bg-brand-dana { background-color: var(--brand-dana) !important; }
.bg-brand-ovo { background-color: var(--brand-ovo) !important; }
.bg-brand-shopee { background-color: var(--brand-shopee) !important; }
.bg-brand-linkaja { background-color: var(--brand-linkaja) !important; }

/* ── Detail View Utilities ── */
.bg-info-soft { background: rgba(54, 185, 204, 0.05) !important; }
.border-info-soft { border-color: rgba(54, 185, 204, 0.2) !important; }
.cursor-pointer { cursor: pointer; }
pre::-webkit-scrollbar { width: 5px; height: 5px; }
pre::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

/* ── Utility Classes ── */
.space-y-4 > * + * { margin-top: 1rem; }
.border-white-05 { border-color: rgba(255, 255, 255, 0.05) !important; }
.rounded-xl { border-radius: 12px !important; }
.bg-primary-soft { background: rgba(78, 115, 223, 0.05); }
.alert-info-soft { background: rgba(54, 185, 204, 0.05); color: #2c9faf; }
.uppercase { text-transform: uppercase; }
.x-small { font-size: 11px; }

/* ── Premium Form Styles ── */
.premium-form .dt-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: block;
}

.premium-form .dt-input {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 0 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.input-group .dt-input
{
    border-radius: 0 12px 12px 0 !important;
}
.input-group .input-group-prepend
{
    border-radius: 12px 0 0 12px !important;
}
.premium-form .dt-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #fff;
}

.form-label-premium {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
}

.input-group-premium .input-premium {
    height: 52px;
    border: 1.5px solid var(--border-color);
    font-weight: 600;
}

.input-group-premium .input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.preset-amount:hover, .preset-amount.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}


/* Premium Check Button */
.btn-premium-check {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
    border-radius: 0 10px 10px 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.85rem;
}

.btn-premium-check:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(118, 75, 162, 0.4);
    color: white !important;
}

.btn-premium-check:active {
    transform: translateY(1px);
}

.btn-premium-check:disabled {
    background: #e2e8f0;
    color: #94a3b8 !important;
    box-shadow: none;
    cursor: not-allowed;
}


/* Premium Input Group Tweak for Modal */
.modal-body .input-group > .form-control:not(:last-child) {
    border-radius:0 !important;
}



.bg-white-20 { background: rgba(255, 255, 255, 0.2); }
.tracking-wider { letter-spacing: 1px; }
.tracking-widest { letter-spacing: 4px; font-size: 1.5rem; }
.dt-form-label { font-size: 13px; font-weight: 700; color: #4e4e4e; margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }

.card .card-header[data-toggle=collapse]::after {
    position: absolute;
    right: 0;
    top: 0;
    padding-right: 1.725rem;
    line-height: 51px;
    font-weight: 900;
    content: '' !important;
    color: #d1d3e2;
}
/* -- Specialized Premium Login Success Alert -- */
.login-success-anim-wrapper { position: relative; display: flex; justify-content: center; align-items: center; height: 100px; }
.login-success-icon-box { width: 70px; height: 70px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; z-index: 2; box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4); position: relative; }
.login-success-pulse { position: absolute; width: 70px; height: 70px; background: #10b981; border-radius: 50%; opacity: 0.6; animation: swal-pulse 2s infinite; z-index: 1; }
@keyframes swal-pulse { 0% { transform: scale(1); opacity: 0.6; } 70% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
.swal-type-login-success { background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important; border: 1px solid rgba(16, 185, 129, 0.2) !important; }

/* -- Ultra Premium Login Success Modal (Two-Column) -- */
.swal2-premium-login { width: 800px !important; padding: 0 !important; border-radius: 32px !important; overflow: hidden !important; background: white !important; }
.swal-login-container { display: flex; width: 100%; min-height: 450px; }
.swal-login-left { flex: 1.2; padding: 50px; text-align: left; display: flex; flex-direction: column; justify-content: center; background: white; }
.swal-login-right { flex: 1; background-size: cover; background-position: center; position: relative; }
.swal-login-title { font-size: 32px; font-weight: 800; color: #1e293b; margin-bottom: 15px; letter-spacing: -1px; }
.swal-login-subtitle { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 25px; }
.swal-login-list { list-style: none; padding: 0; margin-bottom: 35px; }
.swal-login-list li { margin-bottom: 12px; display: flex; align-items: center; font-size: 14px; color: #475569; font-weight: 500; }
.swal-login-list li i { color: #f43f5e; margin-right: 12px; font-size: 18px; }
.swal-login-btn { background: #1e293b; color: white; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s ease; width: fit-content; }
.swal-login-btn:hover { background: #0f172a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(30, 41, 59, 0.2); }
@media (max-width: 768px) { .swal2-premium-login { width: 95% !important; } .swal-login-right { display: none; } .swal-login-left { flex: 1; padding: 30px; } }

/* -- Login Theme Toggle Styles -- */
.theme-toggle-wrapper { position: absolute; top: 30px; right: 30px; z-index: 100; }
.btn-theme-toggle { background: var(--gray-100); border: 1px solid var(--border-color); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: var(--gray-700); }
.btn-theme-toggle:hover { background: var(--gray-200); transform: translateY(-2px); }
.sun-icon { display: none; color: #f6c23e; }
.moon-icon { display: block; }
[data-theme='dark'] .sun-icon { display: block; }
[data-theme='dark'] .moon-icon { display: none; }
[data-theme='dark'] .login-right { background: var(--gray-50) !important; }
[data-theme='dark'] .login-title { color: white !important; }
[data-theme='dark'] .login-subtitle { color: var(--gray-500) !important; }
[data-theme='dark'] .form-label-custom { color: var(--gray-400) !important; }
[data-theme='dark'] .form-control-custom { background: var(--gray-100) !important; border-color: var(--gray-200) !important; color: white !important; }
[data-theme='dark'] .form-control-custom:focus { border-color: var(--primary) !important; background: var(--gray-100) !important; }

/* -- ReCAPTCHA Premium Polish -- */
.recaptcha-premium-wrapper { width: 304px; height: 78px; border-radius: 8px; overflow: hidden; border: 1px solid transparent; transition: all 0.3s ease; }
[data-theme='dark'] .recaptcha-premium-wrapper { border-color: rgba(255, 255, 255, 0.05); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
#recaptcha-container { transform-origin: top left; }
[data-theme='dark'] #recaptcha-container { background: #222 !important; } /* Match Google's dark theme base to hide flickering */

/* -- ReCAPTCHA Neatness Fix -- */
.recaptcha-premium-wrapper { width: 304px !important; height: 78px !important; border-radius: 4px !important; overflow: hidden !important; border: none !important; background: transparent !important; margin-left: 0 !important; }
#recaptcha-container { transform: scale(1) !important; transform-origin: top left !important; background: transparent !important; }

/* -- ReCAPTCHA Ultra Polish (Cropping White Borders) -- */
.recaptcha-premium-wrapper { width: 302px !important; height: 76px !important; border-radius: 6px !important; overflow: hidden !important; border: none !important; background: transparent !important; margin: 0 !important; display: block !important; }
#recaptcha-container { margin: -1px 0 0 -1px !important; background: transparent !important; }
#recaptcha-container iframe { border: none !important; }
/* Ensure parent form-group doesn't add weird padding */
.login-right .form-group { margin-bottom: 20px !important; }
