/* ============================================================
   Leads Platform - Clean White Theme & Compact High-Density Layout
   ============================================================ */

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Clean White & Crisp Slate Palette */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-card: #ffffff;
    --color-surface-card-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-border-focus: #4f46e5;

    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-glow: rgba(79, 70, 229, 0.15);

    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-text-dim: #64748b;

    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-success-border: #a7f3d0;
    --color-success-text: #047857;

    --color-error: #ef4444;
    --color-error-bg: #fef2f2;
    --color-error-border: #fecaca;
    --color-error-text: #b91c1c;

    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fde68a;
    --color-warning-text: #b45309;

    --color-info: #3b82f6;
    --color-info-bg: #eff6ff;
    --color-info-border: #bfdbfe;
    --color-info-text: #1d4ed8;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 3px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 16px rgba(79, 70, 229, 0.15);

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-full: 9999px;

    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.45;
    font-size: 0.82rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

/* ============================================================
   Typography & Shared Elements
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.015em;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.text-dim {
    color: var(--color-text-dim);
    font-size: 0.78rem;
}

.text-success { color: var(--color-success-text) !important; }
.text-danger { color: var(--color-error-text) !important; }
.text-warning { color: var(--color-warning-text) !important; }
.text-primary { color: var(--color-primary) !important; }

/* ============================================================
   Buttons & Links (Compact)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-text-main);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--color-border-hover);
    color: #0f172a;
}

.btn-danger-outline {
    background: #ffffff;
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

.btn-icon {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #f1f5f9;
    color: var(--color-text-main);
    border-color: var(--color-border-hover);
}

.btn-icon.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.74rem;
}

.btn-block {
    width: 100%;
}

/* ============================================================
   Badges & Role Tags
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.badge-staff {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge-new {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.status-badge-contacted {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-badge-progress {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge-qualified {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

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

.status-badge-lost {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Inline Status Select (Compact) */
.status-inline-select {
    padding: 2px 18px 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    transition: var(--transition);
}

.status-inline-select option {
    background: #ffffff;
    color: #0f172a;
    padding: 4px;
}

/* ============================================================
   Flash Alerts
   ============================================================ */
.alert {
    padding: 9px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    animation: slideDown 0.2s ease-out;
}

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

.alert-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error-text);
}

.alert-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success-text);
}

.alert-warning {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning-text);
}

.alert-info {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    color: var(--color-info-text);
}

/* ============================================================
   Authentication Layout (Login Page)
   ============================================================ */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    min-height: 100vh;
    background: #f1f5f9;
}

.auth-container, .setup-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.setup-container {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    color: #4f46e5;
    margin-bottom: 12px;
}

.brand-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: #0f172a;
}

.brand-subtitle {
    color: var(--color-text-dim);
    font-size: 0.82rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #0f172a;
}

/* Form Styles (Compact) */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.input-wrapper, .input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 10px;
    color: var(--color-text-dim);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 7px 11px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #0f172a;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper .form-control, .form-control.with-icon {
    padding-left: 34px !important;
}

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

.form-control::placeholder {
    color: #94a3b8;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.password-toggle:hover {
    color: #0f172a;
}

.auth-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.badge-employee {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.badge-admin-portal {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.btn-lg {
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-login-card {
    border-top: 3px solid #f59e0b;
}

.admin-auth-body {
    background: #f8fafc;
}

.crown-logo {
    color: #ffffff !important;
}

/* ============================================================
   Navbar (Compact)
   ============================================================ */
.navbar {
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    max-width: 1560px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
}

.nav-logo {
    width: 28px;
    height: 28px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.user-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.user-role-text {
    font-size: 0.68rem;
    color: var(--color-text-dim);
}

.dashboard-main {
    flex: 1;
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 18px;
}

/* Dashboard Action Bar / Header */
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin-bottom: 2px;
}

.hero-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    line-height: 1.35;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   Stats Cards Grid (Compact)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.stat-icon.emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.stat-icon.amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.stat-icon.cyan { background: #f0fdf4; color: #0284c7; border: 1px solid #bae6fd; }
.stat-icon.purple { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.stat-icon.red { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Leads Management Panel (Toolbar & Filters - Compact)
   ============================================================ */
.panel-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
}

.panel-title-area {
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-subtitle {
    font-size: 0.74rem;
    color: var(--color-text-dim);
}

/* ============================================================
   Workspace Layout (Sidebar + Content Panel)
   ============================================================ */
.dashboard-workspace {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.dashboard-sidebar {
    width: 290px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

/* Custom scrollbar for sidebar */
.dashboard-sidebar::-webkit-scrollbar {
    width: 5px;
}
.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* Sidebar Header & Reset */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-reset-filters {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-close-sidebar-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

.btn-close-sidebar-mobile:hover {
    color: #0f172a;
}

/* Sidebar Sections & Inputs */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin: 0;
}

.sidebar-search-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sidebar-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.sidebar-search-box .search-input {
    width: 100%;
    height: 32px;
    padding: 0 28px 0 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #0f172a;
    font-size: 0.78rem;
    outline: none;
    transition: var(--transition);
}

.sidebar-search-box .search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    line-height: 1;
}

.btn-clear-search:hover {
    color: #0f172a;
}

.sidebar-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-select, .filter-select {
    width: 100%;
    height: 30px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-select:hover, .filter-select:hover {
    border-color: #94a3b8;
}

.sidebar-select:focus, .filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-glow);
}

/* Sidebar Filter Pills Grid (Compact 2-col layout) */
.sidebar-pills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.sidebar-pills-list button, .website-filter-pill, .status-filter-pill, .followup-filter-pill {
    width: 100%;
    text-align: left;
    padding: 4px 7px;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-pills-list button:hover, .website-filter-pill:hover, .status-filter-pill:hover, .followup-filter-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.sidebar-pills-list button.active, .website-filter-pill.active, .status-filter-pill.active, .followup-filter-pill.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

/* Full-width pills */
.sidebar-pills-list button[data-followup="all"],
.sidebar-pills-list button[data-followup="multi_business"],
.sidebar-pills-list button[data-website-status="all"],
.sidebar-pills-list button[data-status="all"] {
    grid-column: 1 / -1;
    text-align: center;
    justify-content: center;
}

/* Website condition pill active colors */
.website-filter-pill.pill-working.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.website-filter-pill.pill-none.active {
    background: #64748b;
    border-color: #64748b;
    color: #ffffff;
}

.website-filter-pill.pill-down.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Pipeline Status pill active colors */
.status-filter-pill.status-pill-new.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.status-filter-pill.status-pill-contacted.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.status-filter-pill.status-pill-in_progress.active {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.status-filter-pill.status-pill-qualified.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

.status-filter-pill.status-pill-converted.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.status-filter-pill.status-pill-lost.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* Follow-up filter pill active colors */
.followup-filter-pill.pill-today.active {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.followup-filter-pill.pill-overdue.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.pill-multi-biz.active {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

.status-dot {
    font-size: 0.65rem;
    line-height: 1;
}

.btn-check-all-urls-compact {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-check-all-urls-compact:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

/* Active Filter Badges Bar on Table */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.74rem;
}

.active-filters-label {
    font-weight: 700;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-chip-remove {
    cursor: pointer;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
    border: none;
    background: none;
    margin-left: 2px;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.filter-chip-remove:hover {
    color: #ef4444;
}

.filter-chip-clear-all {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 700;
}

.filter-chip-clear-all:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Mobile Sidebar Drawer & Overlay */
.btn-toggle-sidebar {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    color: #4338ca;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-toggle-sidebar:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.sidebar-mobile-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .dashboard-workspace {
        flex-direction: column;
    }

    .btn-toggle-sidebar {
        display: inline-flex;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--color-border);
        z-index: 1050;
        transform: translateX(-105%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }

    .dashboard-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .btn-close-sidebar-mobile {
        display: inline-block;
    }

    .sidebar-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Website Table Cell & Health Badges */
.col-website {
    min-width: 170px;
}

.website-cell-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.website-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.website-link {
    color: #0284c7;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.website-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.web-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

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

.web-badge-none {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.web-badge-down {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-ping-url {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 600;
    padding: 1px 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-ping-url:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #818cf8;
}

/* Category & Area Table Styles */
.col-category-area {
    min-width: 150px;
}

.category-cell-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.tag-category {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag-subcategory {
    font-size: 0.68rem;
    font-weight: 600;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tag-area {
    font-size: 0.68rem;
    font-weight: 600;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Live Sync Pulse in Navbar */
.live-sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    margin-left: 8px;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Assigned Staff & Follow-up Cell Styles */
.col-assigned-followup {
    min-width: 175px;
}

.assigned-followup-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.assigned-inline-select {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    height: 24px;
}

.followup-tags-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.followup-tag {
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-size: 0.66rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag-today {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.tag-overdue {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tag-upcoming {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.tag-done {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.tag-followup-count {
    font-size: 0.66rem;
    font-weight: 700;
    color: #7c3aed;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tag-followup-count.count-zero {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.followup-note-snippet {
    font-size: 0.68rem;
    color: #64748b;
    font-style: italic;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followup-btn-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-schedule-followup {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-schedule-followup:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.btn-schedule-followup.btn-followup-new {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.btn-schedule-followup.btn-followup-new:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.btn-schedule-followup.btn-followup-pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.btn-schedule-followup.btn-followup-pending:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.btn-complete-followup {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    color: #047857;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.btn-complete-followup:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.btn-google-cal {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-google-cal:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ============================================================
   Table Header Select All & Contact Column Styles (Compact)
   ============================================================ */
.select-all-header-cell {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.select-all-header-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Phone & Email Dedicated Columns */
.col-phone {
    min-width: 140px;
}

.phone-cell-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.phone-link {
    color: #0284c7;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.phone-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.phone-actions-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-copy-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-chip:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #818cf8;
}

.btn-wa-chip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    color: #059669;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-wa-chip:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-maps-chip {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: var(--radius-sm);
    color: #1d4ed8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-maps-chip:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.tag-area-clickable {
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tag-area-clickable:hover {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border-color: #818cf8 !important;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
}

.btn-maps-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    border-radius: var(--radius-sm);
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 3px;
}

.btn-maps-modal-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.link-maps-redirect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.link-maps-redirect:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: var(--shadow-sm);
}

/* Locked Google Maps Elements (Requires "I'm taking this client") */
.btn-maps-chip.is-locked {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
}

.btn-maps-chip.is-locked:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tag-area.tag-area-locked {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: inherit;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}

.tag-area.tag-area-locked:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
}

.btn-maps-modal-link.is-locked {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
}

.btn-maps-modal-link.is-locked:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.link-maps-redirect.is-locked {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    cursor: pointer;
}

.link-maps-redirect.is-locked:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@keyframes claimAttentionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.pulse-claim-attention {
    animation: claimAttentionPulse 0.5s ease-in-out 3 !important;
    outline: 2px solid #818cf8 !important;
}

.custom-val-maps-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.custom-val-subtext {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    word-break: break-all;
    max-width: 440px;
}

.custom-val-link {
    font-size: 0.8rem;
    font-weight: 500;
    word-break: break-all;
}

.btn-follow-chip {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-radius: var(--radius-sm);
    color: #a21caf;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.btn-follow-chip:hover {
    background: #c026d3;
    color: #ffffff;
    border-color: #c026d3;
}

.btn-action-followup:hover {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
}

.btn-action-followup:hover svg {
    stroke: #4f46e5 !important;
}

.btn-check-all-urls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-check-all-urls:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.btn-check-all-urls:hover svg {
    stroke: #ffffff;
}

.btn-check-all-urls:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-check-all-urls.checking {
    background: #eef2ff;
    border-color: #818cf8;
    color: #4338ca;
}

.col-email {
    min-width: 150px;
}

.email-cell-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.email-link {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    word-break: break-all;
}

.email-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* ============================================================
   Floating Bulk Action Bar (Compact White)
   ============================================================ */
.bulk-action-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #ffffff;
    border-bottom: 1px solid #c7d2fe;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    animation: slideDown 0.15s ease-out;
}

.bulk-action-bar.visible {
    display: flex;
}

.bulk-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-count {
    font-size: 0.8rem;
    font-weight: 800;
    color: #4338ca;
}

.bulk-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   Data Table Styling & Lead Rows (Compact High-Density)
   ============================================================ */
.table-wrap {
    position: relative;
    min-height: 200px;
    width: 100%;
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table thead th {
    background: #f8fafc;
    padding: 7px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.78rem;
    color: #1e293b;
    background: #ffffff;
}

.custom-checkbox {
    width: 15px;
    height: 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    accent-color: var(--color-primary);
}

.data-table tr.lead-row {
    transition: background 0.1s ease;
}

.data-table tr.lead-row:hover td {
    background: #f8fafc !important;
}

.data-table tr.lead-row.row-selected td {
    background: #eef2ff !important;
}

.col-checkbox {
    width: 64px;
    min-width: 64px;
    text-align: center;
    padding: 6px 8px !important;
}

.select-all-header-cell {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.btn-select-all-page {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 5px;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition);
}

.btn-select-all-page:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.btn-select-all-page.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.col-name {
    min-width: 190px;
}

.lead-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lead-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.lead-identity-text {
    display: flex;
    flex-direction: column;
}

.lead-name-link {
    color: #0f172a;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}

.lead-name-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.lead-company {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 3px;
}

.col-value {
    min-width: 90px;
}

.value-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dim);
}

.value-text.has-value {
    color: #059669;
    font-weight: 700;
}

.col-date {
    min-width: 90px;
    font-size: 0.74rem;
    color: var(--color-text-dim);
}

.col-actions {
    width: 90px;
    text-align: right;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.table-loading-row, .table-empty-row {
    text-align: center;
    padding: 40px 16px !important;
    color: var(--color-text-dim);
    background: #ffffff !important;
}

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 2rem;
}

/* Pagination Bar (Compact) */
.pagination-bar {
    padding: 10px 14px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-page {
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.74rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-page:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-page.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-page.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   Modal Windows (Clean White)
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.modal-dialog {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.97);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

form.modal-dialog {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    margin-bottom: 0;
}

.modal-dialog form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.modal-dialog.modal-lg {
    max-width: 900px;
    width: 95vw;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

.modal-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    flex-shrink: 0;
}

.modal-title {
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.modal-close:hover {
    color: #0f172a;
}

.modal-body {
    padding: 18px;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

/* ============================================================
   Excel Upload Dropzone & Column Mapping UI
   ============================================================ */
.upload-dropzone {
    border: 2px dashed #c7d2fe;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 28px 18px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--color-primary);
    background: #eef2ff;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
}

.dropzone-title {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #0f172a;
}

.dropzone-subtitle {
    color: var(--color-text-dim);
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.dropzone-formats {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--color-text-dim);
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sample-template-box {
    margin-top: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.file-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.file-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-summary-card .file-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.file-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-name {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

.file-badge-ready {
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.file-details {
    font-size: 0.76rem;
    color: var(--color-text-dim);
}

.file-details strong {
    color: #0f172a;
}

.btn-remove-sheet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid #fca5a5;
    color: #dc2626;
    background: #fef2f2;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-sheet:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
}

.mapping-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapping-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
}

.auto-mapped-tag {
    font-size: 0.64rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 5px;
    border-radius: var(--radius-full);
}

.mapping-select {
    width: 100%;
    height: 32px;
    font-size: 0.76rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}

.mapping-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.import-options-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 14px;
}

.import-options-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
}

/* ============================================================
   Lead Detail Modal Styling
   ============================================================ */
.lead-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 14px;
}

.lead-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.lead-detail-title-box h2 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: #0f172a;
}

.lead-detail-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.company-badge, .value-badge {
    font-size: 0.72rem;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    color: #1e293b;
}

.value-badge {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

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

.detail-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-dim);
    font-weight: 700;
}

.detail-value {
    font-size: 0.82rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-primary {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

.btn-copy {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.66rem;
    padding: 1px 5px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.lead-notes-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.4;
    white-space: pre-wrap;
}

.custom-fields-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.custom-fields-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.custom-fields-table th {
    background: #f8fafc;
    padding: 6px 10px;
    text-align: left;
    color: #475569;
    font-weight: 700;
}

.custom-fields-table td {
    padding: 6px 10px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* ============================================================
   Toast Notifications System
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast-success .toast-icon { color: var(--color-success); }

.toast-error {
    border-left: 4px solid var(--color-error);
}

.toast-error .toast-icon { color: var(--color-error); }

.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast-warning .toast-icon { color: var(--color-warning); }

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 3px;
}

/* ============================================================
   Spinner Animations
   ============================================================ */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e2e8f0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 14px 18px;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.74rem;
    margin-top: auto;
    background: #ffffff;
}

/* ============================================================
   Vebnoxian Admin Panel Dedicated Styling
   ============================================================ */
.admin-navbar {
    background: #ffffff;
    border-bottom: 2px solid #f59e0b;
}

.crown-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff;
}

.admin-hero {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.admin-nav-btn {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

.admin-nav-btn:hover {
    background: #d97706 !important;
}

.system-info-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.system-info-box .info-label {
    font-size: 0.68rem;
    color: var(--color-text-dim);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.system-info-box .info-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

/* ============================================================
   Multi-Business Dropdown, Popover & Card Components
   ============================================================ */
.multi-biz-widget {
    position: relative;
    display: inline-block;
    margin-top: 2px;
}

.btn-multi-biz-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: var(--radius-full);
    color: #7c3aed;
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-multi-biz-pill:hover {
    background: #f3e8ff;
    border-color: #c084fc;
    color: #6d28d9;
}

.multi-biz-popover {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 270px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.multi-biz-popover.is-open {
    display: block;
    animation: fadeIn 0.15s ease;
}

.multi-biz-popover-head {
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.multi-biz-popover-head .popover-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
}

.multi-biz-popover-head .popover-contact {
    font-size: 0.68rem;
    color: var(--color-text-dim);
}

.multi-biz-popover-list {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.multi-biz-popover-item {
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.multi-biz-popover-item:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.multi-biz-popover-item.is-active {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.biz-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.biz-company {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
}

.badge-current-biz {
    font-size: 0.62rem;
    padding: 1px 5px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.biz-open-link {
    font-size: 0.66rem;
    color: #4f46e5;
    font-weight: 700;
}

.biz-row-meta {
    font-size: 0.68rem;
    color: var(--color-text-dim);
    margin-bottom: 3px;
}

.biz-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-status-badge {
    font-size: 0.65rem;
    text-transform: capitalize;
    color: #475569;
    font-weight: 600;
}

.biz-deal-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
}

/* Detail Modal Affiliated Business Grid */
.affiliated-businesses-section {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.affiliated-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.affiliated-biz-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.affiliated-biz-card:hover {
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.affiliated-biz-card.current-active-card {
    border-color: #10b981;
    background: #f0fdf4;
}

.aff-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.aff-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-switch-biz {
    font-size: 0.68rem;
    color: #4f46e5;
    font-weight: 700;
}

.aff-contact-name {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin-bottom: 3px;
}

.aff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

.aff-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 4px;
}

.aff-val {
    font-size: 0.74rem;
    font-weight: 700;
    color: #047857;
}

/* History Table in Detail Modal */
.history-table {
    font-size: 0.76rem;
    margin-top: 6px;
}

.history-table th {
    padding: 6px 10px;
    background: #f8fafc;
    color: #475569;
}

.history-table td {
    padding: 6px 10px;
}

.quick-date-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 2px 6px;
    font-size: 0.68rem;
    border-radius: var(--radius-sm);
}

.summary-lead-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: #0f172a;
}

/* ============================================================
   Responsive Breakpoints (Compact)
   ============================================================ */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 12px 10px;
    }
    .panel-header, .filter-toolbar, .pagination-bar {
        padding: 8px 10px;
    }
    .search-box {
        max-width: 100%;
        min-width: 100%;
    }
    .filter-dropdowns {
        width: 100%;
    }
    .filter-dropdowns .filter-select {
        flex: 1;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 1.15rem;
    }
    .card {
        padding: 18px 14px;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        width: 100%;
    }
    .hero-actions .btn {
        flex: 1;
    }
    .bulk-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   "I'm taking this client" Buttons, Badges, & Chips
   ============================================================ */
.btn-take-client-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.69rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.25);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-take-client-chip:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.btn-take-client-chip:active {
    transform: translateY(0);
}

.btn-take-client-chip.is-claimed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
    cursor: default;
    box-shadow: none;
}

.btn-take-client-chip.is-other {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.btn-take-client-chip.is-other:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.btn-take-client-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 0.70rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-take-client-action:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.badge-claimed-lead {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 0.70rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.btn-take-client-modal {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.btn-take-client-modal:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

.assign-row-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   Follow-up & Meeting Buttons, Tags, and Chips
   ============================================================ */
.btn-meeting-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4338ca;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-meeting-chip:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.btn-follow-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-follow-chip:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0369a1;
}

.btn-schedule-meeting {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-schedule-meeting.btn-meeting-new {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.btn-schedule-meeting.btn-meeting-new:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.btn-schedule-meeting.btn-meeting-pending {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-schedule-meeting.btn-meeting-pending:hover {
    background: #e2e8f0;
}

.btn-complete-meeting {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-complete-meeting:hover {
    background: #059669;
    color: #ffffff;
    border-color: #047857;
}

.btn-action-meeting {
    color: #4f46e5 !important;
}

.btn-action-meeting:hover {
    background: #eef2ff !important;
    color: #3730a3 !important;
}

.btn-action-followup {
    color: #0284c7 !important;
}

.btn-action-followup:hover {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Meeting Tags */
.meeting-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.tag-meeting-today {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    animation: pulse 2s infinite;
}

.tag-meeting-upcoming {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.tag-meeting-overdue {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tag-meeting-done {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.meeting-note-snippet {
    display: block;
    font-size: 0.72rem;
    color: #6366f1;
    font-style: italic;
    margin-top: 2px;
}

/* ============================================================
   Interactive Follow-up Count Badges & Editable CRM Modal
   ============================================================ */
button.tag-followup-count,
.tag-followup-count.count-btn {
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #d8b4fe;
    background: #faf5ff;
    color: #6d28d9;
    text-decoration: none;
    line-height: 1.25;
    outline: none;
    user-select: none;
}

button.tag-followup-count:hover,
.tag-followup-count.count-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(124, 58, 237, 0.28);
}

button.tag-followup-count:active,
.tag-followup-count.count-btn:active {
    transform: translateY(0);
}

button.tag-followup-count.count-zero,
.tag-followup-count.count-zero.count-btn {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

button.tag-followup-count.count-zero:hover,
.tag-followup-count.count-zero.count-btn:hover {
    background: #475569;
    color: #ffffff;
    border-color: #334155;
    box-shadow: 0 2px 5px rgba(71, 85, 105, 0.22);
}

/* Modal Dialog Large for Rich Followup Management */
.modal-dialog-lg {
    max-width: 620px;
}

/* Follow-up History Container inside Modal */
.followup-history-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.followup-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.followup-history-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.followup-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.followup-history-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: var(--transition);
}

.followup-history-item:hover {
    border-color: #818cf8;
    box-shadow: var(--shadow-sm);
}

.followup-history-item.is-selected {
    border-color: #6366f1;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.followup-history-item.is-completed {
    border-left: 3px solid #10b981;
}

.followup-history-item.is-pending {
    border-left: 3px solid #f59e0b;
}

.f-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.f-item-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.f-attempt-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    border: 1px solid #c7d2fe;
}

.f-item-date {
    font-size: 0.76rem;
    color: #0f172a;
}

.f-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-f-action {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    line-height: 1.2;
}

.btn-f-edit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-f-edit:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.btn-f-complete {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.btn-f-complete:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.btn-f-reopen {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.btn-f-reopen:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

.btn-f-delete {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    padding: 2px 5px;
}

.btn-f-delete:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #b91c1c;
}

.f-item-meta {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin-bottom: 3px;
}

.f-item-notes {
    font-size: 0.74rem;
    color: #334155;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid #f1f5f9;
    margin-top: 4px;
}

/* Mode Banner */
.followup-mode-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.mode-banner-text {
    display: flex;
    flex-direction: column;
}

.mode-banner-text strong {
    font-size: 0.82rem;
    color: #3730a3;
}

.btn-cancel-edit-followup {
    font-size: 0.70rem;
    font-weight: 700;
    color: #4f46e5;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel-edit-followup:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

/* Extra Small Action Button in History Tables */
.btn-xs-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-xs-action:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.btn-modal-ok {
    font-weight: 700;
    min-width: 60px;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-modal-ok:hover {
    background: #475569;
    color: #ffffff;
    border-color: #334155;
}

/* ============================================================
   Hidden Phone Number Masking (Revealed Upon Assignment)
   ============================================================ */
.phone-hidden-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    user-select: none;
}

.phone-masked-text {
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #64748b;
    font-family: var(--font-mono, monospace);
}

.phone-masked-badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 0.76rem;
}




