/* ==========================================================================
   CRM DIGITAL — DESIGN & PERFORMANCE MASTER STYLESHEET
   - Dark Dashboard Theme (Obsidian & Jewel Glow)
   - Compact & Attractive Sales & Client Forms & Views
   ========================================================================== */

:root {
  --crm-ink: #0f172a;
  --crm-slate: #475569;
  --crm-mist: #f1f5f9;
  --crm-line: #e2e8f0;
  --crm-accent: #FF7A00;
  --crm-accent-2: #FFA216;
  --crm-accent-teal: #FF5500;
  --crm-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --crm-radius: 14px;

  /* Bootstrap Brand Overrides for Unified Orange Theme */
  --bs-primary: #FF7A00 !important;
  --bs-primary-rgb: 255, 122, 0 !important;
  --bs-link-color: #FF7A00 !important;
  --bs-link-hover-color: #E56A00 !important;
}

/* Master Brand Primary Controls */
.btn-primary,
.btn-primary:active,
.btn-primary:focus {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35) !important;
}
.btn-primary:hover {
  background-color: #E56A00 !important;
  border-color: #E56A00 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.45) !important;
}
.btn-outline-primary {
  color: #FF7A00 !important;
  border-color: #FF7A00 !important;
}
.btn-outline-primary:hover {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
  color: #FFFFFF !important;
}
.badge.bg-primary,
.badge-primary {
  background-color: #FF7A00 !important;
  color: #FFFFFF !important;
}
.page-item.active .page-link {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
  color: #FFFFFF !important;
}
.form-check-input:checked {
  background-color: #FF7A00 !important;
  border-color: #FF7A00 !important;
}
.nav-pills .nav-link.active {
  background-color: #FF7A00 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   1. DASHBOARD & DARK THEME AESTHETICS
   ========================================================================== */

/* Dark mode page background - sleek obsidian & cosmic ambient mesh */
html[data-bs-theme="dark"] .content-page {
  background:
    radial-gradient(1100px 500px at 10% -5%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(900px 450px at 90% 0%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(700px 350px at 50% 35%, rgba(16, 185, 129, 0.06), transparent 55%),
    #0b0f19 !important;
  color: #f1f5f9;
}

/* Light mode background */
html[data-bs-theme="light"] .content-page,
html:not([data-bs-theme="dark"]) .content-page {
  background:
    radial-gradient(1200px 400px at 0% -10%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(99, 102, 241, 0.05), transparent 55%),
    #f8fafc;
}

/* Welcome Hero Banner */
.crm-welcome {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: var(--crm-radius) !important;
  background: linear-gradient(135deg, #091e3a 0%, #0c2b48 42%, #1e1b4b 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.crm-welcome::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 220%;
  width: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.22), transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(129, 140, 248, 0.22), transparent 55%);
  pointer-events: none;
}

.crm-welcome .card-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem !important;
}

.crm-welcome h2 {
  font-size: 1.28rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem !important;
  color: #ffffff !important;
}

.crm-welcome .welcome-sub {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.82rem !important;
  max-width: 38rem !important;
  margin-bottom: 0;
}

.crm-welcome .welcome-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  color: #e0f2fe;
}

.crm-welcome .btn-welcome {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.95rem;
  transition: all 0.2s ease;
}

.crm-welcome .btn-welcome-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.crm-welcome .btn-welcome-primary:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  transform: translateY(-1px);
}

.crm-welcome .btn-welcome-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(8px);
}

.crm-welcome .btn-welcome-ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. HIGH-IMPACT KPI CARDS (DARK & JEWEL ACCENTS)
   ========================================================================== */

.crm-kpi {
  border-radius: 16px !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 1.15rem 1.25rem !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  min-height: 114px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  border-width: 1px !important;
  border-style: solid !important;
  z-index: 1 !important;
}

.crm-kpi:hover {
  transform: translateY(-4px) !important;
}

/* Luminous Top Indicator Accent */
.crm-kpi::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3.5px !important;
  z-index: 3 !important;
  border-radius: 16px 16px 0 0 !important;
}

/* Ambient Radial Glow on the Right - Fills empty space with rich light/depth */
.crm-kpi::after {
  content: '' !important;
  position: absolute !important;
  right: -25px !important;
  bottom: -25px !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: transform 0.35s ease, opacity 0.35s ease !important;
  opacity: 0.8 !important;
}

.crm-kpi:hover::after {
  transform: scale(1.15) !important;
}

/* Dual-Column Balanced Layout for both .crm-kpi-inner and .crm-kpi > .card-body */
.crm-kpi-inner,
.crm-kpi > .card-body {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Left-aligned metric content */
.crm-kpi-inner .kpi-content,
.crm-kpi > .card-body > div:not(.kpi-icon) {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Right-aligned icon squircle */
.crm-kpi-inner .kpi-icon,
.crm-kpi > .card-body > .kpi-icon {
  order: 2 !important;
  flex-shrink: 0 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  margin-top: 1px !important;
}

.crm-kpi:hover .kpi-icon {
  transform: scale(1.08) rotate(4deg) !important;
}

/* Clean, crisp typography hierarchy */
.crm-kpi .kpi-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  margin-bottom: 0.35rem !important;
  display: block !important;
}

.crm-kpi .kpi-value {
  font-weight: 800 !important;
  font-size: 1.72rem !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin: 0.1rem 0 0.35rem 0 !important;
  display: block !important;
}

.crm-kpi .kpi-hint {
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================================================================
   DARK THEME: OBSIDIAN GLASS & JEWEL GRADIENTS
   ========================================================================== */
html[data-bs-theme="dark"] .crm-kpi,
.dark-theme .crm-kpi {
  background: #101726;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5) !important;
}

html[data-bs-theme="dark"] .crm-kpi .kpi-value,
.dark-theme .crm-kpi .kpi-value {
  color: #f8fafc !important;
}

/* Blue Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-blue,
.dark-theme .kpi-gradient-blue {
  background: linear-gradient(145deg, #0d172a 0%, #091120 100%) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(37, 99, 235, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-blue::before,
.dark-theme .kpi-gradient-blue::before { background: linear-gradient(90deg, #3b82f6, #93c5fd) !important; }
html[data-bs-theme="dark"] .kpi-gradient-blue::after,
.dark-theme .kpi-gradient-blue::after { background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-blue .kpi-icon,
.dark-theme .kpi-gradient-blue .kpi-icon { background: rgba(59, 130, 246, 0.18) !important; color: #60a5fa !important; border: 1px solid rgba(59, 130, 246, 0.4) !important; box-shadow: 0 0 16px rgba(59, 130, 246, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-blue .kpi-label,
.dark-theme .kpi-gradient-blue .kpi-label { color: #93c5fd !important; }
html[data-bs-theme="dark"] .kpi-gradient-blue .kpi-hint,
.dark-theme .kpi-gradient-blue .kpi-hint { color: #94a3b8 !important; }

/* Green / Emerald Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-green,
.dark-theme .kpi-gradient-green {
  background: linear-gradient(145deg, #071c15 0%, #04130e 100%) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(16, 185, 129, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-green::before,
.dark-theme .kpi-gradient-green::before { background: linear-gradient(90deg, #10b981, #6ee7b7) !important; }
html[data-bs-theme="dark"] .kpi-gradient-green::after,
.dark-theme .kpi-gradient-green::after { background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-green .kpi-icon,
.dark-theme .kpi-gradient-green .kpi-icon { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; box-shadow: 0 0 16px rgba(16, 185, 129, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-green .kpi-label,
.dark-theme .kpi-gradient-green .kpi-label { color: #6ee7b7 !important; }
html[data-bs-theme="dark"] .kpi-gradient-green .kpi-hint,
.dark-theme .kpi-gradient-green .kpi-hint { color: #94a3b8 !important; }

/* Teal Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-teal,
.dark-theme .kpi-gradient-teal {
  background: linear-gradient(145deg, #071f1e 0%, #041413 100%) !important;
  border-color: rgba(20, 184, 166, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(20, 184, 166, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-teal::before,
.dark-theme .kpi-gradient-teal::before { background: linear-gradient(90deg, #14b8a6, #5eead4) !important; }
html[data-bs-theme="dark"] .kpi-gradient-teal::after,
.dark-theme .kpi-gradient-teal::after { background: radial-gradient(circle, rgba(20, 184, 166, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-teal .kpi-icon,
.dark-theme .kpi-gradient-teal .kpi-icon { background: rgba(20, 184, 166, 0.18) !important; color: #2dd4bf !important; border: 1px solid rgba(20, 184, 166, 0.4) !important; box-shadow: 0 0 16px rgba(20, 184, 166, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-teal .kpi-label,
.dark-theme .kpi-gradient-teal .kpi-label { color: #5eead4 !important; }
html[data-bs-theme="dark"] .kpi-gradient-teal .kpi-hint,
.dark-theme .kpi-gradient-teal .kpi-hint { color: #94a3b8 !important; }

/* Amber / Orange Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-amber,
.dark-theme .kpi-gradient-amber {
  background: linear-gradient(145deg, #241506 0%, #170d04 100%) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(245, 158, 11, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-amber::before,
.dark-theme .kpi-gradient-amber::before { background: linear-gradient(90deg, #f59e0b, #fcd34d) !important; }
html[data-bs-theme="dark"] .kpi-gradient-amber::after,
.dark-theme .kpi-gradient-amber::after { background: radial-gradient(circle, rgba(245, 158, 11, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-amber .kpi-icon,
.dark-theme .kpi-gradient-amber .kpi-icon { background: rgba(245, 158, 11, 0.18) !important; color: #fbbf24 !important; border: 1px solid rgba(245, 158, 11, 0.4) !important; box-shadow: 0 0 16px rgba(245, 158, 11, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-amber .kpi-label,
.dark-theme .kpi-gradient-amber .kpi-label { color: #fcd34d !important; }
html[data-bs-theme="dark"] .kpi-gradient-amber .kpi-hint,
.dark-theme .kpi-gradient-amber .kpi-hint { color: #94a3b8 !important; }

/* Rose / Red Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-rose,
html[data-bs-theme="dark"] .kpi-gradient-red,
.dark-theme .kpi-gradient-rose,
.dark-theme .kpi-gradient-red {
  background: linear-gradient(145deg, #260a12 0%, #18050a 100%) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(244, 63, 94, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-rose::before,
html[data-bs-theme="dark"] .kpi-gradient-red::before,
.dark-theme .kpi-gradient-rose::before,
.dark-theme .kpi-gradient-red::before { background: linear-gradient(90deg, #f43f5e, #fda4af) !important; }
html[data-bs-theme="dark"] .kpi-gradient-rose::after,
html[data-bs-theme="dark"] .kpi-gradient-red::after,
.dark-theme .kpi-gradient-rose::after,
.dark-theme .kpi-gradient-red::after { background: radial-gradient(circle, rgba(244, 63, 94, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-rose .kpi-icon,
html[data-bs-theme="dark"] .kpi-gradient-red .kpi-icon,
.dark-theme .kpi-gradient-rose .kpi-icon,
.dark-theme .kpi-gradient-red .kpi-icon { background: rgba(244, 63, 94, 0.18) !important; color: #fb7185 !important; border: 1px solid rgba(244, 63, 94, 0.4) !important; box-shadow: 0 0 16px rgba(244, 63, 94, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-rose .kpi-label,
html[data-bs-theme="dark"] .kpi-gradient-red .kpi-label,
.dark-theme .kpi-gradient-rose .kpi-label,
.dark-theme .kpi-gradient-red .kpi-label { color: #fda4af !important; }
html[data-bs-theme="dark"] .kpi-gradient-rose .kpi-hint,
html[data-bs-theme="dark"] .kpi-gradient-red .kpi-hint,
.dark-theme .kpi-gradient-rose .kpi-hint,
.dark-theme .kpi-gradient-red .kpi-hint { color: #94a3b8 !important; }

/* Purple Jewel - Dark */
html[data-bs-theme="dark"] .kpi-gradient-purple,
.dark-theme .kpi-gradient-purple {
  background: linear-gradient(145deg, #190e2b 0%, #0e071c 100%) !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(139, 92, 246, 0.2) !important;
}
html[data-bs-theme="dark"] .kpi-gradient-purple::before,
.dark-theme .kpi-gradient-purple::before { background: linear-gradient(90deg, #8b5cf6, #c4b5fd) !important; }
html[data-bs-theme="dark"] .kpi-gradient-purple::after,
.dark-theme .kpi-gradient-purple::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.32) 0%, transparent 70%) !important; }
html[data-bs-theme="dark"] .kpi-gradient-purple .kpi-icon,
.dark-theme .kpi-gradient-purple .kpi-icon { background: rgba(139, 92, 246, 0.18) !important; color: #a78bfa !important; border: 1px solid rgba(139, 92, 246, 0.4) !important; box-shadow: 0 0 16px rgba(139, 92, 246, 0.28) !important; }
html[data-bs-theme="dark"] .kpi-gradient-purple .kpi-label,
.dark-theme .kpi-gradient-purple .kpi-label { color: #c4b5fd !important; }
html[data-bs-theme="dark"] .kpi-gradient-purple .kpi-hint,
.dark-theme .kpi-gradient-purple .kpi-hint { color: #94a3b8 !important; }


/* ==========================================================================
   LIGHT THEME: CRISP PREMIUM TINTED CARDS WITH RADIANT ACCENTS
   ========================================================================== */
html[data-bs-theme="light"] .crm-kpi,
html:not([data-bs-theme="dark"]) .crm-kpi {
  background: #ffffff;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-bs-theme="light"] .crm-kpi:hover,
html:not([data-bs-theme="dark"]) .crm-kpi:hover {
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1) !important;
}

html[data-bs-theme="light"] .crm-kpi .kpi-label,
html:not([data-bs-theme="dark"]) .crm-kpi .kpi-label {
  color: #64748b !important;
}

html[data-bs-theme="light"] .crm-kpi .kpi-value,
html:not([data-bs-theme="dark"]) .crm-kpi .kpi-value {
  color: #0f172a !important;
}

html[data-bs-theme="light"] .crm-kpi .kpi-hint,
html:not([data-bs-theme="dark"]) .crm-kpi .kpi-hint {
  color: #64748b !important;
}

/* Blue Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-blue,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important;
  border-color: rgba(59, 130, 246, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-blue:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue:hover {
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-blue::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa) !important; }
html[data-bs-theme="light"] .kpi-gradient-blue::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue::after { background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-blue .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue .kpi-icon { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important; color: #1d4ed8 !important; border: 1px solid rgba(59, 130, 246, 0.25) !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-blue .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-blue .kpi-value { color: #1e3a8a !important; }

/* Green / Emerald Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-green,
html:not([data-bs-theme="dark"]) .kpi-gradient-green {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%) !important;
  border-color: rgba(16, 185, 129, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(16, 185, 129, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-green:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-green:hover {
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-green::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-green::before { background: linear-gradient(90deg, #059669, #34d399) !important; }
html[data-bs-theme="light"] .kpi-gradient-green::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-green::after { background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-green .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-green .kpi-icon { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important; color: #047857 !important; border: 1px solid rgba(16, 185, 129, 0.25) !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-green .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-green .kpi-value { color: #065f46 !important; }

/* Teal Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-teal,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%) !important;
  border-color: rgba(20, 184, 166, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(20, 184, 166, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-teal:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal:hover {
  box-shadow: 0 12px 28px -4px rgba(20, 184, 166, 0.16) !important;
  border-color: rgba(20, 184, 166, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-teal::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal::before { background: linear-gradient(90deg, #0d9488, #2dd4bf) !important; }
html[data-bs-theme="light"] .kpi-gradient-teal::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal::after { background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-teal .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal .kpi-icon { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important; color: #0f766e !important; border: 1px solid rgba(20, 184, 166, 0.25) !important; box-shadow: 0 4px 12px rgba(20, 184, 166, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-teal .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-teal .kpi-value { color: #115e59 !important; }

/* Amber / Orange Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-amber,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber {
  background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%) !important;
  border-color: rgba(245, 158, 11, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(245, 158, 11, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-amber:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber:hover {
  box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-amber::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24) !important; }
html[data-bs-theme="light"] .kpi-gradient-amber::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber::after { background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-amber .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber .kpi-icon { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important; color: #b45309 !important; border: 1px solid rgba(245, 158, 11, 0.25) !important; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-amber .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-amber .kpi-value { color: #92400e !important; }

/* Rose / Red Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-rose,
html[data-bs-theme="light"] .kpi-gradient-red,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose,
html:not([data-bs-theme="dark"]) .kpi-gradient-red {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f6 100%) !important;
  border-color: rgba(244, 63, 94, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(244, 63, 94, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-rose:hover,
html[data-bs-theme="light"] .kpi-gradient-red:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-red:hover {
  box-shadow: 0 12px 28px -4px rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-rose::before,
html[data-bs-theme="light"] .kpi-gradient-red::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-red::before { background: linear-gradient(90deg, #e11d48, #fb7185) !important; }
html[data-bs-theme="light"] .kpi-gradient-rose::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose::after { background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-rose .kpi-icon,
html[data-bs-theme="light"] .kpi-gradient-red .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-red .kpi-icon { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important; color: #be123c !important; border: 1px solid rgba(244, 63, 94, 0.25) !important; box-shadow: 0 4px 12px rgba(244, 63, 94, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-rose .kpi-value,
html[data-bs-theme="light"] .kpi-gradient-red .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-rose .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-red .kpi-value { color: #9f1239 !important; }

/* Purple Jewel - Light */
html[data-bs-theme="light"] .kpi-gradient-purple,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple {
  background: linear-gradient(145deg, #ffffff 0%, #fbf9ff 100%) !important;
  border-color: rgba(139, 92, 246, 0.24) !important;
  box-shadow: 0 4px 18px -2px rgba(139, 92, 246, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kpi-gradient-purple:hover,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple:hover {
  box-shadow: 0 12px 28px -4px rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
}
html[data-bs-theme="light"] .kpi-gradient-purple::before,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa) !important; }
html[data-bs-theme="light"] .kpi-gradient-purple::after,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%) !important; }
html[data-bs-theme="light"] .kpi-gradient-purple .kpi-icon,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple .kpi-icon { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important; color: #6d28d9 !important; border: 1px solid rgba(139, 92, 246, 0.25) !important; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.12) !important; }
html[data-bs-theme="light"] .kpi-gradient-purple .kpi-value,
html:not([data-bs-theme="dark"]) .kpi-gradient-purple .kpi-value { color: #5b21b6 !important; }

/* Mini Stats */
.crm-mini-stat {
  border-radius: 12px !important;
  padding: 0.65rem 0.85rem !important;
  transition: all 0.2s ease;
}

html[data-bs-theme="dark"] .crm-mini-stat {
  background: rgba(17, 24, 39, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
}
html[data-bs-theme="dark"] .crm-mini-stat .label {
  font-size: 0.68rem !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
html[data-bs-theme="dark"] .crm-mini-stat .value {
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  color: #f8fafc !important;
  margin: 0;
}

html[data-bs-theme="light"] .crm-mini-stat {
  background: #f8fafc;
  border: 1px solid #e8edf3;
}
html[data-bs-theme="light"] .crm-mini-stat .label { font-size: 0.68rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
html[data-bs-theme="light"] .crm-mini-stat .value { font-size: 1.15rem; font-weight: 750; color: #0f172a; margin: 0; }

/* Panels & Cards */
.crm-panel {
  border-radius: var(--crm-radius) !important;
  transition: box-shadow 0.2s ease;
  height: 100%;
}

html[data-bs-theme="dark"] .crm-panel {
  background: rgba(17, 24, 39, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(12px);
}
html[data-bs-theme="dark"] .crm-panel .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
  padding: 0.85rem 1.15rem !important;
}
html[data-bs-theme="dark"] .crm-panel .card-title {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}
html[data-bs-theme="dark"] .crm-panel .card-body {
  padding: 1rem 1.15rem !important;
}

html[data-bs-theme="light"] .crm-panel {
  background: #ffffff;
  border: 1px solid #e8edf3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
html[data-bs-theme="light"] .crm-panel .card-header {
  border-bottom: 1px solid #e8edf3;
  background: transparent;
  padding: 0.85rem 1.15rem;
}
html[data-bs-theme="light"] .crm-panel .card-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Activity Items */
.crm-activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-bs-theme="light"] .crm-activity-item {
  border-bottom-color: #f1f5f9;
}
.crm-activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.crm-activity-item:first-child { padding-top: 0; }

.crm-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ==========================================================================
   3. COMPACT & ATTRACTIVE SALES & CLIENT PAGES
   ========================================================================== */

.crm-sales-shell {
  padding-top: 0.35rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure container-fluid utilizes 100% of workspace width without unnecessary side margins */
.content-page > .container-fluid,
.content-page > div > .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Dark mode button polish */
html[data-bs-theme="dark"] .btn-light {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}
html[data-bs-theme="dark"] .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Dark mode general bg-light & table-light overrides */
html[data-bs-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .table-light {
  background-color: rgba(30, 41, 59, 0.6) !important;
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .border {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="dark"] .border-top {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="dark"] .border-bottom {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.crm-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.crm-page-head h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
html[data-bs-theme="dark"] .crm-page-head h4 { color: #f8fafc; }
html[data-bs-theme="light"] .crm-page-head h4 { color: #0f172a; }

.crm-page-head p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Compact Forms (Lead Add/Edit, Customer Add/Edit) */
.crm-form-card {
  border-radius: var(--crm-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

html[data-bs-theme="dark"] .crm-form-card {
  background: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.45) !important;
}
html[data-bs-theme="dark"] .crm-form-card .card-header {
  background: rgba(30, 41, 59, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 1.15rem !important;
}

html[data-bs-theme="light"] .crm-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}
html[data-bs-theme="light"] .crm-form-card .card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.15rem;
}

.crm-form-card .card-body {
  padding: 1.15rem 1.25rem !important;
}

/* Compact Form Typography & Fields */
.crm-form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
html[data-bs-theme="light"] .crm-form-section-title {
  border-bottom-color: #e2e8f0;
  color: #475569;
}
html[data-bs-theme="dark"] .crm-form-section-title {
  color: #38bdf8;
}

.crm-form-card .form-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}
html[data-bs-theme="dark"] .crm-form-card .form-label { color: #cbd5e1; }
html[data-bs-theme="light"] .crm-form-card .form-label { color: #334155; }

.crm-form-card .form-control,
.crm-form-card .form-select {
  border-radius: 9px !important;
  font-size: 0.84rem !important;
  padding: 0.42rem 0.75rem !important;
  height: auto !important;
  min-height: 36px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

html[data-bs-theme="dark"] .crm-form-card .form-control,
html[data-bs-theme="dark"] .crm-form-card .form-select {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .crm-form-card .form-control:focus,
html[data-bs-theme="dark"] .crm-form-card .form-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  background-color: #1e293b !important;
}

html[data-bs-theme="light"] .crm-form-card .form-control,
html[data-bs-theme="light"] .crm-form-card .form-select {
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #0f172a;
}
html[data-bs-theme="light"] .crm-form-card .form-control:focus,
html[data-bs-theme="light"] .crm-form-card .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.crm-input-icon-wrap {
  position: relative;
}
.crm-input-icon-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}
.crm-input-icon-wrap .form-control,
.crm-input-icon-wrap .form-select {
  padding-left: 32px !important;
}

/* Compact Table Design (Contacts, Inquiries, Leads list) */
.crm-table-card {
  border-radius: var(--crm-radius) !important;
  overflow: hidden;
}

html[data-bs-theme="dark"] .crm-table-card {
  background: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4) !important;
}
html[data-bs-theme="dark"] .crm-table-card .card-header {
  background: rgba(30, 41, 59, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 0.75rem 1rem !important;
}

html[data-bs-theme="light"] .crm-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}
html[data-bs-theme="light"] .crm-table-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

.crm-table-card .table > :not(caption) > * > * {
  padding: 0.58rem 0.85rem !important;
  vertical-align: middle;
}
.crm-table-card .table thead th {
  font-size: 0.68rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 700 !important;
  padding: 0.65rem 0.85rem !important;
}

html[data-bs-theme="dark"] .crm-table-card .table thead th {
  background: rgba(30, 41, 59, 0.7) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="light"] .crm-table-card .table thead th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

/* Compact Kanban Pipeline */
.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  scrollbar-width: thin;
}
.kanban-board::-webkit-scrollbar {
  height: 6px;
}
.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.kanban-col {
  min-width: 260px;
  width: 260px;
  border-radius: 12px !important;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  transition: all 0.2s ease;
}

html[data-bs-theme="dark"] .kanban-col {
  background: rgba(17, 24, 39, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
html[data-bs-theme="dark"] .kanban-header {
  background: rgba(30, 41, 59, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="light"] .kanban-col {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
html[data-bs-theme="light"] .kanban-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.kanban-header {
  padding: 0.65rem 0.85rem;
  border-radius: 12px 12px 0 0;
}
.kanban-body {
  padding: 0.65rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kanban-card {
  border-radius: 10px !important;
  padding: 0.7rem !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html[data-bs-theme="dark"] .kanban-card {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
html[data-bs-theme="dark"] .kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

html[data-bs-theme="light"] .kanban-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
html[data-bs-theme="light"] .kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* Customer 360 & Lead Details Profile Hero */
.crm-profile-hero {
  border-radius: var(--crm-radius);
  overflow: hidden;
}
html[data-bs-theme="dark"] .crm-profile-hero {
  background: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4) !important;
}
html[data-bs-theme="light"] .crm-profile-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.crm-stat-chip {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
html[data-bs-theme="dark"] .crm-stat-chip {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
html[data-bs-theme="dark"] .crm-stat-chip .label { font-size: 0.65rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
html[data-bs-theme="dark"] .crm-stat-chip .value { font-size: 1.05rem; font-weight: 750; color: #f8fafc; }

html[data-bs-theme="light"] .crm-stat-chip {
  background: #f8fafc;
  border: 1px solid #e8edf3;
}
html[data-bs-theme="light"] .crm-stat-chip .label { font-size: 0.65rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
html[data-bs-theme="light"] .crm-stat-chip .value { font-size: 1.05rem; font-weight: 750; color: #0f172a; }

/* Stage Stepper for Leads */
.crm-stepper {
  display: flex;
  overflow-x: auto;
  border-radius: 10px;
  padding: 0.35rem;
  gap: 0.25rem;
}
html[data-bs-theme="dark"] .crm-stepper { background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.06); }
html[data-bs-theme="light"] .crm-stepper { background: #f1f5f9; border: 1px solid #e2e8f0; }

.crm-step-item {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: #94a3b8;
  transition: all 0.2s ease;
}
.crm-step-item.active {
  background: #FF7A00;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}
.crm-step-item.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Compact Breadcrumb */
.crm-breadcrumb {
  margin: 0.45rem 0 0.65rem;
  padding: 0.24rem 0.65rem;
  border-radius: 8px;
  display: inline-flex;
  max-width: 100%;
}
html[data-bs-theme="dark"] .crm-breadcrumb {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
html[data-bs-theme="light"] .crm-breadcrumb {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8edf3;
}
.crm-bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crm-bc-item { font-size: 0.72rem; font-weight: 500; }
html[data-bs-theme="dark"] .crm-bc-item { color: #94a3b8; }
html[data-bs-theme="light"] .crm-bc-item { color: #64748b; }
.crm-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}
.crm-bc-link:hover { color: #FF7A00; }
.crm-bc-sep { color: #64748b; font-size: 0.75rem; }
.crm-bc-current { font-weight: 650; }
html[data-bs-theme="dark"] .crm-bc-current { color: #f8fafc; }
html[data-bs-theme="light"] .crm-bc-current { color: #0f172a; }

/* Micro Buttons & Badges */
.fs-xxs { font-size: 0.68rem !important; }
.fs-xs { font-size: 0.76rem !important; }

.badge-label {
  padding: 0.24rem 0.55rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.7rem;
}
