
        /* Global Scrollbar Customization */
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:root {
            --primary: #1E1B4B;
            --primary-dark: #0F172A;
            --accent: #CC2229;
            --accent-dark: #A11A20;
            --white: #FFFFFF;
            --bg-color: #F8FAFC;
            --text-main: #1E293B;
            --text-muted: #64748B;
            --card-bg: #FFFFFF;
            --card-border: #E2E8F0;
            --sidebar-bg: #FFFFFF;
            --sidebar-border: #F1F5F9;
            --sidebar-hover: #F8FAFC;
            --metric-bg: #F8FAFC;
            --metric-green: #E6FFFA;
            --metric-red: #FFF5F5;
            --kpi-border: transparent;
            --success: #10B981;
            --warning: #F59E0B;
            --shadow: 0 4px 12px rgba(26, 26, 46, 0.05);
            --radius-xl: 16px;
            --radius-2xl: 24px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font-main: 'Outfit', sans-serif;
            --font-heading: 'Poppins', sans-serif;
            --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        /* Performance / Animation Levels */
        body.low-animations *,
        body.low-animations *::before,
        body.low-animations *::after {
            transition: none !important;
            animation: none !important;
        }

        body.med-animations {
            --transition: all 0.1s ease;
        }

        body.med-animations * {
            animation-duration: 0.2s !important;
        }

        /* --- Notifications Dropdown --- */
        .notif-dropdown {
            position: absolute;
            top: calc(100% + 15px);
            right: -10px;
            width: 340px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            display: none;
            overflow: hidden;
            animation: fadeIn 0.3s ease-out;
        }

        .notif-dropdown.active {
            display: block;
        }

        .notif-header {
            padding: 18px 20px;
            border-bottom: 1px solid var(--card-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(30, 27, 75, 0.02);
        }

        .notif-header h3 {
            font-size: 0.95rem;
            margin: 0;
            font-weight: 800;
            color: var(--primary);
        }

        .notif-header span {
            font-size: 0.75rem;
            color: var(--accent);
            cursor: pointer;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .notif-list {
            max-height: 420px;
            overflow-y: auto;
        }

        .notif-item {
            padding: 16px 20px;
            border-bottom: 1px solid var(--card-border);
            transition: all 0.2s ease;
            cursor: pointer;
            display: flex;
            gap: 15px;
            position: relative;
        }

        .notif-item:hover {
            background: rgba(30, 27, 75, 0.03);
        }

        .notif-item:last-child {
            border-bottom: none;
        }

        .notif-item.unread {
            background: rgba(204, 34, 41, 0.03);
        }

        .notif-item.unread::after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent);
        }

        .notif-icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.1rem;
        }

        .notif-content {
            flex: 1;
            min-width: 0;
        }

        .notif-title {
            font-size: 0.85rem;
            font-weight: 800;
            margin-bottom: 4px;
            color: var(--primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .notif-desc {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .notif-time {
            font-size: 0.65rem;
            color: #94A3B8;
            margin-top: 8px;
            font-weight: 600;
        }

        .notif-empty {
            padding: 50px 20px;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* --- Stylish Checkboxes --- */
        .check-container {
            display: block;
            position: relative;
            padding-left: 28px;
            margin-bottom: 5px;
            cursor: pointer;
        }

        /* --- Premium P&L Dashboard Classes --- */
        .glass-premium {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* --- EXACT ORIGINAL SEARCH CODE --- */
        .gradient-border-wrapper {
            background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
            background-size: 300% 300%;
            animation: animatedgradient 3s ease alternate infinite;
            padding: 3px;
        }

        @keyframes animatedgradient {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .search-expand-input {
            width: 100%;
            height: 100%;
            background: transparent !important;
            /* 56px matches the w-14 width of the search button exactly */
            padding: 0 44px 0 56px !important;
            color: #1E1B4B;
            border: none !important;
            outline: none !important;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            font-weight: 700;
            font-size: 0.85rem;
        }

        .search-expand-input:focus {
            padding-left: 56px;
            /* Inner shape logic */
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
            background: var(--white) !important;
        }

        body.dark-mode .search-expand-input:focus {
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
            background: #1e1b4b !important;
            color: white;
        }

        .gradient-border-wrapper.active .search-expand-input {
            opacity: 1;
            pointer-events: all;
        }

        /* Modern Inner Shape depth */
        .gradient-border-wrapper.active>div {
            border: 1.5px solid #E2E8F0;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        body.dark-mode .gradient-border-wrapper.active>div {
            border-color: rgba(255, 255, 255, 0.1);
            background: #1e1b4b;
        }

        .metric-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
        }

        .glass-card {
            background: var(--white);
            border: 1px solid var(--card-border);
        }

        .Wallet-gradient {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
        }

        .progress-ring-circle {
            transition: stroke-dashoffset 0.8s ease-in-out, filter 0.2s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
            pointer-events: stroke;
            cursor: pointer;
        }

        .progress-ring-circle:hover {
            filter: brightness(1.15);
        }

        /* Custom scrollbar */
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }

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

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Modal transitions */
        .modal-enter {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
        }

        .modal-enter-active {
            opacity: 1;
            transform: scale(1) translateY(0);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-exit {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        .modal-exit-active {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* --- Success Animation Keyframes --- */
        @keyframes fadeOut {
            0% { opacity: 1; }
            80% { opacity: 1; }
            100% { opacity: 0; }
        }
        @keyframes popIn {
            0% { transform: scale(0.5); opacity: 0; }
            70% { transform: scale(1.1); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes checkmarkAnim {
            0% { stroke-dashoffset: 50; }
            100% { stroke-dashoffset: 0; }
        }

        /* Custom Colors */
        .text-navy {
            color: #1e2246;
        }

        .bg-brand-red {
            background-color: #cc2b35;
        }

        .hover-brand-red:hover {
            background-color: #b0222a;
        }

        .text-brand-red {
            color: #cc2b35;
        }

        .ring-brand-red {
            --tw-ring-color: #cc2b35;
        }

        .border-brand-red {
            border-color: #cc2b35;
        }

        /* Ultra-Clean Native Date Picker Reset */
        input[type="date"] {
            color: #1e2246;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            border: none !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            width: 100%;
            height: 100%;
            background: transparent !important;
            outline: none !important;
            appearance: none;
            -webkit-appearance: none;
            position: relative;
            display: flex;
            align-items: center;
        }

        /* Aggrssively hide ALL native UI elements (Calendar icons, spinners, etc) */
        input[type="date"]::-webkit-calendar-picker-indicator {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0 !important;
            cursor: pointer !important;
            z-index: 10;
        }

        input[type="date"]::-webkit-inner-spin-button,
        input[type="date"]::-webkit-clear-button {
            display: none !important;
            appearance: none;
            -webkit-appearance: none;
        }

        input[type="date"]::-webkit-datetime-edit {
            padding: 0;
            display: flex;
            align-items: center;
        }

        input[type="date"]::-webkit-datetime-edit-fields-wrapper {
            padding: 0;
        }

        input[type="date"]::-webkit-datetime-edit-text,
        input[type="date"]::-webkit-datetime-edit-month-field,
        input[type="date"]::-webkit-datetime-edit-day-field,
        input[type="date"]::-webkit-datetime-edit-year-field {
            color: #1e2246;
            padding: 0 1px;
        }

        /* Fix for overlapping icons in date pickers */
        input[type="date"]::-webkit-datetime-edit {
            padding-left: 4px;
        }

        /* High-Fidelity Input Groups */
        .pkg-input-group {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 14px;
            height: 54px;
            background-color: var(--white);
            border: 2px solid var(--card-border);
            border-radius: 14px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .pkg-input-group:hover {
            border-color: #e2e8f0;
        }

        .pkg-input-group:focus-within {
            border-color: #cc2b35;
            background-color: var(--white);
            box-shadow: 0 0 0 4px rgba(204, 43, 53, 0.08);
        }

        .pkg-icon-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            min-width: 36px;
            background-color: #f8fafc;
            border-radius: 10px;
            color: #64748b;
            transition: all 0.25s ease;
            flex-shrink: 0;
        }

        .pkg-input-group:focus-within .pkg-icon-box {
            background-color: #cc2b35;
            color: #fff;
            transform: scale(1.05);
        }

        .pkg-input-group input:not([type="date"]) {
            border: none !important;
            outline: none !important;
            background: transparent !important;
            width: 100%;
            height: 100%;
            font-weight: 700;
            color: #1e2246;
            padding: 0;
            font-size: 0.95rem;
        }

        .pkg-input-group input::placeholder {
            color: #94a3b8;
            font-weight: 500;
        }

        /* Premium Icon Fix: Prevent Distortion */
        .pkg-icon-box svg {
            width: 18px !important;
            height: 18px !important;
            flex-shrink: 0;
        }

        .nav-pill.active {
            background-color: var(--accent) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(204, 34, 41, 0.2) !important;
        }

        .check-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }


        .checkmark {
            position: absolute;
            top: 1px;
            left: 0;
            height: 18px;
            width: 18px;
            background-color: var(--metric-bg);
            border: 1px solid var(--card-border);
            border-radius: 4px;
        }

        .check-container:hover input~.checkmark {
            background-color: #eee;
        }

        .check-container input:checked~.checkmark {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .check-container input:checked~.checkmark:after {
            display: block;
        }

        .check-container .checkmark:after {
            left: 6px;
            top: 2px;
            width: 4px;
            height: 9px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        body.dark-mode {
            --primary: #EF4444;
            --primary-dark: #DC2626;
            --white: #111827;
            --bg-color: #020617;
            --text-main: #F1F5F9;
            --text-muted: #94A3B8;
            --card-bg: #0F172A;
            --card-border: rgba(255, 255, 255, 0.1);
            --metric-bg: #1E293B;
            --metric-green: rgba(16, 185, 129, 0.15);
            --metric-red: rgba(239, 68, 68, 0.15);
            --kpi-border: rgba(255, 255, 255, 0.08);
            --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
            --input-bg: #1E293B;
            --input-border: #334155;
            --hover-bg: #1E293B;
        }

        /* --- Global Dark Mode Overrides --- */
        body.dark-mode,
        body.dark-mode .main-content,
        body.dark-mode .view-container,
        body.dark-mode .dashboard-container,
        body.dark-mode .modal-content,
        body.dark-mode .modal-card,
        body.dark-mode .settings-hub,
        body.dark-mode .settings-card-modern,
        body.dark-mode .settings-nav-sidebar,
        body.dark-mode .section-card-modern {
            background-color: var(--bg-color) !important;
            color: var(--text-main) !important;
        }

        body.dark-mode .card,
        body.dark-mode .kpi-card:not(.dark),
        body.dark-mode .finance-card,
        body.dark-mode .pending-card,
        body.dark-mode .transactions-card,
        body.dark-mode .departures-card,
        body.dark-mode .glass-card,
        body.dark-mode .section-card-modern,
        body.dark-mode .settings-card-modern,
        body.dark-mode .pkg-input-group,
        body.dark-mode .inventory-card,
        body.dark-mode .client-table-container,
        body.dark-mode .notif-dropdown {
            background-color: var(--card-bg) !important;
            border-color: var(--card-border) !important;
            box-shadow: var(--shadow) !important;
            color: var(--text-main) !important;
        }

        /* Inputs & Interactive Elements */
        body.dark-mode input[type="text"],
        body.dark-mode input[type="search"],
        body.dark-mode input[type="email"],
        body.dark-mode input[type="tel"],
        body.dark-mode input[type="password"],
        body.dark-mode input[type="date"],
        body.dark-mode textarea,
        body.dark-mode select,
        body.dark-mode .filter-select,
        body.dark-mode .modern-input,
        body.dark-mode .pkg-input-group input {
            background-color: var(--input-bg) !important;
            border-color: var(--input-border) !important;
            color: var(--text-main) !important;
        }

        body.dark-mode input::placeholder {
            color: #64748B !important;
        }

        body.dark-mode input:focus,
        body.dark-mode select:focus,
        body.dark-mode textarea:focus {
            background-color: #262f45 !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
        }

        /* Tables & Lists */
        body.dark-mode table,
        body.dark-mode .tx-list,
        body.dark-mode .notif-list {
            background-color: transparent !important;
        }

        body.dark-mode tr:hover,
        body.dark-mode .tx-item:hover,
        body.dark-mode .notif-item:hover,
        body.dark-mode .nav-item:hover:not(.active) {
            background-color: var(--hover-bg) !important;
        }

        body.dark-mode th {
            background-color: #1E293B !important;
            color: var(--text-main) !important;
            border-bottom-color: var(--card-border) !important;
        }

        body.dark-mode td {
            border-bottom-color: var(--card-border) !important;
            color: var(--text-muted) !important;
        }

        /* Special UI Components */
        body.dark-mode .sidebar {
            background-color: #020617 !important;
            border-right-color: var(--card-border) !important;
        }

        /* --- Searchable Dropdown --- */
        .searchable-select-container {
            position: relative;
            width: 100%;
        }

        .searchable-select-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            cursor: pointer;
            transition: 0.2s;
            font-weight: 700;
            font-size: 0.9rem;
            color: #1E1B4B;
        }

        .searchable-select-trigger:hover {
            border-color: #CBD5E1;
        }

        .searchable-select-container.active .searchable-select-trigger {
            border-color: #6366F1;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
        }

        .searchable-select-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #E2E8F0;
            border-radius: 16px;
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
            z-index: 2000;
            display: none;
            overflow: hidden;
            animation: modal-enter-active 0.2s ease-out;
        }

        .searchable-select-container.active .searchable-select-dropdown {
            display: block;
        }

        .searchable-select-search {
            padding: 12px;
            border-bottom: 1px solid #F1F5F9;
            display: flex;
            align-items: center;
            gap: 10px;
            background: #F8FAFC;
        }

        .searchable-select-search i {
            color: #64748B;
            font-size: 0.9rem;
        }

        .searchable-select-search input {
            border: none !important;
            background: transparent !important;
            width: 100%;
            outline: none !important;
            font-size: 0.85rem;
            font-weight: 600;
            color: #1E1B4B;
        }

        .searchable-select-options-list {
            max-height: 250px;
            overflow-y: auto;
        }

        .searchable-option-item {
            padding: 10px 16px;
            cursor: pointer;
            transition: 0.1s;
            font-size: 0.85rem;
            font-weight: 600;
            color: #475569;
            border-bottom: 1px solid #F8FAFC;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .searchable-option-item:hover {
            background: #F1F5F9;
            color: #6366F1;
        }

        .searchable-option-item.selected {
            background: #EEF2FF;
            color: #4338CA;
            font-weight: 800;
        }

        .searchable-option-item .sub-text {
            font-size: 0.7rem;
            color: #94A3B8;
        }

        body.dark-mode .searchable-select-trigger,
        body.dark-mode .searchable-select-dropdown {
            background: #0F172A;
            border-color: #334155;
            color: white;
        }

        body.dark-mode .searchable-select-search {
            background: #1E293B;
            border-bottom-color: #334155;
        }

        body.dark-mode .searchable-select-search input {
            color: white;
        }

        body.dark-mode .searchable-option-item {
            color: #94A3B8;
            border-bottom-color: #1E293B;
        }

        body.dark-mode .searchable-option-item:hover {
            background: #1E293B;
            color: #6366F1;
        }

        body.dark-mode .searchable-option-item.selected {
            background: #312E81;
            color: #A5B4FC;
        }

        body.dark-mode .nav-item.active {
            background-color: rgba(239, 68, 68, 0.1) !important;
            color: #EF4444 !important;
        }

        body.dark-mode .text-navy,
        body.dark-mode .text-slate-900,
        body.dark-mode .text-slate-800,
        body.dark-mode h1,
        body.dark-mode h2,
        body.dark-mode h3,
        body.dark-mode h4 {
            color: var(--text-main) !important;
        }

        body.dark-mode .text-slate-600,
        body.dark-mode .text-slate-500,
        body.dark-mode .text-muted,
        body.dark-mode .detail-label {
            color: var(--text-muted) !important;
        }

        /* Fixing the "Merging" issue with depth */
        body.dark-mode .kpi-card,
        body.dark-mode .glass-card,
        body.dark-mode .finance-card {
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            background: linear-gradient(145deg, #0F172A, #111a2e) !important;
        }

        /* SweetAlert2 Styling */
        .swal2-popup {
            border-radius: 20px !important;
            font-family: 'Inter', sans-serif !important;
        }

        /* Forced override for inline styles that use white backgrounds */
        body.dark-mode [style*="background: white"],
        body.dark-mode [style*="background: #fff"],
        body.dark-mode [style*="background: #FFF"],
        body.dark-mode [style*="background: #ffffff"],
        body.dark-mode [style*="background: #FFFFFF"],
        body.dark-mode [style*="background: #F8FAFC"],
        body.dark-mode [style*="background: #f8fafc"],
        body.dark-mode [style*="background-color: white"],
        body.dark-mode [style*="background-color: #fff"],
        body.dark-mode [style*="background-color: #F8FAFC"] {
            background-color: var(--card-bg) !important;
            color: var(--text-main) !important;
        }

        body.dark-mode [style*="color: #1E1B4B"],
        body.dark-mode [style*="color: #0F172A"],
        body.dark-mode [style*="color: #1e2246"],
        body.dark-mode [style*="color: #1E293B"],
        body.dark-mode [style*="color: #333085"] {
            color: var(--text-main) !important;
        }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, border-color 0.3s, color 0.15s;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-color);
            color: var(--text-main);
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Poppins', sans-serif;
        }

        /* --- Animations --- */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        .screen {
            display: none;
            animation: fadeIn 0.4s ease-out forwards;
            width: 100%;
            height: 100%;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
            }
        }

        .screen.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* --- Modern Global Scrollbar --- */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #F8FAFC;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: #CBD5E1;
            border-radius: 10px;
            border: 2px solid #F8FAFC;
        }

        /* --- Custom Notification Layer --- */
        #toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
        }

        .custom-toast {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--card-border);
            padding: 16px 20px;
            width: 380px;
            display: flex;
            gap: 14px;
            position: relative;
            overflow: hidden;
            pointer-events: auto;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(120%);
            opacity: 0;
            align-items: flex-start;
        }

        .custom-toast.active {
            transform: translateX(0);
            opacity: 1;
        }

        .custom-toast.exit {
            transform: translateX(120%);
            opacity: 0;
        }

        .toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            background: #10B981;
            width: 100%;
            animation: shrink 8s linear forwards;
            transform-origin: left;
        }

        @keyframes shrink {
            from {}
        }

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

        /* --- Global UI Refinements --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: var(--font-main);
            -webkit-font-smoothing: antialiased;
            scrollbar-width: thin;
            scrollbar-color: var(--accent) #F8FAFC;
        }

        /* --- Custom Checkbox Reset --- */
        input[type="checkbox"]:not(.sr-only) {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid #CBD5E1;
            border-radius: 5px;
            background: white;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        input[type="checkbox"]:checked:not(.sr-only) {
            background: var(--accent);
            border-color: var(--accent);
        }

        /* --- Toast Notification --- */
        /* --- Toast Notification (Top Right) --- */
        .toast {
            position: fixed;
            top: 30px;
            right: 30px;
            left: auto;
            transform: translateX(120%);
            background: #1E293B;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            z-index: 10000;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toast.active {
            transform: translateX(0);
            opacity: 1;
        }

        .toast i {
            color: #10B981;
        }

        body.dark-mode .sidebar {
            background: #0F172A;
            border-right-color: rgba(255, 255, 255, 0.05);
        }

        body.dark-mode .top-bar {
            background: rgba(15, 23, 42, 0.8);
            border-bottom-color: rgba(255, 255, 255, 0.05);
        }

        body.dark-mode .nav-item {
            color: #94A3B8;
        }

        body.dark-mode .nav-item.active {
            background: rgba(204, 34, 41, 0.1);
            color: var(--accent);
        }

        body.dark-mode .filter-select {
            background: #1E293B;
            border-color: #334155;
            color: white;
        }

        input[type="checkbox"]:checked:not(.sr-only)::after {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: white;
            font-size: 10px;
        }

        input[type="checkbox"]:focus:not(.sr-only) {
            outline: none;
            box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.2);
        }

        /* --- Modern Inputs --- */
        :where(input[type="text"]),
        :where(input[type="search"]),
        :where(input[type="email"]),
        :where(input[type="tel"]),
        :where(input[type="password"]),
        :where(textarea) {
            background: #F8FAFC;
            border: 1px solid #E2E8F0;
            padding: 0.75rem 1.25rem;
            border-radius: 12px;
            font-size: 0.9rem;
            color: var(--primary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
        }

        :where(input[type="text"]):focus,
        :where(input[type="search"]):focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(30, 27, 75, 0.05), 0 4px 12px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        /* --- Modern Dropdowns --- */
        select {
            appearance: none;
            -webkit-appearance: none;
            background-color: #F8FAFC;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1.2rem;
            padding-right: 2.5rem !important;
            border: 1px solid #E2E8F0;
            border-radius: 12px;
            font-weight: 600;
            color: #475569;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        select:focus {
            border-color: var(--primary);
            background-color: white;
            box-shadow: 0 0 0 4px rgba(30, 27, 75, 0.05);
        }

        /* --- Global Animations --- */

        @keyframes growWidth {
            from {
                width: 0;
            }
        }

        @keyframes countUp {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes fadePop {
            0% {
                opacity: 0;
                transform: scale(0.98);
            }

            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .fade-text {
            display: inline-block;
            transition: opacity 0.3s ease;
        }

        .fading {
            animation: fadePop 0.4s ease-out forwards;
        }

        /* --- Responsive Modals & Popups --- */
        @media (max-width: 1024px) {
            .modal-card {
                width: 92% !important;
                max-height: 90vh !important;
                height: auto !important;
            }

            .modal-split-container {
                height: auto !important;
                min-height: 0 !important;
                max-height: 85vh !important;
            }
        }

        @media (max-width: 768px) {
            .modal-card {
                width: 92% !important;
                height: auto !important;
                max-height: 88vh !important;
                border-radius: 24px !important;
            }

            .modal-split-container {
                flex-direction: column !important;
                overflow-y: auto !important;
                height: auto !important;
                max-height: 85vh !important;
            }

            .modal-sidebar-brand {
                width: 100% !important;
                height: auto !important;
                min-height: 250px !important;
                padding: 30px 20px !important;
            }

            .modal-content-main {
                padding: 20px 15px !important;
                height: auto !important;
                overflow: visible !important;
            }

            .detail-grid-4 {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
            }

            .comms-matrix-3 {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }

            /* Fix for the close button on mobile */
            .close-modal-btn {
                background: white !important;
                color: #1E1B4B !important;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
                z-index: 100 !important;
                top: 15px !important;
                right: 15px !important;
                width: 34px !important;
                height: 34px !important;
            }
        }

        /* --- Global Modal Heights (Fixing Overflow) --- */
        .modal-split-container {
            display: flex;
            min-height: 700px;
            height: 80vh;
            max-height: 850px;
        }

        .modal-content-main {
            overflow-y: auto;
            flex: 1;
            padding: 40px 50px;
            background: var(--bg-color);
            display: flex;
            flex-direction: column;
        }

        .animate-chart circle {
            animation: fillDash 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .action-btn-small {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--white);
            color: var(--text-muted);
        }

        .action-btn-small:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .action-btn-small.delete:hover {
            background: #CC2229;
            color: white;
            border-color: #CC2229;
        }

        .animate-progress {
            animation: growWidth 1s ease-out forwards;
        }

        .animate-value {
            animation: countUp 0.8s ease-out forwards;
        }

        /* --- Auth Card Styles --- */
        .auth-container {
            width: 100%;
            max-width: 420px;
            padding: 2rem;
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--shadow);
            text-align: center;
        }

        .logo-box {
            margin-bottom: 2rem;
            display: flex;
            justify-content: center;
        }

        .logo-box img {
            max-width: 200px;
            height: auto;
            display: block;
        }

        .auth-header {
            margin-bottom: 2rem;
        }

        .auth-header h2 {
            color: var(--primary);
            font-weight: 700;
        }

        .auth-header p {
            color: var(--muted);
            margin-top: 0.5rem;
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .input-group {
            text-align: left;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--primary);
        }

        .input-group input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1.5px solid #E1E1E1;
            border-radius: 8px;
            font-family: 'Nunito', sans-serif;
            font-size: 1rem;
            transition: var(--transition);
        }

        .input-group input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 58, 140, 0.1);
        }

        .btn {
            padding: 0.9rem;
            border: none;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1rem;
            user-select: none;
        }

        .btn:active {
            transform: scale(0.95);
            opacity: 0.9;
        }

        .btn-primary {
            background-color: var(--primary);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-accent {
            background-color: var(--accent);
            color: var(--white);
        }

        .btn-accent:hover {
            background-color: var(--accent-dark);
            transform: translateY(-2px);
        }

        .btn-ghost {
            background: var(--metric-bg);
            color: var(--text-muted);
            border: 1px solid var(--card-border);
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 700;
        }

        .btn-ghost:hover {
            background: var(--card-border);
            color: var(--text-main);
        }

        .btn-ghost.active {
            background: var(--accent);
            color: var(--white);
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transform: scale(1.05);
        }

        .auth-footer {
            margin-top: 1.5rem;
            font-size: 0.9rem;
            color: var(--muted);
        }

        .auth-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }

        .auth-footer a:hover {
            text-decoration: underline;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
            margin-bottom: 0.5rem;
            cursor: pointer;
        }

        .remember-me input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .remember-me label {
            font-size: 0.9rem;
            color: var(--muted);
            cursor: pointer;
            user-select: none;
        }

        /* --- App Shell & Layout --- */
        #app-screen {
            background-color: var(--bg-color);
            height: 100vh;
            width: 100%;
            display: none;
            grid-template-columns: 1fr;
            transition: var(--transition);
            overflow: hidden;
        }

        #app-screen.active {
            display: grid;
            grid-template-columns: 240px 1fr;
        }

        @media (max-width: 1024px) {
            #app-screen.active {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: fixed !important;
                left: -240px;
                top: 0;
                bottom: 0;
                width: 240px;
                z-index: 1000;
            }

            .sidebar.mobile-open {
                left: 0 !important;
            }

            .main-content {
                width: 100%;
            }
        }

        /* --- Views --- */
        .view {
            display: none;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        .view.active {
            display: flex;
        }

        #view-container {
            width: 100%;
            height: calc(100vh - 60px);
            /* Height minus top-bar */
            overflow-y: auto;
        }

        /* --- Sidebar --- */
        .sidebar {
            background-color: var(--sidebar-bg);
            color: var(--text-main);
            border-right: 1px solid var(--sidebar-border);
            height: 100%;
            display: flex;
            flex-direction: column;
            padding: 1rem 0;
            z-index: 100;
            transition: var(--transition);
            overflow-y: auto;
            scrollbar-width: none;
        }

        .sidebar::-webkit-scrollbar {
            display: none;
        }

        .sidebar-logo {
            margin: 0 1rem 1.5rem;
            padding: 0.75rem;
            background: #F8FAFC;
            border: 1px solid #F1F5F9;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-logo img {
            max-width: 100%;
            height: auto;
        }

        .nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            flex-grow: 1;
        }

        .nav-item {
            padding: 0.8rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .nav-item i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }

        .nav-item:hover,
        .nav-item.active {
            background-color: var(--sidebar-hover);
            color: var(--primary);
        }

        .nav-item.active {
            color: var(--accent);
            background-color: rgba(204, 34, 41, 0.04);
            border-right: 3px solid var(--accent);
        }

        .nav-item-toggle {
            padding: 0.8rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .nav-item-toggle:hover {
            background-color: var(--sidebar-hover);
            color: var(--primary);
        }

        .nav-sub-list {
            margin: 0;
            padding: 0;
            list-style: none;
            background: #F8FAFC;
            border-radius: 0 0 8px 8px;
        }

        .nav-sub-list .nav-item {
            padding: 0.6rem 1rem 0.6rem 3rem;
            font-size: 0.85rem;
        }

        .rotate-180 {
            transform: rotate(180deg);
        }

        .nav-section-title {
            padding: 1.5rem 1.5rem 0.5rem;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            opacity: 0.6;
            font-weight: 900;
        }

        .sidebar-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--sidebar-border);
        }

        /* --- Compact Sidebar Override --- */
        #app-screen.collapsed-sidebar {
            grid-template-columns: 80px 1fr !important;
        }

        .sidebar.collapsed .nav-item span,
        .sidebar.collapsed .nav-item-toggle span,
        .sidebar.collapsed .dropdown-arrow,
        .sidebar.collapsed .nav-section-title {
            display: none !important;
        }

        .sidebar.collapsed .nav-item,
        .sidebar.collapsed .nav-item-toggle {
            justify-content: center;
            padding: 1.25rem 0;
        }

        .sidebar.collapsed .nav-item i {
            font-size: 1.4rem;
            width: auto;
        }

        .sidebar.collapsed .sidebar-logo {
            display: none !important;
        }

        /* --- Main Content --- */
        .main-content {
            height: 100%;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        /* --- Top Bar --- */
        .top-bar {
            background-color: var(--white);
            border-bottom: 1px solid var(--sidebar-border);
            height: 70px;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 90;
        }

        .action-btn {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-muted);
            border: 1px solid var(--card-border);
            background: var(--white);
        }

        .action-btn:hover {
            background: var(--sidebar-hover);
            color: var(--primary);
            border-color: var(--primary);
        }

        .kpi-card {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 1rem;
            box-shadow: var(--shadow);
            border: 2px solid var(--kpi-border);
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            color: var(--text-main);
        }

        .kpi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border-color: var(--accent);
        }

        .kpi-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .kpi-title {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .finance-card,
        .pending-card,
        .transactions-card,
        .departures-card,
        .settings-card {
            background: var(--card-bg) !important;
            border: 1px solid var(--card-border) !important;
            color: var(--text-main);
        }

        .stat-item {
            background: var(--metric-bg);
            padding: 1rem;
            border-radius: 12px;
            color: var(--text-main);
            transition: var(--transition);
        }

        .stat-item.profit {
            background: var(--metric-green);
        }

        .stat-item .stat-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 5px;
        }

        .stat-item.profit .stat-title {
            color: #10B981;
        }

        .stat-item .stat-value {
            font-size: 1.4rem;
            font-weight: 800;
        }

        .metric-box {
            background: var(--metric-bg);
            padding: 1rem;
            border-radius: 12px;
            color: var(--text-main);
        }

        /* --- Global Interactive Elements --- */
        input[type="checkbox"],
        input[type="radio"] {
            accent-color: var(--accent);
        }

        /* Custom Scrollbar Global */
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--accent) transparent;
        }

        *::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

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

        *::-webkit-scrollbar-thumb {
            background-color: var(--accent);
            border-radius: 10px;
        }

        .nav-dropdown-group .nav-sub-list {
            margin: 0;
            padding: 0;
            list-style: none;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 0;
            background: rgba(255, 255, 255, 0.05);
            /* Sub-list distinction */
        }

        .nav-dropdown-group.expanded .nav-sub-list {
            max-height: 200px;
            /* Safe upper limit for animation */
        }

        .btn-primary:hover {
            filter: brightness(1.2);
            transform: translateY(-2px);
        }

        .btn-accent {
            background-color: var(--accent) !important;
            color: var(--white);
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            color: var(--text-main);
        }

        .data-table th {
            color: var(--text-muted);
            background: var(--bg-color);
            border-bottom: 1.5px solid #F1F5F9;
            padding: 18px 20px;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 800;
        }

        .data-table td {
            border-bottom: 1px solid #F1F5F9;
            color: var(--text-main);
            padding: 20px 20px;
            font-size: 0.85rem;
        }

        .data-table tr:hover {
            transform: translateX(5px);
            border-left: 3px solid var(--accent);
            background: rgba(204, 34, 41, 0.05) !important;
        }

        /* Interactive states only - restricted from layout panels */
        .btn-primary.active,
        .btn-accent.active,
        .help-tab-btn.active,
        *:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Thermal Receipt Styles */
        .receipt-container {
            width: 90%;
            max-width: 380px;
            background-color: #fff;
            color: #1f2937;
            padding: 2rem 1.75rem 4rem 1.75rem;
            position: relative;
            font-family: 'Space Mono', monospace;
            border-radius: 4px 4px 0 0;
            margin: auto;

            /* Refined mask with slight overlap to prevent hairline gaps */
            -webkit-mask:
                linear-gradient(#000, #000) top left / 100% calc(100% - 9px) no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpolygon points='0,0 10,10 20,0' fill='black'/%3E%3C/svg%3E") bottom left / 20px 10px repeat-x;
            mask:
                linear-gradient(#000, #000) top left / 100% calc(100% - 9px) no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpolygon points='0,0 10,10 20,0' fill='black'/%3E%3C/svg%3E") bottom left / 20px 10px repeat-x;

            /* Unified shadow for the cut shape */
            filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));

            /* Solid white background as requested */
            background-color: #fff;
            user-select: none;
        }

        @media (max-height: 750px) {
            .receipt-container {
                transform: scale(0.85);
                transform-origin: center center;
            }
        }

        @media (max-height: 550px) {
            .receipt-container {
                transform: scale(0.65);
            }
        }

        /* Removed ::after as the mask handles the shape directly now */

        .thermal-divider {
            border-top: 2px dashed #e2e8f0;
            margin: 1.25rem 0;
        }

        .ink-faded {
            color: #64748B;
        }

        #qrcode-canvas {
            margin: 0 auto;
            opacity: 0.9;
        }

        /* Modal Polish */
        .modal-overlay {
            cursor: pointer;
            background: rgba(15, 23, 42, 0.7) !important;
            /* Darker backdrop */
            backdrop-filter: blur(8px) !important;
        }

        .modal-card {
            background: var(--card-bg) !important;
            border: 1px solid var(--card-border);
            cursor: default;
            box-shadow: var(--shadow);
            /* Stronger shadow */
        }

        .close-modal-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--metric-bg);
            color: #64748B;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #E2E8F0;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 20;
        }

        .close-modal-btn:hover {
            background: #E2E8F0;
            color: #1E1B4B;
            transform: rotate(90deg);
        }

        .finance-card,
        .transactions-card,
        .pending-card,
        .departures-card,
        .balance-widget {
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border 0.2s ease;
            user-select: none;
        }

        .finance-card:hover,
        .transactions-card:hover,
        .pending-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        }

        /* Remove whole-card active states */

        /* Top Bar Actions Active State */
        .action-btn.active-red i {
            color: var(--accent) !important;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .action-btn.active-red .fa-sync-alt {
            animation: spin 1s infinite linear;
        }

        /* --- Top Bar --- */
        .top-bar {
            background-color: var(--white);
            padding: 0.75rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .db-banner {
            background: linear-gradient(90deg, #F59E0B, #D97706);
            color: white;
            padding: 12px 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            font-size: 0.85rem;
            z-index: 95;
            position: sticky;
            top: 60px;
            /* Below top bar */
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
            transition: all 0.3s ease;
        }

        .db-banner i {
            font-size: 1.1rem;
            animation: pulse 2s infinite;
        }

        .db-banner .btn-banner {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 5px 15px;
            border-radius: 8px;
            font-weight: 800;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .db-banner .btn-banner:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .menu-toggle {
            display: none;
            font-size: 1.25rem;
            cursor: pointer;
            color: var(--primary);
        }

        .top-bar-left h2 {
            font-size: 1.25rem;
            color: var(--primary);
            font-weight: 700;
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            /* Further reduced */
        }

        .top-bar-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            /* Further reduced */
            color: #64748B;
        }

        .action-btn {
            position: relative;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .action-btn:hover {
            color: var(--primary);
        }

        .action-btn .dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background-color: var(--accent);
            border: 2px solid var(--white);
            border-radius: 50%;
        }

        .top-bar-divider {
            width: 1px;
            height: 30px;
            background-color: #E2E8F0;
            margin: 0 0.5rem;
        }

        /* --- Animated Search Bar --- */
        .search-container {
            position: relative;
            display: flex;
            align-items: center;
            background: #F1F5F9;
            border-radius: 30px;
            padding: 5px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            width: 40px;
            overflow: hidden;
            cursor: pointer;
        }

        .search-container:hover,
        .search-container.active {
            width: 240px;
            background: white;
            border: 1px solid #E2E8F0;
        }

        .search-container i {
            padding: 8px;
            color: #64748B;
            font-size: 1rem;
        }

        .search-container input {
            border: none;
            background: transparent;
            padding: 5px 10px;
            width: 100%;
            outline: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .search-container.active input {
            opacity: 1;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 12px;
            transition: var(--transition);
        }

        .user-profile:hover {
            background-color: #F8FAFC;
        }

        .user-info {
            text-align: right;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .user-info .name {
            display: block;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .user-info .role {
            font-size: 0.75rem;
            color: var(--muted);
        }

        .user-avatar {
            width: 42px;
            height: 42px;
            background: #F1F5F9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            border: 2px solid var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            font-size: 1.4rem;
        }

        /* --- Profile Dropdown --- */
        .profile-dropdown {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            width: 280px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
            padding: 10px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1000;
        }

        .profile-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-header {
            padding: 15px;
            border-bottom: 1px solid #F1F5F9;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .dropdown-header .avatar-sm {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: #1E1B4B;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: 800;
        }

        .dropdown-header .user-meta h4 {
            font-size: 0.95rem;
            font-weight: 800;
            color: #1E293B;
            margin: 0;
            line-height: 1.2;
        }

        .dropdown-header .user-meta p {
            font-size: 0.7rem;
            color: #64748B;
            margin: 2px 0 0 0;
            font-weight: 600;
            text-transform: uppercase;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-radius: 12px;
            color: #475569;
            font-weight: 700;
            font-size: 0.85rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .dropdown-item:hover {
            background: #F8FAFC;
            color: #1E1B4B;
            transform: translateX(5px);
        }

        .dropdown-item i {
            width: 20px;
            text-align: center;
            font-size: 1rem;
            color: #94A3B8;
        }

        .dropdown-item:hover i {
            color: #3B82F6;
        }

        .dropdown-item.logout {
            color: #EF4444;
            border-top: 1px solid #F1F5F9;
            margin-top: 10px;
            padding-top: 15px;
            border-radius: 0 0 12px 12px;
        }

        .dropdown-item.logout:hover {
            background: #FEF2F2;
            color: #DC2626;
        }

        .dropdown-item.logout i {
            color: #F87171;
        }

        /* --- User Provided Profile Styles --- */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .animate-view-enter {
            animation: viewEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes viewEnter {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        .modern-input {
            transition: all 0.2s ease;
            border: 1px solid #e2e8f0;
        }

        .modern-input:focus {
            transform: translateY(-1px);
            border-color: #1e3a8a;
            box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
        }

        /* Camera Icon Fixed Position */
        .camera-btn {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: white;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            border: 2px solid #f1f5f9;
            color: #ef4444;
            cursor: pointer;
            z-index: 40;
            transition: all 0.2s ease;
        }

        .camera-btn:hover {
            transform: scale(1.1);
            background: #ef4444;
            color: white;
            border-color: #ef4444;
        }

        .user-dropdown-custom {
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 10px;
            width: 250px;
            background-color: white;
            border-radius: 1.25rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            border: 1px solid #f1f5f9;
            padding: 0;
            z-index: 50;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .user-dropdown-custom.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .history-item .details .time {
            font-size: 0.75rem;
            font-weight: 600;
            color: #94A3B8;
            margin-top: 2px;
        }

        .history-item .status-badge {
            padding: 6px 14px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .history-item.login .status-badge {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
        }

        .history-item.logout .status-badge {
            background: rgba(244, 63, 94, 0.1);
            color: #E11D48;
        }

        @media (max-width: 1100px) {
            .profile-header-main {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 40px;
            }

            .profile-left-col {
                position: relative;
                top: 0;
            }

            .profile-right-col {
                padding-top: 0;
                width: 100%;
            }

            .profile-info-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .profile-info-grid {
                grid-template-columns: 1fr;
            }
        }

        /* --- Dashboard Grid --- */
        .dashboard-container {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .sync-banner {
            position: fixed;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2100;
            display: none;
            align-items: center;
            gap: 10px;
            width: min(540px, calc(100vw - 24px));
            padding: 8px 10px;
            background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
            backdrop-filter: blur(18px);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 999px;
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
            animation: bannerSlideDown 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        }

        @keyframes bannerSlideDown {
            from {
                transform: translate(-50%, -60px);
                opacity: 0;
            }

            to {
                transform: translate(-50%, 0);
                opacity: 1;
            }
        }

        .sync-banner.locked {
            border-color: rgba(245, 158, 11, 0.45);
            background: linear-gradient(120deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.98));
            animation: bannerSlideDown 0.5s forwards, bannerPulse 2.4s infinite;
        }

        @keyframes bannerPulse {
            0% {
                box-shadow: 0 10px 20px rgba(251, 191, 36, 0.1);
                transform: translate(-50%, 0) scale(1);
            }

            50% {
                box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
                transform: translate(-50%, 0) scale(1.02);
            }

            100% {
                box-shadow: 0 10px 20px rgba(251, 191, 36, 0.1);
                transform: translate(-50%, 0) scale(1);
            }
        }

        .sync-banner .sync-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
            color: #1E1B4B;
        }

        .sync-icon-pill {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            background: rgba(30, 27, 75, 0.08);
            border: 1px solid rgba(30, 27, 75, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .sync-text-wrap {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .sync-banner-main {
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0.45px;
            line-height: 1.1;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sync-banner-subtext {
            font-size: 0.62rem;
            color: #475569;
            font-weight: 700;
            letter-spacing: 0.2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sync-banner-btn {
            background: #1E1B4B;
            color: white;
            border: none;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 0.62rem;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.35px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .sync-banner-btn:hover {
            transform: translateY(-1px) scale(1.02);
            background: #312E81;
            box-shadow: 0 8px 18px rgba(30, 27, 75, 0.3);
        }

        .sync-banner.locked .sync-banner-btn {
            background: #1F2937;
        }

        @media (max-width: 768px) {
            .sync-banner {
                width: calc(100vw - 12px);
                gap: 8px;
                padding: 7px 8px;
                top: 10px;
            }

            .sync-banner-btn {
                padding: 6px 9px;
                font-size: 0.56rem;
            }

            .sync-banner-main {
                font-size: 0.64rem;
            }

            .sync-banner-subtext {
                font-size: 0.55rem;
            }

            .sync-icon-pill {
                width: 26px;
                height: 26px;
            }
        }

        @media (max-width: 520px) {
            .sync-banner-subtext {
                display: none;
            }
        }

        /* Skeleton Loader Styles */
        .skeleton {
            background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite linear;
            border-radius: 8px;
        }

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

            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-text {
            height: 1rem;
            margin-bottom: 0.5rem;
            width: 100%;
        }

        .skeleton-title {
            height: 1.5rem;
            margin-bottom: 1rem;
            width: 60%;
        }

        .skeleton-avatar {
            width: 120px;
            height: 120px;
            border-radius: 999px;
        }

        .skeleton-card {
            height: 100px;
            border-radius: 1.5rem;
        }

        .skeleton-row {
            height: 40px;
            margin-bottom: 8px;
            width: 100%;
        }

        /* Invoices Workspace */
        .invoices-workspace {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .invoice-kpi-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1rem;
        }

        .invoice-kpi-card {
            background: #ffffff;
            border: 1.5px solid #E2E8F0;
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .invoice-kpi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
        }

        .invoice-kpi-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #E2E8F0;
        }

        .invoice-kpi-card.highlight {
            background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
            color: #fff;
            border: none;
        }

        .invoice-kpi-card.highlight::before {
            background: var(--accent);
        }

        .invoice-kpi-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 800;
            color: #475569;
            margin-bottom: 5px;
        }

        .invoice-kpi-card.highlight .invoice-kpi-label {
            color: rgba(255, 255, 255, 0.7);
        }

        .invoice-kpi-value {
            font-size: 1.6rem;
            font-weight: 900;
            color: #0F172A;
            letter-spacing: -0.5px;
            line-height: 1.2;
        }

        .invoice-kpi-card.highlight .invoice-kpi-value {
            color: #fff;
        }

        .invoice-kpi-note {
            margin-top: 8px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #94A3B8;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .invoice-kpi-card.highlight .invoice-kpi-note {
            color: rgba(255, 255, 255, 0.6);
        }

        .invoice-create-shell {
            padding: 2.5rem;
            max-height: 92vh;
            overflow-y: auto;
            background: #ffffff;
            position: relative;
        }

        .modal-header-modern {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
        }

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

        .modal-icon-box {
            width: 50px;
            height: 50px;
            background: #EEF2FF;
            color: #6366F1;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .invoice-mode-tabs-modern {
            display: flex;
            background: #F1F5F9;
            padding: 4px;
            border-radius: 12px;
            margin-bottom: 2rem;
            gap: 4px;
        }

        .invoice-mode-tab-modern {
            flex: 1;
            border: none;
            padding: 10px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 800;
            color: #64748B;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .invoice-mode-tab-modern.active {
            background: #ffffff;
            color: #1E1B4B;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .section-card-modern {
            background: #F8FAFC;
            border: 1px solid #E2E8F0;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .section-title-modern {
            font-size: 0.85rem;
            font-weight: 900;
            color: #1E1B4B;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .modern-input-group {
            margin-bottom: 1rem;
        }

        .modern-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 800;
            color: #64748B;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .modern-input {
            width: 100%;
            height: 44px;
            padding: 0 14px;
            border-radius: 10px;
            border: 1.5px solid #E2E8F0;
            font-size: 0.9rem;
            font-weight: 700;
            color: #1E293B;
            background: #FFFFFF;
            transition: all 0.2s ease;
        }

        .modern-input:focus {
            border-color: #6366F1;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
            outline: none;
        }

        .line-item-row-modern {
            display: grid;
            grid-template-columns: 1fr 120px 100px 120px 40px;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }

        @media (max-width: 768px) {
            .invoice-create-shell {
                padding: 1.5rem;
            }

            .line-item-row-modern {
                grid-template-columns: 1fr !important;
                gap: 5px;
                padding-bottom: 15px;
                border-bottom: 1px dashed #E2E8F0;
            }

            .line-item-row-modern button {
                width: 100%;
            }

            .line-item-header-modern {
                display: none;
            }
        }

        .invoice-filters {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .invoice-search {
            min-width: 230px;
            max-width: 320px;
            width: 100%;
        }

        .invoice-status-badge {
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 0.66rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            display: inline-block;
        }

        .invoice-status-paid {
            background: #dcfce7;
            color: #15803d;
        }

        .invoice-status-partial {
            background: #fef3c7;
            color: #b45309;
        }

        .invoice-status-unpaid {
            background: #fee2e2;
            color: #b91c1c;
        }

        .invoice-empty {
            text-align: center;
            color: #94a3b8;
            font-size: 0.8rem;
            font-weight: 700;
            padding: 1.3rem 0.75rem;
            display: none;
        }

        .invoice-client-name {
            font-size: 0.82rem;
            font-weight: 800;
            color: #1e293b;
            line-height: 1.15;
        }

        .invoice-client-id {
            margin-top: 3px;
            font-size: 0.64rem;
            color: #64748b;
            font-weight: 700;
        }

        .invoice-actions {
            display: flex;
            justify-content: flex-end;
            gap: 6px;
        }

        .invoice-action-btn {
            width: 26px;
            height: 26px;
            border: none;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.75rem;
        }

        .invoice-action-btn:hover {
            transform: translateY(-1px);
        }

        .invoice-action-view {
            background: #e0f2fe;
            color: #0369a1;
        }

        .invoice-action-edit {
            background: #f1f5f9;
            color: #475569;
        }

        .invoice-action-delete {
            background: #fee2e2;
            color: #b91c1c;
        }

        .invoice-a4 {
            width: 210mm;
            min-height: 297mm;
            margin: 0 auto;
            background: #fff;
            border: 1px solid #cbd5e1;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
            padding: 16mm 14mm;
            color: #0f172a;
        }

        .invoice-create-shell {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 18px;
            padding: 14px;
        }

        .invoice-mode-tabs {
            display: inline-flex;
            background: #eef2ff;
            border-radius: 999px;
            padding: 4px;
            gap: 4px;
        }

        .invoice-mode-tab {
            border: none;
            background: transparent;
            color: #475569;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.3px;
            padding: 7px 12px;
            border-radius: 999px;
            cursor: pointer;
        }

        .invoice-mode-tab.active {
            background: #1e1b4b;
            color: #fff;
            box-shadow: 0 6px 14px rgba(30, 27, 75, 0.25);
        }

        @media (max-width: 1100px) {
            .invoice-kpi-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .invoices-workspace {
                padding: 0.8rem;
            }

            .invoice-search {
                min-width: 100%;
            }
        }

        @media print {
            body.invoice-print-mode * {
                visibility: hidden;
            }

            body.invoice-print-mode #invoice-a4-sheet,
            body.invoice-print-mode #invoice-a4-sheet * {
                visibility: visible;
            }

            body.invoice-print-mode #invoice-a4-sheet {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
            }

            body.invoice-print-mode .invoice-wrapper {
                border: none;
                box-shadow: none;
                margin: 0;
                width: 100%;
                min-height: auto;
                padding: 12mm;
            }
        }

        /* Secondary and Tertiary Dashboard Grids */
        .sec-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        /* --- Unified Modern Settings Hub --- */
        .settings-hub {
            display: flex;
            width: 100%;
            height: 100%;
            background: #F8FAFC;
            overflow: hidden;
            border-radius: 24px;
        }

        .settings-nav-sidebar {
            width: 280px;
            background: white;
            border-right: 1px solid #E2E8F0;
            display: flex;
            flex-direction: column;
            padding: 2rem 1.5rem;
            height: 100%;
            position: relative;
        }

        .settings-nav-header {
            margin-bottom: 2rem;
        }

        .settings-nav-header h3 {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1E293B;
            letter-spacing: -0.5px;
        }

        .settings-nav-header p {
            font-size: 0.8rem;
            color: #64748B;
            font-weight: 500;
        }

        .settings-nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .settings-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            color: #64748B;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .settings-nav-item i {
            width: 20px;
            text-align: center;
            font-size: 1rem;
        }

        .settings-nav-item:hover {
            background: #F1F5F9;
            color: #1E293B;
        }

        .settings-nav-item.active {
            background: #1E1B4B;
            color: white;
            box-shadow: 0 4px 12px rgba(30, 27, 75, 0.15);
        }

        .settings-content-pane {
            flex: 1;
            padding: 3rem;
            overflow-y: auto;
            scroll-behavior: smooth;
        }

        .settings-pane-section {
            display: none;
            animation: paneFadeIn 0.4s ease-out;
            max-width: 850px;
            margin: 0 auto;
        }

        .settings-pane-section.active {
            display: block;
        }

        @keyframes paneFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        .settings-pane-header {
            margin-bottom: 3rem;
        }

        .settings-pane-header h2 {
            font-size: 2.25rem;
            font-weight: 900;
            color: #1E293B;
            letter-spacing: -1px;
            margin-bottom: 8px;
        }

        .settings-pane-header p {
            font-size: 1rem;
            color: #64748B;
            max-width: 600px;
            line-height: 1.6;
        }

        .settings-card-modern {
            background: white;
            border-radius: 24px;
            padding: 2.5rem;
            border: 1px solid #E2E8F0;
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
            margin-bottom: 2rem;
        }

        .settings-group-modern {
            margin-bottom: 3rem;
        }

        .settings-group-modern:last-child {
            margin-bottom: 0;
        }

        .settings-group-title-modern {
            font-size: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #94A3B8;
            margin-bottom: 1.5rem;
            padding-bottom: 12px;
            border-bottom: 1px solid #F1F5F9;
        }

        .setting-item-modern {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 0;
            border-bottom: 1px solid #F8FAFC;
        }

        .setting-item-modern:last-child {
            border-bottom: none;
        }

        .setting-info-modern h4 {
            font-size: 1rem;
            font-weight: 800;
            color: #1E293B;
            margin-bottom: 4px;
        }

        .setting-info-modern p {
            font-size: 0.85rem;
            color: #94A3B8;
            max-width: 450px;
            line-height: 1.5;
        }

        .setting-action-modern {
            display: flex;
            align-items: center;
            gap: 1rem;
        }


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

        .settings-header .badge {
            display: inline-block;
            background: rgba(30, 27, 75, 0.05);
            color: var(--primary);
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 0.65rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 20px;
        }

        .settings-header h2 {
            font-size: 2.8rem;
            font-weight: 900;
            color: var(--primary);
            letter-spacing: -1.5px;
            margin-bottom: 12px;
        }

        .settings-header p {
            color: #94A3B8;
            font-size: 1.1rem;
            font-weight: 500;
            max-width: 600px;
        }

        .settings-group {
            margin-bottom: 5rem;
        }

        .settings-group-title {
            font-size: 0.75rem;
            font-weight: 900;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 2.5rem;
            display: flex;
            align-items: center;
            gap: 20px;
            opacity: 0.8;
        }

        .settings-group-title::after {
            content: "";
            flex: 1;
            height: 1.5px;
            background: linear-gradient(to right, #F1F5F9, transparent);
        }

        .setting-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 0;
            border-bottom: 1px solid #F8FAFC;
        }

        .setting-row:last-child {
            border-bottom: none;
        }

        .setting-col-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .setting-col-info h4 {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--primary);
        }

        .setting-col-info p {
            font-size: 0.9rem;
            color: #94A3B8;
            font-weight: 500;
            max-width: 500px;
            line-height: 1.5;
        }

        @media (max-width: 768px) {
            .settings-content-area {
                padding: 2rem 1rem;
            }
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            padding: 2rem;
            animation: fadeIn 0.5s ease;
        }

        .setting-item {
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .setting-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .setting-label {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
        }

        .setting-desc {
            font-size: 0.8rem;
            color: var(--muted);
            max-width: 250px;
        }

        /* --- Custom Switch (iOS Style) --- */
        .switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 24px;
        }

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

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #E2E8F0;
            transition: .4s;
        }

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

        input:checked+.slider {
            background-color: var(--accent);
        }

        input:focus+.slider {
            box-shadow: 0 0 1px var(--accent);
        }

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

        /* Rounded sliders */
        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }

        /* --- Theme Swap Visuals --- */
        .theme-swatch-group {
            display: flex;
            gap: 12px;
        }

        .theme-swatch {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .theme-swatch:hover {
            transform: translateY(-2px) scale(1.05);
        }

        .theme-swatch.active {
            border-color: var(--accent);
            transform: scale(1.15);
            box-shadow: 0 10px 15px rgba(204, 34, 41, 0.2);
        }

        /* --- Structural Density Scaling --- */
        :root {
            --base-font-size: 16px;
            --kpi-padding: 1.5rem;
            --kpi-gap: 1.25rem;
            --card-padding: 1.5rem;
            --table-cell-padding: 1rem 1.25rem;
            --container-max-width: 1600px;
            --section-gap: 2rem;
            --card-scale: 1;
            --icon-size: 1;
        }

        body {
            font-size: var(--base-font-size) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- Density Structural Overrides --- */
        body[data-density="compact"] {
            --base-font-size: 13px;
            --kpi-padding: 0.6rem 0.8rem;
            --kpi-gap: 0.5rem;
            --card-padding: 0.75rem 1rem;
            --table-cell-padding: 0.4rem 0.6rem;
            --container-max-width: 100%;
            --section-gap: 0.75rem;
            --card-scale: 0.85;
            --icon-size: 0.8;
        }

        body[data-density="spacious"] {
            --base-font-size: 18px;
            --kpi-padding: 2.5rem;
            --kpi-gap: 2.5rem;
            --card-padding: 3rem;
            --table-cell-padding: 1.5rem 2rem;
            --container-max-width: 1200px;
            --section-gap: 4rem;
            --card-scale: 1.2;
            --icon-size: 1.4;
        }

        /* --- Applying Structural Scaling --- */
        .view-container,
        .dashboard-container {
            max-width: var(--container-max-width) !important;
            padding: var(--section-gap) !important;
        }

        .kpi-card,
        .invoice-kpi-card,
        .metric-card {
            padding: var(--kpi-padding) !important;
            gap: var(--kpi-gap) !important;
            min-height: calc(120px * var(--card-scale));
            transform: scale(var(--card-scale));
            transform-origin: top left;
        }

        /* Grid correction for scaling */
        .kpi-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(calc(250px * var(--card-scale)), 1fr));
            gap: var(--section-gap);
        }

        .settings-card-modern,
        .section-card-modern,
        .glass-card,
        .finance-card,
        .pending-card,
        .transactions-card {
            padding: var(--card-padding) !important;
            margin-bottom: var(--section-gap) !important;
            border-radius: calc(24px * var(--card-scale)) !important;
        }

        .card-icon-box {
            width: calc(45px * var(--icon-size)) !important;
            height: calc(45px * var(--icon-size)) !important;
            font-size: calc(1.2rem * var(--icon-size)) !important;
        }

        .data-table th,
        .data-table td {
            padding: var(--table-cell-padding) !important;
            white-space: nowrap;
        }

        html {
            font-size: var(--base-font-size);
        }

        /* Restoring original card styles with variable support */
        .finance-card,
        .pending-card,
        .transactions-card,
        .departures-card {
            background: var(--white);
            border-radius: 20px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .section-header h3 {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--primary);
        }

        /* Transaction List Styles */
        .tx-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .tx-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.8rem;
            background: #F8F9FB;
            border-radius: 12px;
            transition: transform 0.2s;
        }

        .tx-item:hover {
            transform: translateX(5px);
        }

        .tx-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        .tx-entity {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--primary);
        }

        .tx-desc {
            font-size: 0.7rem;
            color: var(--muted);
        }

        .tx-amount {
            font-weight: 800;
            font-size: 0.9rem;
        }

        /* Floating Pop-Toast Tooltip: Silk Smooth */
        #chart-data-tooltip {
            position: fixed;
            pointer-events: none;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(12px);
            color: white;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
            z-index: 9999;
            opacity: 0;
            transform: scale(0.9) translate3d(0, 5px, 0);
            transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.15s ease-out, top 0.15s ease-out;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #chart-data-tooltip.visible {
            opacity: 1;
            transform: scale(1) translate3d(0, 0, 0);
        }

        #chart-data-tooltip .tt-label {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #94a3b8;
            display: block;
            margin-bottom: 2px;
        }

        #chart-data-tooltip .tt-value {
            font-size: 14px;
            color: white;
            display: block;
        }

        /* Departure Styles */
        .departure-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.6rem 0.8rem;
            border-radius: 12px;
            background: #F8F9FB;
        }

        .dept-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--primary);
        }

        .dept-pax {
            font-size: 0.7rem;
            color: var(--muted);
        }

        /* STAGGERED ENTRANCE ANIMATIONS */
        @keyframes cardFadeUp {
            0% {
                opacity: 0;
                transform: translateY(15px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes drawRing {
            from {
                stroke-dashoffset: 264;
            }
        }

        .sec-grid>div {
            animation: cardFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }

        /* Wallet Row Animation */
        @keyframes rowSlideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }

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

        .Wallet-row-anim {
            animation: rowSlideIn 0.4s ease-out both;
        }

        .sec-grid>div:nth-child(1) {
            animation-delay: 0.1s;
        }

        .sec-grid>div:nth-child(2) {
            animation-delay: 0.2s;
        }

        .sec-grid>div:nth-child(3) {
            animation-delay: 0.3s;
        }

        #chart-container .progress-ring-circle {
            transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #chart-center-info {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Premium Balance Widget */
        .balance-widget {
            background: linear-gradient(135deg, #1E1B4B 0%, #3B3A8C 100%);
            color: white;
            padding: 1.75rem;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(59, 58, 140, 0.3);
            animation: cardFadeUp 0.8s ease-out both;
        }

        .balance-widget::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .bal-title {
            font-size: 0.85rem;
            opacity: 0.8;
            font-weight: 600;
            text-transform: uppercase;
        }

        .bal-value {
            font-size: 2rem;
            font-weight: 900;
            margin: 0.5rem 0;
            letter-spacing: -0.025em;
        }

        /* Status Pills Custom */
        .status-pill {
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .status-pill.status-success {
            background: #E6FFFA;
            color: #38A169;
        }

        .status-pill.status-pending {
            background: #FFF5F5;
            color: #E53E3E;
        }

        .badge-red {
            background: #CC2229;
            color: white;
        }

        @media (max-width: 1200px) {
            .sec-grid {
                grid-template-columns: 1fr;
            }
        }

        .sync-info {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .sync-info i {
            font-size: 1.2rem;
        }

        /* KPI Row & Advanced Cards */
        .kpi-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .kpi-card {
            background: var(--white);
            padding: 1.25rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0.25rem;
            position: relative;
            overflow: hidden;
            min-height: 180px;
        }

        .card-icon-box {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .kpi-sparkline-box {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 60px;
            pointer-events: none;
            opacity: 0.4;
        }

        .kpi-trend {
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 5px;
        }

        .trend-up {
            color: var(--success);
        }

        .trend-down {
            color: var(--accent);
        }

        .kpi-title {
            color: var(--muted);
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Monthly Revenue Specific Style */
        .kpi-card.dark {
            background: var(--primary);
            color: var(--white);
            align-items: flex-start;
            text-align: left;
        }

        .kpi-card.dark .kpi-sparkline-box {
            opacity: 0.8;
            height: 80px;
        }

        .kpi-card.dark .kpi-title {
            color: rgba(255, 255, 255, 0.7);
        }

        .kpi-card.dark .kpi-value {
            color: var(--white);
            font-size: 1.75rem;
        }

        .kpi-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .badge-blue {
            background: #EBF1FF;
            color: var(--primary);
        }

        .badge-red {
            background: #FFEBEC;
            color: var(--accent);
        }

        .kpi-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-dark);
            font-family: 'Poppins', sans-serif;
        }

        .kpi-card.dark {
            background-color: var(--primary);
            color: var(--white);
        }

        .kpi-card.dark .kpi-title {
            color: rgba(255, 255, 255, 0.7);
        }

        .kpi-card.dark .kpi-value {
            color: var(--white);
        }

        /* Secondary Grid Section (P&L and More) */
        .sec-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
        }

        /* Financial Performance (P&L) */
        .finance-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
        }

        .finance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }



        .finance-body {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 2rem;
            align-items: center;
        }

        .chart-box {
            position: relative;
            width: 100%;
            margin: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .chart-container {
            width: 180px;
            height: 180px;
            position: relative;
            margin-bottom: 1rem;
        }

        .chart-inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }

        .chart-inner span {
            display: block;
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
        }

        .chart-inner label {
            font-size: 0.8rem;
            color: var(--muted);
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 5px;
            display: block;
        }

        .chart-legend {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-self: flex-start;
            margin-top: 10px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #444;
        }

        .legend-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot-blue {
            background-color: var(--primary);
        }

        .dot-red {
            background-color: var(--accent);
        }

        .finance-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .stat-item {
            padding: 1.25rem;
            border-radius: 12px;
            background: #F9FAFB;
        }

        .stat-title {
            font-size: 0.8rem;
            color: var(--muted);
            font-weight: 600;
            margin-bottom: 5px;
            display: block;
        }

        .stat-value {
            font-size: 1.25rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
        }

        .stat-change {
            font-size: 0.75rem;
            margin-top: 5px;
            font-weight: 600;
        }

        .change-up {
            color: var(--success);
        }

        .stat-item.profit {
            grid-column: span 2;
            background: #EDFDF4;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .stat-item.profit .stat-value {
            color: var(--success);
            font-size: 1.5rem;
        }

        /* Recent Transactions & Pending Invoices */
        .transactions-card,
        .pending-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .section-header h3 {
            font-size: 1.1rem;
            color: var(--primary);
            font-weight: 700;
        }

        .view-all {
            font-size: 0.85rem;
            color: var(--accent);
            font-weight: 600;
            text-decoration: none;
        }

        .tx-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .tx-item {
            display: grid;
            grid-template-columns: 40px 2fr 1fr 1fr 1fr;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid #F0F0F0;
        }

        .tx-icon {
            width: 36px;
            height: 36px;
            background: #F4F5FB;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
        }

        .tx-info .tx-entity {
            display: block;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .tx-info .tx-desc {
            font-size: 0.75rem;
            color: var(--muted);
        }

        .tx-cat {
            font-size: 0.85rem;
            color: var(--muted);
        }

        .tx-amount {
            font-weight: 700;
            text-align: right;
        }

        .tx-status {
            text-align: right;
        }

        .status-pill {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        /* --- Clients Module Styles --- */
        .module-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .module-title h2 {
            font-size: 1.5rem;
            color: var(--primary);
            font-weight: 700;
        }

        .module-title p {
            font-size: 0.9rem;
            color: var(--muted);
        }

        .clients-grid {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 1.5rem;
        }

        .client-table-container {
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            overflow-x: auto;
        }

        .table-filters {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .filter-input {
            padding: 0.6rem 1rem;
            border: 1px solid #E2E8F0;
            border-radius: 8px;
            font-size: 0.9rem;
            outline: none;
            flex-grow: 1;
        }

        /* Client Table Redesign (Same to Same) */
        .data-table {
            width: 100%;
            min-width: 1100px;
            /* Force minimum width to ensure horizontal scroll when congested */
            border-collapse: separate;
            border-spacing: 0;
            margin-top: 1rem;
        }

        .data-table th {
            text-align: left;
            padding: 1.25rem 1rem;
            background: #F8FAFC;
            color: #475569;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 2px solid #EDF2F7;
            white-space: nowrap;
            /* Prevent headers from going into new line */
        }

        .data-table tr {
            transition: all 0.2s ease;
        }

        .data-table tr:hover {
            background-color: #F8FAFC;
            transform: translateX(5px);
        }

        .data-table tr:hover td {
            color: var(--primary);
        }

        .data-table td:first-child {
            border-left: 3px solid transparent;
            transition: border-color 0.2s ease;
        }

        .data-table tr:hover td:first-child {
            border-left-color: var(--accent);
        }

        .cli-id {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.85rem;
        }

        .cli-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cli-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #EDF2F7;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: #64748B;
            font-size: 0.85rem;
        }

        .cli-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .cli-name {
            font-weight: 800;
            color: var(--primary);
            font-size: 0.95rem;
        }

        .cli-tier {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            margin-top: 2px;
        }

        .tier-vip-diamond {
            background: #FFEDD5;
            color: #9A3412;
        }

        .tier-business {
            background: #F1F5F9;
            color: #475569;
        }

        .tier-vip-gold {
            background: #FEF3C7;
            color: #92400E;
        }

        .tier-platinum {
            background: #FCE7F3;
            color: #9D174D;
        }

        .cli-contact {
            font-size: 0.85rem;
            color: #1E293B;
            font-weight: 600;
        }

        .cli-email {
            font-size: 0.75rem;
            color: #94A3B8;
            display: block;
        }

        .cli-city {
            font-weight: 700;
            font-size: 0.9rem;
            color: #334155;
        }

        .cli-country {
            font-size: 0.75rem;
            color: #94A3B8;
            display: block;
        }

        .cli-docs {
            font-size: 0.7rem;
            line-height: 1.4;
            color: #64748B;
        }

        .cli-docs b {
            color: #475569;
            text-transform: uppercase;
            font-weight: 800;
        }

        .cli-bookings {
            font-weight: 900;
            font-size: 1.1rem;
            color: #1E293B;
        }

        .cli-balance {
            font-weight: 800;
            font-size: 1rem;
        }

        .bal-status {
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            display: block;
            margin-top: 2px;
        }

        .bal-clear {
            color: #059669;
        }

        .bal-overdue {
            color: #DC2626;
        }

        .bal-pending {
            color: #94A3B8;
        }

        .btn-add-new {
            background: linear-gradient(135deg, #CC2229 0%, #B91C1C 100%);
            color: white;
            padding: 0.8rem 1.75rem;
            border-radius: 12px;
            font-weight: 800;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(204, 34, 41, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .btn-add-new:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 20px rgba(204, 34, 41, 0.3);
        }

        .btn-add-new:active {
            transform: translateY(0) scale(0.98);
        }

        .btn-add-new::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn-add-new:hover::after {
            left: 100%;
        }

        .status-badge {
            background: #E2E8F0;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .status-clear {
            background: #EDFDF4;
            color: var(--success);
        }

        .status-pending {
            background: #FFF9E6;
            color: var(--warning);
        }

        .status-overdue {
            background: #FFF5F5;
            color: var(--accent);
        }

        /* Clients Module Layout */
        .clients-grid {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 1.5rem;
            align-items: start;
        }

        .client-table-container {
            background: var(--white);
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            border: 1px solid rgba(0, 0, 0, 0.05);
            min-height: 500px;
        }

        .insights-panel {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: sticky;
            top: 100px;
            /* Adjust based on top bar height */
        }

        .insight-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 18px;
            box-shadow: var(--shadow);
            border-top: 4px solid var(--accent);
            transition: var(--transition);
        }

        .insight-card:hover {
            transform: translateY(-5px);
        }

        .insight-card h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .verification-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .v-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: #F8FAFC;
            border-radius: 8px;
            border-left: 3px solid var(--accent);
        }

        .v-text {
            font-size: 0.8rem;
        }

        .v-name {
            font-weight: 700;
            display: block;
        }

        .v-desc {
            color: var(--muted);
        }

        /* --- Media Queries (Responsiveness) --- */
        @media (max-width: 1200px) {
            .kpi-row {
                grid-template-columns: repeat(2, 1fr);
            }

            .kpi-card.dark {
                grid-column: span 2;
            }

            .sec-grid,
            .clients-grid {
                grid-template-columns: 1fr;
            }

            .insights-panel {
                position: static;
            }
        }

        /* --- Clients Filter Bar --- */
        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
            background: var(--white);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow);
            width: 100%;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 0 0 auto;
            min-width: 140px;
        }

        @media (max-width: 768px) {
            .filter-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
            }

            .filter-group {
                width: 100%;
            }
        }

        .filter-label {
            font-size: 0.85rem;
            color: var(--muted);
            font-weight: 600;
        }

        .filter-select {
            padding: 0.6rem 2.5rem 0.6rem 1.25rem;
            border-radius: 50px;
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 1.5px solid #F1F5F9;
            background-color: #F8FAFC;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231E1B4B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-select:hover {
            border-color: var(--primary);
            background-color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        /* Pagination Support */
        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 0;
            border-top: 1px solid #F1F5F9;
            margin-top: 1rem;
        }

        .pagination-info {
            font-size: 0.85rem;
            color: var(--muted);
        }

        .pagination-controls {
            display: flex;
            gap: 0.5rem;
        }

        .page-btn {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            border: 1px solid #E2E8F0;
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.85rem;
        }

        .page-btn:hover {
            background: var(--bg-color);
            border-color: var(--primary);
        }

        .page-btn.active {
            background: #1E1B4B;
            color: white;
            border-color: #1E1B4B;
        }

        /* Package Specific Styling */
        .pkg-img {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            object-fit: cover;
            background: #F1F5F9;
        }

        .pkg-badge {
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.65rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-left: 3px solid currentColor;
        }

        .pkg-type-standard {
            background: #F1F5F9;
            color: #475569;
        }

        .pkg-type-luxury {
            background: #F3E8FF;
            color: #6B21A8;
        }

        .pkg-type-premium {
            background: #fffbeb;
            color: #92400e;
        }

        .pkg-type-honeymoon {
            background: #fee2e2;
            color: #991b1b;
        }

        .pkg-type-adventure {
            background: #f0fdf4;
            color: #166534;
        }

        .pkg-type-budget {
            background: #ecfdf5;
            color: #065f46;
        }

        .pkg-type-corporate {
            background: #eff6ff;
            color: #1e40af;
        }

        .pkg-status-active {
            background: #dcfce7;
            color: #166534;
        }

        .pkg-status-scheduled {
            background: #eef2ff;
            color: #4338ca;
        }

        .pkg-status-draft {
            background: #f8fafc;
            color: #64748b;
        }

        .pkg-status-completed {
            background: #f1f5f9;
            color: #475569;
        }

        .pkg-action-btn {
            padding: 8px;
            border-radius: 8px;
            color: #94A3B8;
            cursor: pointer;
            transition: 0.2s;
            border: none;
            background: transparent;
        }

        .pkg-action-btn:hover {
            background: #F1F5F9;
            color: #1E1B4B;
        }

        .pkg-action-btn.delete:hover {
            border-color: #fee2e2;
            color: #dc2626;
        }

        /* Modal Styling Fix */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(8px);
            z-index: 200000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex !important;
        }

        .modal-content.glass-premium {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(20px) !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
        }

        .modal-close-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 36px;
            height: 36px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--primary);
            z-index: 100;
        }

        .modal-close-btn:hover {
            background: var(--accent);
            color: white;
            transform: rotate(90deg);
        }

        .modal-header-premium {
            padding: 2rem;
            background: linear-gradient(135deg, #10B981 0%, #065F46 100%);
            color: white;
            margin: -2.5rem -2.5rem 2rem -2.5rem;
            position: relative;
        }

        .modal-header-premium h3 {
            color: white !important;
            margin: 0;
            font-size: 1.5rem;
            font-weight: 800;
        }

        .modal-header-premium p {
            color: rgba(255, 255, 255, 0.8);
            margin: 5px 0 0 0;
            font-size: 0.85rem;
        }

        .modal-content {
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            max-width: 500px;
            width: 95%;
            max-height: calc(100vh - 40px);
            position: relative;
            padding: 2rem;
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.5);
            -webkit-overflow-scrolling: touch;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* Responsive Modal Overrides */
        @media (max-width: 640px) {
            .modal-content {
                padding: 1.25rem;
                border-radius: 20px;
                width: 95%;
                margin: 10px;
            }

            .modal-header-premium {
                padding: 1.25rem;
                margin: -1.25rem -1.25rem 1.25rem -1.25rem;
            }

            .modal-header-premium h3 {
                font-size: 1.1rem;
            }

            .modal-close {
                top: 0.75rem;
                right: 0.75rem;
                width: 28px;
                height: 28px;
            }
        }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #F1F5F9;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #64748B;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: #E2E8F0;
            color: #1E1B4B;
            transform: rotate(90deg);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.98);
            }

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

        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 20px;
        }

        .detail-label {
            font-size: 0.65rem;
            font-weight: 700;
            color: #94A3B8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* KPI Fix for trend overlap */
        .kpi-trend {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            margin-top: auto;
            white-space: nowrap;
        }

        .kpi-card {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-height: 110px;
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .kpi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
        }

        /* Form Responsive Grid */
        .responsive-form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        @media (max-width: 640px) {
            .responsive-form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        @media (max-width: 1024px) {
            #dashboard-screen {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: fixed;
                left: -260px;
                width: 260px;
                height: 100vh;
                z-index: 1000;
            }

            .sidebar.show {
                left: 0;
            }

            .main-content {
                margin-left: 0 !important;
                width: 100% !important;
            }

            .menu-toggle {
                display: block;
            }

            .search-box {
                width: 40px;
            }

            .search-box input {
                padding-left: 0;
                padding-right: 0;
                width: 40px;
                color: transparent;
                cursor: pointer;
            }

            .search-box input:focus {
                width: 200px;
                color: initial;
                padding-left: 2.5rem;
            }

            .sec-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .kpi-row {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }

            .top-bar-left h2 {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .kpi-row {
                grid-template-columns: 1fr;
            }

            .modal-content {
                padding: 1.25rem;
                border-radius: 16px;
            }
        }

        @media (max-width: 600px) {
            .kpi-row {
                grid-template-columns: 1fr;
            }

            .kpi-card.dark {
                grid-column: span 1;
            }

            .top-bar-actions {
                display: none;
            }

            .user-info {
                display: none;
            }

            .dashboard-container {
                padding: 1rem;
            }
        }

        .status-success {
            background: #EDFDF4;
            color: var(--success);
        }

        .status-pending {
            background: #FFF4EB;
            color: var(--warning);
        }

        /* Pending Invoices List */
        .pending-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .pending-item {
            padding: 12px 18px;
            background: #fff;
            border-radius: 12px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 15px;
            position: relative;
            border: 1px solid #F1F5F9;
            transition: all 0.3s ease;
        }

        .pending-id {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--primary);
        }

        .pending-client {
            font-size: 0.8rem;
            color: var(--muted);
        }

        .pending-amount {
            font-weight: 700;
            color: var(--accent);
            text-align: right;
            position: absolute;
            top: 1rem;
            right: 1rem;
        }

        /* Upcoming Departures */
        .departures-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
        }

        .departure-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .departure-item {
            display: flex;
            gap: 15px;
            padding: 1rem;
            background: #F9FAFB;
            border-radius: 12px;
            align-items: center;
        }

        .departure-img {
            width: 60px;
            height: 60px;
            background-size: cover;
            background-position: center;
            border-radius: 8px;
        }

        .departure-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .dept-title {
            font-weight: 700;
            font-size: 0.95rem;
        }

        .dept-pax {
            font-size: 0.8rem;
            color: var(--muted);
        }

        /* Balance Card Widget */
        .balance-widget {
            background: var(--primary);
            color: var(--white);
            padding: 1.5rem;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .bal-title {
            font-size: 0.8rem;
            opacity: 0.8;
            font-weight: 600;
            text-transform: uppercase;
        }

        .bal-value {
            font-size: 1.75rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
        }

        /* --- Temporary Skip Button --- */
        .temp-skip-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: var(--primary);
            color: white;
            padding: 8px 16px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 12px;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            opacity: 0.7;
            transition: var(--transition);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .temp-skip-btn:hover {
            opacity: 1;
            transform: scale(1.05);
        }

        /* FAQ Accordion Styles */
        .faq-wrapper {
            padding: 1.5rem;
            /* Removed centering and max-width as requested */
        }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
            margin-top: 1rem;
        }

        @media (max-width: 992px) {
            .faq-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        .faq-column {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .faq-section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2.5px solid #F1F5F9;
        }

        .faq-section-title i {
            color: var(--accent);
            font-size: 1.5rem;
        }

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .faq-item {
            background: var(--white);
            border-radius: 12px;
            /* Border removed as requested */
            overflow: hidden;
            transition: var(--transition);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .faq-item:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .faq-question {
            padding: 1.25rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 700;
            color: var(--primary);
            user-select: none;
            font-size: 0.95rem;
        }

        .faq-question .faq-toggle {
            font-size: 1.4rem;
            font-weight: 300;
            color: var(--muted);
            transition: all 0.3s ease;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #F1F5F9;
        }

        .faq-item.active .faq-toggle {
            transform: rotate(90deg);
            background: rgba(204, 34, 41, 0.1);
            color: var(--accent);
        }

        .faq-toggle::before {
            content: '+';
        }

        .faq-item.active .faq-toggle::before {
            content: 'Ã¢Ë†â€™';
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            background: #F8FAFC;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
        }

        .faq-content {
            padding: 1.5rem;
            font-size: 0.9rem;
            color: #475569;
            line-height: 1.6;
            /* Border removed as requested */
        }

        /* Support Tabs */
        .help-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 2rem;
            background: #F1F5F9;
            padding: 5px;
            border-radius: 30px;
            width: fit-content;
        }

        .help-tab-btn {
            padding: 8px 24px;
            border-radius: 25px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            background: transparent;
            color: var(--muted);
        }

        .help-tab-btn.active {
            background: var(--primary);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .tab-panel {
            display: none;
            animation: fadeIn 0.4s ease-out;
        }

        .tab-panel.active {
            display: block;
            box-shadow: none !important;
        }

        /* --- Modals --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: var(--white);
            width: 95%;
            max-width: 700px;
            border-radius: var(--radius-2xl);
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            transform: translateY(40px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0) scale(1);
        }

        .modal-header {
            height: 280px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .modal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        }

        .modal-header-info {
            position: absolute;
            bottom: 25px;
            left: 30px;
            right: 30px;
            z-index: 2;
            color: white;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 38px;
            height: 38px;
            background: var(--accent);
            color: white;
            border: 2px solid white;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1001;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-close:hover {
            background: var(--primary);
            transform: rotate(90deg) scale(1.15);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
        }

        .modal-body {
            padding: 40px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            max-height: 80vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--accent) transparent;
        }

        .service-matrix-item {
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 12px;
            background: var(--card-bg);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 3px solid var(--card-border);
        }

        .service-matrix-item:has(input:checked) {
            border-color: var(--accent);
            border-left-color: var(--accent);
            background: rgba(212, 175, 55, 0.02);
        }

        .check-container-main {
            position: relative;
            padding-left: 30px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .check-container-main i {
            color: var(--accent);
            font-size: 1.1rem;
        }

        .check-container-main input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .check-container-main .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 20px;
            width: 20px;
            background-color: var(--card-border);
            border-radius: 6px;
        }

        .check-container-main:hover input~.checkmark {
            background-color: var(--card-border-hov);
        }

        .check-container-main input:checked~.checkmark {
            background-color: var(--accent);
        }

        .check-container-main .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            left: 7px;
            top: 3px;
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .check-container-main input:checked~.checkmark:after {
            display: block;
        }

        .mini-price-bold {
            width: 100% !important;
            height: 34px !important;
            padding: 5px 10px !important;
            font-size: 0.8rem !important;
            border-color: var(--accent) !important;
            background: transparent !important;
        }

        .modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background-color: var(--accent);
            border-radius: 10px;
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 95% !important;
                max-width: 500px !important;
                margin: 10px;
                max-height: 95vh;
            }

            .modal-body {
                grid-template-columns: 1fr !important;
                padding: 25px !important;
                gap: 20px !important;
            }

            #client-form {
                grid-template-columns: 1fr !important;
                gap: 15px !important;
            }

            .modal-header {
                height: 200px !important;
            }

            .detail-label {
                font-size: 0.7rem !important;
            }
        }

        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .detail-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #94A3B8;
            font-weight: 700;
        }

        .detail-value {
            font-weight: 800;
            color: #1E1B4B;
            font-size: 1.05rem;
        }

        .modal-footer {
            padding: 25px 40px;
            background: #F8FAFC;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            border-top: 1px solid #E2E8F0;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        #confirm-modal {
            z-index: 10000;
        }

        #confirm-modal .modal-content {
            animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform-origin: center;
        }

        @keyframes modalPop {
            0% {
                transform: scale(0.9);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Printing & A4 Export Logic */
        @media print {
            @page {
                size: A4;
                margin: 5mm;
                /* Reduced margin for maximum coverage */
            }

            html,
            body {
                height: auto !important;
                overflow: visible !important;
                background: white !important;
                color: black !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                display: block !important;
            }

            /* Hide all screens and views by default */
            .screen,
            .view,
            .modal-overlay,
            .toast-container,
            .temp-skip-btn {
                display: none !important;
            }

            /* Explicitly show only the App Shell and the relevant Data Views */
            #app-screen,
            .main-content,
            .view-container {
                display: block !important;
                visibility: visible !important;
                width: 100% !important;
                height: auto !important;
                position: static !important;
                overflow: visible !important;
                margin: 0 !important;
                padding: 0 !important;
                box-shadow: none !important;
                background: transparent !important;
            }

            .view {
                display: none !important;
            }

            .view.active {
                display: block !important;
                visibility: visible !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            .sidebar,
            .top-bar,
            .header-actions,
            .no-print,
            .btn,
            .btn-ghost,
            .sidebar-footer,
            .user-profile,
            .filter-bar,
            .filter-group,
            .module-header,
            .search-wrapper,
            .sync-banner,
            #client-search-wrapper,
            .kpi-grid,
            .kpi-row,
            .kpi-card,
            .sec-grid,
            .section-header,
            .filter-select,
            .kpi-row-compact,
            #Wallet-stats-grid,
            .Wallet-stats-grid,
            .actions-col,
            .pkg-action-btn,
            .client-action-btn,
            .pagination-container,
            .search-bar-integrated,
            .travel-docs-col,
            .wa-status-pill {
                display: none !important;
            }

            /* Remove all decorative shapes, pills, and backgrounds */
            .status-pill,
            .service-badge-mini,
            .pkg-badge,
            .cli-id,
            [style*="background"],
            [style*="border-radius"],
            [style*="border:"] {
                background: none !important;
                background-color: transparent !important;
                border: none !important;
                padding: 0 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                color: black !important;
            }

            /* Specifically remove photos and WhatsApp status icons */
            img,
            .pkg-img,
            [style*="background-image"],
            .fab.fa-whatsapp,
            .fas.fa-phone-slash,
            .fa-whatsapp,
            .fa-phone-slash {
                display: none !important;
            }

            .dashboard-container,
            .client-table-container,
            .glass-card {
                width: 100% !important;
                max-width: none !important;
                margin: 0 !important;
                padding: 0 !important;
                display: block !important;
                background: transparent !important;
                box-shadow: none !important;
                border: none !important;
            }

            .data-table {
                width: 100% !important;
                border: 0.5pt solid #000 !important;
                border-collapse: collapse !important;
                margin-top: 15px !important;
                table-layout: auto !important;
            }

            .data-table th,
            .data-table td {
                border: 0.5pt solid #000 !important;
                padding: 6px 8px !important;
                font-size: 0.85rem !important;
                color: black !important;
                word-wrap: break-word !important;
                background: none !important;
            }

            .data-table th {
                background: #f0f0f0 !important;
                font-weight: 900 !important;
                border: 0.5pt solid #000 !important;
            }

            .print-only-header {
                display: block !important;
                text-align: center !important;
                margin-bottom: 25px !important;
                padding-bottom: 15px !important;
                border-bottom: 3.5pt solid #CC2229 !important;
            }

            .print-only-header h1 {
                color: #1E1B4B !important;
                margin: 0 !important;
                font-size: 28pt !important;
                font-family: 'Outfit', sans-serif !important;
            }

            .print-only-header p {
                color: #475569 !important;
                margin: 8px 0 0 0 !important;
                font-size: 16pt !important;
                font-weight: 500 !important;
            }

            .section-header h3 {
                font-size: 1.1rem !important;
                margin: 15px 0 !important;
            }
        }

        .print-only-header {
            display: none;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

        .animate-receipt {
            animation: slideUp 0.4s ease-out forwards;
        }

        .receipt-border {
            background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
            background-size: 4px 4px;
        }

        /* Custom animation for modal transitions */
        @keyframes fadeInZoom {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .animate-in-zoom {
            animation: fadeInZoom 0.3s ease-out forwards;
        }

        /* Scrollbar Utility */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .client-table-container {
            overflow-x: auto;
            border-radius: 16px;
            background: white;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 0.6;
        }

        /* --- Help & Support Premium Aesthetics --- */
        #faqs-view {
            padding: 30px 24px;
            backdrop-filter: blur(2px);
            animation: fadeIn 0.6s ease-out;
            --primary-faq: #0f172a;
            --primary-soft-faq: #1e293b;
            --accent-faq: #e11d48;
            --accent-glow-faq: rgba(225, 29, 72, 0.2);
            --muted-faq: #475569;
            --muted-light-faq: #94a3b8;
            --card-bg-faq: rgba(255, 255, 255, 0.85);
            --glass-border-faq: rgba(255, 255, 255, 0.6);
            --shadow-sm-faq: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
            --shadow-md-faq: 0 20px 35px -8px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
            --shadow-lg-faq: 0 30px 50px -12px rgba(0, 0, 0, 0.15);
        }

        .logo-container-help {
            text-align: center;
            margin-bottom: 48px;
            position: relative;
        }

        .logo-container-help img {
            height: 64px;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
            transition: transform 0.3s ease;
        }

        .logo-container-help img:hover {
            transform: scale(1.02);
        }

        .help-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 60px;
            padding: 6px;
            margin-bottom: 40px;
            width: fit-content;
            box-shadow: var(--shadow-sm-faq), inset 0 1px 2px rgba(255, 255, 255, 0.8);
            border: 1px solid var(--glass-border-faq);
            margin-left: auto;
            margin-right: auto;
        }

        .help-tab-btn {
            padding: 12px 32px;
            border: none;
            background: transparent;
            color: var(--muted-faq);
            font-weight: 600;
            font-size: 1rem;
            border-radius: 40px;
            cursor: pointer;
            transition: var(--transition);
            letter-spacing: -0.01em;
            position: relative;
            backdrop-filter: blur(4px);
        }

        .help-tab-btn i {
            margin-right: 8px;
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .help-tab-btn.active {
            background: #ffffff;
            color: var(--primary-faq);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.02);
            font-weight: 700;
            border: 1px solid rgba(255, 255, 255, 0.9);
        }

        .help-tab-btn.active i {
            color: var(--accent-faq);
            opacity: 1;
        }

        .tab-panel {
            display: none;
            animation: panelFade 0.5s ease-out;
        }

        .tab-panel.active {
            display: block;
        }

        @keyframes panelFade {
            0% {
                opacity: 0;
                transform: translateY(12px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .faq-grid-help {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 32px;
        }

        @media (max-width: 1024px) {
            .faq-grid-help {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .faq-section-title-help {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.02em;
            padding-bottom: 8px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.03);
            color: var(--primary-faq);
        }

        .faq-section-title-help i {
            font-size: 1.1rem;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(4px);
            border-radius: 14px;
            box-shadow: var(--shadow-sm-faq);
            border: 1px solid var(--glass-border-faq);
        }

        .faq-item-help {
            border: 1px solid rgba(255, 255, 255, 0.7);
            background: var(--card-bg-faq);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow-sm-faq);
            border-radius: 24px;
            margin-bottom: 16px;
            overflow: hidden;
            transition: var(--transition);
            border-left: 4px solid transparent;
        }

        .faq-item-help:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md-faq);
            border-left-color: var(--accent-faq);
            background: rgba(255, 255, 255, 0.95);
        }

        .faq-item-help.active {
            border-left-color: var(--accent-faq);
            box-shadow: var(--shadow-md-faq), 0 0 0 2px var(--accent-glow-faq);
            background: rgba(255, 255, 255, 0.98);
        }

        .faq-question-help {
            padding: 1.35rem 1.75rem;
            font-weight: 700;
            color: var(--primary-soft-faq);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
            font-size: 1.05rem;
        }

        .faq-toggle-help {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 30px;
            transition: var(--transition);
            color: var(--muted-faq);
            font-size: 0.9rem;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .faq-item-help:hover .faq-toggle-help {
            background: white;
            color: var(--accent-faq);
        }

        .faq-toggle-help::before {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            transition: transform 0.3s ease;
        }

        .faq-item-help.active .faq-toggle-help {
            background: var(--accent-faq);
            color: white;
            border-color: var(--accent-faq);
        }

        .faq-item-help.active .faq-toggle-help::before {
            transform: rotate(180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
            background: transparent;
        }

        .faq-item-help.active .faq-answer {
            max-height: 800px;
            /* High enough for content */
        }

        .faq-content-help {
            padding: 0 1.75rem 1.75rem 1.75rem;
            color: var(--muted-faq);
            font-size: 0.98rem;
            line-height: 1.7;
            border-top: 1px dashed rgba(0, 0, 0, 0.05);
            margin-top: 4px;
        }

        .faq-content-help b {
            color: var(--primary-faq);
        }

        .glass-deep-help {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.7);
            padding: 56px 40px;
            border-radius: 48px;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-lg-faq), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
            transition: var(--transition);
        }

        .dev-avatar-help {
            width: 160px;
            height: 160px;
            margin: 0 auto 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-faq), #b91c1c);
            padding: 4px;
            box-shadow: 0 20px 30px -8px rgba(225, 29, 72, 0.3);
            transition: var(--transition);
            position: relative;
        }

        .dev-avatar-help img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid white;
        }

        .dev-badge-help {
            display: inline-block;
            padding: 8px 20px;
            background: rgba(225, 29, 72, 0.12);
            backdrop-filter: blur(4px);
            color: var(--accent-faq);
            border-radius: 40px;
            font-weight: 700;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 24px;
            border: 1px solid rgba(225, 29, 72, 0.2);
        }

        .dev-name-help {
            margin: 0 0 8px 0;
            font-size: 2.2rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            background: linear-gradient(145deg, var(--primary-faq) 0%, #334155 80%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .social-links-help {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        .social-link-help {
            text-decoration: none;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(4px);
            box-shadow: var(--shadow-sm-faq);
            border: 1px solid rgba(255, 255, 255, 0.9);
            transition: var(--transition);
            color: var(--primary-faq);
            font-size: 1.7rem;
        }

        .social-link-help:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 25px -8px rgba(0, 0, 0, 0.15);
            background: white;
        }

        /* Responsive Invoice Modal */
        @media (max-width: 768px) {
            .invoice-create-shell {
                padding: 15px !important;
            }

            #invoice-linked-panel .invoice-kpi-grid,
            #invoice-create-modal div[style*="grid-template-columns:1fr 1fr"],
            #invoice-create-modal div[style*="grid-template-columns: 1fr 1fr 100px 30px"] {
                grid-template-columns: 1fr !important;
            }

            .invoice-header {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 15px;
            }

            .invoice-filters {
                width: 100%;
                flex-wrap: wrap !important;
            }

            .invoice-filters div.relative,
            .invoice-filters select {
                width: 100% !important;
                max-width: none !important;
            }

            #invoice-create-modal div[style*="grid-template-columns: 1fr 1fr 100px 30px"] {
                gap: 5px !important;
            }

            .modal-content {
                width: 98vw !important;
                max-height: 98vh !important;
            }
        }

        .btn-circle-edit,
        .btn-circle-delete {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .btn-circle-edit {
            background: #EEF2FF;
            color: #4F46E5;
            border-color: #C7D2FE;
        }

        .btn-circle-edit:hover {
            background: #4F46E5;
            color: white;
            transform: scale(1.1);
        }

        .btn-circle-delete {
            background: #FFF1F2;
            color: #E11D48;
            border-color: #FECACA;
        }

        .btn-circle-delete:hover {
            background: #E11D48;
            color: white;
            transform: scale(1.1);
        }

        /* --- Compact Dashboard Invoice Styles --- */
        .invoice-wrapper {
            width: 100%;
            max-width: 800px;
            min-height: 1080px;
            background: #ffffff;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            margin: 0 auto;
        }

        .loader-overlay {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            padding: 3rem;
            color: #333085;
            font-weight: 500;
        }

        .spinner {
            width: 24px;
            height: 24px;
            border: 3px solid #e0e6ed;
            border-top-color: #e31e24;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .invoice-content {
            padding: 1.5rem 2.5rem 2.5rem;
            /* Increased bottom padding for safety */
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            min-height: 260mm;
            /* A4 proportionality */
        }

        .header-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #f0f0f5;
        }

        .brand-area img {
            height: 55px;
            max-width: 100%;
            object-fit: contain;
        }

        .status-badge {
            background: #fdf2f2;
            padding: 0.4rem 1.2rem;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid #fecaca;
            color: #e31e24;
            white-space: nowrap;
        }

        .info-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            background: #f7f8fc;
            padding: 1.2rem 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #333085;
        }

        .client-box,
        .invoice-meta {
            flex: 1;
            min-width: 200px;
        }

        .client-box h4,
        .invoice-meta h4 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #333085;
            margin-bottom: 0.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .client-name {
            font-weight: 800;
            font-size: 1.15rem;
            margin-bottom: 0.2rem;
            color: #1a1a1a;
            word-break: break-word;
        }

        .client-detail {
            font-size: 0.85rem;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
            word-break: break-word;
        }

        .client-detail i {
            width: 14px;
            text-align: center;
            flex-shrink: 0;
        }

        .invoice-meta p {
            font-size: 0.85rem;
            margin: 4px 0;
            color: #2d3748;
        }

        .invoice-meta strong {
            display: inline-block;
            width: 85px;
            color: #4a5568;
        }

        .addons-showcase {
            padding: 1rem 1.5rem;
            background: #ffffff;
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }

        .addons-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 800;
            color: #333085;
            margin-bottom: 0.8rem;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .addon-chips-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .addon-chip {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 6px 12px 6px 6px;
            border-radius: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .addon-chip .icon-circle {
            background: #fdf2f2;
            color: #e31e24;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            flex-shrink: 0;
        }

        .addon-chip .chip-name {
            font-weight: 600;
            color: #333085;
            font-size: 0.8rem;
        }

        .addon-chip .chip-price {
            font-weight: 800;
            color: #e31e24;
            font-family: monospace;
            font-size: 0.9rem;
            margin-left: 2px;
            padding-left: 10px;
            border-left: 1px solid #e2e8f0;
        }

        .items-section {
            margin: 0.5rem 0 1.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }

        .items-header {
            display: grid;
            grid-template-columns: 2fr 1fr;
            background: #333085;
            padding: 0.8rem 1.2rem;
            font-weight: 600;
            font-size: 0.85rem;
            color: #ffffff;
            letter-spacing: 0.5px;
            gap: 10px;
        }

        .item-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            padding: 0.8rem 1.2rem;
            border-bottom: 1px solid #f1f5f9;
            align-items: center;
            background: #ffffff;
            gap: 10px;
        }

        .item-row:last-child {
            border-bottom: none;
        }

        .service-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .service-icon.main-icon {
            background: #f0f0f9;
            color: #333085;
        }

        .service-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .service-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: #1e293b;
            word-break: break-word;
        }

        .service-name small {
            display: block;
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 2px;
        }

        .amount-val {
            font-weight: 700;
            text-align: right;
            font-family: monospace;
            font-size: 1.05rem;
            color: #0f172a;
        }

        .hotel-dates-wrapper {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px 10px;
            margin-top: 6px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 6px 10px;
            border-radius: 6px;
        }

        .hotel-date {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #475569;
            white-space: nowrap;
        }

        .hotel-date-sep {
            color: #cbd5e1;
            font-size: 0.65rem;
        }

        .bottom-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 1rem 0;
        }

        .payment-history-box {
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            height: fit-content;
        }

        .history-title {
            font-weight: 700;
            padding: 0.8rem 1.2rem;
            font-size: 0.85rem;
            background: #f8fafc;
            color: #333085;
            border-bottom: 1px solid #e2e8f0;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            padding: 0.6rem 1.2rem;
            border-bottom: 1px solid #f1f5f9;
            font-size: 0.85rem;
            gap: 10px;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-date {
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #4a5568;
        }

        .history-date i {
            color: #10b981;
            flex-shrink: 0;
        }

        .history-amount {
            font-weight: 700;
            color: #333085;
            text-align: right;
        }

        .totals-card {
            background: #ffffff;
            border-radius: 8px;
        }

        .total-line {
            display: flex;
            justify-content: space-between;
            padding: 0.4rem 0;
            font-size: 0.9rem;
            color: #4a5568;
            font-weight: 500;
            gap: 10px;
        }

        .total-line.grand {
            font-weight: 800;
            font-size: 1.2rem;
            border-top: 2px solid #e2e8f0;
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            color: #333085;
        }

        .received-box {
            background: #f8fafc;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
            border: 1px solid #e2e8f0;
        }

        .progress-bar-shell {
            background: #e2e8f0;
            border-radius: 30px;
            height: 6px;
            width: 100%;
            margin: 10px 0 6px;
        }

        .progress-fill-val {
            background: #e31e24;
            height: 6px;
            border-radius: 30px;
        }

        .modern-footer {
            margin-top: auto;
            padding-top: 1.5rem;
            border-top: 2px solid #f0f0f5;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            font-size: 0.75rem;
            color: #64748b;
            line-height: 1.5;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
        }

        .footer-col h5 {
            font-size: 0.8rem;
            color: #333085;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .whatsapp-number {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1e293b;
            letter-spacing: 0.5px;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1.5px dashed #cbd5e1;
            font-size: 0.65rem;
            color: #64748b;
            width: 100%;
        }

        @media print {}

        /* --- Same-to-Same Client Form Styles from client.html --- */
        .bg-grid {
            background-size: 40px 40px;
            background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
        }

        .input-group {
            position: relative;
        }

        .input-field {
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .input-field:focus {
            border-color: #332f85;
            box-shadow: 0 0 0 4px rgba(51, 47, 133, 0.1);
            outline: none;
        }

        .floating-label {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            color: #94a3b8;
            padding: 0 0.5rem;
            background: transparent;
            font-weight: 600;
        }

        .input-field:focus~.floating-label,
        .input-field:not(:placeholder-shown)~.floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background-color: #ffffff;
            color: #332f85;
            font-weight: 800;
        }

        .section-header-client {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.5rem;
            margin-top: 2rem;
        }

        .section-header-client h3 {
            font-size: 0.75rem;
            text-transform: uppercase;
            font-weight: 900;
            letter-spacing: 0.1em;
            color: #332f85;
            white-space: nowrap;
        }

        .section-header-client div {
            height: 1px;
            background: #e2e8f0;
            width: 100%;
        }

        /* Modern Notification Banners */
        .notif-banner-container {
            position: fixed !important;
            top: 25px !important;
            right: 25px !important;
            left: auto !important;
            z-index: 999999 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-end !important;
            gap: 12px;
            pointer-events: none;
            width: 350px !important;
        }

        .notif-banner {
            pointer-events: auto;
            width: 350px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 18px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
            display: flex;
            gap: 16px;
            align-items: flex-start;
            transform: translateX(450px);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            border-left: 5px solid #6366f1;
        }

        .notif-banner.active {
            transform: translateX(0);
        }

        .notif-banner.exiting {
            transform: translateX(450px);
            opacity: 0;
        }

        .notif-banner-icon {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.2rem;
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
        }

        .notif-banner-content h4 {
            font-weight: 800;
            color: #0F172A;
            font-size: 0.9rem;
            margin-bottom: 3px;
            letter-spacing: -0.01em;
        }

        .notif-banner-content p {
            font-size: 0.78rem;
            color: #64748B;
            font-weight: 600;
            line-height: 1.4;
        }

        .toast {
            display: none !important;
        }
    

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
    
/* --- Premium Client Form Styles --- */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 20;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Fix for stretching SVGs on smaller screens */
svg {
    flex-shrink: 0;
}

