/* -----------------------------------------------------------------------------
 * UNI SUPPORT - Next-Gen 2026 SaaS CRM Stylesheet (Modern Horizontal Navigation)
 * Ultra-Modern Design System: Glassmorphism, Modern Horizontal Nav Ribbon, KPI Cards
 * ----------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Original Brand Palette from Screenshot */
  --crm-topbar-bg: #1a4fa0;
  /* Royal Cobalt Blue (Top Header) */
  --crm-navbar-bg: #12376e;
  /* Deep Blue (Sub Navigation Bar) */
  --crm-teal: #009688;
  /* Vibrant Teal (Active Tab & Calendar Headers) */
  --crm-teal-hover: #00897b;
  --crm-teal-dark: #00796b;
  --crm-teal-light: #e0f2f1;

  --crm-bg-base: #f5f7fb;
  --crm-bg-surface: #ffffff;
  --crm-border: #e2e8f0;
  --crm-border-subtle: #f1f5f9;

  /* Accent Colors */
  --crm-primary: #1a4fa0;
  --crm-indigo: #4338ca;
  --crm-emerald: #009688;
  --crm-amber: #f59e0b;
  --crm-rose: #ef4444;
  --crm-sky: #0284c7;
  --crm-violet: #7c3aed;

  /* Typography */
  --crm-text-heading: #252525;
  --crm-text-body: #252525;
  --crm-text-muted: #252525;
  --crm-text-light: #252525;

  /* Shadows */
  --crm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --crm-shadow-md: 0 4px 12px rgba(18, 55, 110, 0.08);
  --crm-shadow-lg: 0 10px 25px -3px rgba(18, 55, 110, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Lexend', sans-serif;
  background-color: var(--crm-bg-base);
  color: #252525;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* User Defined Charcoal Dark Tone (#252525) - Comprehensive Application */
.text-dark,
.text-muted,
.text-secondary,
.text-black-50,
h1,
h2,
h3,
h4,
h5,
h6,
.table-lead-name,
.crm-enquiry-table thead th,
.crm-enquiry-table tbody td,
.crm-enquiry-table tbody td span,
.crm-enquiry-table tbody td div,
.filter-field-group label,
.filter-field-group .form-control,
.filter-field-group .form-select,
.screenshot-filter-header .filter-header-title,
.toolbar-action-btn,
.counselor-pill,
.country-pill,
.intake-pill,
.date-pill-outline,
.badge-upload-btn,
.bottom-show-entries,
.bottom-show-entries select,
.bottom-records-badge,
.bottom-records-badge span,
.bottom-records-badge .total-num,
.crm-pagination .page-item .page-link,
.workspace-title-text h1,
.crm-search-input {
  color: #252525 !important;
}


/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* =============================================================================
   1. TOP PRIMARY HEADER (Brand, Search, Quick Tools, Profile)
============================================================================= */
.modern-top-header {
  background: var(--crm-topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 1.5rem;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: var(--crm-teal);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 150, 136, 0.4);
}

.brand-title {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

/* Search Box in Top Header - White pill with Teal Search Icon Button matching screenshot */
.modern-search-bar {
  position: relative;
  width: 420px;
}

.modern-search-bar .search-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--crm-teal);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.modern-search-bar input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 3rem 0.5rem 1rem;
  font-size: 0.84rem;
  color: #1e293b;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modern-search-bar input:focus {
  background: #ffffff;
  border-color: var(--crm-teal);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.25);
  outline: none;
}

.modern-search-bar input::placeholder {
  color: #64748b;
  font-size: 0.825rem;
}

.modern-search-bar .shortcut-badge {
  display: none;
}

/* Topbar Action Icons */
.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.notif-pulse-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 2px var(--crm-topbar-bg);
}

/* Quick Action Button */
.btn-primary-glow {
  background: var(--crm-teal);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 3px 10px rgba(0, 150, 136, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-glow:hover {
  background: var(--crm-teal-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Premium Sleek Counselor User Profile Pill */
.counselor-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px 4px 5px;
  border-radius: 35px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.counselor-user-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.counselor-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2be 0%, #009688 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.counselor-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  border: 2px solid var(--crm-topbar-bg);
}

.counselor-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.counselor-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.counselor-role {
  font-size: 0.65rem;
  color: #a7f3d0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  width: 250px;
  border: 1px solid var(--crm-border);
  box-shadow: 0 15px 35px -5px rgba(18, 55, 110, 0.2);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-top: 6px !important;
  transform-origin: top right;
  animation: dropdownSmoothFade 0.15s ease-out;
}

@keyframes dropdownSmoothFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.profile-dropdown-header {
  background: linear-gradient(135deg, #1a4fa0 0%, #12376e 100%);
  padding: 1rem;
  color: #ffffff;
}

.profile-dropdown-menu .dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s;
}

.profile-dropdown-menu .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--crm-teal);
  padding-left: 1.15rem;
}

.modern-nav-ribbon {
  background: var(--crm-navbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1020;
  overflow: visible !important;
}

.modern-nav-ribbon .container-fluid {
  overflow: visible !important;
}

.horizontal-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible !important;
}

.horizontal-nav-item {
  flex-shrink: 0;
  position: relative;
}

.horizontal-nav-item .h-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
  border-radius: 0;
  white-space: nowrap;
  cursor: pointer;
}

.horizontal-nav-item .h-nav-link i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}

.horizontal-nav-item .h-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Active Menu Tab in Screenshot Teal */
.horizontal-nav-item.active .h-nav-link,
.horizontal-nav-item .h-nav-link.active {
  background-color: var(--crm-teal);
  color: #ffffff;
  font-weight: 400;
}

.horizontal-nav-item.active .h-nav-link i,
.horizontal-nav-item .h-nav-link.active i {
  color: #ffffff;
}

.h-nav-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 700;
}

/* Dropdown Menu inside Ribbon */
.modern-nav-ribbon .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--crm-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 220px;
  margin-top: 0;
  z-index: 1060 !important;
}

/* Enable smooth hover and click open for sub-menus */
.horizontal-nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.modern-nav-ribbon .dropdown-item {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s;
}

.modern-nav-ribbon .dropdown-item:hover {
  background: #f1f5f9;
  color: var(--crm-teal);
}

.modern-nav-ribbon .dropdown-item i {
  font-size: 1rem;
}

.modern-nav-ribbon .dropdown-item:hover {
  background: #f1f5f9;
  color: var(--crm-teal);
}

.modern-nav-ribbon .dropdown-item i {
  font-size: 1rem;
}

/* =============================================================================
   3. ULTRA-ATTRACTIVE WORKSPACE HEADER & KPI METRIC CARDS
============================================================================= */
.workspace-header-card {
  margin-bottom: 1.5rem;
}

.workspace-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f2744;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workspace-subtitle {
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 0;
  font-weight: 400;
}

/* Enhanced Attractive KPI Metric Cards */
.metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 6px rgba(18, 55, 110, 0.04), 0 10px 20px -5px rgba(18, 55, 110, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(18, 55, 110, 0.12), 0 6px 12px -2px rgba(18, 55, 110, 0.06);
  border-color: #cbd5e1;
}

/* Card 1: Emerald Theme */
.metric-card.card-emerald::before {
  background: linear-gradient(90deg, #00b4a0, #00897b);
}

.metric-card.card-emerald:hover {
  border-color: #a7f3d0;
}

/* Card 2: Royal Blue Theme */
.metric-card.card-blue::before {
  background: linear-gradient(90deg, #3b82f6, #1a4fa0);
}

.metric-card.card-blue:hover {
  border-color: #bfdbfe;
}

/* Card 3: Amber Theme */
.metric-card.card-amber::before {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.metric-card.card-amber:hover {
  border-color: #fde68a;
}

/* Card 4: Rose Theme */
.metric-card.card-rose::before {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.metric-card.card-rose:hover {
  border-color: #fecaca;
}

/* Metric Icon Boxes */
.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.icon-box-emerald {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #00796b;
}

.icon-box-blue {
  background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
  color: #1a4fa0;
}

.icon-box-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
}

.icon-box-rose {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
}

/* Trend Badges */
.trend-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.trend-badge-emerald {
  background-color: #e0f2f1;
  color: #00796b;
  border: 1px solid #b2dfdb;
}

.trend-badge-blue {
  background-color: #eef2ff;
  color: #1a4fa0;
  border: 1px solid #c7d2fe;
}

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

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

/* Metric Text Styling */
.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.metric-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

/* Mini Progress Bar */
.metric-progress {
  height: 4px;
  border-radius: 4px;
  background-color: #f1f5f9;
  margin-top: 0.85rem;
  overflow: hidden;
}

.metric-progress-bar {
  height: 100%;
  border-radius: 4px;
}

.progress-emerald {
  background: linear-gradient(90deg, #00b4a0, #00897b);
  width: 75%;
}

.progress-blue {
  background: linear-gradient(90deg, #3b82f6, #1a4fa0);
  width: 85%;
}

.progress-amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
  width: 60%;
}

.progress-rose {
  background: linear-gradient(90deg, #f87171, #ef4444);
  width: 45%;
}

/* =============================================================================
   4. NEXT-GEN FULLCALENDAR 6 STYLING (Teal Theme Matching Screenshot)
============================================================================= */
.calendar-glass-panel {
  background: #ffffff;
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--crm-shadow-md);
}

.calendar-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--crm-border-subtle);
  scrollbar-width: none;
}

.calendar-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  border: 1px solid var(--crm-border);
  background: #ffffff;
  color: var(--crm-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: #f8fafc;
  color: var(--crm-text-heading);
}

.filter-pill.active {
  background: var(--crm-teal);
  color: #ffffff;
  border-color: var(--crm-teal);
  box-shadow: var(--crm-shadow-sm);
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fc .fc-toolbar {
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.fc .fc-toolbar-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--crm-text-heading) !important;
}

.fc .fc-button-primary {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--crm-text-heading) !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  padding: 0.42rem 0.9rem !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: all 0.15s;
  text-transform: lowercase !important;
}

.fc .fc-button-primary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.fc .fc-button-active,
.fc .fc-button-primary.fc-button-active {
  background: var(--crm-teal) !important;
  border-color: var(--crm-teal) !important;
  color: #ffffff !important;
}

/* Header row (Sun, Mon, Tue, Wed, Thu, Fri, Sat) in Screenshot Teal */
.fc-theme-standard th {
  background: var(--crm-teal) !important;
  border: 1px solid #00897b !important;
  padding: 10px 4px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}

.fc-theme-standard td {
  border: 1px solid #e2e8f0 !important;
}

/* Subtle warm background for Saturday as in screenshot */
.fc .fc-day-sat {
  background-color: #fffdf5;
}

.fc .fc-daygrid-day-number {
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 10px;
}

.fc .fc-daygrid-day.fc-day-today {
  background-color: #e0f2f1 !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: var(--crm-teal);
  color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
}

/* Event Badges matching screenshot teal pill */
.fc-event {
  border: none !important;
  border-radius: 4px !important;
  padding: 3px 6px !important;
  font-size: 0.775rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin-bottom: 2px !important;
  transition: transform 0.15s, filter 0.15s;
}

.fc-event:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.event-emerald {
  background-color: var(--crm-teal) !important;
  color: #ffffff !important;
}

.event-indigo {
  background-color: #1a4fa0 !important;
  color: #ffffff !important;
}

.event-amber {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

.event-rose {
  background-color: #e11d48 !important;
  color: #ffffff !important;
}

.event-violet {
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

/* =============================================================================
   5. AGENDA & TASK PALETTE
============================================================================= */
.agenda-card {
  background: #ffffff;
  border: 1px solid var(--crm-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.agenda-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--crm-border-subtle);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.agenda-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--crm-shadow-sm);
  transform: translateX(2px);
}

.agenda-time-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  height: fit-content;
  white-space: nowrap;
}

/* =============================================================================
   6. ATTRACTIVE FORM STYLING (ADD ENQUIRY & INPUTS)
============================================================================= */
.enquiry-card {
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(18, 55, 110, 0.06);
  overflow: hidden;
}

.enquiry-card-header {
  background: #e4f4f2;
  color: #0f3460;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #cceae6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modern Attractive Form Inputs */
.crm-form-group {
  margin-bottom: 0.35rem;
}

.crm-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.crm-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.crm-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.2);
  border-radius: 8px;
}

.crm-input-icon {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.crm-input-group:focus-within .crm-input-icon {
  border-color: #009688;
  color: #009688;
  background: #e0f2f1;
}

.crm-input-field {
  border: 1px solid #cbd5e1;
  border-left: none;
  border-radius: 0 8px 8px 0 !important;
  font-size: 0.84rem;
  font-weight: 500;
  color: #1e293b;
  padding: 0.55rem 0.75rem;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.crm-input-field:focus {
  border-color: #009688;
  outline: none;
  box-shadow: none;
}

.crm-input-field::placeholder {
  color: #94a3b8;
  font-size: 0.825rem;
  font-weight: 400;
}

/* Attractive Action Buttons */
.btn-crm-save {
  background: linear-gradient(135deg, #00b4a0 0%, #00897b 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn-crm-save:hover {
  background: linear-gradient(135deg, #00a08e 0%, #00796b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 150, 136, 0.5);
}

.btn-crm-cancel {
  background: #ffffff;
  color: #64748b !important;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-crm-cancel:hover {
  background: #fee2e2;
  color: #dc2626 !important;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.crm-footer {
  background: #ffffff;
  border-top: 1px solid var(--crm-border);
  padding: 1rem 1.5rem;
  color: var(--crm-text-muted);
  font-size: 0.825rem;
}

/* =============================================================================
   ADD ENQUIRY - VALIDATION STATES & STATUS ALERTS
============================================================================= */
.crm-form-group.has-error .crm-input-field,
.crm-form-group.has-error .form-select.crm-input-field {
  border-color: #dc2626 !important;
}

.crm-form-group.has-error .crm-input-icon {
  border-color: #dc2626;
  color: #dc2626;
}

.crm-form-group.has-error .crm-input-group {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  border-radius: 8px;
}

.crm-field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.3rem;
}

.crm-alert {
  border-left: 4px solid currentColor;
  font-size: 0.84rem;
}

.crm-alert ul {
  margin-top: 0.15rem;
}

/* =============================================================================
   VIEW ENQUIRY MODERN TABLE & WORKSPACE STYLING
============================================================================= */

/* Standardized Global Main Workspace Spacing */
.main-content-stream {
  padding-top: 1.25rem !important;
  padding-bottom: 2rem !important;
  flex: 1 0 auto;
}

/* Standardized Universal Breadcrumb - Ultra-Modern Clean Design */
.crm-breadcrumb-wrapper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  height: 38px;
}

.crm-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.crm-breadcrumb .crumb-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 9px;
  height: 28px;
  border-radius: 6px;
  color: #64748b !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
}

.crm-breadcrumb .crumb-item-btn:hover {
  background: #f1f5f9;
  color: #009688 !important;
  transform: none;
}

.crm-breadcrumb .crumb-item-btn i {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.crm-breadcrumb .crumb-item-btn:hover i {
  color: #009688;
}

.crm-breadcrumb .breadcrumb-separator {
  color: #cbd5e1;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.crm-breadcrumb .active-crumb {
  background: #e0f2f1;
  color: #00796b !important;
  font-weight: 600;
  padding: 4px 10px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #b2dfdb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  box-shadow: none;
  letter-spacing: 0.01em;
}

.crm-breadcrumb .active-crumb i {
  color: #00897b;
  font-size: 0.82rem;
}

/* Ultra-Modern Filter Panel Card */
/* =============================================================================
   EXACT SCREENSHOT FILTER SYSTEM
============================================================================= */
.screenshot-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-top: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.screenshot-filter-header {
  background: #f1f4f9;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.screenshot-filter-header .filter-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #252525;
}

.screenshot-filter-header .filter-header-title i.bi-funnel {
  font-size: 0.95rem;
  color: #475569;
}

.screenshot-filter-header .filter-toggle-icon {
  color: #475569;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

/* When header is NOT collapsed (i.e. expanded), rotate chevron */
.screenshot-filter-header:not(.collapsed) .filter-toggle-icon {
  transform: rotate(180deg);
}

.screenshot-filter-body {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  background: #ffffff;
}

.filter-field-group {
  margin-bottom: 0.85rem;
}

.filter-field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #252525;
  margin-bottom: 0.35rem;
}

.filter-field-group .form-control,
.filter-field-group .form-select {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #252525;
  padding: 0.42rem 0.65rem;
  background-color: #ffffff;
  height: 36px;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-field-group .form-control::placeholder {
  color: #94a3b8;
  font-size: 0.78rem;
}

.filter-field-group .form-control:focus,
.filter-field-group .form-select:focus {
  border-color: #1a4fa0;
  box-shadow: 0 0 0 2px rgba(26, 79, 160, 0.15);
  outline: none;
}

/* Search & Reset Buttons matched to CRM Theme */
.btn-filter-search {
  background: linear-gradient(135deg, #009688 0%, #00796b 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 1.25rem;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0, 150, 136, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filter-search:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.4);
}

.btn-filter-reset-red {
  background: #ffffff;
  color: #be123c !important;
  border: 1px solid #fecdd3;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  box-shadow: 0 1px 3px rgba(190, 18, 60, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filter-reset-red:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.2);
}


/* =============================================================================
   NEXT-GEN SAAS 2026: EXECUTIVE WORKSPACE & DATATABLE SUITE
============================================================================= */

/* Workspace Header Card */
.workspace-header-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-title-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.workspace-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #00796b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 150, 136, 0.15);
}

.workspace-title-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #252525;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.workspace-title-text p {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Quick Stats Bar (Right side of header) */
.workspace-quick-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.quick-stat-pill .stat-value {
  font-weight: 800;
  color: #00897b;
}

/* Executive Gradient Action Buttons */
.btn-filter-executive {
  background: linear-gradient(135deg, #009688 0%, #00796b 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(0, 150, 136, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filter-executive:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

/* Modern Datatable Container */
.crm-table-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 1.25rem 1.4rem;
}

/* Upper Toolbar Controls */
.crm-toolbar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.crm-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Micro-Interaction Toolbar Action Buttons */
.toolbar-action-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toolbar-action-btn .btn-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.toolbar-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toolbar-action-btn:hover .btn-icon-circle {
  transform: scale(1.1);
}

.toolbar-action-btn.btn-excel:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.toolbar-action-btn.btn-assign:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.toolbar-action-btn.btn-email:hover {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #be185d;
}

.toolbar-action-btn.btn-message:hover {
  background: #e0f2f1;
  border-color: #80cbc4;
  color: #00695c;
}

/* Delete Selected Button Styling (From Source File) */
.toolbar-action-btn.btn-delete-selected:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.toolbar-action-btn.btn-delete-selected:hover .btn-icon-circle {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* Modern Pill Table Search Input */
.crm-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.crm-search-wrapper i {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.crm-search-input {
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem 0.45rem 2.25rem;
  width: 240px;
  outline: none;
  transition: all 0.2s ease;
  color: #252525;
}

.crm-search-input:focus {
  background-color: #ffffff;
  border-color: #009688;
  width: 280px;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

/* =============================================================================
   ULTRA-PROFESSIONAL TABLE ENGINE (HORIZONTAL SCROLL ONLY)
============================================================================= */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.table-responsive-wrapper::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

/* =============================================================================
   TABLE DESIGN - MATCHING IMAGE (CLEAN GRID, BORDERED, NO FIXED SCROLL)
============================================================================= */
.crm-enquiry-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.825rem;
  vertical-align: middle;
  border-collapse: collapse !important;
  border: 1px solid #dee2e6 !important;
  background-color: #ffffff;
}

/* Header Row: Clean White, 1px Full Grid Borders, Dark Text */
.crm-enquiry-table thead th {
  background: #ffffff !important;
  color: #252525 !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dee2e6 !important;
  border-bottom: 2px solid #dee2e6 !important;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
  position: static !important;
}

/* Data Cells: 1px Full Grid Borders & Typography */
.crm-enquiry-table tbody td {
  padding: 0.75rem 0.85rem;
  border: 1px solid #dee2e6 !important;
  color: #252525 !important;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  position: static !important;
}

.crm-enquiry-table tbody tr {
  border: none;
}

/* Alternating Even and Odd Row Striping */
.crm-enquiry-table tbody tr:nth-of-type(odd) td,
.crm-enquiry-table tbody tr.odd td {
  background-color: #ffffff !important;
}

.crm-enquiry-table tbody tr:nth-of-type(even) td,
.crm-enquiry-table tbody tr.even td {
  background-color: #f8fafc !important;
}

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

/* Avatar Initials Circle */
.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}

/* Table Lead Name Block */
.table-lead-name {
  font-weight: 700;
  color: #252525;
  font-size: 0.825rem;
  line-height: 1.25;
}

/* Clickable name for followup popup (same as reference CRM) */
.table-lead-name[onclick] {
  cursor: pointer;
  color: #0d6efd;
  transition: color 0.15s ease;
}

.table-lead-name[onclick]:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* =============================================================================
   FOLLOWUP MODAL - MODERN CRM DESIGN (Pixel-perfect to Reference)
============================================================================= */
#followupModal .modal-content.followup-modal-content {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#followupModal .modal-header.followup-modal-header {
  padding: 12px 20px;
  background: #008e87;
  color: #ffffff;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#followupModal .followup-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

#followupModal .followup-modal-close {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0;
  line-height: 1;
}

#followupModal .followup-modal-close:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Modal Form Inputs Box */
#followupModal .followup-box-card {
  border: 1px solid #d2d6dc;
  border-radius: 6px;
  padding: 14px 16px 16px;
  margin: 16px 16px 12px;
  background: #ffffff;
}

#followupModal .followup-field-label {
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 5px;
  display: block;
}

#followupModal .followup-input-group .input-group-text {
  background-color: #f0fbfb;
  border: 1px solid #ced4da;
  border-right: none;
  color: #495057;
  font-size: 14px;
  padding: 6px 12px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

#followupModal .followup-input-group .form-control,
#followupModal .followup-input-group .form-select {
  border: 1px solid #ced4da;
  border-left: none;
  font-size: 13.5px;
  height: 38px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  color: #212529;
}

#followupModal .followup-input-group .form-control:focus,
#followupModal .followup-input-group .form-select:focus {
  border-color: #008e87;
  box-shadow: none;
}

/* View Followups Tab Header */
#followupModal .followup-tab-wrapper {
  padding: 0 16px;
  margin-top: 6px;
  margin-bottom: 8px;
}

#followupModal .followup-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #008e87;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2.5px solid #008e87;
  cursor: default;
}

/* Followups List Section & Table */
#followupModal .followup-list-section {
  padding: 6px 16px 16px;
}

#followupModal .followup-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
}

#followupModal .followup-table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow-x: auto;
  background: #ffffff;
}

#followupModal .followup-history-table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
}

#followupModal .followup-history-table thead th {
  background-color: #ffffff;
  color: #212529;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

#followupModal .followup-history-table tbody td {
  font-size: 13px;
  color: #333333;
  padding: 9px 12px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

#followupModal .followup-history-table tbody tr:nth-of-type(even) {
  background-color: #fdfdfd;
}

#followupModal .followup-history-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Modal Footer Action Buttons */
#followupModal .followup-modal-footer {
  padding: 10px 16px 16px;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#followupModal .btn-followup-close {
  background-color: #f15b6c !important;
  border-color: #f15b6c !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 20px;
  border-radius: 4px;
  border: none;
  transition: background-color 0.2s ease;
}

#followupModal .btn-followup-close:hover {
  background-color: #d94556 !important;
  border-color: #d94556 !important;
}

#followupModal .btn-followup-submit {
  background-color: #008e87 !important;
  border-color: #008e87 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 22px;
  border-radius: 4px;
  border: none;
  transition: background-color 0.2s ease;
}

#followupModal .btn-followup-submit:hover {
  background-color: #00736e !important;
  border-color: #00736e !important;
}

/* Solid Blue Edit and Red Delete Action Buttons - Exactly as in the Image */
.table-act-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.table-act-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.table-act-btn i {
  color: #ffffff !important;
  font-size: 0.85rem;
}

/* Solid Blue Edit Button from Image */
.table-act-edit {
  background-color: #337ab7 !important;
  border: 1px solid #2e6da4 !important;
  color: #ffffff !important;
}

.table-act-edit:hover {
  background-color: #286090 !important;
  border-color: #204d74 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Solid Red Delete Button from Image */
.table-act-del {
  background-color: #d9534f !important;
  border: 1px solid #d43f3a !important;
  color: #ffffff !important;
}

.table-act-del:hover {
  background-color: #c9302c !important;
  border-color: #ac2925 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Modern SaaS Date Pill */
.date-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: #475569;
  background: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}

.date-pill-outline i {
  color: #009688;
  font-size: 0.75rem;
}

/* Green DOB Outline Pill */
.dob-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.72rem;
  color: #16a34a;
  background: #f0fdf4;
  font-weight: 600;
  white-space: nowrap;
}

/* Lead Type Pill */
.badge-applicant {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
}

.badge-applicant::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #16a34a;
}

/* Status Chips */
.badge-super-hot {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ea580c;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

.badge-warm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ca8a04;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

.badge-cold {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

/* Modern Document Upload Button */
.badge-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: #334155;
  background: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.badge-upload-btn i {
  font-size: 0.78rem;
  color: #009688;
  transition: color 0.15s ease-in-out;
}

.badge-upload-btn:hover {
  background: #009688 !important;
  color: #ffffff !important;
  border-color: #00897b !important;
  box-shadow: 0 2px 6px rgba(0, 150, 136, 0.25);
}

.badge-upload-btn:hover i {
  color: #ffffff !important;
}

/* "App. Return" Button in the Name Column (same as reference CRM) */
.app-return-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  line-height: 1.4;
  text-align: center;
}

/* Highlighted Table Checkboxes */
.crm-enquiry-table .form-check-input {
  width: 18px;
  height: 18px;
  border: 1.5px solid #64748b !important;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  margin: 0 auto;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.15s ease-in-out;
}

.crm-enquiry-table .form-check-input:hover {
  border-color: #009688 !important;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.15) !important;
}

.crm-enquiry-table .form-check-input:focus {
  border-color: #009688 !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.25) !important;
  outline: none;
}

.crm-enquiry-table .form-check-input:checked {
  background-color: #009688 !important;
  border-color: #009688 !important;
}

/* Country Micro Flag/Pill */
.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Intake Pill */
.intake-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Counselor Tag */
.counselor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.counselor-pill i {
  color: #2563eb;
  font-size: 0.85rem;
}

/* =============================================================================
   BOTTOM CONTROLS BAR: 3-PART EXECUTIVE FOOTER
============================================================================= */
.crm-table-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.85rem 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.bottom-show-entries {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.bottom-show-entries select {
  font-size: 0.78rem;
  font-weight: 700;
  color: #252525;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
}

.bottom-show-entries select:focus {
  border-color: #009688;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2);
}

.bottom-records-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #64748b;
}

.bottom-records-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #009688;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2);
}

.bottom-records-badge .total-num {
  font-weight: 800;
  color: #252525;
}

/* Custom Table Pagination - Connected Group Without Gaps */
.crm-pagination {
  display: inline-flex;
  align-items: stretch;
  gap: 0 !important;
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
  border-radius: 4px;
}

.crm-pagination .page-item {
  display: inline-flex;
}

.crm-pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid #dee2e6;
  margin-left: -1px;
  background: #ffffff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: none !important;
}

.crm-pagination .page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

.crm-pagination .page-item:last-child .page-link {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.crm-pagination .page-item .page-link:hover:not(.disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #009688;
  z-index: 2;
  transform: none !important;
}

.crm-pagination .page-item.active .page-link {
  background: #009688 !important;
  border-color: #009688 !important;
  color: #ffffff !important;
  z-index: 3;
  transform: none !important;
}

.crm-pagination .page-item.disabled .page-link {
  background: #f8fafc;
  border-color: #dee2e6;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

/* =============================================================================
   DATATABLES 2.x MODERN SAAS INTEGRATION
============================================================================= */
table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 2px solid #cbd5e1 !important;
  color: #252525 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background-color: #f8fafc !important;
}

table.dataTable thead .dt-column-order {
  opacity: 0.45;
  transition: opacity 0.2s;
}

table.dataTable thead th:hover .dt-column-order {
  opacity: 1;
  color: #009688;
}

table.dataTable.no-footer {
  border-bottom: 1px solid #edf2f7 !important;
}

.dt-container .dt-search input {
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  border-radius: 30px !important;
  font-size: 0.8rem !important;
  padding: 0.4rem 0.9rem !important;
  outline: none !important;
  color: #252525 !important;
}

.dt-container .dt-search input:focus {
  background-color: #ffffff !important;
  border-color: #009688 !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15) !important;
}

.dt-container .dt-length select {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #252525 !important;
  background-color: #f8fafc !important;
}

.dt-container .dt-paging .dt-paging-button {
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  margin: 0 2px !important;
  transition: all 0.2s !important;
}

.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) {
  background: #f8fafc !important;
  border-color: #009688 !important;
  color: #009688 !important;
}

.dt-container .dt-paging .dt-paging-button.current {
  background: linear-gradient(135deg, #009688 0%, #00796b 100%) !important;
  border-color: #00796b !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(0, 150, 136, 0.3) !important;
}

/* Ensure DataTables auto-injected wrappers do not collapse columns */
div.dt-container {
  position: relative;
  clear: both;
  width: 100%;
}

div.dt-container div.dt-layout-row {
  margin: 0 !important;
}

div.dt-container .table-responsive-wrapper {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* =============================================================================
   SEARCH CONTACT CARD (VIEW ALL CONTACTS PAGE)
============================================================================= */
.search-contact-card {
  background: #ffffff;
  border: 1.5px solid #80cbc4;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 150, 136, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.search-contact-header {
  background: #e0f2f1;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #004d40;
  border-bottom: 1px solid #b2dfdb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-contact-body {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  background: #ffffff;
}

.search-contact-body label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #252525;
  margin-bottom: 0.4rem;
}

.search-contact-body .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.825rem;
  color: #252525;
  padding: 0.45rem 0.75rem;
  height: 38px;
}

.search-contact-body .form-control:focus {
  border-color: #009688;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2);
  outline: none;
}

.btn-contact-search {
  background-color: #009688 !important;
  color: #ffffff !important;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  box-shadow: 0 2px 6px rgba(0, 150, 136, 0.25);
  transition: all 0.15s ease;
}

.btn-contact-search:hover {
  background-color: #00796b !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-contact-reset {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
  transition: all 0.15s ease;
}

.btn-contact-reset:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}