/**
 * Twenty CRM Design System Theme for GOCO
 * Inspired by Twenty (twenty.com) - The modern open-source CRM
 */

:root {
    --twenty-canvas: #f4f6f9;
    --twenty-surface: #ffffff;
    --twenty-subtle: #eef2f6;
    --twenty-border: #e2e8f0;
    --twenty-border-subtle: #eaecf0;
    --twenty-border-hover: #cbd5e1;
    --twenty-text-primary: #1e293b;
    --twenty-text-secondary: #64748b;
    --twenty-text-muted: #94a3b8;
    --twenty-accent: #18181b;
    --twenty-accent-hover: #27272a;
    --twenty-blue: #2563eb;
    --twenty-green: #10b981;
    --twenty-amber: #f59e0b;
    --twenty-rose: #f43f5e;
    --twenty-purple: #8b5cf6;
    --twenty-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --twenty-radius-sm: 6px;
    --twenty-radius-md: 8px;
    --twenty-radius-lg: 12px;
    --twenty-radius-xl: 16px;
    --twenty-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --twenty-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --twenty-shadow-md: 0 4px 10px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --twenty-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --twenty-select-bg: #ffffff;
    --twenty-select-border: #dbe0e8;

    /* Theme Primary Utility Overrides (Replace legacy red) */
    --crms-primary: #2563eb;
    --crms-primary-rgb: 37, 99, 235;
    --crms-primary-bg-subtle: #eff6ff;
    --crms-primary-border-subtle: #dbeafe;
    --crms-primary-hover: #1d4ed8;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-primary-bg-subtle: #eff6ff;
    --bs-primary-border-subtle: #dbeafe;
}

.text-primary {
    color: #2563eb !important;
}

.bg-primary-subtle {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.border-primary-subtle {
    border-color: #dbeafe !important;
}

.badge.bg-primary-subtle {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #dbeafe !important;
}

.btn-outline-primary {
    color: #2563eb !important;
    border-color: #93c5fd !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

[data-theme="dark"],
[data-bs-theme="dark"],
html[data-theme="dark"],
html[data-bs-theme="dark"],
body.dark-mode,
.dark-mode {
    --twenty-canvas: #121318;
    --twenty-surface: #181920;
    --twenty-subtle: #1e2029;
    --twenty-border: #282a35;
    --twenty-border-subtle: #22242f;
    --twenty-border-hover: #3b3e4d;
    --twenty-text-primary: #f8fafc;
    --twenty-text-secondary: #94a3b8;
    --twenty-text-muted: #64748b;
    --twenty-accent: #f8fafc;
    --twenty-accent-hover: #e2e8f0;
    --twenty-select-bg: #20222b;
    --twenty-select-border: #343746;
}

/* Suppress browser native password reveal / clear buttons (Edge, IE, Chrome, Safari) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Base Body & Reset */
body,
html {
    font-family: var(--twenty-font) !important;
    background-color: var(--twenty-canvas) !important;
    color: var(--twenty-text-primary) !important;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper,
.content,
.main-wrapper {
    background-color: var(--twenty-canvas) !important;
}

.card {
    background-color: var(--twenty-surface) !important;
    border: 1px solid var(--twenty-border) !important;
    border-radius: var(--twenty-radius-lg, 12px) !important;
    box-shadow: var(--twenty-shadow-sm) !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.page-title {
    font-family: var(--twenty-font) !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    color: var(--twenty-text-primary) !important;
}

/* ==========================================================================
   Header Navigation — 2026 Executive Aesthetic Design System
   ========================================================================== */
.navbar-header {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid #edf2f7 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02) !important;
    z-index: 1000 !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 1.25rem !important;
    transition: all 0.25s ease !important;
}

/* Hide sidebar close X on desktop */
.sidebar-close {
    display: none !important;
}

@media (max-width: 991.98px) {
    .sidebar-close {
        display: block !important;
    }
}

.navbar-header .topbar-menu {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
}

/* 1. Left Section: Minimalist Sleek Toggle Button */
.header-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-toggle-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
}

.header-toggle-btn i {
    font-size: 19px !important;
    line-height: 1 !important;
    color: inherit !important;
    transition: transform 0.2s ease !important;
}

.header-toggle-btn:hover i {
    transform: scale(1.08) !important;
}

/* 2. Left Section: Segmented Nav Control Track */
.header-nav-track {
    display: inline-flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    gap: 2px !important;
}

.header-nav-pill {
    padding: 5px 13px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 7px !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    border: none !important;
    background: transparent !important;
}

.header-nav-pill.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.header-nav-pill:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.header-nav-link {
    padding: 5px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 7px !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.header-nav-link:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

/* 3. Right Action Items: Clean, Frameless Grid */
.header-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* 4. Luxury Executive Workspace Switcher Pill */
.zoho-org-switcher-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    height: 35px !important;
    padding: 3px 12px 3px 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.zoho-org-switcher-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

.zoho-org-switcher-btn .org-icon-badge {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    flex-shrink: 0 !important;
}

.zoho-org-switcher-btn .org-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
}

.zoho-org-switcher-btn .org-live-pill {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px 2px 6px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
}

.zoho-org-switcher-btn .org-live-pill::before {
    content: '' !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

/* 5. Sleek Frameless Action Buttons */
.header-action-btn,
.header-action-link {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    color: #64748b !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-action-btn:hover,
.header-action-link:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05) !important;
}

.header-action-btn i,
.header-action-link i {
    font-size: 18px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.header-action-btn:hover i,
.header-action-link:hover i {
    transform: scale(1.08) !important;
}

/* 6. Notification Badge with Vibrant Gradient & Ring */
.header-bell-wrap {
    position: relative !important;
    display: inline-flex !important;
}

.header-notif-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.35) !important;
}

/* 7. Executive User Profile Avatar */
.profile-dropdown {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.header-avatar-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 1px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-avatar-btn:hover {
    transform: scale(1.06) !important;
}

.header-avatar-circle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00C854 0%, #2A924E 50%, #1D703C 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    border: 2px solid #ffffff !important;
    letter-spacing: -0.02em !important;
}

.header-online-dot {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #10b981 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
}

/* 8. Modern Dark Mode Theme Overrides */
[data-theme="dark"] .navbar-header,
[data-bs-theme="dark"] .navbar-header {
    background: rgba(15, 23, 42, 0.92) !important;
    border-bottom-color: rgba(51, 65, 85, 0.6) !important;
}

[data-theme="dark"] .header-toggle-btn,
[data-bs-theme="dark"] .header-toggle-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .header-toggle-btn:hover,
[data-bs-theme="dark"] .header-toggle-btn:hover {
    background: #334155 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .header-nav-track,
[data-bs-theme="dark"] .header-nav-track {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .header-nav-pill,
[data-bs-theme="dark"] .header-nav-pill {
    color: #94a3b8 !important;
}

[data-theme="dark"] .header-nav-pill.active,
[data-bs-theme="dark"] .header-nav-pill.active {
    background: #0f172a !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .header-nav-link,
[data-bs-theme="dark"] .header-nav-link {
    color: #94a3b8 !important;
}

[data-theme="dark"] .header-nav-link:hover,
[data-bs-theme="dark"] .header-nav-link:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .zoho-org-switcher-btn,
[data-bs-theme="dark"] .zoho-org-switcher-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .zoho-org-switcher-btn:hover,
[data-bs-theme="dark"] .zoho-org-switcher-btn:hover {
    background: #334155 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .zoho-org-switcher-btn .org-name,
[data-bs-theme="dark"] .zoho-org-switcher-btn .org-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .zoho-org-switcher-btn .org-icon-badge,
[data-bs-theme="dark"] .zoho-org-switcher-btn .org-icon-badge {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .header-action-btn,
[data-theme="dark"] .header-action-link,
[data-bs-theme="dark"] .header-action-btn,
[data-bs-theme="dark"] .header-action-link {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .header-action-btn:hover,
[data-theme="dark"] .header-action-link:hover,
[data-bs-theme="dark"] .header-action-btn:hover,
[data-bs-theme="dark"] .header-action-link:hover {
    background: #334155 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .header-notif-badge,
[data-bs-theme="dark"] .header-notif-badge {
    border-color: #0f172a !important;
}

[data-theme="dark"] .header-avatar-circle,
[data-bs-theme="dark"] .header-avatar-circle {
    border-color: #0f172a !important;
}

[data-theme="dark"] .header-online-dot,
[data-bs-theme="dark"] .header-online-dot {
    border-color: #0f172a !important;
}

/* ==========================================================================
   2026 Minimalist Sidebar & Mini-Sidebar System (Exact Reference Aesthetic)
   ========================================================================== */
.mini-brand-tile {
    width: 38px;
    height: 38px;
    background-color: #583B7F;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

[data-theme="dark"] .mini-brand-tile {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

@media (min-width: 992px) {
    .sidebar {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: var(--crms-sidenav-width, 240px) !important;
        background: #ffffff !important;
        border-right: 1px solid #eef2f6 !important;
        z-index: 999 !important;
        transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .sidebar-logo {
        height: 60px !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 12px !important;
        border-bottom: 1px solid #eef2f6 !important;
        background: #ffffff !important;
    }

    .page-wrapper {
        margin-left: var(--crms-sidenav-width, 240px) !important;
        transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .navbar-header {
        margin-left: var(--crms-sidenav-width, 240px) !important;
        transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* -------------------------------------------------------------------------
       Mini-Sidebar Collapsed Mode (Exact Match to User Reference Screenshot)
       ------------------------------------------------------------------------- */
    body.mini-sidebar .sidebar {
        width: 72px !important;
    }

    body.mini-sidebar .page-wrapper,
    body.mini-sidebar .navbar-header {
        margin-left: 72px !important;
    }

    body.mini-sidebar .sidebar-logo {
        padding: 0 !important;
        justify-content: center !important;
    }

    body:not(.mini-sidebar) .sidebar-logo .logo-small {
        display: none !important;
    }

    body.mini-sidebar .sidebar-logo .logo-normal,
    body.mini-sidebar .sidebar-logo .dark-logo {
        display: none !important;
    }

    body.mini-sidebar .sidebar-logo .logo-small {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Menu container in mini mode */
    body.mini-sidebar .sidebar-inner {
        padding: 10px 0 !important;
        overflow-x: hidden !important;
    }

    body.mini-sidebar .sidebar-menu>ul {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        position: relative !important;
        margin-bottom: 4px !important;
    }

    /* Section category titles become clean subtle centered icons / dividers */
    body.mini-sidebar .sidebar-menu>ul>li.menu-title {
        height: 22px !important;
        margin: 10px 0 4px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.menu-title span {
        display: none !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.menu-title i {
        display: block !important;
        font-size: 13px !important;
        color: #94a3b8 !important;
        opacity: 0.7 !important;
        margin: 0 !important;
    }

    /* Normal Navigation Icons */
    body.mini-sidebar .sidebar-menu>ul>li>a {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        color: #64748b !important;
        background-color: transparent !important;
        position: relative !important;
        transition: all 0.15s ease !important;
        text-decoration: none !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li>a>span,
    body.mini-sidebar .sidebar-menu>ul>li>a .menu-arrow,
    body.mini-sidebar .sidebar-menu>ul>li>a .badge {
        display: none !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li>a>i {
        font-size: 20px !important;
        line-height: 1 !important;
        margin: 0 !important;
        color: inherit !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li>a:hover {
        background-color: #f1f5f9 !important;
        color: #0d6efd !important;
    }

    /* Active Item in Mini Sidebar: Soft Blue Tint Box + Distinct Left Indicator Bar */
    body.mini-sidebar .sidebar-menu>ul>li>a.active,
    body.mini-sidebar .sidebar-menu>ul>li.active>a {
        background-color: #e8f1ff !important;
        color: #0d6efd !important;
        border-left: 3.5px solid #0d6efd !important;
        border-top-left-radius: 2px !important;
        border-bottom-left-radius: 2px !important;
    }

    /* Submenu Flyout on Hover in Mini Sidebar */
    body.mini-sidebar .sidebar-menu>ul>li.submenu {
        position: relative !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu>ul {
        display: none !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        left: 72px !important;
        min-width: 230px !important;
        max-height: calc(100vh - 32px) !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.15) !important;
        border-radius: 10px !important;
        padding: 8px !important;
        z-index: 1060 !important;
        list-style: none !important;
        scrollbar-width: thin;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul::-webkit-scrollbar {
        width: 4px;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li {
        width: 100% !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a {
        width: 100% !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #334155 !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        background: transparent !important;
        transition: all 0.15s ease !important;
    }

    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a:hover,
    body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a.active {
        background-color: #f1f5f9 !important;
        color: #0d6efd !important;
    }

    #mobile_btn,
    [data-layout=full-width] .mobile-btn,
    .mobile-btn {
        display: none !important;
    }
}

/* Sidebar Container & Full Height Flex Layout */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.sidebar .sidebar-logo,
.sidebar-logo {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border-bottom: 1px solid #eef2f6 !important;
    background: #ffffff !important;
    position: relative !important;
    z-index: 30 !important;
    flex-shrink: 0 !important;
}

.sidebar .sidebar-inner {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    z-index: 10 !important;
}

.sidebar .sidebar-inner::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar .sidebar-inner::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar .sidebar-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.sidebar .sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.sidebar .sidebar-menu,
.sidebar-inner .sidebar-menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
}

.sidebar-inner .sidebar-menu>ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}

/* Sidebar Bottom User Container */
.sidebar-bottom-user {
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #eef2f6 !important;
    position: relative !important;
    z-index: 30 !important;
    margin-top: auto !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
    min-height: 54px !important;
}

body.mini-sidebar .sidebar-bottom-user {
    padding: 10px 0 !important;
}

body.mini-sidebar .sidebar-bottom-user .user-details-text {
    display: none !important;
}

body.mini-sidebar .sidebar-bottom-user a {
    justify-content: center !important;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .sidebar-logo,
[data-theme="dark"] .sidebar-bottom-user {
    background: #16171d !important;
    border-color: #242630 !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li>a:hover {
    background-color: #20222a !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li>a.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul {
    background: #1c1d25 !important;
    border-color: #2c2e3a !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a:hover,
[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a.active,
[data-bs-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a:hover,
[data-bs-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a.active {
    background: rgba(13, 110, 253, 0.25) !important;
    color: #60a5fa !important;
    font-weight: 700 !important;
}

.sidebar-inner {
    background: transparent !important;
}

/* Twenty Workspace Switcher Pill */
.twenty-workspace-pill {
    padding: 8px 12px;
    margin: 12px 12px 8px 12px;
    background: var(--twenty-surface);
    border: 1px solid var(--twenty-border);
    border-radius: var(--twenty-radius-md);
    box-shadow: var(--twenty-shadow-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
}

.twenty-workspace-pill:hover {
    border-color: var(--twenty-border-hover);
    box-shadow: var(--twenty-shadow-sm);
}

.twenty-workspace-avatar {
    width: 26px;
    height: 26px;
    border-radius: var(--twenty-radius-sm);
    background: #18181b;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Twenty Quick Search */
.twenty-search-pill {
    margin: 4px 12px 12px 12px;
    padding: 6px 10px;
    background: var(--twenty-surface);
    border: 1px solid var(--twenty-border);
    border-radius: var(--twenty-radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.twenty-search-pill:hover {
    border-color: var(--twenty-border-hover);
}

.twenty-kbd {
    background: var(--twenty-subtle);
    border: 1px solid var(--twenty-border);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--twenty-text-secondary);
    padding: 1px 5px;
    margin-left: auto;
}

/* Menu Section Titles */
.sidebar-menu .menu-title {
    padding: 12px 16px 5px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.sidebar-menu>ul>li:first-child.menu-title {
    margin-top: 0 !important;
    border-top: none !important;
}

.sidebar-menu .menu-title span {
    color: #8c9097 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.sidebar-menu .menu-title i {
    color: #a3a6ad !important;
    font-size: 12px !important;
    opacity: 0.6 !important;
}

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

[data-theme="dark"] .sidebar-menu .menu-title span,
[data-bs-theme="dark"] .sidebar-menu .menu-title span {
    color: #7b8190 !important;
}

/* Menu Items */
.sidebar .sidebar-menu>ul>li>a,
.sidebar .sidebar-menu>ul>li ul li a,
.sidebar .sidebar-menu ul li a,
.sidebar-menu ul li a {
    color: var(--twenty-text-secondary) !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    border-radius: var(--twenty-radius-md) !important;
    margin: 2px 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
    border-left: 0 !important;
    border-bottom: none !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar .sidebar-menu>ul>li>a i,
.sidebar .sidebar-menu>ul>li ul li a i,
.sidebar .sidebar-menu ul li a i,
.sidebar-menu ul li a i {
    font-size: 1.15rem !important;
    width: 20px !important;
    height: auto !important;
    min-width: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--twenty-text-secondary) !important;
    transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}

.sidebar .sidebar-menu>ul>li>a span,
.sidebar .sidebar-menu>ul>li ul li a span,
.sidebar .sidebar-menu ul li a span,
.sidebar-menu ul li a span {
    margin-left: 0 !important;
    color: inherit !important;
    font-size: 13.5px !important;
    font-weight: inherit !important;
    white-space: nowrap !important;
}

/* Top-Level Leaf Items Base Transition */
.sidebar .sidebar-menu>ul>li:not(.submenu)>a,
.sidebar-menu>ul>li:not(.submenu)>a {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Inactive Leaf Menu Items Base (Transparent with dark slate text & slate icon) */
.sidebar .sidebar-menu>ul>li:not(.submenu)>a,
.sidebar-menu>ul>li:not(.submenu)>a,
.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active),
.sidebar-menu>ul>li:not(.submenu)>a:not(.active) {
    background: transparent !important;
    background-color: transparent !important;
    color: #475569 !important;
    font-weight: 500 !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active) i,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active) i {
    color: #64748b !important;
    background: transparent !important;
    background-color: transparent !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active) span,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active) span {
    color: #475569 !important;
}

/* Hover State for Inactive Top-Level Leaf Items (Soft Brand Blue Tint - Never White-on-White) */
.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover {
    background: rgba(37, 99, 235, 0.08) !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateX(3px) !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover i,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover i {
    color: #2563eb !important;
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover span,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover span {
    color: #1d4ed8 !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover .badge,
.sidebar-menu>ul>li:not(.submenu)>a:not(.active):hover .badge {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #1d4ed8 !important;
}

/* Parent Submenu Dropdown Toggles should ALWAYS be transparent, never a solid pill */
.sidebar .sidebar-menu>ul>li.submenu>a,
.sidebar-menu>ul>li.submenu>a,
.sidebar-menu li.submenu>a,
.sidebar-menu li.submenu>a.subdrop,
.sidebar-menu li.submenu>a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu li.submenu>a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu li.submenu>a.subdrop {
    background: transparent !important;
    color: #475569 !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.sidebar .sidebar-menu>ul>li.submenu>a:hover,
.sidebar-menu>ul>li.submenu>a:hover,
.sidebar-menu li.submenu>a:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
    transform: translateX(3px) !important;
}

.sidebar-menu li.submenu>a.subdrop {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Active State for Top-Level Leaf Items (Vibrant Brand Blue Gradient Pill with Crisp White Text) */
.sidebar .sidebar-menu>ul>li:not(.submenu)>a.active,
.sidebar-menu>ul>li:not(.submenu)>a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu>ul>li:not(.submenu)>a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    border-left: 0 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a.active i,
.sidebar-menu>ul>li:not(.submenu)>a.active i,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active i,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu>ul>li:not(.submenu)>a.active i {
    color: #ffffff !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a.active span,
.sidebar-menu>ul>li:not(.submenu)>a.active span,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active span,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu>ul>li:not(.submenu)>a.active span {
    color: #ffffff !important;
}

.sidebar .sidebar-menu>ul>li:not(.submenu)>a.active .badge,
.sidebar-menu>ul>li:not(.submenu)>a.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.sidebar .sidebar-menu>ul>li ul li a.active::before,
.sidebar .sidebar-menu ul li a.active::before,
.sidebar-menu ul li a.active::before {
    display: none !important;
    opacity: 0 !important;
}

/* Submenu Styling */
.sidebar .sidebar-menu ul ul,
.sidebar-menu ul ul {
    background: transparent !important;
    margin-left: 10px !important;
    border-left: 1px solid var(--twenty-border) !important;
    padding-left: 4px !important;
}

.sidebar .sidebar-menu ul ul a,
.sidebar-menu ul ul a {
    padding-left: 14px !important;
    font-size: 13px !important;
    color: var(--twenty-text-secondary) !important;
    gap: 8px !important;
    transition: all 0.15s ease !important;
}

.sidebar .sidebar-menu ul ul a:hover,
.sidebar-menu ul ul a:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
    border-radius: 6px !important;
}

.sidebar .sidebar-menu ul ul a.active,
.sidebar-menu ul ul a.active,
.sidebar-menu li.submenu ul li a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu ul ul a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu ul ul a.active,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu li.submenu ul li a.active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border-left: 3px solid #2563eb !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
}

.sidebar .sidebar-menu ul ul a.active i,
.sidebar-menu ul ul a.active i,
.sidebar-menu li.submenu ul li a.active i,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu ul ul a.active i,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu ul ul a.active i,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu li.submenu ul li a.active i {
    color: #2563eb !important;
}

.sidebar .sidebar-menu ul ul a.active span,
.sidebar-menu ul ul a.active span,
.sidebar-menu li.submenu ul li a.active span,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar .sidebar-menu ul ul a.active span,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu ul ul a.active span,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .sidebar-menu li.submenu ul li a.active span {
    color: #1d4ed8 !important;
}

/* Dark Mode Sidebar Active Theme */
[data-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active,
[data-bs-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active,
[data-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active,
[data-bs-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

[data-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active i,
[data-bs-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active i,
[data-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active i,
[data-bs-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active i {
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active span,
[data-bs-theme="dark"] .sidebar .sidebar-menu>ul>li:not(.submenu)>a.active span,
[data-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active span,
[data-bs-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a.active span {
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-menu ul ul a.active,
[data-bs-theme="dark"] .sidebar-menu ul ul a.active,
[data-theme="dark"] .sidebar-menu li.submenu ul li a.active,
[data-bs-theme="dark"] .sidebar-menu li.submenu ul li a.active {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #93c5fd !important;
    border-left: 3px solid #3b82f6 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .sidebar-menu ul ul a.active i,
[data-bs-theme="dark"] .sidebar-menu ul ul a.active i,
[data-theme="dark"] .sidebar-menu li.submenu ul li a.active i,
[data-bs-theme="dark"] .sidebar-menu li.submenu ul li a.active i {
    color: #60a5fa !important;
}

[data-theme="dark"] .sidebar-menu ul ul a.active span,
[data-bs-theme="dark"] .sidebar-menu ul ul a.active span,
[data-theme="dark"] .sidebar-menu li.submenu ul li a.active span,
[data-bs-theme="dark"] .sidebar-menu li.submenu ul li a.active span {
    color: #93c5fd !important;
}

[data-theme="dark"] .sidebar-menu li.submenu>a.subdrop,
[data-bs-theme="dark"] .sidebar-menu li.submenu>a.subdrop {
    color: #f1f5f9 !important;
    background: transparent !important;
}

/* ==========================================================================
   Twenty CRM Buttons (Matte Obsidian & Crisp White)
   ========================================================================== */
.btn-primary,
.btn-primary:focus {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: var(--twenty-radius-md) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
.btn-primary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38) !important;
    transform: translateY(-1px);
}

.btn-outline-secondary,
.btn-outline-light,
.btn-light,
.btn-white {
    background: #ffffff !important;
    color: var(--twenty-text-primary) !important;
    border: 1px solid var(--twenty-border) !important;
    border-radius: var(--twenty-radius-md) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    box-shadow: var(--twenty-shadow-xs) !important;
    transition: all 0.15s ease !important;
}

.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-light:hover,
.btn-white:hover {
    background: var(--twenty-subtle) !important;
    border-color: var(--twenty-border-hover) !important;
    color: var(--twenty-text-primary) !important;
}

.btn-ghost-dark {
    background: transparent !important;
    color: var(--twenty-text-secondary) !important;
    border: none !important;
    border-radius: var(--twenty-radius-md) !important;
    transition: all 0.15s ease !important;
}

.btn-ghost-dark:hover {
    background: var(--twenty-subtle) !important;
    color: var(--twenty-text-primary) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #d97706 !important;
    color: #ffffff !important;
    border-radius: var(--twenty-radius-md) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 18px !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.28) !important;
    transition: all 0.2s ease !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38) !important;
    transform: translateY(-1px);
}

/* Twenty CRM Progress Bars */
.progress {
    background-color: #f1f5f9 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.progress-bar.bg-primary,
.progress-bar:not([class*="bg-"]) {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35) !important;
}

[data-bs-theme="dark"] .progress,
[data-theme="dark"] .progress,
body.dark-mode .progress {
    background-color: #0f172a !important;
}

[data-bs-theme="dark"] .progress-bar.bg-primary,
[data-theme="dark"] .progress-bar.bg-primary,
body.dark-mode .progress-bar.bg-primary {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%) !important;
    box-shadow: 0 1px 8px rgba(59, 130, 246, 0.5) !important;
}

/* Segmented View Switcher (Table / Kanban / Agenda) */
.twenty-segmented-control {
    background: var(--twenty-subtle);
    padding: 3px;
    border-radius: var(--twenty-radius-md);
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--twenty-border);
    gap: 2px;
}

.twenty-segmented-item {
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: var(--twenty-radius-sm);
    color: var(--twenty-text-secondary);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.twenty-segmented-item:hover {
    color: var(--twenty-text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.twenty-segmented-item.active {
    background: #ffffff;
    color: var(--twenty-text-primary);
    font-weight: 600;
    box-shadow: var(--twenty-shadow-xs);
}

/* ==========================================================================
   Twenty CRM Cards & Surfaces
   ========================================================================== */
.card {
    background: var(--twenty-surface) !important;
    border: 1px solid var(--twenty-border) !important;
    border-radius: var(--twenty-radius-lg) !important;
    box-shadow: var(--twenty-shadow-xs) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.card:hover {
    box-shadow: var(--twenty-shadow-sm) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--twenty-border-subtle) !important;
    padding: 14px 18px !important;
}

.card-body {
    padding: 18px !important;
}

/* ==========================================================================
   Twenty CRM Spreadsheet Table UI
   ========================================================================== */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    color: var(--twenty-text-primary) !important;
}

.table thead th {
    background: #fafafa !important;
    color: var(--twenty-text-secondary) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-top: none !important;
    border-bottom: 1px solid var(--twenty-border) !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
}

.table tbody td {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid var(--twenty-border-subtle) !important;
    vertical-align: middle !important;
    background: transparent !important;
    transition: background-color 0.1s ease !important;
}

.table tbody tr:hover td {
    background-color: #fafaf9 !important;
}

/* Twenty CRM Status Badges with Glowing Indicator Dot */
.badge-twenty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.badge-twenty::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-twenty-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.badge-twenty-blue::before {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.badge-twenty-green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-twenty-green::before {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.badge-twenty-amber {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

.badge-twenty-amber::before {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.badge-twenty-rose {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-twenty-rose::before {
    background: #f43f5e;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.badge-twenty-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.badge-twenty-purple::before {
    background: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.badge-twenty-gray {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.badge-twenty-gray::before {
    background: #71717a;
    box-shadow: 0 0 0 2px rgba(113, 113, 122, 0.2);
}

/* ==========================================================================
   Twenty CRM Kanban Board
   ========================================================================== */
.kanban-board-wrapper {
    background: transparent !important;
    gap: 16px !important;
}

.kanban-column {
    background: var(--twenty-subtle) !important;
    border: 1px solid var(--twenty-border) !important;
    border-radius: var(--twenty-radius-lg) !important;
    box-shadow: none !important;
}

.kanban-column-header {
    background: var(--twenty-subtle) !important;
    border-bottom: 1px solid var(--twenty-border-subtle) !important;
    padding: 12px 14px !important;
}

.kanban-cards-container {
    padding: 10px !important;
}

.kanban-card {
    background: #ffffff !important;
    border: 1px solid var(--twenty-border) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    box-shadow: var(--twenty-shadow-xs) !important;
    transition: all 0.15s ease !important;
}

.kanban-card:hover {
    border-color: var(--twenty-border-hover) !important;
    box-shadow: var(--twenty-shadow-md) !important;
    transform: translateY(-1.5px) !important;
}

/* ==========================================================================
   Twenty CRM Inputs & Form Controls
   ========================================================================== */
.form-control,
.form-select,
.select2-container--default .select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    font-size: 13.5px !important;
    padding: 6px 12px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: 0 !important;
    background-color: #ffffff !important;
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: #868787 !important;
    opacity: 1 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}

.form-label,
p.mg-b-10 {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--twenty-text-secondary) !important;
    margin-bottom: 6px !important;
}

/* ==========================================================================
   Twenty CRM Slide-Over Drawer
   ========================================================================== */
.lead-360-drawer {
    background: var(--twenty-surface) !important;
    border-left: 1px solid var(--twenty-border) !important;
    box-shadow: var(--twenty-shadow-lg) !important;
}

.lead-360-header {
    padding: 20px 24px !important;
}

/* Modals */
.modal-content {
    border: 1px solid var(--twenty-border) !important;
    border-radius: var(--twenty-radius-xl) !important;
    box-shadow: var(--twenty-shadow-lg) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--twenty-border-subtle) !important;
    padding: 16px 20px !important;
    background: #fafafa !important;
}

.modal-footer {
    border-top: 1px solid var(--twenty-border-subtle) !important;
    padding: 14px 20px !important;
    background: #fafafa !important;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Twenty CRM Sidebar Flow & Spacing */
.sidebar [data-simplebar] .sidebar-menu {
    height: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 24px !important;
}

/* Twenty CRM Topbar Pill Badge */
.topbar-menu .badge {
    font-weight: 500;
}

/* Twenty CRM Modern SweetAlert / Dialog Aesthetic */
.swal-modal,
.swal2-popup {
    border-radius: 16px !important;
    padding: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16) !important;
    font-family: inherit !important;
}

.swal2-title,
.swal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.swal2-html-container,
.swal-text {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.swal2-confirm,
.swal-button--confirm {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel,
.swal-button--cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
}

/* ==========================================================================
   Twenty CRM Select2 Multiple Styling (Refined Modern Design)
   ========================================================================== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container .select2-selection--multiple {
    min-height: 42px !important;
    border: 1px solid var(--twenty-select-border, #dbe0e8) !important;
    border-radius: 10px !important;
    background-color: var(--twenty-select-bg, #ffffff) !important;
    padding: 4px 34px 4px 10px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

/* Modern dropdown chevron arrow */
.select2-container--default .select2-selection--multiple::after,
.select2-container .select2-selection--multiple::after {
    content: '' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 8px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    pointer-events: none !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0.8 !important;
}

.select2-container--default.select2-container--open .select2-selection--multiple::after,
.select2-container.select2-container--open .select2-selection--multiple::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

.select2-container--default:hover .select2-selection--multiple,
.select2-container:hover .select2-selection--multiple {
    border-color: #cbd5e1 !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

/* Search input container & field: Remove nested box completely */
.select2-container .select2-search--inline,
.select2-container--default .select2-search--inline {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important;
}

.select2-container .select2-search--inline .select2-search__field,
.select2-container--default .select2-search--inline .select2-search__field,
.select2-container .select2-selection--multiple .select2-search__field,
.select2-container--default .select2-selection--multiple .select2-search__field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 2px 4px !important;
    margin: 0 !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    width: 100% !important;
}

.select2-container .select2-search--inline .select2-search__field::placeholder,
.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    opacity: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    color: #1d4ed8 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 2px 8px 2px 22px !important;
    margin: 2px 0 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #3b82f6 !important;
    font-weight: bold !important;
    border-right: none !important;
    left: 7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
    cursor: pointer !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444 !important;
}

/* ==========================================================================
   Input Group & Calendar Addon Box Alignment
   ========================================================================== */
.input-group {
    border-radius: 6px !important;
}

.input-group>.input-group-text {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #ced4da !important;
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.input-group>.input-group-text:first-child {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.input-group>.form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.input-group:focus-within>.input-group-text {
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

/* Datepicker & Calendar Cursor */
input.fc-datepicker,
input.datepicker,
input[data-provider="flatpickr"],
.edit-item-date {
    cursor: pointer !important;
    background-color: #ffffff !important;
}

/* Feather Calendar Icon Fallback to Tabler Icons */
.fe.fe-calendar,
.feather.feather-calendar,
.fe-calendar {
    font-family: 'tabler-icons' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
}

.fe.fe-calendar:before,
.feather.feather-calendar:before,
.fe-calendar:before {
    content: "\ea53" !important;
    /* ti-calendar */
    font-family: 'tabler-icons' !important;
    font-size: 16px !important;
    color: #64748b !important;
}

/* ==========================================================================
   Modern Flatpickr Calendar Popup Theme
   ========================================================================== */
.flatpickr-calendar {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.14), 0 4px 6px -2px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 10px !important;
    z-index: 99999 !important;
}

.flatpickr-months {
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.flatpickr-months .flatpickr-month {
    color: #0f172a !important;
    fill: #0f172a !important;
    height: 36px !important;
}

.flatpickr-current-month {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding-top: 6px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600 !important;
    color: #0f172a !important;
}

.flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
    color: #0f172a !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    border-radius: 6px !important;
    padding: 8px !important;
    transition: all 0.15s ease !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.flatpickr-weekdays {
    height: 30px !important;
    margin-top: 6px !important;
}

span.flatpickr-weekday {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    height: 36px !important;
    line-height: 36px !important;
    max-width: 36px !important;
    margin: 2px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.flatpickr-day.today {
    border-color: #0d6efd !important;
    background: #eff6ff !important;
    color: #0d6efd !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35) !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
}

.flatpickr-time {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
}

.flatpickr-time input {
    font-weight: 600 !important;
    color: #0f172a !important;
    border-radius: 6px !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: #f8fafc !important;
}

/* ==========================================================================
   Twenty CRM Modern Lead Card List (Sleek Micro-surfaces & Distinct Aesthetic)
   ========================================================================== */
.lead_card-con {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    margin-bottom: 12px !important;
    font-family: inherit !important;
    position: relative !important;
    border-left: 4px solid transparent !important;
}

.lead_card-con:hover {
    border-color: #cbd5e1 !important;
    border-left-color: #93c5fd !important;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-2px) !important;
}

.lead_card-con.active-lead {
    border-color: #bfdbfe !important;
    border-left-color: #2563eb !important;
    background-color: #f8faff !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.09) !important;
}

.lead_card-header {
    background: transparent !important;
    padding: 12px 14px 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.lead_name {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.lead_card-middle {
    background: #f8fafc !important;
    padding: 8px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #475569 !important;
    font-size: 12.5px !important;
}

.lead_phone a {
    color: #1e293b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    letter-spacing: 0.01em !important;
}

.lead_phone a:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.lead_date {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.lead_card-bottom {
    background: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 11.5px !important;
    color: #64748b !important;
}

.lead_company {
    font-weight: 600 !important;
    color: #1e293b !important;
}

.lead_email a {
    color: #64748b !important;
    text-decoration: none !important;
}

.lead_email a:hover {
    color: #2563eb !important;
}

.lead_person {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.lead-quick-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
}

.lead-quick-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

.lead-quick-btn.call:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.lead-quick-btn.wa:hover {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #10b981 !important;
}

.lead-quick-btn.mail:hover {
    background: #f0fdf4 !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
}

/* Reset DataTable table container for smooth cards */
#serverTbl {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#serverTbl thead {
    display: none !important;
}

#serverTbl td {
    border: none !important;
    padding: 2px 0 !important;
    background: transparent !important;
}

#serverTbl tr {
    background: transparent !important;
}

/* ==========================================================================
   DataTables Controls Refinement: Fix "Show 50 entries" dropdown collision
   ========================================================================== */
.dataTables_length,
div.dataTables_wrapper div.dataTables_length {
    margin-bottom: 12px !important;
}

.dataTables_length label,
div.dataTables_wrapper div.dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.dataTables_length select,
div.dataTables_wrapper div.dataTables_length select {
    width: 72px !important;
    min-width: 72px !important;
    height: 34px !important;
    padding: 4px 24px 4px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    background-position: right 8px center !important;
    background-size: 11px 9px !important;
    line-height: normal !important;
    cursor: pointer !important;
}

.dataTables_length select:focus,
div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2) !important;
    outline: 0 !important;
}

.dataTables_filter,
div.dataTables_wrapper div.dataTables_filter {
    margin-bottom: 12px !important;
}

.dataTables_filter label,
div.dataTables_wrapper div.dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
}

.dataTables_filter input,
div.dataTables_wrapper div.dataTables_filter input {
    height: 34px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.dataTables_filter input:focus,
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2) !important;
}

/* ==========================================================================
   Twenty CRM Modern Pagination Suite (No Red Buttons, No Text Clipping)
   ========================================================================== */
.dataTables_paginate,
div.dataTables_wrapper div.dataTables_paginate,
.pagination-wrapper {
    margin-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.dataTables_paginate .pagination,
div.dataTables_wrapper div.dataTables_paginate ul.pagination,
ul.pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dataTables_paginate .page-item,
div.dataTables_wrapper div.dataTables_paginate .page-item,
ul.pagination .page-item {
    margin: 0 !important;
}

/* Base pagination buttons */
.dataTables_paginate .page-item .page-link,
div.dataTables_wrapper div.dataTables_paginate .page-item .page-link,
ul.pagination .page-item .page-link,
.pagination .page-link,
.dataTables_paginate a.paginate_button,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button {
    width: auto !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    outline: none !important;
    user-select: none !important;
    margin: 0 2px !important;
}

/* Ellipsis styling (Clean, Transparent, No Ugly Box) */
.dataTables_paginate .ellipsis,
div.dataTables_wrapper div.dataTables_paginate .ellipsis,
.dataTables_paginate span.ellipsis,
div.dataTables_wrapper div.dataTables_paginate span.ellipsis,
.pagination .page-item.disabled span.page-link.ellipsis,
.pagination .page-item.disabled span:not(.page-link) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    min-width: 20px !important;
    cursor: default !important;
    font-weight: 600 !important;
}

/* Previous and Next buttons (Compact, Aesthetic, No Clunky 76px Stretched Pills) */
.dataTables_paginate .page-item.previous .page-link,
.dataTables_paginate .page-item.next .page-link,
div.dataTables_wrapper div.dataTables_paginate .page-item.previous .page-link,
div.dataTables_wrapper div.dataTables_paginate .page-item.next .page-link,
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link,
.dataTables_paginate a.paginate_button.previous,
.dataTables_paginate a.paginate_button.next,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button.previous,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button.next {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #475569 !important;
}

/* Hover state */
.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
div.dataTables_wrapper div.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.pagination .page-link:not(.disabled):hover,
.dataTables_paginate a.paginate_button:not(.disabled):not(.current):hover,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button:not(.disabled):not(.current):hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
}

/* Active page button */
.dataTables_paginate .page-item.active .page-link,
div.dataTables_wrapper div.dataTables_paginate .page-item.active .page-link,
ul.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link,
.dataTables_paginate a.paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button.current {
    background: #2563eb !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
}

/* Disabled state */
.dataTables_paginate .page-item.disabled .page-link,
div.dataTables_wrapper div.dataTables_paginate .page-item.disabled .page-link,
ul.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled,
.dataTables_paginate a.paginate_button.disabled,
div.dataTables_wrapper div.dataTables_paginate a.paginate_button.disabled {
    background-color: transparent !important;
    border-color: #e2e8f0 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
    transform: none !important;
}

/* ==========================================================================
   Modern Curated SaaS Badge Palette
   ========================================================================== */
.badge.bg-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
}

.badge.bg-info {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 600 !important;
}

.badge.bg-warning {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 600 !important;
}

.badge.bg-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    font-weight: 600 !important;
}

.badge.bg-secondary {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

.badge.bg-success {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Lead 360 Details Navigation & Timeline Styling
   ========================================================================== */
.leadDetails {
    min-height: 480px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.leadDetails .nav-tabs {
    border-bottom: 1px solid #e2e8f0 !important;
    gap: 8px !important;
}

.leadDetails .nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: #64748b !important;
    padding: 8px 16px !important;
    border-radius: 0 !important;
    transition: all 0.15s ease !important;
}

.leadDetails .nav-tabs .nav-link:hover {
    color: #0f172a !important;
    border-bottom-color: #cbd5e1 !important;
}

.leadDetails .nav-tabs .nav-link.active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
    background: transparent !important;
}

/* Polished vertical timeline */
.leadDetails .timeline-item {
    position: relative;
    transition: background 0.15s ease;
}

.leadDetails .timeline-item:hover {
    background-color: #fcfcfd;
}

/* Action button subtle hover scaling */
.leadDetails .btn {
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.leadDetails .btn:hover {
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   TAXI CRM V2 UNIVERSAL KPI CARDS & SYSTEM
   ========================================================================== */
.taxi-kpi-card {
    position: relative;
    border-radius: 14px;
    padding: 22px 22px 20px 22px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.taxi-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.taxi-kpi--orange {
    background-color: #FFEBD8;
}

.taxi-kpi--blue {
    background-color: #8ACDD7;
}

.taxi-kpi--teal {
    background-color: #89B9AD;
}

.taxi-kpi--green {
    background-color: #C7DCA7;
}

.taxi-kpi--purple {
    background-color: #AC87C5;
}

.taxi-kpi--red {
    background-color: #FFC5C5;
}

.taxi-kpi--aqua {
    background-color: #90d5ec;
}

.taxi-kpi--yellow {
    background-color: #dcd6a7;
}

.taxi-kpi__content {
    position: relative;
    z-index: 2;
}

.taxi-kpi__label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #334155;
    opacity: 0.9;
    margin-bottom: 4px;
}

.taxi-kpi__value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.taxi-kpi__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    color: #0f172a;
    width: fit-content;
}

.taxi-kpi__trend--up {
    color: #065f46;
}

.taxi-kpi__trend--down {
    color: #991b1b;
}

.taxi-kpi__crm-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
    z-index: 1;
}

.taxi-kpi-card:hover .taxi-kpi__crm-icon {
    transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   GOCO CRM PREMIUM DARK MODE SYSTEM
   ========================================================================== */
[data-theme="dark"],
[data-bs-theme="dark"],
html[data-theme="dark"],
html[data-bs-theme="dark"] {
    --twenty-canvas: #131419 !important;
    --twenty-surface: #1e1f26 !important;
    --twenty-subtle: #252834 !important;
    --twenty-border: #2b2d37 !important;
    --twenty-border-subtle: #242630 !important;
    --twenty-border-hover: #3b3e4d !important;
    --twenty-text-primary: #f8fafc !important;
    --twenty-text-secondary: #8f95a3 !important;
    --twenty-text-muted: #64748b !important;

    color-scheme: dark;
}

/* 1. Body, HTML & Page Canvas */
[data-theme="dark"] body,
[data-bs-theme="dark"] body,
[data-theme="dark"] html,
[data-bs-theme="dark"] html,
[data-theme="dark"] .page-wrapper,
[data-bs-theme="dark"] .page-wrapper,
[data-theme="dark"] .content,
[data-bs-theme="dark"] .content,
[data-theme="dark"] .main-wrapper,
[data-bs-theme="dark"] .main-wrapper {
    background-color: #131419 !important;
    color: #f1f5f9 !important;
}

/* 2. Topbar Navigation Header */
[data-theme="dark"] .navbar-header,
[data-bs-theme="dark"] .navbar-header,
[data-theme="dark"] .header,
[data-bs-theme="dark"] .header,
[data-theme="dark"] .top-header,
[data-bs-theme="dark"] .top-header {
    background: #18191f !important;
    border-bottom: 1px solid #242630 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .header-nav-pill,
[data-bs-theme="dark"] .header-nav-pill {
    color: #8f95a3 !important;
}

[data-theme="dark"] .header-nav-pill.active,
[data-bs-theme="dark"] .header-nav-pill.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] .header-nav-link,
[data-bs-theme="dark"] .header-nav-link {
    color: #8f95a3 !important;
}

[data-theme="dark"] .header-nav-link:hover,
[data-bs-theme="dark"] .header-nav-link:hover,
[data-theme="dark"] .header-nav-pill:hover,
[data-bs-theme="dark"] .header-nav-pill:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .header-action-btn,
[data-bs-theme="dark"] .header-action-btn,
[data-theme="dark"] .header-action-link,
[data-bs-theme="dark"] .header-action-link,
[data-theme="dark"] .header-flag-wrap,
[data-bs-theme="dark"] .header-flag-wrap,
[data-theme="dark"] .taxi-bell-btn,
[data-bs-theme="dark"] .taxi-bell-btn {
    background: #20222b !important;
    border-color: #2b2d37 !important;
    color: #8f95a3 !important;
}

[data-theme="dark"] .header-action-btn:hover,
[data-bs-theme="dark"] .header-action-btn:hover,
[data-theme="dark"] .header-action-link:hover,
[data-bs-theme="dark"] .header-action-link:hover,
[data-theme="dark"] .header-flag-wrap:hover,
[data-bs-theme="dark"] .header-flag-wrap:hover,
[data-theme="dark"] .taxi-bell-btn:hover,
[data-bs-theme="dark"] .taxi-bell-btn:hover {
    background: #282a36 !important;
    border-color: #3b3e4d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .header-avatar-circle,
[data-bs-theme="dark"] .header-avatar-circle {
    border-color: #242630 !important;
}

[data-theme="dark"] .header-online-dot,
[data-bs-theme="dark"] .header-online-dot {
    border-color: #18191f !important;
}

[data-theme="dark"] .mini-brand-tile,
[data-bs-theme="dark"] .mini-brand-tile {
    background: #252834 !important;
    color: #60a5fa !important;
    border-color: #323544 !important;
}

/* 3. Segmented View Switcher (Table / Kanban / Agenda) */
[data-theme="dark"] .twenty-segmented-control,
[data-bs-theme="dark"] .twenty-segmented-control {
    background: #181920 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .twenty-segmented-item,
[data-bs-theme="dark"] .twenty-segmented-item {
    color: #8f95a3 !important;
}

[data-theme="dark"] .twenty-segmented-item:hover,
[data-bs-theme="dark"] .twenty-segmented-item:hover {
    color: #ffffff !important;
    background: #252834 !important;
}

[data-theme="dark"] .twenty-segmented-item.active,
[data-bs-theme="dark"] .twenty-segmented-item.active {
    background: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.45) !important;
}

/* 4. Left Sidebar Navigation (Deep Charcoal) */
[data-theme="dark"] .sidebar,
[data-bs-theme="dark"] .sidebar,
[data-theme="dark"] .sidebar .sidebar-menu,
[data-bs-theme="dark"] .sidebar .sidebar-menu,
[data-theme="dark"] .sidebar-inner,
[data-bs-theme="dark"] .sidebar-inner {
    background: #16171d !important;
    border-right: 1px solid #242630 !important;
}

[data-theme="dark"] .sidebar-logo,
[data-bs-theme="dark"] .sidebar-logo {
    background: #16171d !important;
    border-bottom: 1px solid #242630 !important;
}

[data-theme="dark"] .sidebar-menu .menu-title,
[data-bs-theme="dark"] .sidebar-menu .menu-title,
[data-theme="dark"] .sidebar-menu .menu-title span,
[data-bs-theme="dark"] .sidebar-menu .menu-title span {
    color: #64748b !important;
}

[data-theme="dark"] .sidebar-menu ul li a,
[data-bs-theme="dark"] .sidebar-menu ul li a {
    color: #8f95a3 !important;
}

[data-theme="dark"] .sidebar-menu ul li a:hover,
[data-bs-theme="dark"] .sidebar-menu ul li a:hover {
    background: #20222a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a:hover,
[data-bs-theme="dark"] .sidebar-menu>ul>li:not(.submenu)>a:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

[data-theme="dark"] .sidebar-menu ul li.active>a,
[data-bs-theme="dark"] .sidebar-menu ul li.active>a,
[data-theme="dark"] .sidebar-menu ul li a.active,
[data-bs-theme="dark"] .sidebar-menu ul li a.active {
    background: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-menu ul ul,
[data-bs-theme="dark"] .sidebar-menu ul ul {
    background: #13141a !important;
}

[data-theme="dark"] .sidebar-menu ul ul li a,
[data-bs-theme="dark"] .sidebar-menu ul ul li a {
    color: #8f95a3 !important;
}

[data-theme="dark"] .sidebar-menu ul ul li a:hover,
[data-bs-theme="dark"] .sidebar-menu ul ul li a:hover {
    color: #38bdf8 !important;
    background: #1e2028 !important;
}

[data-theme="dark"] .sidebar .sidebar-menu>ul>li ul li a.active,
[data-bs-theme="dark"] .sidebar .sidebar-menu>ul>li ul li a.active,
[data-theme="dark"] .sidebar .sidebar-menu ul ul li a.active,
[data-bs-theme="dark"] .sidebar .sidebar-menu ul ul li a.active,
[data-theme="dark"] .sidebar-menu .submenu ul li a.active,
[data-bs-theme="dark"] .sidebar-menu .submenu ul li a.active,
[data-theme="dark"] .sidebar-menu ul ul li.active a,
[data-bs-theme="dark"] .sidebar-menu ul ul li.active a,
[data-theme="dark"] .sidebar-menu ul ul li a.active,
[data-bs-theme="dark"] .sidebar-menu ul ul li a.active {
    color: #60a5fa !important;
    background: rgba(13, 110, 253, 0.2) !important;
    font-weight: 700 !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .sidebar .sidebar-menu>ul>li ul li a.active i,
[data-bs-theme="dark"] .sidebar .sidebar-menu>ul>li ul li a.active i,
[data-theme="dark"] .sidebar-menu .submenu ul li a.active i,
[data-bs-theme="dark"] .sidebar-menu .submenu ul li a.active i {
    color: #60a5fa !important;
}

[data-theme="dark"] .sidebar-bottom-user,
[data-bs-theme="dark"] .sidebar-bottom-user {
    background: #1c1d25 !important;
    border: 1px solid #282a35 !important;
}

[data-theme="dark"] .sidebar-user-name,
[data-bs-theme="dark"] .sidebar-user-name {
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-user-role,
[data-bs-theme="dark"] .sidebar-user-role {
    color: #8f95a3 !important;
}

/* Mini Sidebar Flyout Submenus in Dark Mode */
[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul,
[data-bs-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul {
    background: #1c1d25 !important;
    border: 1px solid #2c2e3a !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a,
[data-bs-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a:hover,
[data-bs-theme="dark"] body.mini-sidebar .sidebar-menu>ul>li.submenu:hover>ul>li>a:hover {
    background: #262936 !important;
    color: #38bdf8 !important;
}

/* 5. Taxi CRM Dashboard V2 - Hero Pastel KPI Cards in Dark Mode */
[data-theme="dark"] .taxi-kpi-card,
[data-bs-theme="dark"] .taxi-kpi-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .taxi-kpi__value,
[data-bs-theme="dark"] .taxi-kpi__value {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .taxi-kpi__label,
[data-bs-theme="dark"] .taxi-kpi__label {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .taxi-kpi__trend,
[data-bs-theme="dark"] .taxi-kpi__trend {
    background: rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-kpi__crm-icon,
[data-bs-theme="dark"] .taxi-kpi__crm-icon {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="dark"] .taxi-kpi--orange,
[data-bs-theme="dark"] .taxi-kpi--orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--blue,
[data-bs-theme="dark"] .taxi-kpi--blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--teal,
[data-bs-theme="dark"] .taxi-kpi--teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(20, 184, 166, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--green,
[data-bs-theme="dark"] .taxi-kpi--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--purple,
[data-bs-theme="dark"] .taxi-kpi--purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--red,
[data-bs-theme="dark"] .taxi-kpi--red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--aqua,
[data-bs-theme="dark"] .taxi-kpi--aqua {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

[data-theme="dark"] .taxi-kpi--yellow,
[data-bs-theme="dark"] .taxi-kpi--yellow {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, #1e212b 100%) !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
}

/* 6. Middle Analytics & Spotlight Widgets */
[data-theme="dark"] .taxi-widget-card,
[data-bs-theme="dark"] .taxi-widget-card {
    background: #1e1f26 !important;
    border: 1px solid #2b2d37 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .taxi-widget-card__title,
[data-bs-theme="dark"] .taxi-widget-card__title {
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-widget-card__subtitle,
[data-bs-theme="dark"] .taxi-widget-card__subtitle {
    color: #8f95a3 !important;
}

[data-theme="dark"] .taxi-stat-row,
[data-bs-theme="dark"] .taxi-stat-row {
    border-bottom: 1px dashed #2b2d37 !important;
}

[data-theme="dark"] .taxi-stat-row .text-dark,
[data-bs-theme="dark"] .taxi-stat-row .text-dark,
[data-theme="dark"] .taxi-stat-row .fw-bold,
[data-bs-theme="dark"] .taxi-stat-row .fw-bold {
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-stat-row .text-muted,
[data-bs-theme="dark"] .taxi-stat-row .text-muted {
    color: #8f95a3 !important;
}

[data-theme="dark"] .taxi-spotlight-card,
[data-bs-theme="dark"] .taxi-spotlight-card {
    background: #1e1f26 !important;
    border: 1px solid #2b2d37 !important;
}

[data-theme="dark"] .taxi-territory-box,
[data-bs-theme="dark"] .taxi-territory-box {
    background: #181920 !important;
    border-color: #2c2e3a !important;
}

[data-theme="dark"] .taxi-deal-item,
[data-bs-theme="dark"] .taxi-deal-item {
    background: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .taxi-radar-box,
[data-bs-theme="dark"] .taxi-radar-box {
    background: #181920 !important;
    border-color: #2c2e3a !important;
}

[data-theme="dark"] .taxi-radar-inner,
[data-bs-theme="dark"] .taxi-radar-inner {
    background: #252834 !important;
    border-color: #343746 !important;
}

/* 7. ALL Text Boxes, Form Controls & Inputs (Exhaustive) */
[data-theme="dark"] input[type="text"],
[data-bs-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-bs-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="number"],
[data-bs-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-bs-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-bs-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-bs-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-bs-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="date"],
[data-bs-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-bs-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] textarea,
[data-bs-theme="dark"] textarea,
[data-theme="dark"] select,
[data-bs-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-select,
[data-theme="dark"] .form-control-sm,
[data-bs-theme="dark"] .form-control-sm,
[data-theme="dark"] .form-select-sm,
[data-bs-theme="dark"] .form-select-sm,
[data-theme="dark"] .form-group .form-control,
[data-bs-theme="dark"] .form-group .form-control {
    background-color: #252834 !important;
    border: 1px solid #343746 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] input::placeholder,
[data-bs-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-bs-theme="dark"] textarea::placeholder,
[data-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .form-control::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-bs-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-bs-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-bs-theme="dark"] select:focus,
[data-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #282c3a !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .input-group-text,
[data-theme="dark"] .input-group-text.bg-white,
[data-bs-theme="dark"] .input-group-text.bg-white,
[data-theme="dark"] .form-group .input-group-text,
[data-bs-theme="dark"] .form-group .input-group-text {
    background-color: #1e202a !important;
    border-color: #343746 !important;
    color: #8f95a3 !important;
}

[data-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-label,
[data-theme="dark"] label,
[data-bs-theme="dark"] label,
[data-theme="dark"] .form-group p.mg-b-10,
[data-bs-theme="dark"] .form-group p.mg-b-10 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .form-check-input,
[data-bs-theme="dark"] .form-check-input {
    background-color: #252834 !important;
    border-color: #3e4354 !important;
}

[data-theme="dark"] .form-check-input:checked,
[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* 8. Select2 & Pickers in Dark Mode */
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-theme="dark"] .select2-container .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container .select2-selection--multiple {
    background-color: #20222b !important;
    border: 1px solid #343746 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .select2-container--default:hover .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default:hover .select2-selection--multiple {
    border-color: #434758 !important;
}

[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22) !important;
}

[data-theme="dark"] .select2-container .select2-search--inline .select2-search__field,
[data-bs-theme="dark"] .select2-container .select2-search--inline .select2-search__field,
[data-theme="dark"] .select2-container--default .select2-search--inline .select2-search__field,
[data-bs-theme="dark"] .select2-container--default .select2-search--inline .select2-search__field,
[data-theme="dark"] .select2-container .select2-selection--multiple .select2-search__field,
[data-bs-theme="dark"] .select2-container .select2-selection--multiple .select2-search__field,
[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-search__field,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-search__field {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container .select2-search--inline .select2-search__field::placeholder,
[data-bs-theme="dark"] .select2-container .select2-search--inline .select2-search__field::placeholder,
[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-search__field::placeholder,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #8f95a3 !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple::after,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%238f95a3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8f95a3 !important;
}

[data-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-dropdown {
    background-color: #1e1f26 !important;
    border-color: #343746 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field,
[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #252834 !important;
    border: 1px solid #343746 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option,
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option--highlighted,
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #60a5fa !important;
}

/* Flatpickr Calendar — Premium Light Mode Base */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    font-family: var(--twenty-font) !important;
    padding: 4px !important;
    overflow: hidden !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none !important;
}

/* Month/Year Header Bar */
.flatpickr-months {
    padding: 8px 6px 4px 6px !important;
    align-items: center !important;
}

.flatpickr-months .flatpickr-month {
    height: 36px !important;
}

.flatpickr-current-month {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding-top: 4px !important;
}

/* Month Dropdown Select */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

/* Year Input */
.flatpickr-current-month .numInputWrapper input.cur-year {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    padding: 0 4px !important;
}

.flatpickr-current-month .numInputWrapper span {
    border: none !important;
    opacity: 0.5 !important;
}

.flatpickr-current-month .numInputWrapper span:hover {
    opacity: 1 !important;
    background: #f1f5f9 !important;
}

/* Prev/Next Navigation Arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    top: 8px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #475569 !important;
    width: 12px !important;
    height: 12px !important;
}

/* Weekday Headers */
.flatpickr-weekdays {
    padding: 0 4px !important;
}

span.flatpickr-weekday {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* Day Cells */
.flatpickr-day {
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 1px !important;
    transition: all 0.12s ease !important;
    border: none !important;
}

.flatpickr-day:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: none !important;
}

.flatpickr-day.today {
    background: #f0f9ff !important;
    border: 2px solid #3b82f6 !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

.flatpickr-day.today:hover {
    background: #dbeafe !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f8fafc !important;
    color: #94a3b8 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #e2e8f0 !important;
    background: transparent !important;
}

/* Time Picker Section */
.flatpickr-time {
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 4px !important;
    padding: 6px 0 !important;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.flatpickr-time input {
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: #e2e8f0 !important;
    border-color: #3b82f6 !important;
}

.flatpickr-time .flatpickr-am-pm {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    background: #eff6ff !important;
    border-radius: 8px !important;
    border: 1px solid #dbeafe !important;
}

.flatpickr-time .flatpickr-am-pm:hover {
    background: #dbeafe !important;
}

.flatpickr-time .numInputWrapper span {
    border: none !important;
}

/* ====== Flatpickr Dark Mode ====== */
[data-theme="dark"] .flatpickr-calendar,
[data-bs-theme="dark"] .flatpickr-calendar {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .flatpickr-current-month,
[data-bs-theme="dark"] .flatpickr-current-month {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: #2e3240 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months option,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #1e1f26 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .flatpickr-current-month .numInputWrapper input.cur-year,
[data-bs-theme="dark"] .flatpickr-current-month .numInputWrapper input.cur-year {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .flatpickr-current-month .numInputWrapper span:hover,
[data-bs-theme="dark"] .flatpickr-current-month .numInputWrapper span:hover {
    background: #252834 !important;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month {
    background: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month:hover,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month:hover {
    background: #2e3240 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month svg,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month svg {
    fill: #8f95a3 !important;
}

[data-theme="dark"] span.flatpickr-weekday,
[data-bs-theme="dark"] span.flatpickr-weekday {
    color: #60a5fa !important;
}

[data-theme="dark"] .flatpickr-day,
[data-bs-theme="dark"] .flatpickr-day {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .flatpickr-day:hover,
[data-bs-theme="dark"] .flatpickr-day:hover {
    background: #252834 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .flatpickr-day.today,
[data-bs-theme="dark"] .flatpickr-day.today {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-day.selected,
[data-theme="dark"] .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-day.startRange,
[data-theme="dark"] .flatpickr-day.endRange,
[data-bs-theme="dark"] .flatpickr-day.endRange {
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.45) !important;
}

[data-theme="dark"] .flatpickr-day.prevMonthDay,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-day.nextMonthDay,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #475569 !important;
}

[data-theme="dark"] .flatpickr-day.prevMonthDay:hover,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay:hover,
[data-theme="dark"] .flatpickr-day.nextMonthDay:hover,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay:hover {
    background: #1e1f26 !important;
    color: #8f95a3 !important;
}

[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled {
    color: #343746 !important;
}

[data-theme="dark"] .flatpickr-time,
[data-bs-theme="dark"] .flatpickr-time {
    border-top-color: #2b2d37 !important;
}

[data-theme="dark"] .flatpickr-time input,
[data-bs-theme="dark"] .flatpickr-time input {
    color: #f1f5f9 !important;
    background: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .flatpickr-time input:hover,
[data-bs-theme="dark"] .flatpickr-time input:hover,
[data-theme="dark"] .flatpickr-time input:focus,
[data-bs-theme="dark"] .flatpickr-time input:focus {
    background: #2e3240 !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .flatpickr-time .flatpickr-time-separator,
[data-bs-theme="dark"] .flatpickr-time .flatpickr-time-separator {
    color: #64748b !important;
}

[data-theme="dark"] .flatpickr-time .flatpickr-am-pm,
[data-bs-theme="dark"] .flatpickr-time .flatpickr-am-pm {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .flatpickr-time .flatpickr-am-pm:hover,
[data-bs-theme="dark"] .flatpickr-time .flatpickr-am-pm:hover {
    background: rgba(59, 130, 246, 0.25) !important;
}

/* 9. ALL Tables, DataTables & Listing Places */
[data-theme="dark"] table,
[data-bs-theme="dark"] table,
[data-theme="dark"] .table,
[data-bs-theme="dark"] .table,
[data-theme="dark"] table.dataTable,
[data-bs-theme="dark"] table.dataTable,
[data-theme="dark"] table.table-nowrap,
[data-bs-theme="dark"] table.table-nowrap,
[data-theme="dark"] table.table-striped,
[data-bs-theme="dark"] table.table-striped,
[data-theme="dark"] table.table-hover,
[data-bs-theme="dark"] table.table-hover,
[data-theme="dark"] table.table-bordered,
[data-bs-theme="dark"] table.table-bordered {
    color: #f1f5f9 !important;
    border-color: #2b2d37 !important;
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: #f1f5f9 !important;
    --bs-table-border-color: #2b2d37 !important;
    --bs-table-hover-bg: #252834 !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-striped-bg: #1c1d24 !important;
    --bs-table-striped-color: #f1f5f9 !important;
}

[data-theme="dark"] .table> :not(caption)>*>*,
[data-bs-theme="dark"] .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #f1f5f9 !important;
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] table thead,
[data-bs-theme="dark"] table thead,
[data-theme="dark"] table thead th,
[data-bs-theme="dark"] table thead th,
[data-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light,
[data-theme="dark"] thead.table-light,
[data-bs-theme="dark"] thead.table-light,
[data-theme="dark"] tr.table-light,
[data-bs-theme="dark"] tr.table-light,
[data-theme="dark"] th.table-light,
[data-bs-theme="dark"] th.table-light {
    background-color: #181920 !important;
    color: #94a3b8 !important;
    border-bottom-color: #2b2d37 !important;
    font-weight: 700 !important;
}

[data-theme="dark"] table tbody tr,
[data-bs-theme="dark"] table tbody tr {
    background-color: transparent !important;
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] table tbody tr:hover,
[data-bs-theme="dark"] table tbody tr:hover,
[data-theme="dark"] .table-hover>tbody>tr:hover>*,
[data-bs-theme="dark"] .table-hover>tbody>tr:hover>* {
    background-color: #242733 !important;
    color: #ffffff !important;
}

[data-theme="dark"] table tbody td,
[data-bs-theme="dark"] table tbody td {
    color: #cbd5e1 !important;
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] table tbody td a:not(.btn):not(.badge),
[data-bs-theme="dark"] table tbody td a:not(.btn):not(.badge) {
    color: #f1f5f9 !important;
}

[data-theme="dark"] table tbody td a:not(.btn):not(.badge):hover,
[data-bs-theme="dark"] table tbody td a:not(.btn):not(.badge):hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .dataTables_wrapper,
[data-bs-theme="dark"] .dataTables_wrapper {
    color: #8f95a3 !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background-color: #252834 !important;
    border: 1px solid #343746 !important;
    color: #f1f5f9 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}

[data-theme="dark"] .dataTables_info,
[data-bs-theme="dark"] .dataTables_info {
    color: #8f95a3 !important;
}

[data-theme="dark"] .dataTables_paginate .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-link {
    background-color: #22242e !important;
    border-color: #2e313e !important;
    color: #8f95a3 !important;
}

[data-theme="dark"] .dataTables_paginate .page-item.active .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* 10. Kanban Pipeline Board in Dark Mode */
[data-theme="dark"] .kanban-board-wrapper,
[data-bs-theme="dark"] .kanban-board-wrapper {
    background: transparent !important;
}

[data-theme="dark"] .kanban-column,
[data-bs-theme="dark"] .kanban-column {
    background: #181920 !important;
    border: 1px solid #2b2d37 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .kanban-column-header,
[data-bs-theme="dark"] .kanban-column-header {
    background: #1e1f26 !important;
    border-bottom: 1px solid #2b2d37 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .kanban-cards-container,
[data-bs-theme="dark"] .kanban-cards-container {
    background: transparent !important;
}

[data-theme="dark"] .kanban-cards-container.drag-over,
[data-bs-theme="dark"] .kanban-cards-container.drag-over {
    background: #1e2638 !important;
    border: 2px dashed #3b82f6 !important;
}

[data-theme="dark"] .kanban-card,
[data-bs-theme="dark"] .kanban-card {
    background: #22242e !important;
    border: 1px solid #2e313e !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .kanban-card:hover,
[data-bs-theme="dark"] .kanban-card:hover {
    background: #272a36 !important;
    border-color: #475569 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

/* 11. Daily Agenda Cards & Lead 360 */
[data-theme="dark"] .agenda-card,
[data-bs-theme="dark"] .agenda-card {
    background: #1e1f26 !important;
    border: 1px solid #2b2d37 !important;
}

[data-theme="dark"] .agenda-card:hover,
[data-bs-theme="dark"] .agenda-card:hover {
    background: #242733 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .agenda-toolbar,
[data-bs-theme="dark"] .agenda-toolbar {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .agenda-snooze-btn,
[data-bs-theme="dark"] .agenda-snooze-btn {
    background: #252834 !important;
    border: 1px solid #3b3e4d !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .agenda-snooze-btn:hover,
[data-bs-theme="dark"] .agenda-snooze-btn:hover,
[data-theme="dark"] .agenda-snooze-btn[aria-expanded="true"],
[data-bs-theme="dark"] .agenda-snooze-btn[aria-expanded="true"] {
    background: #323546 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .agenda-snooze-btn i,
[data-bs-theme="dark"] .agenda-snooze-btn i {
    color: #94a3b8 !important;
}

[data-theme="dark"] .agenda-done-btn,
[data-bs-theme="dark"] .agenda-done-btn {
    background: rgba(34, 197, 94, 0.16) !important;
    border: 1px solid rgba(34, 197, 94, 0.38) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .agenda-done-btn:hover,
[data-bs-theme="dark"] .agenda-done-btn:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

[data-theme="dark"] .agenda-done-btn i,
[data-bs-theme="dark"] .agenda-done-btn i {
    color: inherit !important;
}

[data-theme="dark"] .agenda-card .dropdown-menu,
[data-bs-theme="dark"] .agenda-card .dropdown-menu {
    background: #1e202a !important;
    border: 1px solid #333645 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .agenda-card .dropdown-item,
[data-bs-theme="dark"] .agenda-card .dropdown-item {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .agenda-card .dropdown-item:hover,
[data-bs-theme="dark"] .agenda-card .dropdown-item:hover {
    background: #282b3a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .agenda-card .dropdown-divider,
[data-bs-theme="dark"] .agenda-card .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .leadBody,
[data-bs-theme="dark"] .leadBody {
    background: #1e1f26 !important;
}

[data-theme="dark"] .lead_card-con,
[data-bs-theme="dark"] .lead_card-con {
    background-color: #22242e !important;
    border-color: #2e313e !important;
}

[data-theme="dark"] .lead_card-con:hover,
[data-bs-theme="dark"] .lead_card-con:hover {
    background-color: #272a36 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .lead_card-con.active-lead,
[data-bs-theme="dark"] .lead_card-con.active-lead {
    background-color: #1e2638 !important;
    border-color: #3b82f6 !important;
    border-left-color: #3b82f6 !important;
}

[data-theme="dark"] .lead_card-header,
[data-bs-theme="dark"] .lead_card-header {
    border-bottom-color: #2b2e3b !important;
}

[data-theme="dark"] .lead_name,
[data-bs-theme="dark"] .lead_name {
    color: #ffffff !important;
}

[data-theme="dark"] .lead_card-middle,
[data-bs-theme="dark"] .lead_card-middle {
    background-color: #1b1c23 !important;
    border-bottom-color: #2b2e3b !important;
}

[data-theme="dark"] .lead_phone a,
[data-bs-theme="dark"] .lead_phone a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .lead-quick-btn,
[data-bs-theme="dark"] .lead-quick-btn {
    background: #2b2e3b !important;
    border-color: #393d4e !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .lead-quick-btn:hover,
[data-bs-theme="dark"] .lead-quick-btn:hover {
    background: #34384a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .lead_card-bottom,
[data-bs-theme="dark"] .lead_card-bottom {
    background-color: #22242e !important;
}

[data-theme="dark"] .lead-meta-kpi-card,
[data-bs-theme="dark"] .lead-meta-kpi-card {
    background-color: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .lead-meta-kpi-card:hover,
[data-bs-theme="dark"] .lead-meta-kpi-card:hover {
    background-color: #2c2f3e !important;
    border-color: #475569 !important;
}

/* 12. Cards, Modals, Offcanvas & Command Palette */
[data-theme="dark"] .card,
[data-bs-theme="dark"] .card,
[data-theme="dark"] .custom-card,
[data-bs-theme="dark"] .custom-card,
[data-theme="dark"] .leadDetails,
[data-bs-theme="dark"] .leadDetails,
[data-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content,
[data-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .offcanvas {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-header,
[data-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-header,
[data-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .offcanvas-header {
    background-color: #1e1f26 !important;
    border-bottom-color: #2b2d37 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-body,
[data-theme="dark"] .modal-body,
[data-bs-theme="dark"] .modal-body,
[data-theme="dark"] .offcanvas-body,
[data-bs-theme="dark"] .offcanvas-body {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-footer,
[data-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-footer,
[data-theme="dark"] .offcanvas-footer,
[data-bs-theme="dark"] .offcanvas-footer {
    background-color: #1e1f26 !important;
    border-top-color: #2b2d37 !important;
}

[data-theme="dark"] .command-item,
[data-bs-theme="dark"] .command-item {
    background-color: #22242e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .command-item:hover,
[data-bs-theme="dark"] .command-item:hover {
    background-color: #2b2f3f !important;
    color: #ffffff !important;
}

/* 13. Dropdowns & Navigation Menus */
[data-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1a1c24 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .dropdown-item {
    color: #cbd5e1 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #282b37 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item.active,
[data-bs-theme="dark"] .dropdown-item.active,
[data-theme="dark"] .dropdown-item:active,
[data-bs-theme="dark"] .dropdown-item:active {
    background-color: #e9222c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .dropdown-divider,
[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: #2b2d37 !important;
}

/* 13.1 Universal Select & Option Styles (Dark Mode Fix for Invisible Text) */
[data-theme="dark"] select,
[data-bs-theme="dark"] select,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-select,
[data-theme="dark"] .dataTables_length select {
    background-color: #1a1c24 !important;
    color: #f1f5f9 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] select option,
[data-bs-theme="dark"] select option,
[data-theme="dark"] .form-select option,
[data-bs-theme="dark"] .form-select option,
[data-theme="dark"] .dataTables_length select option {
    background-color: #1a1c24 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] select option:checked,
[data-bs-theme="dark"] select option:checked,
[data-theme="dark"] select option:hover,
[data-bs-theme="dark"] select option:hover,
[data-theme="dark"] select option:focus,
[data-bs-theme="dark"] select option:focus,
[data-theme="dark"] .form-select option:checked,
[data-bs-theme="dark"] .form-select option:checked {
    background-color: #282b37 !important;
    color: #ffffff !important;
}

/* 13.2 Select2 Plugin Dark Mode Support */
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #1a1c24 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-dropdown {
    background-color: #1a1c24 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option,
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
    background-color: #1a1c24 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #282b37 !important;
    color: #ffffff !important;
}

/* 13.3 Global Tables & DataTables Dark Mode Overrides */
[data-theme="dark"] .table,
[data-bs-theme="dark"] .table,
[data-theme="dark"] table.dataTable,
[data-bs-theme="dark"] table.dataTable,
[data-theme="dark"] .custom-table table,
[data-bs-theme="dark"] .custom-table table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
    --bs-table-color: #e2e8f0 !important;
    --bs-table-border-color: #282a35 !important;
    color: #e2e8f0 !important;
    border-color: #282a35 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table thead th,
[data-theme="dark"] table.dataTable thead th,
[data-bs-theme="dark"] table.dataTable thead th,
[data-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light,
[data-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table-light th {
    background-color: #15171e !important;
    background: #15171e !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #282a35 !important;
    border-top: none !important;
}

[data-theme="dark"] .table tbody td,
[data-bs-theme="dark"] .table tbody td,
[data-theme="dark"] table.dataTable tbody td,
[data-bs-theme="dark"] table.dataTable tbody td {
    background-color: #1a1c24 !important;
    background: #1a1c24 !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid #282a35 !important;
}

[data-theme="dark"] .table tbody tr:hover td,
[data-bs-theme="dark"] .table tbody tr:hover td,
[data-theme="dark"] table.dataTable tbody tr:hover td,
[data-bs-theme="dark"] table.dataTable tbody tr:hover td {
    background-color: #222530 !important;
    background: #222530 !important;
}

/* Empty Table States */
[data-theme="dark"] table.dataTable td.dataTables_empty,
[data-bs-theme="dark"] table.dataTable td.dataTables_empty,
[data-theme="dark"] .dataTables_empty,
[data-bs-theme="dark"] .dataTables_empty {
    background-color: #1a1c24 !important;
    background: #1a1c24 !important;
    color: #94a3b8 !important;
    padding: 36px 18px !important;
    font-weight: 500 !important;
    text-align: center !important;
    border-bottom: 1px solid #282a35 !important;
}

/* DataTables Controls in Dark Mode */
[data-theme="dark"] .dataTables_wrapper,
[data-bs-theme="dark"] .dataTables_wrapper {
    color: #94a3b8 !important;
}

[data-theme="dark"] .dataTables_info,
[data-bs-theme="dark"] .dataTables_info {
    color: #94a3b8 !important;
}

[data-theme="dark"] .dataTables_paginate .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-link,
[data-theme="dark"] .dataTables_paginate .page-item .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-item .page-link,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item .page-link,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item .page-link,
[data-theme="dark"] ul.pagination .page-item .page-link,
[data-bs-theme="dark"] ul.pagination .page-item .page-link,
[data-theme="dark"] .pagination .page-link,
[data-bs-theme="dark"] .pagination .page-link,
[data-theme="dark"] .dataTables_paginate a.paginate_button,
[data-bs-theme="dark"] .dataTables_paginate a.paginate_button,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button,
body.dark-theme .dataTables_paginate .page-item .page-link,
body.dark-theme div.dataTables_wrapper div.dataTables_paginate .page-item .page-link,
body.dark-theme .pagination .page-link,
body.dark-theme .dataTables_paginate a.paginate_button {
    background-color: #1e2029 !important;
    background: #1e2029 !important;
    border: 1px solid #2e3240 !important;
    border-color: #2e3240 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
[data-bs-theme="dark"] .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
[data-theme="dark"] ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
[data-bs-theme="dark"] ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
[data-theme="dark"] .pagination .page-link:not(.disabled):hover,
[data-bs-theme="dark"] .pagination .page-link:not(.disabled):hover,
[data-theme="dark"] .dataTables_paginate a.paginate_button:not(.disabled):not(.current):hover,
[data-bs-theme="dark"] .dataTables_paginate a.paginate_button:not(.disabled):not(.current):hover,
body.dark-theme .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #2a2d3a !important;
    background: #2a2d3a !important;
    border-color: #434758 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

[data-theme="dark"] .dataTables_paginate .ellipsis,
[data-bs-theme="dark"] .dataTables_paginate .ellipsis,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .ellipsis,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .ellipsis,
[data-theme="dark"] .dataTables_paginate span.ellipsis,
[data-bs-theme="dark"] .dataTables_paginate span.ellipsis,
[data-theme="dark"] .pagination .page-item.disabled span.page-link.ellipsis,
[data-bs-theme="dark"] .pagination .page-item.disabled span.page-link.ellipsis,
body.dark-theme .dataTables_paginate .ellipsis {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    color: #64748b !important;
    box-shadow: none !important;
}

[data-theme="dark"] .dataTables_paginate .page-item.disabled .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-item.disabled .page-link,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item.disabled .page-link,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item.disabled .page-link,
[data-theme="dark"] ul.pagination .page-item.disabled .page-link,
[data-bs-theme="dark"] ul.pagination .page-item.disabled .page-link,
[data-theme="dark"] .pagination .page-link.disabled,
[data-bs-theme="dark"] .pagination .page-link.disabled,
[data-theme="dark"] .dataTables_paginate a.paginate_button.disabled,
[data-bs-theme="dark"] .dataTables_paginate a.paginate_button.disabled,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button.disabled,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button.disabled,
body.dark-theme .dataTables_paginate .page-item.disabled .page-link {
    background-color: transparent !important;
    background: transparent !important;
    border: 1px solid #2b2d37 !important;
    border-color: #2b2d37 !important;
    color: #4b5563 !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
    transform: none !important;
}

[data-theme="dark"] .dataTables_paginate .page-item.active .page-link,
[data-bs-theme="dark"] .dataTables_paginate .page-item.active .page-link,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item.active .page-link,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate .page-item.active .page-link,
[data-theme="dark"] ul.pagination .page-item.active .page-link,
[data-bs-theme="dark"] ul.pagination .page-item.active .page-link,
[data-theme="dark"] .pagination .page-item.active .page-link,
[data-bs-theme="dark"] .pagination .page-item.active .page-link,
[data-theme="dark"] .dataTables_paginate a.paginate_button.current,
[data-bs-theme="dark"] .dataTables_paginate a.paginate_button.current,
[data-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button.current,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_paginate a.paginate_button.current,
body.dark-theme .dataTables_paginate .page-item.active .page-link {
    background: #2563eb !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
}

/* 14. Global Utility Overrides for bg-white and bg-light */
[data-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-white {
    background-color: #1e1f26 !important;
    color: #f1f5f9 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light {
    background-color: #16171d !important;
    color: #f1f5f9 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .card .bg-white,
[data-bs-theme="dark"] .card .bg-white,
[data-theme="dark"] .modal-content .bg-white,
[data-bs-theme="dark"] .modal-content .bg-white,
[data-theme="dark"] .offcanvas .bg-white,
[data-bs-theme="dark"] .offcanvas .bg-white {
    background-color: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .card .bg-light,
[data-bs-theme="dark"] .card .bg-light,
[data-theme="dark"] .modal-content .bg-light,
[data-bs-theme="dark"] .modal-content .bg-light,
[data-theme="dark"] .offcanvas .bg-light,
[data-bs-theme="dark"] .offcanvas .bg-light {
    background-color: #1b1c23 !important;
    border-color: #2c2e39 !important;
}

/* 14.1 Global Cards & Surfaces in Dark Mode */
[data-theme="dark"] .card,
[data-bs-theme="dark"] .card {
    background-color: #1a1c24 !important;
    background: #1a1c24 !important;
    border-color: #282a35 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-header {
    background-color: #1a1c24 !important;
    background: #1a1c24 !important;
    border-bottom-color: #282a35 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-body {
    background-color: transparent !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-footer {
    background-color: #15171e !important;
    background: #15171e !important;
    border-top-color: #282a35 !important;
    color: #8f95a3 !important;
}

/* Form Section Cards & Lead Form Dark Aesthetics */
[data-theme="dark"] .form-section-card,
[data-bs-theme="dark"] .form-section-card,
[data-theme-mode="dark"] .form-section-card {
    background-color: #1e2029 !important;
    background: #1e2029 !important;
    border-color: #282a35 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .form-section-card.mandatory-section,
[data-bs-theme="dark"] .form-section-card.mandatory-section,
[data-theme-mode="dark"] .form-section-card.mandatory-section {
    border-left: 4px solid #3b82f6 !important;
    background: linear-gradient(180deg, #1e2029 0%, #171821 100%) !important;
}

[data-theme="dark"] .custom-card,
[data-bs-theme="dark"] .custom-card,
[data-theme-mode="dark"] .custom-card {
    background-color: #181920 !important;
    background: #181920 !important;
    border-color: #282a35 !important;
    color: #f1f5f9 !important;
}

/* 15. Buttons, Badges, Tabs & Typography */
[data-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn-light,
[data-theme="dark"] .btn-secondary,
[data-bs-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-white,
[data-bs-theme="dark"] .btn-white {
    background-color: #252834 !important;
    background: #252834 !important;
    border-color: #343746 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-secondary:hover,
[data-bs-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-white:hover,
[data-bs-theme="dark"] .btn-white:hover {
    background-color: #2e3240 !important;
    background: #2e3240 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-light,
[data-bs-theme="dark"] .btn-outline-light {
    background-color: #252834 !important;
    border-color: #343746 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-outline-light:hover,
[data-bs-theme="dark"] .btn-outline-light:hover {
    background-color: #2e3240 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-dark,
[data-bs-theme="dark"] .btn-dark {
    background-color: #2d3142 !important;
    border-color: #3d4257 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-dark:hover,
[data-bs-theme="dark"] .btn-dark:hover {
    background-color: #393e54 !important;
    border-color: #4d536e !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: #3b3e4d !important;
    color: #cbd5e1 !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #252834 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* Master Table Action Buttons (Edit & Delete) */
[data-theme="dark"] .table .btn-warning,
[data-bs-theme="dark"] .table .btn-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .table .btn-warning:hover,
[data-bs-theme="dark"] .table .btn-warning:hover {
    background-color: #f59e0b !important;
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
}

[data-theme="dark"] .table .btn-danger,
[data-bs-theme="dark"] .table .btn-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .table .btn-danger:hover,
[data-bs-theme="dark"] .table .btn-danger:hover {
    background-color: #ef4444 !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

[data-theme="dark"] .table .btn-info,
[data-bs-theme="dark"] .table .btn-info {
    background-color: rgba(14, 165, 233, 0.15) !important;
    background: rgba(14, 165, 233, 0.15) !important;
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
    color: #38bdf8 !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .table .btn-info:hover,
[data-bs-theme="dark"] .table .btn-info:hover {
    background-color: #0ea5e9 !important;
    background: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0ea5e9 !important;
}

/* Master Status Badges */
[data-theme="dark"] .badge.bg-success,
[data-bs-theme="dark"] .badge.bg-success {
    background-color: rgba(16, 185, 129, 0.18) !important;
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .badge.bg-danger,
[data-bs-theme="dark"] .badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.18) !important;
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .badge.bg-secondary,
[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: rgba(148, 163, 184, 0.15) !important;
    background: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    font-weight: 600 !important;
}

/* Master Search Bar & Input Group */
[data-theme="dark"] .card-header .input-group-text,
[data-bs-theme="dark"] .card-header .input-group-text,
[data-theme="dark"] .input-group-text.bg-white,
[data-bs-theme="dark"] .input-group-text.bg-white {
    background-color: #20222b !important;
    border-color: #2e313e !important;
    color: #8f95a3 !important;
}

[data-theme="dark"] .card-header .input-group .form-control,
[data-bs-theme="dark"] .card-header .input-group .form-control {
    background-color: #1a1c24 !important;
    border-color: #2e313e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] #searchBtn,
[data-bs-theme="dark"] #searchBtn {
    background: linear-gradient(135deg, #e9222c 0%, #c41820 100%) !important;
    border-color: #c41820 !important;
    color: #ffffff !important;
}

/* Master Dropdown Toggle Pills (Sort By, Date Wise) */
[data-theme="dark"] .card-body .dropdown-toggle.btn-outline-light,
[data-bs-theme="dark"] .card-body .dropdown-toggle.btn-outline-light {
    background-color: #22242e !important;
    border-color: #313543 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .card-body .dropdown-toggle.btn-outline-light:hover,
[data-bs-theme="dark"] .card-body .dropdown-toggle.btn-outline-light:hover {
    background-color: #2b2f3e !important;
    border-color: #454a5c !important;
    color: #ffffff !important;
}

/* Master Header Icon Buttons (Refresh, Collapse) */
[data-theme="dark"] .page-header .btn-outline-light,
[data-bs-theme="dark"] .page-header .btn-outline-light,
[data-theme="dark"] .content .btn-icon.btn-outline-light,
[data-bs-theme="dark"] .content .btn-icon.btn-outline-light {
    background-color: #1e2029 !important;
    border-color: #2e313e !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .page-header .btn-outline-light:hover,
[data-bs-theme="dark"] .page-header .btn-outline-light:hover,
[data-theme="dark"] .content .btn-icon.btn-outline-light:hover,
[data-bs-theme="dark"] .content .btn-icon.btn-outline-light:hover {
    background-color: #292c39 !important;
    border-color: #404557 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-close,
[data-bs-theme="dark"] .btn-close,
[data-theme="dark"] .custom-btn-close,
[data-bs-theme="dark"] .custom-btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

[data-theme="dark"] .nav-tabs,
[data-bs-theme="dark"] .nav-tabs {
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] .nav-tabs .nav-link,
[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #8f95a3 !important;
    border-color: transparent !important;
}

[data-theme="dark"] .nav-tabs .nav-link:hover,
[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #1e1f26 !important;
    border-color: #2b2d37 #2b2d37 #1e1f26 !important;
}

[data-theme="dark"] .badge.bg-light,
[data-bs-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.bg-white,
[data-bs-theme="dark"] .badge.bg-white {
    background-color: #252834 !important;
    color: #cbd5e1 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] kbd,
[data-bs-theme="dark"] kbd,
[data-theme="dark"] kbd.bg-white,
[data-bs-theme="dark"] kbd.bg-white {
    background-color: #252834 !important;
    color: #cbd5e1 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark,
[data-theme="dark"] b.text-dark,
[data-bs-theme="dark"] b.text-dark,
[data-theme="dark"] strong.text-dark,
[data-bs-theme="dark"] strong.text-dark,
[data-theme="dark"] span.text-dark,
[data-bs-theme="dark"] span.text-dark,
[data-theme="dark"] h1,
[data-bs-theme="dark"] h1,
[data-theme="dark"] h2,
[data-bs-theme="dark"] h2,
[data-theme="dark"] h3,
[data-bs-theme="dark"] h3,
[data-theme="dark"] h4,
[data-bs-theme="dark"] h4,
[data-theme="dark"] h5,
[data-bs-theme="dark"] h5,
[data-theme="dark"] h6,
[data-bs-theme="dark"] h6,
[data-theme="dark"] .page-title,
[data-bs-theme="dark"] .page-title {
    color: #ffffff !important;
}

[data-theme="dark"] a.text-dark,
[data-bs-theme="dark"] a.text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] a.text-dark:hover,
[data-bs-theme="dark"] a.text-dark:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-secondary {
    color: #8f95a3 !important;
}

[data-theme="dark"] .border,
[data-bs-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-top,
[data-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-start,
[data-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-end {
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .footer,
[data-bs-theme="dark"] .footer,
[data-theme="dark"] footer,
[data-bs-theme="dark"] footer {
    background-color: #131419 !important;
    border-top: 1px solid #242630 !important;
    color: #8f95a3 !important;
}

/* 16. Dashboard-Specific Inline Styles Dark Mode Overrides */

/* Page Header & Border */
[data-theme="dark"] .taxi-page-header,
[data-bs-theme="dark"] .taxi-page-header,
[data-theme="dark"] .goco-page-header,
[data-bs-theme="dark"] .goco-page-header {
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] .taxi-title,
[data-bs-theme="dark"] .taxi-title,
[data-theme="dark"] .goco-title,
[data-bs-theme="dark"] .goco-title {
    color: #f8fafc !important;
}

/* Spark Items Header Bar */
[data-theme="dark"] .taxi-spark-item,
[data-bs-theme="dark"] .taxi-spark-item,
[data-theme="dark"] .goco-spark-item,
[data-bs-theme="dark"] .goco-spark-item {
    border-right-color: #2b2d37 !important;
}

[data-theme="dark"] .taxi-spark-label,
[data-bs-theme="dark"] .taxi-spark-label,
[data-theme="dark"] .goco-spark-label,
[data-bs-theme="dark"] .goco-spark-label {
    color: #8f95a3 !important;
}

[data-theme="dark"] .taxi-spark-val,
[data-bs-theme="dark"] .taxi-spark-val,
[data-theme="dark"] .goco-spark-val,
[data-bs-theme="dark"] .goco-spark-val {
    color: #34d399 !important;
}

[data-theme="dark"] .goco-spark-container,
[data-bs-theme="dark"] .goco-spark-container {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

/* Time Filter Segmented Pill */
[data-theme="dark"] .taxi-time-pill,
[data-bs-theme="dark"] .taxi-time-pill,
[data-theme="dark"] .goco-time-pill,
[data-bs-theme="dark"] .goco-time-pill {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .taxi-time-btn,
[data-bs-theme="dark"] .taxi-time-btn,
[data-theme="dark"] .goco-time-btn,
[data-bs-theme="dark"] .goco-time-btn {
    color: #8f95a3 !important;
}

[data-theme="dark"] .taxi-time-btn:hover,
[data-bs-theme="dark"] .taxi-time-btn:hover,
[data-theme="dark"] .goco-time-btn:hover,
[data-bs-theme="dark"] .goco-time-btn:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-time-btn.active,
[data-bs-theme="dark"] .taxi-time-btn.active,
[data-theme="dark"] .goco-time-btn.active,
[data-bs-theme="dark"] .goco-time-btn.active {
    background: #252834 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Widget Card (Middle 3 Analytics) Override inline background */
[data-theme="dark"] .taxi-widget-card,
[data-bs-theme="dark"] .taxi-widget-card,
[data-theme="dark"] .goco-widget-card,
[data-bs-theme="dark"] .goco-widget-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .taxi-widget-card__title,
[data-bs-theme="dark"] .taxi-widget-card__title,
[data-theme="dark"] .goco-widget-card__title,
[data-bs-theme="dark"] .goco-widget-card__title {
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-widget-card__subtitle,
[data-bs-theme="dark"] .taxi-widget-card__subtitle,
[data-theme="dark"] .goco-widget-card__subtitle,
[data-bs-theme="dark"] .goco-widget-card__subtitle {
    color: #8f95a3 !important;
}

[data-theme="dark"] .goco-stat-row,
[data-bs-theme="dark"] .goco-stat-row {
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] .goco-widget-card .text-dark,
[data-bs-theme="dark"] .goco-widget-card .text-dark {
    color: #f8fafc !important;
}

/* Stat Icons inside widget cards */
[data-theme="dark"] .taxi-stat-icon--purple,
[data-bs-theme="dark"] .taxi-stat-icon--purple,
[data-theme="dark"] .goco-stat-icon--purple,
[data-bs-theme="dark"] .goco-stat-icon--purple {
    background: rgba(147, 51, 234, 0.18) !important;
    color: #a78bfa !important;
}

[data-theme="dark"] .taxi-stat-icon--green,
[data-bs-theme="dark"] .taxi-stat-icon--green,
[data-theme="dark"] .goco-stat-icon--green,
[data-bs-theme="dark"] .goco-stat-icon--green {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .taxi-stat-icon--blue,
[data-bs-theme="dark"] .taxi-stat-icon--blue,
[data-theme="dark"] .goco-stat-icon--blue,
[data-bs-theme="dark"] .goco-stat-icon--blue {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .taxi-stat-icon--orange,
[data-bs-theme="dark"] .taxi-stat-icon--orange,
[data-theme="dark"] .goco-stat-icon--orange,
[data-bs-theme="dark"] .goco-stat-icon--orange {
    background: rgba(234, 88, 12, 0.18) !important;
    color: #fb923c !important;
}

/* Gauge Labels */
[data-theme="dark"] .taxi-gauge-value,
[data-bs-theme="dark"] .taxi-gauge-value,
[data-theme="dark"] .goco-gauge-value,
[data-bs-theme="dark"] .goco-gauge-value {
    color: #ffffff !important;
}

[data-theme="dark"] .taxi-gauge-label,
[data-bs-theme="dark"] .taxi-gauge-label,
[data-theme="dark"] .goco-gauge-label,
[data-bs-theme="dark"] .goco-gauge-label {
    color: #8f95a3 !important;
}

/* Teal Banner / Pill */
[data-theme="dark"] .taxi-banner-teal,
[data-bs-theme="dark"] .taxi-banner-teal,
[data-theme="dark"] .goco-banner-teal,
[data-bs-theme="dark"] .goco-banner-teal {
    background: rgba(13, 148, 136, 0.15) !important;
    border-color: rgba(13, 148, 136, 0.3) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .goco-banner-teal .text-dark,
[data-bs-theme="dark"] .goco-banner-teal .text-dark {
    color: #ffffff !important;
}

/* Satisfaction Stat Boxes */
[data-theme="dark"] .taxi-satisfaction-stat,
[data-bs-theme="dark"] .taxi-satisfaction-stat,
[data-theme="dark"] .goco-satisfaction-stat,
[data-bs-theme="dark"] .goco-satisfaction-stat {
    background: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .goco-satisfaction-stat .text-dark,
[data-bs-theme="dark"] .goco-satisfaction-stat .text-dark {
    color: #ffffff !important;
}

[data-theme="dark"] .goco-satisfaction-stat--dark,
[data-bs-theme="dark"] .goco-satisfaction-stat--dark {
    background: #14161d !important;
    border-color: #2b2d37 !important;
}

/* Operations Quick Cards (AI Scraper, Kanban, etc.) */
[data-theme="dark"] .taxi-ops-card,
[data-bs-theme="dark"] .taxi-ops-card,
[data-theme="dark"] .goco-ops-card,
[data-bs-theme="dark"] .goco-ops-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .taxi-ops-card:hover,
[data-bs-theme="dark"] .taxi-ops-card:hover,
[data-theme="dark"] .goco-ops-card:hover,
[data-bs-theme="dark"] .goco-ops-card:hover {
    background: #252834 !important;
    border-color: #3b3e4d !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .goco-ops-card .text-dark,
[data-bs-theme="dark"] .goco-ops-card .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .goco-ops-card .badge.bg-light,
[data-bs-theme="dark"] .goco-ops-card .badge.bg-light {
    background-color: #252834 !important;
    border-color: #3b3e4d !important;
    color: #94a3b8 !important;
}

/* Spotlight Card & Regional Radar */
[data-theme="dark"] .goco-spotlight-card,
[data-bs-theme="dark"] .goco-spotlight-card {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .goco-spotlight-card .text-dark,
[data-bs-theme="dark"] .goco-spotlight-card .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .goco-territory-box,
[data-bs-theme="dark"] .goco-territory-box,
[data-theme="dark"] .goco-deal-item,
[data-bs-theme="dark"] .goco-deal-item,
[data-theme="dark"] .goco-radar-box,
[data-bs-theme="dark"] .goco-radar-box {
    background-color: #252834 !important;
    border-color: #343746 !important;
}

[data-theme="dark"] .goco-radar-inner,
[data-bs-theme="dark"] .goco-radar-inner {
    background-color: #1e1f26 !important;
    border-color: #343746 !important;
}

/* Greeting / Hero Card */
.widget-greeting-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.widget-greeting__body {
    flex: 1;
    min-width: 0;
}

.widget-greeting__sub {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.widget-greeting__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.25;
}

.widget-greeting__desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 680px;
}

.greeting-highlight {
    font-weight: 700;
    color: #0f172a;
}

.widget-greeting__telemetry {
    flex-shrink: 0;
    text-align: right;
}

.goco-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.telemetry-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: telemetryPulse 2s infinite;
}

@keyframes telemetryPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.goco-telemetry-stat {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: right;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.telemetry-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 2px;
}

.telemetry-stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* Dark Mode Greeting Card */
[data-theme="dark"] .widget-greeting-card,
[data-bs-theme="dark"] .widget-greeting-card {
    background: linear-gradient(135deg, #1e1f26 0%, #252834 100%) !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .widget-greeting__sub,
[data-bs-theme="dark"] .widget-greeting__sub {
    color: #60a5fa !important;
}

[data-theme="dark"] .widget-greeting__title,
[data-bs-theme="dark"] .widget-greeting__title {
    color: #ffffff !important;
}

[data-theme="dark"] .widget-greeting__desc,
[data-bs-theme="dark"] .widget-greeting__desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .greeting-highlight,
[data-bs-theme="dark"] .greeting-highlight,
[data-theme="dark"] .widget-greeting-card .text-dark,
[data-bs-theme="dark"] .widget-greeting-card .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .widget-greeting-card .btn-light,
[data-bs-theme="dark"] .widget-greeting-card .btn-light {
    background-color: #252834 !important;
    border-color: #343746 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .widget-greeting-card .btn-light:hover,
[data-bs-theme="dark"] .widget-greeting-card .btn-light:hover {
    background-color: #2e3240 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .goco-telemetry-badge,
[data-bs-theme="dark"] .goco-telemetry-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .goco-telemetry-stat,
[data-bs-theme="dark"] .goco-telemetry-stat {
    background: rgba(30, 31, 38, 0.85) !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .telemetry-stat-label,
[data-bs-theme="dark"] .telemetry-stat-label {
    color: #8f95a3 !important;
}

[data-theme="dark"] .telemetry-stat-value,
[data-bs-theme="dark"] .telemetry-stat-value {
    color: #ffffff !important;
}

/* Sales Executive Leaderboard & Closers */
.goco-leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.18s ease, transform 0.18s ease;
    border-bottom: 1px solid #f1f5f9;
}

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

.goco-leaderboard-item:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

.goco-closer-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.goco-closer-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13.5px;
    color: #ffffff !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.goco-closer-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.goco-rank-pill {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.goco-rank-pill--gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff;
}

.goco-rank-pill--silver {
    background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
    color: #ffffff;
}

.goco-rank-pill--bronze {
    background: linear-gradient(135deg, #f97316 0%, #b45309 100%);
    color: #ffffff;
}

.goco-rank-pill--blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: #ffffff;
}

[data-theme="dark"] .goco-leaderboard-item,
[data-bs-theme="dark"] .goco-leaderboard-item {
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] .goco-leaderboard-item:hover,
[data-bs-theme="dark"] .goco-leaderboard-item:hover {
    background-color: #252834 !important;
}

[data-theme="dark"] .goco-closer-avatar,
[data-bs-theme="dark"] .goco-closer-avatar {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .goco-rank-pill,
[data-bs-theme="dark"] .goco-rank-pill {
    border-color: #1e1f26 !important;
}

/* Timeline */
[data-theme="dark"] .taxi-timeline-title,
[data-bs-theme="dark"] .taxi-timeline-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .taxi-timeline-desc,
[data-bs-theme="dark"] .taxi-timeline-desc {
    color: #8f95a3 !important;
}

[data-theme="dark"] .taxi-timeline-time,
[data-bs-theme="dark"] .taxi-timeline-time {
    color: #64748b !important;
}

[data-theme="dark"] .taxi-timeline-item::before,
[data-bs-theme="dark"] .taxi-timeline-item::before {
    background-color: #2b2d37 !important;
}

/* Leaderboard Items */
[data-theme="dark"] .taxi-leaderboard-item,
[data-bs-theme="dark"] .taxi-leaderboard-item {
    border-bottom-color: #2b2d37 !important;
}

/* 17. .leadBody Everywhere (Leads, Transfer, Accept, Lead Hub) */
[data-theme="dark"] .leadBody,
[data-bs-theme="dark"] .leadBody {
    background: #1e1f26 !important;
}

/* 18. AI Lead Scraper Page */
[data-theme="dark"] .scraper-stat-card,
[data-bs-theme="dark"] .scraper-stat-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .scraper-stat-card:hover,
[data-bs-theme="dark"] .scraper-stat-card:hover {
    border-color: #3b3e4d !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .mission-launcher-card,
[data-bs-theme="dark"] .mission-launcher-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .preset-query-btn,
[data-bs-theme="dark"] .preset-query-btn {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .preset-query-btn:hover,
[data-bs-theme="dark"] .preset-query-btn:hover {
    background: #1e2638 !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .compliance-shield-box,
[data-bs-theme="dark"] .compliance-shield-box {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

/* 19. Permission Page */
[data-theme="dark"] .permission-card,
[data-bs-theme="dark"] .permission-card,
[data-theme="dark"] .role-card,
[data-bs-theme="dark"] .role-card,
[data-theme="dark"] .permission-section,
[data-bs-theme="dark"] .permission-section {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

/* 20. Lead 360 Drawer / Detail Panel */
[data-theme="dark"] .lead_card-con .lead_phone a,
[data-bs-theme="dark"] .lead_card-con .lead_phone a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .lead_card-con .lead_phone a:hover,
[data-bs-theme="dark"] .lead_card-con .lead_phone a:hover {
    color: #38bdf8 !important;
}

/* 21. Miscellaneous: Container with bg-white in lead filtering */
[data-theme="dark"] .container_scroll,
[data-bs-theme="dark"] .container_scroll {
    background: #1e1f26 !important;
}

/* li.city-li used in filter lists */
[data-theme="dark"] li.city-li,
[data-bs-theme="dark"] li.city-li {
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] li.city-li:hover,
[data-bs-theme="dark"] li.city-li:hover {
    background: #252834 !important;
}

/* 22. Add/Edit Lead Page specific overrides */
[data-theme="dark"] .add-lead-card,
[data-bs-theme="dark"] .add-lead-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

/* 23. Bootstrap Overrides - Accordion */
[data-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-item {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .accordion-button {
    background-color: #1e1f26 !important;
    color: #f1f5f9 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed),
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #252834 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-button::after,
[data-bs-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(2) !important;
}

[data-theme="dark"] .accordion-body,
[data-bs-theme="dark"] .accordion-body {
    background-color: #1e1f26 !important;
    color: #f1f5f9 !important;
}

/* 24. Breadcrumb */
[data-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item {
    color: #8f95a3 !important;
}

[data-theme="dark"] .breadcrumb-item.active,
[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .breadcrumb-item a,
[data-bs-theme="dark"] .breadcrumb-item a {
    color: #60a5fa !important;
}

/* 25. List Group */
[data-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .list-group-item {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:hover {
    background-color: #252834 !important;
    color: #ffffff !important;
}

/* 26. Toast / Alert Notifications */
[data-theme="dark"] .toast,
[data-bs-theme="dark"] .toast {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .toast-header,
[data-bs-theme="dark"] .toast-header {
    background-color: #252834 !important;
    border-bottom-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

/* 27. Scrollbar styling for dark mode */
[data-theme="dark"] ::-webkit-scrollbar-track,
[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #131419 !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2b2d37 !important;
    border-radius: 4px !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3b3e4d !important;
}

/* 28. Popover */
[data-theme="dark"] .popover,
[data-bs-theme="dark"] .popover {
    background-color: #1e1f26 !important;
    border-color: #2b2d37 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .popover-header,
[data-bs-theme="dark"] .popover-header {
    background-color: #252834 !important;
    border-bottom-color: #2b2d37 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .popover-body,
[data-bs-theme="dark"] .popover-body {
    color: #cbd5e1 !important;
}

/* 29. Tooltip */
[data-theme="dark"] .tooltip-inner,
[data-bs-theme="dark"] .tooltip-inner {
    background-color: #252834 !important;
    color: #f1f5f9 !important;
}

/* 30. Progress Bar Track */
[data-theme="dark"] .progress,
[data-bs-theme="dark"] .progress {
    background-color: #252834 !important;
}

/* 31. Alert boxes */
[data-theme="dark"] .alert-info,
[data-bs-theme="dark"] .alert-info {
    background-color: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .alert-warning,
[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(234, 88, 12, 0.12) !important;
    border-color: rgba(234, 88, 12, 0.25) !important;
    color: #fdba74 !important;
}

[data-theme="dark"] .alert-danger,
[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .alert-success,
[data-bs-theme="dark"] .alert-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #6ee7b7 !important;
}

/* ==========================================================================
   30. AI LEAD SCRAPER & AGENT STYLES (Light & Dark Mode)
   ========================================================================== */
.mission-launcher-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.preset-query-btn {
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.preset-query-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.compliance-shield-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.04);
}

.mission-terminal-window {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mission-terminal-header {
    background: #111827;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1f2937;
}

.mission-terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mission-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mission-terminal-dot--red {
    background-color: #ef4444;
}

.mission-terminal-dot--yellow {
    background-color: #f59e0b;
}

.mission-terminal-dot--green {
    background-color: #10b981;
}

.mission-terminal-box {
    background: #090d16;
    color: #f8fafc;
    padding: 1.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    max-height: 240px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 5px;
    line-height: 1.55;
    word-break: break-word;
}

.terminal-line.success {
    color: #34d399;
}

.terminal-line.info {
    color: #60a5fa;
}

.terminal-line.warning {
    color: #fbbf24;
}

.terminal-line.error {
    color: #f87171;
}

.round-robin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* Dark Mode Overrides for AI Scraper */
[data-theme="dark"] .mission-launcher-card,
[data-bs-theme="dark"] .mission-launcher-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .preset-query-btn,
[data-bs-theme="dark"] .preset-query-btn {
    background: #252834 !important;
    border-color: #3b3e4d !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .preset-query-btn:hover,
[data-bs-theme="dark"] .preset-query-btn:hover {
    background: #1e3a8a !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .compliance-shield-box,
[data-bs-theme="dark"] .compliance-shield-box {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.3) 0%, #1e1f26 100%) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .compliance-shield-box .text-secondary,
[data-bs-theme="dark"] .compliance-shield-box .text-secondary {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .compliance-shield-box strong,
[data-bs-theme="dark"] .compliance-shield-box strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .round-robin-card,
[data-bs-theme="dark"] .round-robin-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .mission-terminal-window,
[data-bs-theme="dark"] .mission-terminal-window {
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .mission-terminal-header,
[data-bs-theme="dark"] .mission-terminal-header {
    background: #151821 !important;
    border-bottom-color: #242630 !important;
}

[data-theme="dark"] .mission-terminal-box,
[data-bs-theme="dark"] .mission-terminal-box {
    background: #0d0f14 !important;
}

/* ==========================================================================
   31. Roles & Permissions Management Console (Dark Mode Overrides)
   ========================================================================== */
[data-theme="dark"] .perm-nav-container,
[data-bs-theme="dark"] .perm-nav-container {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .perm-console-header,
[data-bs-theme="dark"] .perm-console-header {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .perm-nav-pill,
[data-bs-theme="dark"] .perm-nav-pill {
    color: #94a3b8 !important;
}

[data-theme="dark"] .perm-nav-pill:hover,
[data-bs-theme="dark"] .perm-nav-pill:hover {
    color: #f1f5f9 !important;
    background: #252834 !important;
}

[data-theme="dark"] .perm-nav-pill.active,
[data-bs-theme="dark"] .perm-nav-pill.active {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}

[data-theme="dark"] .perm-category-card,
[data-bs-theme="dark"] .perm-category-card {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .perm-category-header,
[data-bs-theme="dark"] .perm-category-header {
    background: #161822 !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .perm-category-header h6,
[data-bs-theme="dark"] .perm-category-header h6 {
    color: #f8fafc !important;
}

[data-theme="dark"] .perm-category-header .text-muted,
[data-bs-theme="dark"] .perm-category-header .text-muted {
    color: #8f95a3 !important;
}

[data-theme="dark"] .perm-category-header .text-secondary,
[data-bs-theme="dark"] .perm-category-header .text-secondary {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .perm-category-icon,
[data-bs-theme="dark"] .perm-category-icon {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #818cf8 !important;
}

[data-theme="dark"] .perm-item-tile,
[data-bs-theme="dark"] .perm-item-tile {
    background: #171821 !important;
    border-color: #282a36 !important;
}

[data-theme="dark"] .perm-item-tile:hover,
[data-bs-theme="dark"] .perm-item-tile:hover {
    background: #222532 !important;
    border-color: #3b3f52 !important;
}

[data-theme="dark"] .perm-item-label,
[data-bs-theme="dark"] .perm-item-label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .perm-item-tile:hover .perm-item-label,
[data-bs-theme="dark"] .perm-item-tile:hover .perm-item-label {
    color: #ffffff !important;
}

[data-theme="dark"] .perm-item-tile.checked-tile,
[data-bs-theme="dark"] .perm-item-tile.checked-tile {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

[data-theme="dark"] .perm-item-tile.checked-tile .perm-item-label,
[data-bs-theme="dark"] .perm-item-tile.checked-tile .perm-item-label {
    color: #34d399 !important;
}

[data-theme="dark"] .perm-sticky-bar,
[data-bs-theme="dark"] .perm-sticky-bar {
    background: rgba(22, 24, 33, 0.95) !important;
    border: 1px solid #2b2d37 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   2026 Executive Lead Profile Print & PDF Styles
   ========================================================================== */
@media print {

    .sidebar,
    .navbar-header,
    .btn,
    .nav-tabs,
    #commandItemsContainer,
    .lead_card-con,
    #searchForm,
    .container_scroll,
    .card-header,
    .input-group,
    .dataTables_wrapper,
    .modal,
    .offcanvas,
    #mobile_btn,
    .twenty-time-pill,
    .d-none.d-md-flex {
        display: none !important;
    }

    body,
    html,
    .page-wrapper,
    .main-wrapper,
    .content {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .leadDetails {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .leadDetails .tab-content>.tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 24px !important;
    }

    .leadDetails .timeline {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==========================================================================
   AESTHETIC FOLLOW-UP CALLBACKS DROPDOWN NOTIFICATION
   ========================================================================== */
.followup-dropdown-menu {
    width: 380px !important;
    max-width: 95vw !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
    padding: 0 !important;
}

.followup-header-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%) !important;
    padding: 18px 18px 16px 18px !important;
    position: relative;
}

.followup-header-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.followup-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.followup-header-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.followup-total-badge {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

/* Glass Segmented Tab Bar */
.followup-tabs-track {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 3px !important;
    border-radius: 12px !important;
    display: flex !important;
    gap: 3px !important;
    margin-top: 14px !important;
}

.followup-tab-btn {
    flex: 1 1 0;
    padding: 6px 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
}

.followup-tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.followup-tab-btn.active-tab {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.followup-tab-count {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
}

.followup-tab-btn.active-tab .followup-tab-count {
    background: #0f172a;
    color: #ffffff;
}

/* Reminders List Body */
.followup-list-body {
    background: #f8fafc !important;
    padding: 12px !important;
    max-height: 330px !important;
    overflow-y: auto !important;
    position: relative;
}

.followup-list-body::-webkit-scrollbar {
    width: 5px;
}

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

/* Aesthetic Callback Card */
.callback-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 14px 12px 16px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden !important;
}

.callback-card:last-child {
    margin-bottom: 0 !important;
}

.callback-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.callback-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3.5px;
    z-index: 2;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.callback-card.overdue-border::before {
    background: #ef4444 !important;
}

.callback-card.today-border::before {
    background: #f59e0b !important;
}

.callback-card.upcoming-border::before {
    background: #10b981 !important;
}

.callback-lead-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.15s;
}

.callback-lead-name:hover {
    color: #2563eb !important;
}

.callback-lead-company {
    font-size: 11.5px !important;
    color: #64748b !important;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Time Badges */
.badge-time-overdue {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
}

.badge-time-today {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
}

.badge-time-upcoming {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
}

/* Action Buttons */
.btn-cb-call {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.btn-cb-call:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: scale(1.06) !important;
}

.btn-cb-wa {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.btn-cb-wa:hover {
    background: #1eb857 !important;
    color: #ffffff !important;
    transform: scale(1.06) !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4) !important;
}

.btn-cb-snooze {
    padding: 5px 11px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s !important;
}

.btn-cb-snooze:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-cb-done {
    padding: 5px 13px !important;
    border-radius: 8px !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1.5px solid #22c55e !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer;
    transition: all 0.2s !important;
}

.btn-cb-done:hover {
    background: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25) !important;
    transform: scale(1.02) !important;
}

[data-theme="dark"] .btn-cb-snooze,
[data-bs-theme="dark"] .btn-cb-snooze {
    background: #252834 !important;
    border: 1px solid #3b3e4d !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-cb-snooze:hover,
[data-bs-theme="dark"] .btn-cb-snooze:hover {
    background: #323546 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-cb-done,
[data-bs-theme="dark"] .btn-cb-done {
    background: rgba(34, 197, 94, 0.16) !important;
    border: 1.5px solid rgba(34, 197, 94, 0.38) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .btn-cb-done:hover,
[data-bs-theme="dark"] .btn-cb-done:hover {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

/* Footer CTA */
.followup-footer-card {
    background: #ffffff !important;
    padding: 12px 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

[data-theme="dark"] .followup-footer-card,
[data-bs-theme="dark"] .followup-footer-card {
    background: #181920 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-cb-agenda {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 11px 16px !important;
    width: 100% !important;
    border: 1px solid #1d4ed8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.btn-cb-agenda:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38) !important;
    transform: translateY(-1px) !important;
}

.btn-cb-agenda i {
    transition: transform 0.2s ease;
}

.btn-cb-agenda:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   Flatpickr Calendar - Modern Twenty Aesthetic Design
   ========================================================================== */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
    font-family: var(--twenty-font, 'Plus Jakarta Sans', -apple-system, sans-serif) !important;
    padding: 8px 10px 12px !important;
    width: 310px !important;
    z-index: 99999 !important;
    margin-top: 4px !important;
    overflow: hidden !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none !important;
}

/* Month & Navigation Header */
.flatpickr-months {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 4px 8px !important;
    position: relative !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #0f172a !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    cursor: pointer !important;
    outline: none !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.flatpickr-current-month .numInputWrapper {
    width: 65px !important;
    display: inline-block !important;
}

.flatpickr-current-month input.cur-year {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

.flatpickr-current-month input.cur-year:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Nav Chevrons */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    fill: #475569 !important;
    padding: 0 !important;
    top: 8px !important;
    transition: all 0.15s ease !important;
}

.flatpickr-months .flatpickr-prev-month {
    left: 8px !important;
}

.flatpickr-months .flatpickr-next-month {
    right: 8px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
    fill: #2563eb !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 12px !important;
    height: 12px !important;
}

/* Weekday Labels (Subtle & Elegant Slate, NOT Harsh Blue) */
.flatpickr-weekdays {
    height: 28px !important;
    margin-top: 4px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 2px !important;
}

span.flatpickr-weekday {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    background: transparent !important;
}

/* Day Containers & Cells */
.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 4px 0 0 !important;
    justify-content: space-around !important;
}

.flatpickr-day {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    max-width: 36px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    border: 1px solid transparent !important;
    margin: 2px !important;
    transition: all 0.15s ease !important;
}

.flatpickr-day:hover {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Today Highlight */
.flatpickr-day.today {
    border-color: #2563eb !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    background: #eff6ff !important;
}

.flatpickr-day.today:hover {
    background: #dbeafe !important;
}

/* Selected Date Highlight */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35) !important;
}

.flatpickr-day.inRange {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #cbd5e1 !important;
    background: transparent !important;
    cursor: not-allowed !important;
}

/* Time Picker Styling */
.flatpickr-time {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.flatpickr-time input {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.flatpickr-time .flatpickr-am-pm {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

/* ==========================================================================
   Modern In-App Response & Alert Dialogs (Twenty CRM Aesthetic)
   ========================================================================== */
.twenty-modal-popup {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px -4px rgba(15, 23, 42, 0.16), 0 8px 16px -2px rgba(15, 23, 42, 0.06) !important;
    padding: 1.5rem 1.75rem !important;
    font-family: var(--twenty-font, 'Plus Jakarta Sans', sans-serif) !important;
    max-width: 420px !important;
}

.twenty-modal-popup .swal2-icon {
    margin: 0.5rem auto 1rem !important;
    transform: scale(0.9) !important;
}

.twenty-modal-popup .swal2-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

.twenty-modal-popup .swal2-html-container {
    font-size: 0.875rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

.twenty-toast-popup {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--twenty-font, 'Plus Jakarta Sans', sans-serif) !important;
}

.twenty-toast-popup .swal2-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   Manage Leads - Aesthetic Split View & Scroll Container
   ========================================================================== */
.container_scroll {
    max-height: calc(100vh - 270px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 14px !important;
    border: 1px solid var(--twenty-border, #e4e4e7) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    scroll-behavior: smooth !important;
}

.container_scroll::-webkit-scrollbar {
    width: 6px;
}

.container_scroll::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.container_scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

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

.lead_card-con {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
}

.lead_card-con:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.lead_card-con.active-lead {
    background: #f8faff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12) !important;
}

.lead_card-con.active-lead::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2563eb;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.lead-quick-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.lead-quick-btn:hover {
    transform: scale(1.08);
}

.lead-quick-btn.call:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.lead-quick-btn.wa:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.lead-quick-btn.mail:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
}

/* ==========================================================================
   Global Search Bar & Filter Popover Dark Mode Overrides
   ========================================================================== */
[data-theme="dark"] .feed-search-bar,
[data-bs-theme="dark"] .feed-search-bar {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .feed-search-bar:focus-within,
[data-bs-theme="dark"] .feed-search-bar:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

[data-theme="dark"] .feed-search-bar input,
[data-bs-theme="dark"] .feed-search-bar input {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .feed-search-bar input::placeholder,
[data-bs-theme="dark"] .feed-search-bar input::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .btn-feed-tool,
[data-bs-theme="dark"] .btn-feed-tool {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-feed-tool:hover,
[data-bs-theme="dark"] .btn-feed-tool:hover {
    background: #252834 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .btn-feed-tool.has-active,
[data-bs-theme="dark"] .btn-feed-tool.has-active {
    color: #60a5fa !important;
    background: #1e2638 !important;
}

[data-theme="dark"] .filter-popover-menu,
[data-bs-theme="dark"] .filter-popover-menu {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .filter-popover-header,
[data-bs-theme="dark"] .filter-popover-header {
    border-bottom-color: #2b2d37 !important;
}

[data-theme="dark"] .filter-popover-header .text-dark,
[data-bs-theme="dark"] .filter-popover-header .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .filter-section-title,
[data-bs-theme="dark"] .filter-section-title {
    color: #8f95a3 !important;
}

[data-theme="dark"] .filter-field-label,
[data-bs-theme="dark"] .filter-field-label {
    color: #8f95a3 !important;
}

[data-theme="dark"] .date-preset-chip,
[data-bs-theme="dark"] .date-preset-chip {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .date-preset-chip:hover,
[data-bs-theme="dark"] .date-preset-chip:hover {
    background: #2e3240 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .date-preset-chip.active,
[data-bs-theme="dark"] .date-preset-chip.active {
    background: #1e2638 !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .aesthetic-date-clean,
[data-bs-theme="dark"] .aesthetic-date-clean {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .aesthetic-date-clean:focus,
[data-bs-theme="dark"] .aesthetic-date-clean:focus {
    background: #1e1f26 !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .aesthetic-select-trigger,
[data-bs-theme="dark"] .aesthetic-select-trigger {
    background-color: #252834 !important;
    border-color: #343746 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .aesthetic-select-trigger:hover,
[data-bs-theme="dark"] .aesthetic-select-trigger:hover {
    background-color: #2e3240 !important;
    border-color: #3b3e4d !important;
}

[data-theme="dark"] .aesthetic-select-trigger.active-dropdown,
[data-bs-theme="dark"] .aesthetic-select-trigger.active-dropdown {
    background-color: #1e1f26 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
}

[data-theme="dark"] .aesthetic-select-trigger.has-value,
[data-bs-theme="dark"] .aesthetic-select-trigger.has-value {
    background-color: #1e2638 !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .aesthetic-select-menu,
[data-bs-theme="dark"] .aesthetic-select-menu {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
    box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .aesthetic-select-item,
[data-bs-theme="dark"] .aesthetic-select-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .aesthetic-select-item:hover,
[data-bs-theme="dark"] .aesthetic-select-item:hover {
    background-color: #252834 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .aesthetic-select-item.active,
[data-bs-theme="dark"] .aesthetic-select-item.active {
    background-color: #1e2638 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .filter-status-chip,
[data-bs-theme="dark"] .filter-status-chip {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .filter-status-chip:hover,
[data-bs-theme="dark"] .filter-status-chip:hover {
    background: #2e3240 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .filter-status-chip.active,
[data-bs-theme="dark"] .filter-status-chip.active {
    background: #1e2638 !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .lead_card-con,
[data-bs-theme="dark"] .lead_card-con {
    background: #1e1f26 !important;
    border-color: #2b2d37 !important;
}

[data-theme="dark"] .lead_card-con:hover,
[data-bs-theme="dark"] .lead_card-con:hover {
    background: #252834 !important;
    border-color: #3b3e4d !important;
}

[data-theme="dark"] .lead_card-con.active-lead,
[data-bs-theme="dark"] .lead_card-con.active-lead {
    background: #1e2638 !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .lead-quick-btn,
[data-bs-theme="dark"] .lead-quick-btn {
    background: #252834 !important;
    border-color: #343746 !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   DARK MODE: MASTER-DETAIL LEADS WORKSPACE & 360° LEAD DETAILS
   ========================================================================== */
[data-theme="dark"] .master-detail-workspace,
[data-bs-theme="dark"] .master-detail-workspace,
body.dark-mode .master-detail-workspace {
    background-color: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: #f1f5f9 !important;
}

/* Master Feed Pane */
[data-theme="dark"] .master-feed-pane,
[data-bs-theme="dark"] .master-feed-pane,
body.dark-mode .master-feed-pane {
    background-color: #181920 !important;
    border-right-color: #282a35 !important;
}

[data-theme="dark"] .master-feed-header,
[data-bs-theme="dark"] .master-feed-header,
body.dark-mode .master-feed-header {
    background-color: #181920 !important;
    border-bottom-color: #282a35 !important;
}

/* Feed Search Bar */
[data-theme="dark"] .feed-search-bar,
[data-bs-theme="dark"] .feed-search-bar {
    background-color: #20222b !important;
    border-color: #2e3240 !important;
}

[data-theme="dark"] .feed-search-bar input,
[data-bs-theme="dark"] .feed-search-bar input {
    color: #f1f5f9 !important;
    background: transparent !important;
}

[data-theme="dark"] .feed-search-bar input::placeholder,
[data-bs-theme="dark"] .feed-search-bar input::placeholder {
    color: #64748b !important;
}

/* Feed List Items */
[data-theme="dark"] .feed-company-item,
[data-bs-theme="dark"] .feed-company-item,
[data-theme="dark"] .feed-lead-item,
[data-bs-theme="dark"] .feed-lead-item {
    background-color: #181920 !important;
    border-bottom-color: #22242f !important;
}

[data-theme="dark"] .feed-company-item:hover,
[data-bs-theme="dark"] .feed-company-item:hover,
[data-theme="dark"] .feed-lead-item:hover,
[data-bs-theme="dark"] .feed-lead-item:hover {
    background-color: #20222b !important;
}

[data-theme="dark"] .feed-company-item.active-company,
[data-bs-theme="dark"] .feed-company-item.active-company,
[data-theme="dark"] .feed-company-item.active-lead,
[data-bs-theme="dark"] .feed-company-item.active-lead,
[data-theme="dark"] .feed-lead-item.active-lead,
[data-bs-theme="dark"] .feed-lead-item.active-lead {
    background-color: #232d42 !important;
    border-left-color: #3b82f6 !important;
}

[data-theme="dark"] .feed-item-name,
[data-bs-theme="dark"] .feed-item-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .feed-lead-item a.text-dark,
[data-bs-theme="dark"] .feed-lead-item a.text-dark,
[data-theme="dark"] .feed-item-content a.text-dark,
[data-bs-theme="dark"] .feed-item-content a.text-dark {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .feed-lead-item .text-dark,
[data-bs-theme="dark"] .feed-lead-item .text-dark {
    color: #f1f5f9 !important;
}

/* DataTables in Feed */
[data-theme="dark"] #serverTbl tbody,
[data-bs-theme="dark"] #serverTbl tbody,
[data-theme="dark"] #serverTbl tr,
[data-bs-theme="dark"] #serverTbl tr,
[data-theme="dark"] #serverTbl td,
[data-bs-theme="dark"] #serverTbl td {
    background: transparent !important;
}

[data-theme="dark"] #serverTbl_info,
[data-bs-theme="dark"] #serverTbl_info {
    color: #94a3b8 !important;
}

[data-theme="dark"] #serverTbl_paginate .page-link,
[data-bs-theme="dark"] #serverTbl_paginate .page-link,
[data-theme="dark"] #serverTbl_paginate .paginate_button a,
[data-bs-theme="dark"] #serverTbl_paginate .paginate_button a {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] #serverTbl_paginate .page-link:hover,
[data-bs-theme="dark"] #serverTbl_paginate .page-link:hover {
    background: #282b37 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] #serverTbl_paginate .page-item.active .page-link,
[data-bs-theme="dark"] #serverTbl_paginate .page-item.active .page-link,
[data-theme="dark"] #serverTbl_paginate .paginate_button.current,
[data-bs-theme="dark"] #serverTbl_paginate .paginate_button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Speed Triage Footer Bar */
[data-theme="dark"] .feed-triage-bar,
[data-bs-theme="dark"] .feed-triage-bar {
    background-color: #181920 !important;
    border-top-color: #282a35 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .feed-triage-bar kbd,
[data-bs-theme="dark"] .feed-triage-bar kbd {
    background-color: #252834 !important;
    border-color: #353849 !important;
    color: #f1f5f9 !important;
}

/* Right Detail Pane */
[data-theme="dark"] .master-detail-pane,
[data-bs-theme="dark"] .master-detail-pane,
[data-theme="dark"] .leadDetails,
[data-bs-theme="dark"] .leadDetails {
    background-color: #181920 !important;
}

/* Detail Top Toolbar */
[data-theme="dark"] .detail-top-toolbar,
[data-bs-theme="dark"] .detail-top-toolbar {
    background-color: #181920 !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .lead-due-tag,
[data-bs-theme="dark"] .lead-due-tag {
    background-color: #20222b !important;
    border-color: #2e3240 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-tb-wa,
[data-bs-theme="dark"] .btn-tb-wa {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .btn-tb-wa:hover,
[data-bs-theme="dark"] .btn-tb-wa:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

[data-theme="dark"] .btn-tb-ghost,
[data-bs-theme="dark"] .btn-tb-ghost,
[data-theme="dark"] .btn-tb-icon,
[data-bs-theme="dark"] .btn-tb-icon {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-tb-ghost:hover,
[data-bs-theme="dark"] .btn-tb-ghost:hover,
[data-theme="dark"] .btn-tb-icon:hover,
[data-bs-theme="dark"] .btn-tb-icon:hover {
    background-color: #282b37 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .detail-top-toolbar .dropdown-menu,
[data-bs-theme="dark"] .detail-top-toolbar .dropdown-menu {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .detail-top-toolbar .dropdown-item,
[data-bs-theme="dark"] .detail-top-toolbar .dropdown-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .detail-top-toolbar .dropdown-item:hover,
[data-bs-theme="dark"] .detail-top-toolbar .dropdown-item:hover {
    background-color: #282b37 !important;
    color: #f8fafc !important;
}

/* Detail Hero Section */
[data-theme="dark"] .detail-hero-section,
[data-bs-theme="dark"] .detail-hero-section {
    background-color: #181920 !important;
}

[data-theme="dark"] .detail-main-title,
[data-bs-theme="dark"] .detail-main-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .detail-hero-section .text-dark,
[data-bs-theme="dark"] .detail-hero-section .text-dark {
    color: #f1f5f9 !important;
}

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

/* Featured Contact Card */
[data-theme="dark"] .featured-contact-card,
[data-bs-theme="dark"] .featured-contact-card,
[data-theme="dark"] .featured-vehicle-card,
[data-bs-theme="dark"] .featured-vehicle-card {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
}

[data-theme="dark"] .featured-contact-card .text-dark,
[data-bs-theme="dark"] .featured-contact-card .text-dark,
[data-theme="dark"] .featured-vehicle-card .text-dark,
[data-bs-theme="dark"] .featured-vehicle-card .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .featured-contact-card a.text-dark,
[data-bs-theme="dark"] .featured-contact-card a.text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .featured-contact-card a.text-secondary,
[data-bs-theme="dark"] .featured-contact-card a.text-secondary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .featured-contact-card .btn-outline-success,
[data-bs-theme="dark"] .featured-contact-card .btn-outline-success {
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

[data-theme="dark"] .featured-contact-card .btn-outline-primary,
[data-bs-theme="dark"] .featured-contact-card .btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .featured-contact-card .btn-outline-info,
[data-bs-theme="dark"] .featured-contact-card .btn-outline-info {
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #38bdf8 !important;
    background: rgba(6, 182, 212, 0.1) !important;
}

[data-theme="dark"] .featured-contact-card .btn-outline-warning,
[data-bs-theme="dark"] .featured-contact-card .btn-outline-warning {
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #fbbf24 !important;
    background: rgba(234, 179, 8, 0.1) !important;
}

/* Key-Value Attribute Rows */
[data-theme="dark"] .attribute-label-col,
[data-bs-theme="dark"] .attribute-label-col {
    color: #94a3b8 !important;
}

[data-theme="dark"] .attribute-value-col,
[data-bs-theme="dark"] .attribute-value-col {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .attr-action-cluster,
[data-bs-theme="dark"] .attr-action-cluster {
    background-color: #252834 !important;
    border-color: #353849 !important;
}

[data-theme="dark"] .attr-action-cluster:hover,
[data-bs-theme="dark"] .attr-action-cluster:hover {
    background-color: #2d3140 !important;
    border-color: #40455a !important;
}

[data-theme="dark"] .attr-action-btn,
[data-bs-theme="dark"] .attr-action-btn {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .attr-action-btn:hover,
[data-bs-theme="dark"] .attr-action-btn:hover {
    background-color: #353849 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .attr-action-divider,
[data-bs-theme="dark"] .attr-action-divider {
    background-color: #353849 !important;
}

/* Activity Center & Capsule Tabs */
[data-theme="dark"] .lead-activity-center,
[data-bs-theme="dark"] .lead-activity-center {
    background-color: #1a1c24 !important;
    border-color: #282a35 !important;
}

[data-theme="dark"] .btn-capsule-tab,
[data-bs-theme="dark"] .btn-capsule-tab {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-capsule-tab:hover,
[data-bs-theme="dark"] .btn-capsule-tab:hover {
    background-color: #282b37 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .btn-capsule-tab.active-capsule,
[data-bs-theme="dark"] .btn-capsule-tab.active-capsule,
[data-theme="dark"] .btn-capsule-tab.active,
[data-bs-theme="dark"] .btn-capsule-tab.active {
    background-color: #232d42 !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

/* Quick Note Composer */
[data-theme="dark"] .lead-quick-composer,
[data-bs-theme="dark"] .lead-quick-composer {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
}

[data-theme="dark"] .lead-quick-composer .text-dark,
[data-bs-theme="dark"] .lead-quick-composer .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .composer-textarea,
[data-bs-theme="dark"] .composer-textarea {
    background-color: #181920 !important;
    border-color: #2e3240 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .composer-textarea:focus,
[data-bs-theme="dark"] .composer-textarea:focus {
    border-color: #3b82f6 !important;
    background-color: #1c1e27 !important;
}

[data-theme="dark"] .btn-composer-tag,
[data-bs-theme="dark"] .btn-composer-tag {
    background-color: #252834 !important;
    border-color: #353849 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-composer-tag:hover,
[data-bs-theme="dark"] .btn-composer-tag:hover {
    background-color: #2e3242 !important;
    color: #ffffff !important;
}

/* Timeline Track & Cards */
[data-theme="dark"] .crm-timeline-track::before,
[data-bs-theme="dark"] .crm-timeline-track::before {
    background-color: #2e3240 !important;
}

[data-theme="dark"] .crm-timeline-dot,
[data-bs-theme="dark"] .crm-timeline-dot {
    background-color: #20222b !important;
    border-color: #353849 !important;
    box-shadow: 0 0 0 3px #181920 !important;
}

[data-theme="dark"] .crm-timeline-card,
[data-bs-theme="dark"] .crm-timeline-card {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .crm-timeline-card.milestone-card,
[data-bs-theme="dark"] .crm-timeline-card.milestone-card {
    background-color: #1c1f2b !important;
    border-color: #2f3240 !important;
}

[data-theme="dark"] .crm-timeline-card .text-dark,
[data-bs-theme="dark"] .crm-timeline-card .text-dark {
    color: #f8fafc !important;
}

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

[data-theme="dark"] .crm-timeline-card .text-secondary,
[data-bs-theme="dark"] .crm-timeline-card .text-secondary {
    color: #cbd5e1 !important;
}

/* Fallback for white surfaces in dark workspace */
[data-theme="dark"] .leadDetails .bg-white,
[data-bs-theme="dark"] .leadDetails .bg-white,
[data-theme="dark"] .master-detail-workspace .bg-white,
[data-bs-theme="dark"] .master-detail-workspace .bg-white {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .leadDetails .bg-light,
[data-bs-theme="dark"] .leadDetails .bg-light,
[data-theme="dark"] .master-detail-workspace .bg-light,
[data-bs-theme="dark"] .master-detail-workspace .bg-light {
    background-color: #252834 !important;
    border-color: #353849 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .leadDetails .text-dark,
[data-bs-theme="dark"] .leadDetails .text-dark,
[data-theme="dark"] .master-detail-workspace .text-dark,
[data-bs-theme="dark"] .master-detail-workspace .text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .leadDetails .border,
[data-bs-theme="dark"] .leadDetails .border,
[data-theme="dark"] .master-detail-workspace .border,
[data-bs-theme="dark"] .master-detail-workspace .border {
    border-color: #282a35 !important;
}

/* Status Pill Dark Mode */
[data-theme="dark"] .status-pill-approved,
[data-bs-theme="dark"] .status-pill-approved {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .status-pill-active,
[data-bs-theme="dark"] .status-pill-active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .status-pill-pending,
[data-bs-theme="dark"] .status-pill-pending {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
}

[data-theme="dark"] .status-pill-documents,
[data-bs-theme="dark"] .status-pill-documents {
    background: rgba(147, 51, 234, 0.15) !important;
    color: #c084fc !important;
    border-color: rgba(147, 51, 234, 0.3) !important;
}

[data-theme="dark"] .status-pill-rejected,
[data-theme="dark"] .status-pill-inactive,
[data-bs-theme="dark"] .status-pill-rejected,
[data-bs-theme="dark"] .status-pill-inactive {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Kanban Dark Mode Support */
[data-theme="dark"] .kanban-column,
[data-bs-theme="dark"] .kanban-column {
    background: #181920 !important;
    border-color: #282a35 !important;
}

[data-theme="dark"] .kanban-column-header,
[data-bs-theme="dark"] .kanban-column-header {
    background: #20222b !important;
    border-color: #282a35 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .kanban-card,
[data-bs-theme="dark"] .kanban-card {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .kanban-card:hover,
[data-bs-theme="dark"] .kanban-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .kanban-card .text-dark,
[data-bs-theme="dark"] .kanban-card .text-dark {
    color: #f8fafc !important;
}

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

/* ==========================================================================
   DARK MODE: TRANSFER LEADS
   ========================================================================== */
[data-theme="dark"] .tl-hero-card,
[data-bs-theme="dark"] .tl-hero-card,
body.dark-mode .tl-hero-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .tl-badge-icon,
[data-bs-theme="dark"] .tl-badge-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.3) 100%) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .tl-btn-secondary,
[data-bs-theme="dark"] .tl-btn-secondary {
    background: #20222b !important;
    border-color: #2f3240 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .tl-btn-secondary:hover,
[data-bs-theme="dark"] .tl-btn-secondary:hover {
    background: #282b37 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-filter-card,
[data-bs-theme="dark"] .tl-filter-card,
body.dark-mode .tl-filter-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .tl-filter-header,
[data-bs-theme="dark"] .tl-filter-header {
    background: #20222b !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .tl-filter-header .text-dark,
[data-bs-theme="dark"] .tl-filter-header .text-dark {
    color: #f8fafc !important;
}

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

[data-theme="dark"] .tl-label,
[data-bs-theme="dark"] .tl-label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .tl-table-card,
[data-bs-theme="dark"] .tl-table-card,
body.dark-mode .tl-table-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .tl-table-header,
[data-bs-theme="dark"] .tl-table-header {
    background: #20222b !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .tl-table-header .text-dark,
[data-bs-theme="dark"] .tl-table-header .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-counter-badge,
[data-bs-theme="dark"] .tl-counter-badge {
    background: #232d42 !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .tl-scroll-viewport,
[data-bs-theme="dark"] .tl-scroll-viewport {
    background: #181920 !important;
}

[data-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-track,
[data-bs-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-track {
    background: #181920 !important;
}

[data-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-thumb {
    background: #2e3240 !important;
}

[data-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .tl-scroll-viewport::-webkit-scrollbar-thumb:hover {
    background: #3b3e4d !important;
}

[data-theme="dark"] #serTbl thead th,
[data-bs-theme="dark"] #serTbl thead th {
    background: rgba(32, 34, 43, 0.98) !important;
    color: #94a3b8 !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] #serTbl tbody td,
[data-bs-theme="dark"] #serTbl tbody td {
    background-color: #181920 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #22242f !important;
}

[data-theme="dark"] #serTbl tbody tr:hover td,
[data-bs-theme="dark"] #serTbl tbody tr:hover td {
    background-color: #20222b !important;
}

[data-theme="dark"] #serTbl tbody tr.row-selected td,
[data-bs-theme="dark"] #serTbl tbody tr.row-selected td {
    background-color: #232d42 !important;
}

[data-theme="dark"] #serTbl_wrapper .dataTables_length,
[data-bs-theme="dark"] #serTbl_wrapper .dataTables_length,
[data-theme="dark"] #serTbl_wrapper .dataTables_filter,
[data-bs-theme="dark"] #serTbl_wrapper .dataTables_filter {
    color: #94a3b8 !important;
}

[data-theme="dark"] #serTbl_wrapper,
[data-bs-theme="dark"] #serTbl_wrapper {
    background: #181920 !important;
}

[data-theme="dark"] #serTbl_info,
[data-bs-theme="dark"] #serTbl_info {
    color: #94a3b8 !important;
}

[data-theme="dark"] #serTbl_paginate .page-link,
[data-bs-theme="dark"] #serTbl_paginate .page-link,
[data-theme="dark"] #serTbl_paginate .paginate_button a,
[data-bs-theme="dark"] #serTbl_paginate .paginate_button a {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] #serTbl_paginate .page-link:hover,
[data-bs-theme="dark"] #serTbl_paginate .page-link:hover {
    background: #282b37 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] #serTbl_paginate .page-item.active .page-link,
[data-bs-theme="dark"] #serTbl_paginate .page-item.active .page-link,
[data-theme="dark"] #serTbl_paginate .paginate_button.current,
[data-bs-theme="dark"] #serTbl_paginate .paginate_button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .tl-action-card,
[data-bs-theme="dark"] .tl-action-card,
body.dark-mode .tl-action-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    border-top: 3px solid #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .tl-action-header,
[data-bs-theme="dark"] .tl-action-header {
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .tl-action-title,
[data-bs-theme="dark"] .tl-action-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-action-bar,
[data-bs-theme="dark"] .tl-action-bar {
    background: #20222b !important;
    border-color: #282a35 !important;
}

[data-theme="dark"] .transfer-page-wrapper .text-dark,
[data-bs-theme="dark"] .transfer-page-wrapper .text-dark {
    color: #f8fafc !important;
}

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

[data-theme="dark"] .transfer-page-wrapper .dropdown-menu,
[data-bs-theme="dark"] .transfer-page-wrapper .dropdown-menu {
    background-color: #20222b !important;
    border-color: #2f3240 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .transfer-page-wrapper .dropdown-item,
[data-bs-theme="dark"] .transfer-page-wrapper .dropdown-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .transfer-page-wrapper .dropdown-item:hover,
[data-bs-theme="dark"] .transfer-page-wrapper .dropdown-item:hover {
    background-color: #282b37 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   DARK MODE: AI LEAD SCRAPER
   ========================================================================= */
[data-theme="dark"] .scraper-hero-card,
[data-bs-theme="dark"] .scraper-hero-card,
body.dark-mode .scraper-hero-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .scraper-hero-card::after,
[data-bs-theme="dark"] .scraper-hero-card::after {
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 70%) !important;
}

[data-theme="dark"] .scraper-hero-icon,
[data-bs-theme="dark"] .scraper-hero-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.3) 100%) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* 4 Metric / KPI Cards */
[data-theme="dark"] .scraper-kpi-card,
[data-bs-theme="dark"] .scraper-kpi-card,
body.dark-mode .scraper-kpi-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .scraper-kpi-card:hover,
[data-bs-theme="dark"] .scraper-kpi-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .scraper-kpi--blue .scraper-kpi-icon,
[data-bs-theme="dark"] .scraper-kpi--blue .scraper-kpi-icon {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .scraper-kpi--green .scraper-kpi-icon,
[data-bs-theme="dark"] .scraper-kpi--green .scraper-kpi-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .scraper-kpi--purple .scraper-kpi-icon,
[data-bs-theme="dark"] .scraper-kpi--purple .scraper-kpi-icon {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #a78bfa !important;
}

[data-theme="dark"] .scraper-kpi--amber .scraper-kpi-icon,
[data-bs-theme="dark"] .scraper-kpi--amber .scraper-kpi-icon {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .scraper-kpi-label,
[data-bs-theme="dark"] .scraper-kpi-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .scraper-kpi-value,
[data-bs-theme="dark"] .scraper-kpi-value {
    color: #f8fafc !important;
}

/* Mission Launcher & Side Cards */
[data-theme="dark"] .mission-launcher-card,
[data-bs-theme="dark"] .mission-launcher-card,
body.dark-mode .mission-launcher-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .preset-chip-btn,
[data-bs-theme="dark"] .preset-chip-btn {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .preset-chip-btn:hover,
[data-bs-theme="dark"] .preset-chip-btn:hover {
    background: #282b37 !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .scraper-input-icon,
[data-bs-theme="dark"] .scraper-input-icon {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .compliance-shield-box,
[data-bs-theme="dark"] .compliance-shield-box {
    background: linear-gradient(180deg, #181920 0%, rgba(16, 185, 129, 0.08) 100%) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .round-robin-card,
[data-bs-theme="dark"] .round-robin-card {
    background: #181920 !important;
    border-color: #282a35 !important;
}

/* Scraper Tables & Queue */
[data-theme="dark"] .scraper-table-card,
[data-bs-theme="dark"] .scraper-table-card,
body.dark-mode .scraper-table-card {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .scraper-table-header,
[data-bs-theme="dark"] .scraper-table-header {
    background: #20222b !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .scraper-table-title,
[data-bs-theme="dark"] .scraper-table-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .scraper-table-subtitle,
[data-bs-theme="dark"] .scraper-table-subtitle {
    color: #94a3b8 !important;
}

[data-theme="dark"] .scraper-scroll-viewport,
[data-bs-theme="dark"] .scraper-scroll-viewport {
    background: #181920 !important;
}

[data-theme="dark"] .scraper-scroll-viewport::-webkit-scrollbar-track,
[data-bs-theme="dark"] .scraper-scroll-viewport::-webkit-scrollbar-track {
    background: #181920 !important;
}

[data-theme="dark"] .scraper-scroll-viewport::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .scraper-scroll-viewport::-webkit-scrollbar-thumb {
    background: #2e3240 !important;
}

[data-theme="dark"] .scraper-table thead th,
[data-bs-theme="dark"] .scraper-table thead th {
    background: rgba(32, 34, 43, 0.98) !important;
    color: #94a3b8 !important;
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .scraper-table tbody td,
[data-bs-theme="dark"] .scraper-table tbody td {
    background-color: #181920 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #22242f !important;
}

[data-theme="dark"] .scraper-table tbody tr:hover td,
[data-bs-theme="dark"] .scraper-table tbody tr:hover td {
    background-color: #20222b !important;
}

[data-theme="dark"] .scraper-phone-pill,
[data-bs-theme="dark"] .scraper-phone-pill {
    background: #20222b !important;
    border-color: #2e3240 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .scraper-phone-pill:hover,
[data-bs-theme="dark"] .scraper-phone-pill:hover {
    background: #282b37 !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .scraper-page-wrapper .text-dark,
[data-bs-theme="dark"] .scraper-page-wrapper .text-dark {
    color: #f8fafc !important;
}

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

[data-theme="dark"] .scraper-page-wrapper .border-bottom,
[data-bs-theme="dark"] .scraper-page-wrapper .border-bottom {
    border-bottom-color: #282a35 !important;
}

/* ==========================================================================
   Global Search Bar & Input-Icon Collision Fix
   ========================================================================== */
.input-icon.input-icon-start .form-control,
.input-icon-start .form-control,
.position-relative>.input-icon-addon+.form-control,
.position-relative>span.input-icon-addon+input.form-control,
.input-icon-start>input.form-control {
    padding-left: 36px !important;
}

.input-icon-addon {
    width: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
}

.input-group>.input-group-text+.form-control {
    padding-left: 10px !important;
}

/* ==========================================================================
   PREMIUM MODERN SELECT2 & DROPDOWN AESTHETICS (TWENTY CRM STYLE)
   ========================================================================== */
/* ==========================================================================
   PREMIUM MODERN SELECT & SELECT2 DROPDOWN AESTHETICS (TWENTY CRM STYLE)
   ========================================================================== */

/* Native Select Elements */
select.form-control,
select.form-select,
.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 10px !important;
    padding-right: 36px !important;
    padding-left: 14px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
}

select.form-control:hover,
select.form-select:hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}

select.form-control:focus,
select.form-select:focus {
    border-color: #4f46e5 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    outline: none !important;
}

select.form-control option,
select.form-select option {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
}

/* Select2 Form Field Trigger Container */
.select2-container:not(.select2-container--open) {
    width: 100% !important;
    display: block !important;
}

.form-group>.select2-container,
.mb-3>.select2-container,
.form-wrap>.select2-container,
.col-md-3>.select2-container,
.col-md-4>.select2-container,
.col-md-6>.select2-container {
    width: 100% !important;
}

/* Floating Dropdown Container */
.select2-container--open {
    display: block !important;
}

.select2-container--default .select2-selection--single {
    height: 40px !important;
    min-height: 40px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    padding: 0 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    line-height: 38px !important;
    padding-left: 2px !important;
    padding-right: 28px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
    font-size: 13.5px !important;
}

/* Modern Chevron Arrow for Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
    top: 0 !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none !important;
    width: 14px !important;
    height: 14px !important;
    position: static !important;
    margin: 0 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 8px !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg) !important;
}

/* Dropdown Popup Panel */
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    padding: 6px !important;
    margin-top: 4px !important;
    z-index: 1080 !important;
    box-sizing: border-box !important;
    animation: fadeInDropdown 0.15s ease-out !important;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

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

/* Search Field Inside Dropdown (Only shown when > 8 items) */
.select2-search--dropdown {
    padding: 6px 6px 8px 6px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    background-color: #f8fafc !important;
    padding: 7px 10px 7px 30px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: 9px center !important;
    background-size: 14px 14px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15) !important;
}

/* Dark Mode Dropdown Panel & Search Box */
[data-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-dropdown,
[data-theme-mode="dark"] .select2-dropdown,
body.dark-mode .select2-dropdown {
    background-color: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Mode Select2 Container & Single / Multiple Selections */
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
[data-theme-mode="dark"] .select2-container--default .select2-selection--multiple,
body.dark-mode .select2-container--default .select2-selection--multiple,
[data-theme="dark"] .select2-container .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container .select2-selection--multiple {
    background-color: #181920 !important;
    border: 1.5px solid #282a35 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single:hover,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single:hover,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single:hover,
body.dark-mode .select2-container--default .select2-selection--single:hover,
[data-theme="dark"] .select2-container--default:hover .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default:hover .select2-selection--multiple,
[data-theme-mode="dark"] .select2-container--default:hover .select2-selection--multiple,
body.dark-mode .select2-container--default:hover .select2-selection--multiple {
    border-color: #3b4252 !important;
    background-color: #20222b !important;
}

[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single,
[data-theme-mode="dark"] .select2-container--default.select2-container--open .select2-selection--single,
body.dark-mode .select2-container--default.select2-container--open .select2-selection--single,
[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--single,
[data-theme-mode="dark"] .select2-container--default.select2-container--focus .select2-selection--single,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection--single,
[data-theme="dark"] .select2-container--default.select2-container--open .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default.select2-container--open .select2-selection--multiple,
[data-theme-mode="dark"] .select2-container--default.select2-container--open .select2-selection--multiple,
body.dark-mode .select2-container--default.select2-container--open .select2-selection--multiple,
[data-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
[data-bs-theme="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
[data-theme-mode="dark"] .select2-container--default.select2-container--focus .select2-selection--multiple,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22) !important;
    background-color: #181920 !important;
    outline: none !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered span,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered span,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered span,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered span {
    color: inherit;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered .text-muted,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered .text-muted,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered .text-muted,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8f95a3 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__arrow b {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
[data-theme-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #262936 !important;
    border-color: #3b4252 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
[data-theme-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #94a3b8 !important;
}

[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field,
[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field,
[data-theme-mode="dark"] .select2-container--default .select2-search--dropdown .select2-search__field,
body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #14151b !important;
    border-color: #2e313f !important;
    color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field:focus,
[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field:focus,
[data-theme-mode="dark"] .select2-container--default .select2-search--dropdown .select2-search__field:focus,
body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    background-color: #14151b !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.25) !important;
}

/* Result Options List (Spacious & Clean Sleek Scrollbar) */
.select2-results__options {
    max-height: 280px !important;
    padding: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 5px !important;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent !important;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 4px !important;
}

[data-theme="dark"] .select2-results__options,
[data-bs-theme="dark"] .select2-results__options,
[data-theme-mode="dark"] .select2-results__options,
body.dark-mode .select2-results__options {
    scrollbar-color: #2e313f transparent !important;
}

[data-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb,
[data-theme-mode="dark"] .select2-results__options::-webkit-scrollbar-thumb,
body.dark-mode .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #2e313f !important;
}

[data-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb:hover,
[data-theme-mode="dark"] .select2-results__options::-webkit-scrollbar-thumb:hover,
body.dark-mode .select2-results__options::-webkit-scrollbar-thumb:hover {
    background-color: #475569 !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    transition: all 0.12s ease !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

/* Dark Mode Options */
[data-theme="dark"] .select2-container--default .select2-results__option,
[data-bs-theme="dark"] .select2-container--default .select2-results__option,
[data-theme-mode="dark"] .select2-container--default .select2-results__option,
body.dark-mode .select2-container--default .select2-results__option {
    color: #cbd5e1 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-theme-mode="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
[data-theme-mode="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
body.dark-mode .select2-container--default .select2-results__option[aria-selected="true"],
[data-theme="dark"] .select2-container--default .select2-results__option--selected,
[data-bs-theme="dark"] .select2-container--default .select2-results__option--selected,
[data-theme-mode="dark"] .select2-container--default .select2-results__option--selected,
body.dark-mode .select2-container--default .select2-results__option--selected {
    background-color: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

/* Offcanvas & Modal Select2 Overrides */
.offcanvas .select2-container,
.modal .select2-container {
    width: 100% !important;
}

.offcanvas .select2-dropdown,
.modal .select2-dropdown {
    z-index: 1080 !important;
}

/* ============================================================
   GLOBAL TWENTY CRM FEED SEARCH BAR & FILTER POPOVER COMPONENT
   ============================================================ */
.feed-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    background: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.feed-search-bar:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

.feed-search-bar input,
.feed-search-bar input[type="text"],
.feed-search-bar input[type="search"] {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    color: #1e293b !important;
    width: 100% !important;
    min-width: 120px;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}

.feed-search-bar input:focus,
.feed-search-bar input[type="text"]:focus,
.feed-search-bar input[type="search"]:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

.feed-search-bar input::placeholder,
.feed-search-bar input[type="text"]::placeholder,
.feed-search-bar input[type="search"]::placeholder {
    color: #94a3b8 !important;
}

.feed-search-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-feed-tool {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 5px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    line-height: 1;
}

.btn-feed-tool:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-feed-tool.has-active {
    color: #2563eb;
    background: #eff6ff;
}

.filter-count-badge {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 3.5px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #ffffff;
}

/* Filter Popover Menu */
.filter-popover-menu {
    width: 260px !important;
    min-width: 260px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    z-index: 1060 !important;
}

.filter-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.filter-popover-menu .dropdown-item {
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #334155;
    transition: all 0.12s ease;
}

.filter-popover-menu .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.filter-popover-menu .dropdown-item.active {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}

/* Dark Mode Overrides for Feed Search Bar & Controls */
[data-theme="dark"] .feed-search-bar,
[data-bs-theme="dark"] .feed-search-bar,
[data-theme-mode="dark"] .feed-search-bar,
body.dark-mode .feed-search-bar {
    background: #181920 !important;
    background-color: #181920 !important;
    border: 1px solid #282a35 !important;
}

[data-theme="dark"] .feed-search-bar:focus-within,
[data-bs-theme="dark"] .feed-search-bar:focus-within,
[data-theme-mode="dark"] .feed-search-bar:focus-within,
body.dark-mode .feed-search-bar:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .feed-search-bar input,
[data-bs-theme="dark"] .feed-search-bar input,
[data-theme-mode="dark"] .feed-search-bar input,
body.dark-mode .feed-search-bar input,
[data-theme="dark"] .feed-search-bar input[type="text"],
[data-bs-theme="dark"] .feed-search-bar input[type="text"],
[data-theme-mode="dark"] .feed-search-bar input[type="text"],
body.dark-mode .feed-search-bar input[type="text"],
[data-theme="dark"] .feed-search-bar input[type="search"],
[data-bs-theme="dark"] .feed-search-bar input[type="search"],
[data-theme-mode="dark"] .feed-search-bar input[type="search"],
body.dark-mode .feed-search-bar input[type="search"] {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 !important;
}

[data-theme="dark"] .feed-search-bar input:focus,
[data-bs-theme="dark"] .feed-search-bar input:focus,
[data-theme-mode="dark"] .feed-search-bar input:focus,
body.dark-mode .feed-search-bar input:focus,
[data-theme="dark"] .feed-search-bar input[type="text"]:focus,
[data-bs-theme="dark"] .feed-search-bar input[type="text"]:focus,
[data-theme-mode="dark"] .feed-search-bar input[type="text"]:focus,
body.dark-mode .feed-search-bar input[type="text"]:focus,
[data-theme="dark"] .feed-search-bar input[type="search"]:focus,
[data-bs-theme="dark"] .feed-search-bar input[type="search"]:focus,
[data-theme-mode="dark"] .feed-search-bar input[type="search"]:focus,
body.dark-mode .feed-search-bar input[type="search"]:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

[data-theme="dark"] .feed-search-bar input::placeholder,
[data-bs-theme="dark"] .feed-search-bar input::placeholder,
[data-theme-mode="dark"] .feed-search-bar input::placeholder,
body.dark-mode .feed-search-bar input::placeholder,
[data-theme="dark"] .feed-search-bar input[type="text"]::placeholder,
[data-bs-theme="dark"] .feed-search-bar input[type="text"]::placeholder,
[data-theme-mode="dark"] .feed-search-bar input[type="text"]::placeholder,
body.dark-mode .feed-search-bar input[type="text"]::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .feed-search-bar .ti-search,
[data-bs-theme="dark"] .feed-search-bar .ti-search,
[data-theme-mode="dark"] .feed-search-bar .ti-search,
body.dark-mode .feed-search-bar .ti-search {
    color: #64748b !important;
}

[data-theme="dark"] .btn-feed-tool,
[data-bs-theme="dark"] .btn-feed-tool,
[data-theme-mode="dark"] .btn-feed-tool,
body.dark-mode .btn-feed-tool {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-feed-tool:hover,
[data-bs-theme="dark"] .btn-feed-tool:hover,
[data-theme-mode="dark"] .btn-feed-tool:hover,
body.dark-mode .btn-feed-tool:hover {
    background: #252834 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .btn-feed-tool.has-active,
[data-bs-theme="dark"] .btn-feed-tool.has-active,
[data-theme-mode="dark"] .btn-feed-tool.has-active,
body.dark-mode .btn-feed-tool.has-active {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .filter-count-badge,
[data-bs-theme="dark"] .filter-count-badge,
[data-theme-mode="dark"] .filter-count-badge,
body.dark-mode .filter-count-badge {
    border-color: #181920 !important;
}

[data-theme="dark"] .filter-popover-menu,
[data-bs-theme="dark"] .filter-popover-menu,
[data-theme-mode="dark"] .filter-popover-menu,
body.dark-mode .filter-popover-menu {
    background: #181920 !important;
    border-color: #282a35 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .filter-popover-header,
[data-bs-theme="dark"] .filter-popover-header,
[data-theme-mode="dark"] .filter-popover-header,
body.dark-mode .filter-popover-header {
    border-bottom-color: #282a35 !important;
}

[data-theme="dark"] .filter-popover-header .text-dark,
[data-bs-theme="dark"] .filter-popover-header .text-dark,
[data-theme-mode="dark"] .filter-popover-header .text-dark,
body.dark-mode .filter-popover-header .text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .filter-section-title,
[data-bs-theme="dark"] .filter-section-title,
[data-theme-mode="dark"] .filter-section-title,
body.dark-mode .filter-section-title {
    color: #94a3b8 !important;
}

[data-theme="dark"] .filter-popover-menu .dropdown-item,
[data-bs-theme="dark"] .filter-popover-menu .dropdown-item,
[data-theme-mode="dark"] .filter-popover-menu .dropdown-item,
body.dark-mode .filter-popover-menu .dropdown-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .filter-popover-menu .dropdown-item:hover,
[data-bs-theme="dark"] .filter-popover-menu .dropdown-item:hover,
[data-theme-mode="dark"] .filter-popover-menu .dropdown-item:hover,
body.dark-mode .filter-popover-menu .dropdown-item:hover {
    background-color: #252834 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .filter-popover-menu .dropdown-item.active,
[data-bs-theme="dark"] .filter-popover-menu .dropdown-item.active,
[data-theme-mode="dark"] .filter-popover-menu .dropdown-item.active,
body.dark-mode .filter-popover-menu .dropdown-item.active {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
}

/* ============================================================
   MODERN TWENTY CRM MASTER TABLE SYSTEM (LIGHT & DARK MODE)
   ============================================================ */
/* Hide unwanted legacy DataTables length selector */
.dataTables_length,
div.dataTables_wrapper div.dataTables_length,
.datatable-length {
    display: none !important;
}

/* Master Table Container */
.master-table-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
}

[data-theme="dark"] .master-table-card,
[data-bs-theme="dark"] .master-table-card,
body.dark-mode .master-table-card {
    border-color: #282a35 !important;
    background: #181920 !important;
}

/* Master Table Styling */
.table-modern,
table.table-modern {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.table-modern thead th,
table.table-modern thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 18px !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

[data-theme="dark"] .table-modern thead th,
[data-bs-theme="dark"] .table-modern thead th,
[data-theme-mode="dark"] .table-modern thead th,
body.dark-mode .table-modern thead th,
[data-theme="dark"] table.table-modern thead th,
[data-bs-theme="dark"] table.table-modern thead th,
body.dark-mode table.table-modern thead th {
    background-color: #1a1b23 !important;
    color: #8f95a3 !important;
    border-bottom-color: #282a35 !important;
}

.table-modern tbody td,
table.table-modern tbody td {
    padding: 13px 18px !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155;
    font-size: 13px;
    background-color: transparent !important;
    transition: background-color 0.15s ease;
}

[data-theme="dark"] .table-modern tbody td,
[data-bs-theme="dark"] .table-modern tbody td,
[data-theme-mode="dark"] .table-modern tbody td,
body.dark-mode .table-modern tbody td,
[data-theme="dark"] table.table-modern tbody td,
[data-bs-theme="dark"] table.table-modern tbody td,
body.dark-mode table.table-modern tbody td {
    border-bottom-color: #22242f !important;
    color: #cbd5e1 !important;
}

.table-modern tbody tr:hover td,
table.table-modern tbody tr:hover td {
    background-color: #f8fafc !important;
}

[data-theme="dark"] .table-modern tbody tr:hover td,
[data-bs-theme="dark"] .table-modern tbody tr:hover td,
[data-theme-mode="dark"] .table-modern tbody tr:hover td,
body.dark-mode .table-modern tbody tr:hover td,
[data-theme="dark"] table.table-modern tbody tr:hover td,
[data-bs-theme="dark"] table.table-modern tbody tr:hover td,
body.dark-mode table.table-modern tbody tr:hover td {
    background-color: #1e202a !important;
}

/* Primary Entity Name in Master Table */
.master-entity-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

[data-theme="dark"] .master-entity-title,
[data-bs-theme="dark"] .master-entity-title,
[data-theme-mode="dark"] .master-entity-title,
body.dark-mode .master-entity-title {
    color: #f8fafc !important;
}

/* Modern Status Pill Badge */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-pill-active {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill-active .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-pill-active:hover {
    background-color: #d1fae5;
    color: #047857;
}

[data-theme="dark"] .status-pill-active,
[data-bs-theme="dark"] .status-pill-active,
[data-theme-mode="dark"] .status-pill-active,
body.dark-mode .status-pill-active {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
}

[data-theme="dark"] .status-pill-active:hover,
[data-bs-theme="dark"] .status-pill-active:hover,
[data-theme-mode="dark"] .status-pill-active:hover,
body.dark-mode .status-pill-active:hover {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.status-pill-inactive {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-pill-inactive .status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.status-pill-inactive:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}

[data-theme="dark"] .status-pill-inactive,
[data-bs-theme="dark"] .status-pill-inactive,
[data-theme-mode="dark"] .status-pill-inactive,
body.dark-mode .status-pill-inactive {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

[data-theme="dark"] .status-pill-inactive:hover,
[data-bs-theme="dark"] .status-pill-inactive:hover,
[data-theme-mode="dark"] .status-pill-inactive:hover,
body.dark-mode .status-pill-inactive:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

/* Modern Company Badge */
.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.company-badge i {
    color: #3b82f6;
    font-size: 12px;
}

[data-theme="dark"] .company-badge,
[data-bs-theme="dark"] .company-badge,
[data-theme-mode="dark"] .company-badge,
body.dark-mode .company-badge {
    background-color: #20222b !important;
    color: #94a3b8 !important;
    border-color: #2e3240 !important;
}

/* Modern Action Buttons */
.btn-action-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 14px;
}

.btn-action-edit {
    color: #d97706;
}

.btn-action-edit:hover {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

[data-theme="dark"] .btn-action-edit,
[data-bs-theme="dark"] .btn-action-edit,
[data-theme-mode="dark"] .btn-action-edit,
body.dark-mode .btn-action-edit {
    color: #fbbf24 !important;
}

[data-theme="dark"] .btn-action-edit:hover,
[data-bs-theme="dark"] .btn-action-edit:hover,
[data-theme-mode="dark"] .btn-action-edit:hover,
body.dark-mode .btn-action-edit:hover {
    background-color: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fef08a !important;
}

.btn-action-delete {
    color: #e11d48;
}

.btn-action-delete:hover {
    background-color: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.25);
    color: #be123c;
}

[data-theme="dark"] .btn-action-delete,
[data-bs-theme="dark"] .btn-action-delete,
[data-theme-mode="dark"] .btn-action-delete,
body.dark-mode .btn-action-delete {
    color: #f43f5e !important;
}

[data-theme="dark"] .btn-action-delete:hover,
[data-bs-theme="dark"] .btn-action-delete:hover,
[data-theme-mode="dark"] .btn-action-delete:hover,
body.dark-mode .btn-action-delete:hover {
    background-color: rgba(244, 63, 94, 0.2) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
    color: #fda4af !important;
}

.btn-action-view {
    color: #2563eb;
}

.btn-action-view:hover {
    background-color: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

[data-theme="dark"] .btn-action-view,
[data-bs-theme="dark"] .btn-action-view,
[data-theme-mode="dark"] .btn-action-view,
body.dark-mode .btn-action-view {
    color: #60a5fa !important;
}

[data-theme="dark"] .btn-action-view:hover,
[data-bs-theme="dark"] .btn-action-view:hover,
[data-theme-mode="dark"] .btn-action-view:hover,
body.dark-mode .btn-action-view:hover {
    background-color: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    color: #93c5fd !important;
}

/* ==========================================================================
   SWEETALERT2 & TOAST NOTIFICATION THEMES (LIGHT & DARK MODE)
   ========================================================================== */
.swal2-popup.swal2-toast {
    padding: 0.75rem 1.15rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 0.8125rem !important;
    margin: 0.2rem 0 0 !important;
    padding: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 !important;
    width: 1.65rem !important;
    min-width: 1.65rem !important;
    height: 1.65rem !important;
}

/* Light Mode (Only when html root is not dark) */
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup,
.swal2-toast-light {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast-light {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup .swal2-title,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup.swal2-toast .swal2-title,
.swal2-toast-light .swal2-title {
    color: #0f172a !important;
}

html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup .swal2-html-container,
html:not([data-theme="dark"]):not([data-bs-theme="dark"]) .swal2-popup.swal2-toast .swal2-html-container,
.swal2-toast-light .swal2-html-container {
    color: #475569 !important;
}

/* Dark Mode Overrides */
[data-theme="dark"] .swal2-popup,
[data-bs-theme="dark"] .swal2-popup,
html[data-theme="dark"] .swal2-popup,
html[data-bs-theme="dark"] .swal2-popup,
body[data-theme="dark"] .swal2-popup,
body[data-bs-theme="dark"] .swal2-popup,
[data-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup),
[data-bs-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup) {
    background: #1e1f26 !important;
    background-color: #1e1f26 !important;
    color: #f8fafc !important;
    border: 1px solid #2e313d !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
}

[data-theme="dark"] .swal2-popup.swal2-toast,
[data-bs-theme="dark"] .swal2-popup.swal2-toast,
html[data-theme="dark"] .swal2-popup.swal2-toast,
html[data-bs-theme="dark"] .swal2-popup.swal2-toast,
body[data-theme="dark"] .swal2-popup.swal2-toast,
body[data-bs-theme="dark"] .swal2-popup.swal2-toast,
[data-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup).swal2-toast,
[data-bs-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup).swal2-toast,
.swal2-toast-dark,
.swal2-popup.swal2-toast-dark {
    background: #181920 !important;
    background-color: #181920 !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
}

[data-theme="dark"] .swal2-popup .swal2-title,
[data-bs-theme="dark"] .swal2-popup .swal2-title,
[data-theme="dark"] div:where(.swal2-container) h2:where(.swal2-title),
[data-bs-theme="dark"] div:where(.swal2-container) h2:where(.swal2-title),
[data-theme="dark"] .swal2-toast .swal2-title,
[data-bs-theme="dark"] .swal2-toast .swal2-title,
.swal2-toast-dark .swal2-title {
    color: #f8fafc !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .swal2-popup .swal2-html-container,
[data-bs-theme="dark"] .swal2-popup .swal2-html-container,
[data-theme="dark"] div:where(.swal2-container) .swal2-html-container,
[data-bs-theme="dark"] div:where(.swal2-container) .swal2-html-container,
.swal2-toast-dark .swal2-html-container {
    color: #94a3b8 !important;
}

[data-theme="dark"] .swal2-close,
[data-bs-theme="dark"] .swal2-close {
    color: #94a3b8 !important;
}

[data-theme="dark"] .swal2-close:hover,
[data-bs-theme="dark"] .swal2-close:hover {
    color: #f87171 !important;
}

[data-theme="dark"] .swal2-footer,
[data-bs-theme="dark"] .swal2-footer {
    border-top: 1px solid #2b2d37 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .swal2-input,
[data-bs-theme="dark"] .swal2-input,
[data-theme="dark"] .swal2-textarea,
[data-bs-theme="dark"] .swal2-textarea,
[data-theme="dark"] .swal2-select,
[data-bs-theme="dark"] .swal2-select {
    background: #14151a !important;
    border: 1px solid #2e313d !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   GOCO 4-CIRCLE BRANDED ANIMATED LOADER
   ========================================================================== */
.goco-loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loader {
    animation: rotate 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    height: 50px;
    width: 50px;
    position: relative;
}

.loader:before,
.loader:after {
    border-radius: 50%;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    box-sizing: border-box;
}

.loader:before {
    animation: ball1 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    background-color: #2ebcfc;
    box-shadow: 30px 0 0 #58b947;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(46, 188, 252, 0.35));
}

.loader:after {
    animation: ball2 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    background-color: #523683;
    box-shadow: 30px 0 0 #e23c72;
    filter: drop-shadow(0 2px 6px rgba(226, 60, 114, 0.35));
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(0.85);
    }

    50% {
        transform: rotate(360deg) scale(1.15);
    }

    100% {
        transform: rotate(720deg) scale(0.85);
    }
}

@keyframes ball1 {
    0% {
        box-shadow: 30px 0 0 #58b947;
    }

    50% {
        box-shadow: 0 0 0 #58b947;
        margin-bottom: 0;
        transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #58b947;
        margin-bottom: 10px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 30px 0 0 #e23c72;
    }

    50% {
        box-shadow: 0 0 0 #e23c72;
        margin-top: -20px;
        transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #e23c72;
        margin-top: 0;
    }
}

/* Prevent unused SweetAlert2 input elements and select2 wrappers from showing */
.swal2-container .swal2-select:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-input:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-file:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-textarea:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-radio:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-checkbox:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-range:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .swal2-validation-message:not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
.swal2-container .select2-container,
div:where(.swal2-container) select:where(.swal2-select)[style*="display: none"],
div:where(.swal2-container) select:where(.swal2-select):not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]),
div:where(.swal2-container) input:where(.swal2-input)[style*="display: none"],
div:where(.swal2-container) input:where(.swal2-input):not([style*="display: block"]):not([style*="display: flex"]):not([style*="display: inline-block"]):not([style*="display: grid"]) {
    display: none !important;
}

[data-theme="dark"] .swal2-confirm,
[data-bs-theme="dark"] .swal2-confirm {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
}

[data-theme="dark"] .swal2-cancel,
[data-bs-theme="dark"] .swal2-cancel {
    background-color: #2b2d37 !important;
    color: #cbd5e1 !important;
    border: 1px solid #3b3e4d !important;
}

[data-theme="dark"] .swal2-timer-progress-bar,
[data-bs-theme="dark"] .swal2-timer-progress-bar {
    background: #3b82f6 !important;
}

/* ==========================================================================
   TRANSFER LEADS TABLE FOOTER & PAGINATION DARK MODE
   ========================================================================== */
[data-theme="dark"] .tl-table-footer,
[data-bs-theme="dark"] .tl-table-footer,
[data-theme="dark"] #serTbl_wrapper .tl-table-footer,
[data-bs-theme="dark"] #serTbl_wrapper .tl-table-footer {
    background: #181920 !important;
    border-top: 1px solid #282a35 !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_info,
[data-bs-theme="dark"] .tl-table-footer .dataTables_info {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_info span,
[data-bs-theme="dark"] .tl-table-footer .dataTables_info span {
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_length label,
[data-bs-theme="dark"] .tl-table-footer .dataTables_length label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_length select,
[data-bs-theme="dark"] .tl-table-footer .dataTables_length select {
    background-color: #20222b !important;
    border: 1px solid #333644 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button,
[data-bs-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button {
    background: #20222b !important;
    border: 1px solid #2e3240 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button:hover,
[data-bs-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button:hover {
    background: #282b37 !important;
    border-color: #3b3e4d !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button.current,
[data-bs-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button.disabled,
[data-bs-theme="dark"] .tl-table-footer .dataTables_paginate .paginate_button.disabled {
    opacity: 0.35 !important;
    background: #1b1c24 !important;
    border-color: #282a35 !important;
    color: #64748b !important;
}

/* Transfer Leads Datepicker & Action Dock Styling (Dark Mode & Universal) */
[data-theme="dark"] .tl-datepicker-group #contactableDate,
[data-bs-theme="dark"] .tl-datepicker-group #contactableDate,
body.dark-theme .tl-datepicker-group #contactableDate {
    background-color: #20222b !important;
    border-color: #333644 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tl-calendar-trigger,
[data-bs-theme="dark"] .tl-calendar-trigger,
body.dark-theme .tl-calendar-trigger {
    background-color: #282b37 !important;
    border-color: #333644 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .tl-calendar-trigger:hover,
[data-bs-theme="dark"] .tl-calendar-trigger:hover,
body.dark-theme .tl-calendar-trigger:hover {
    background-color: #333644 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-action-bar,
[data-bs-theme="dark"] .tl-action-bar,
body.dark-theme .tl-action-bar {
    background: #1e2029 !important;
    border-color: #2a2d39 !important;
}

[data-theme="dark"] .tl-action-card,
[data-bs-theme="dark"] .tl-action-card,
body.dark-theme .tl-action-card {
    background: #181920 !important;
    border-color: #2d303e !important;
}

[data-theme="dark"] .tl-action-header,
[data-bs-theme="dark"] .tl-action-header,
body.dark-theme .tl-action-header {
    border-bottom-color: #2a2d39 !important;
}

[data-theme="dark"] .tl-action-title,
[data-bs-theme="dark"] .tl-action-title,
body.dark-theme .tl-action-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .tl-retain-date-box label,
[data-bs-theme="dark"] .tl-retain-date-box label,
body.dark-theme .tl-retain-date-box label {
    color: #f1f5f9 !important;
}

/* Select2 Clean Styling - Hide clashing clear icon & refine dropdown */
.select2-container .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px !important;
    padding-right: 26px !important;
    line-height: 34px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    flex-grow: 1 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
    position: absolute !important;
    top: 0 !important;
    right: 8px !important;
    width: 16px !important;
}

/* Hide confusing x on single selects since options include All Items */
.select2-container .select2-selection__clear {
    display: none !important;
}

/* ==========================================================================
   Twenty Theme Segmented Navigation Bar
   ========================================================================== */
.twenty-segmented-group,
.twenty-segmented-control {
    display: inline-flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 9999px !important;
    border: 1px solid #e2e8f0 !important;
    gap: 3px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.twenty-segmented-item {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    border: none !important;
}

.twenty-segmented-item i {
    font-size: 13.5px !important;
    color: inherit !important;
}

.twenty-segmented-item:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.twenty-segmented-item.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28) !important;
}

.twenty-segmented-item.active i,
.twenty-segmented-item.active span {
    color: #ffffff !important;
}

[data-theme="dark"] .twenty-segmented-group,
[data-bs-theme="dark"] .twenty-segmented-group,
[data-theme-mode="dark"] .twenty-segmented-group,
body.dark-mode .twenty-segmented-group,
[data-theme="dark"] .twenty-segmented-control,
[data-bs-theme="dark"] .twenty-segmented-control,
[data-theme-mode="dark"] .twenty-segmented-control,
body.dark-mode .twenty-segmented-control {
    background: #181920 !important;
    border-color: #2a2e3d !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .twenty-segmented-item,
[data-bs-theme="dark"] .twenty-segmented-item,
[data-theme-mode="dark"] .twenty-segmented-item,
body.dark-mode .twenty-segmented-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .twenty-segmented-item:hover,
[data-bs-theme="dark"] .twenty-segmented-item:hover,
[data-theme-mode="dark"] .twenty-segmented-item:hover,
body.dark-mode .twenty-segmented-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .twenty-segmented-item.active,
[data-bs-theme="dark"] .twenty-segmented-item.active,
[data-theme-mode="dark"] .twenty-segmented-item.active,
body.dark-mode .twenty-segmented-item.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5) !important;
}

[data-theme="dark"] .twenty-segmented-item.active i,
[data-bs-theme="dark"] .twenty-segmented-item.active i,
[data-theme-mode="dark"] .twenty-segmented-item.active i,
body.dark-mode .twenty-segmented-item.active i,
[data-theme="dark"] .twenty-segmented-item.active span,
[data-bs-theme="dark"] .twenty-segmented-item.active span,
[data-theme-mode="dark"] .twenty-segmented-item.active span,
body.dark-mode .twenty-segmented-item.active span {
    color: #ffffff !important;
}

/* ==========================================================================
   Twenty Theme Table & DataTables Header / Action / Status Alignment System
   ========================================================================== */

/* 1. Suppress sort indicators on non-sortable & Action / Status columns */
table.dataTable thead th:before,
table.dataTable thead th:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting_desc_disabled:after,
table thead th:before,
table thead th:after {
    display: none !important;
    content: "" !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
}

/* 2. Column spacing & cursor reset */
table.dataTable thead>tr>th,
table thead>tr>th {
    position: relative;
    vertical-align: middle;
}

/* 3. Non-sortable columns: Clean padding and default cursor */
table.dataTable thead>tr>th.no-sort,
table.dataTable thead>tr>th.text-end,
table.dataTable thead>tr>th.text-center,
table.dataTable thead>tr>th:last-child,
table thead>tr>th.no-sort,
table thead>tr>th.text-end,
table thead>tr>th.text-center,
table thead>tr>th:last-child {
    padding-right: 1.25rem !important;
    cursor: default;
}

/* 4. Action Column Alignment (Header & Cells match seamlessly) */
table thead th.text-end,
table tbody td.text-end,
table.dataTable thead th.text-end,
table.dataTable tbody td.text-end,
table thead th:last-child,
table tbody td:last-child {
    text-align: right !important;
    padding-right: 1.25rem !important;
}

table tbody td.text-end>.d-flex,
table tbody td:last-child>.d-flex,
table tbody td .action-btns,
table tbody td .table-actions {
    display: inline-flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    gap: 6px !important;
}

/* 5. Status Column Alignment (Centered badge & header) */
table thead th.text-center,
table tbody td.text-center,
table.dataTable thead th.text-center,
table.dataTable tbody td.text-center {
    text-align: center !important;
}

table tbody td.text-center .badge,
table tbody td.text-center a.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* 6. First column padding */
table thead th.ps-3,
table tbody td.ps-3,
table thead th:first-child,
table tbody td:first-child {
    padding-left: 1.25rem !important;
}

/* 7. Typography and Spacing for Table */
table.table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
}

table.table thead th {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    vertical-align: middle;
}

table.table tbody td {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

/* 8. Dark Mode Table Polish */
[data-theme="dark"] table.table thead th,
[data-bs-theme="dark"] table.table thead th {
    background: #182235 !important;
    border-bottom: 1px solid #233248 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] table.table tbody td,
[data-bs-theme="dark"] table.table tbody td {
    background: transparent !important;
    border-bottom: 1px solid #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] table.table-hover tbody tr:hover td,
[data-bs-theme="dark"] table.table-hover tbody tr:hover td {
    background-color: rgba(30, 41, 59, 0.7) !important;
}

[data-theme="dark"] .btn-outline-warning {
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: rgba(251, 191, 36, 0.08) !important;
}

[data-theme="dark"] .btn-outline-warning:hover {
    background: #fbbf24 !important;
    color: #0f172a !important;
    border-color: #fbbf24 !important;
}

[data-theme="dark"] .btn-outline-danger {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: rgba(248, 113, 113, 0.08) !important;
}

[data-theme="dark"] .btn-outline-danger:hover {
    background: #f87171 !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
}

/* 9. DataTables Pagination Polish in Light & Dark Mode */
.dataTables_paginate {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 12px 16px !important;
    gap: 4px !important;
}

.dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .dataTables_paginate .paginate_button,
[data-bs-theme="dark"] .dataTables_paginate .paginate_button {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .dataTables_paginate .paginate_button.current,
[data-bs-theme="dark"] .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}