/* ==========================================================================
   Tepals CRM — Ultra-Modern Design System
   Plus Jakarta Sans, Emerald-Teal Palette, Glassmorphism & High-Contrast Hierarchy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Primary & Brand Colors (Primary: #c96500, Secondary: #076e63) */
  --primary: #c96500;
  --primary-hover: #b35a00;
  --primary-dark: #9c4e00;
  --primary-light: #e07405;
  --primary-subtle: #fff7ed;
  --primary-border: #fed7aa;
  --primary-glow: rgba(201, 101, 0, 0.28);
  
  /* Secondary Palette */
  --secondary: #076e63;
  --secondary-hover: #055a51;
  --secondary-dark: #04453e;
  --secondary-light: #0d8a7c;
  --secondary-subtle: #f0fdfa;
  --secondary-border: #ccfbf1;
  --secondary-glow: rgba(7, 110, 99, 0.25);
  
  /* Accent colors */
  --accent-amber: #c96500;
  --accent-teal: #076e63;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-soft: #fff7ed;
  
  /* Light Theme Surfaces & Backgrounds */
  --bg: #f8fafc;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-alt: #f1f5f9;
  
  /* Typography Scale — Deep, Crisp Black for Ultra-High Legibility */
  --ink: #000000;
  --text-strong: #000000;
  --text-body: #0a0a0a;
  --text-soft: #1e293b;
  --muted: #334155;
  
  /* Borders & Dividers */
  --border: #e2e8f0;
  --line: #e2e8f0;
  --border-focus: #c96500;
  
  /* Modern Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 8px 16px -2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 20px 35px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 4px 20px -2px var(--primary-glow);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #b35a00 0%, #c96500 50%, #e07405 100%);
  --gradient-secondary: linear-gradient(135deg, #055a51 0%, #076e63 50%, #0d8a7c 100%);
  --gradient-brand: linear-gradient(135deg, #c96500 0%, #076e63 100%);
  --gradient-hero: radial-gradient(ellipse at 85% 20%, rgba(201, 101, 0, 0.35) 0%, transparent 60%),
                   radial-gradient(ellipse at 15% 90%, rgba(7, 110, 99, 0.3) 0%, transparent 60%),
                   linear-gradient(135deg, #032b27 0%, #076e63 45%, #2a1503 100%);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  color-scheme: light;
}

/* ==========================================================================
   Base Typography & Reset Resets
   ========================================================================== */
html, body {
  font-family: var(--font-family) !important;
  color: var(--text-body) !important;
  background-color: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Rebuild Natural Typography Hierarchy */
h1, h2, h3, h4, h5, h6, strong, b {
  color: var(--text-strong) !important;
  font-family: var(--font-family) !important;
  letter-spacing: -0.025em;
}

h1 {
  font-weight: 750 !important;
}

h2 {
  font-weight: 700 !important;
}

h3 {
  font-weight: 650 !important;
}

p, li, td, span, div, label {
  font-family: var(--font-family);
}

p {
  color: var(--text-body);
  line-height: 1.6;
}

/* Crisp Black Body Text for All Content (Light Mode) */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) .workspace,
html:not([data-theme="dark"]) .main,
html:not([data-theme="dark"]) p,
html:not([data-theme="dark"]) label,
html:not([data-theme="dark"]) td,
html:not([data-theme="dark"]) th,
html:not([data-theme="dark"]) input,
html:not([data-theme="dark"]) select,
html:not([data-theme="dark"]) textarea,
html:not([data-theme="dark"]) .card,
html:not([data-theme="dark"]) .lead-overview-card,
html:not([data-theme="dark"]) .detail-note p,
html:not([data-theme="dark"]) .detail-note strong,
html:not([data-theme="dark"]) .timeline-item p,
html:not([data-theme="dark"]) .cell-small,
html:not([data-theme="dark"]) .lead-address,
html:not([data-theme="dark"]) .report-table td,
html:not([data-theme="dark"]) .report-table th,
html:not([data-theme="dark"]) .simple-list span,
html:not([data-theme="dark"]) .simple-list strong,
html:not([data-theme="dark"]) .account-identity strong,
html:not([data-theme="dark"]) .notification-heading h2 {
  color: #0a0a0a !important;
}

html:not([data-theme="dark"]) strong,
html:not([data-theme="dark"]) b,
html:not([data-theme="dark"]) h1,
html:not([data-theme="dark"]) h2,
html:not([data-theme="dark"]) h3,
html:not([data-theme="dark"]) h4,
html:not([data-theme="dark"]) .card-head h2,
html:not([data-theme="dark"]) .metric strong,
html:not([data-theme="dark"]) .page-heading h1,
html:not([data-theme="dark"]) .lead-name strong {
  color: #000000 !important;
}

html:not([data-theme="dark"]) .muted,
html:not([data-theme="dark"]) small,
html:not([data-theme="dark"]) .cell-small,
html:not([data-theme="dark"]) .metric-foot,
html:not([data-theme="dark"]) .breadcrumb span,
html:not([data-theme="dark"]) .lead-overview-meta,
html:not([data-theme="dark"]) .card-head p {
  color: #1e293b !important;
}

.eyebrow {
  color: var(--primary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  font-family: var(--font-family) !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid var(--border) !important;
  background: var(--white) !important;
  color: var(--text-body) !important;
  box-shadow: var(--shadow-sm) !important;
}

.btn:hover {
  background: #f1f5f9 !important;
  color: var(--text-strong) !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow) !important;
}

.btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.btn.primary, .workspace-polished .btn.primary {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow) !important;
}

.btn.primary:hover, .workspace-polished .btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-hover) 100%) !important;
  box-shadow: 0 6px 20px var(--primary-glow) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
}

.btn.compact {
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  border-radius: var(--radius-sm) !important;
}

.icon-btn {
  border-radius: var(--radius) !important;
  transition: all 0.15s ease !important;
  color: var(--text-soft) !important;
}

.icon-btn:hover {
  background: var(--surface-alt) !important;
  color: var(--primary) !important;
  transform: scale(1.05);
}

/* ==========================================================================
   Form Fields, Inputs & Selects
   ========================================================================== */
input, select, textarea {
  font-family: var(--font-family) !important;
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text-strong) !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  transition: all 0.18s ease !important;
  box-shadow: var(--shadow-sm);
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px var(--primary-glow) !important;
  background: #ffffff !important;
}

label {
  color: var(--text-body) !important;
  font-weight: 550 !important;
  font-size: 13px !important;
  gap: 6px !important;
}

label small {
  color: var(--text-soft) !important;
  font-weight: 400 !important;
}

/* ==========================================================================
   Workspace Shell, Sidebar & Topbar
   ========================================================================== */
.workspace-polished {
  background-color: var(--bg) !important;
}

.workspace-polished .sidebar {
  background: var(--white) !important;
  border-right: 1px solid var(--border) !important;
  box-shadow: 1px 0 10px rgba(15, 23, 42, 0.02) !important;
  z-index: 1000 !important;
}

.workspace-polished .brand-mark,
.workspace-icon {
  background: var(--gradient-secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--secondary-glow) !important;
}

.workspace-polished .nav-item,
.nav-item {
  color: var(--text-body) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: all 0.16s ease !important;
}

.workspace-polished .nav-item:hover:not(.active),
.nav-item:hover:not(.active) {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
}

.workspace-polished .nav-item.active,
.nav-item.active {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow) !important;
}

.workspace-polished .nav-item.active .icon,
.nav-item.active .icon {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.workspace-polished .nav-item.active b,
.nav-item.active b {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.workspace-polished .main {
  position: relative !important;
  min-width: 0 !important;
}

/* ==========================================================================
   Topbar (Fixed / Sticky High Z-Index Navigation Bar)
   ========================================================================== */
.workspace-polished .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important; /* Pinned above #content, charts, cards, and hero sections */
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  height: 68px !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

@media (max-width: 950px) {
  .workspace-polished .topbar {
    padding: 0 20px !important;
  }
}

@media (max-width: 650px) {
  .workspace-polished .topbar {
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .workspace-polished .sidebar.open {
    z-index: 10002 !important;
  }
  .mobile-drawer-backdrop {
    z-index: 10001 !important;
  }
}

@media (max-width: 400px) {
  .workspace-polished .topbar {
    padding: 0 10px !important;
    gap: 6px !important;
  }
}

.workspace-polished #content {
  position: relative !important;
  z-index: 1 !important; /* Content cards always sit below topbar dropdowns */
  padding: 26px 32px !important;
}

.workspace-polished .breadcrumb strong {
  color: var(--text-strong) !important;
  font-weight: 650 !important;
}

/* ==========================================================================
   Topbar Right Tools (Uniform 38px Fixed-Layout Toolbar & Translator)
   ========================================================================== */
.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.appearance-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* Fixed Layout Language Translator Control */
.language-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 38px !important;
  padding: 0 10px !important;
  border-radius: var(--radius) !important;
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  min-width: 90px !important;
}

.language-control:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.language-control > .icon {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
}

.language-control select {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-strong) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  width: auto !important;
  outline: none !important;
  line-height: normal !important;
  min-width: 58px !important;
}

.toolbar-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: var(--radius) !important;
  border: 1.5px solid var(--border) !important;
  background: var(--white) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text-soft) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.toolbar-button:hover {
  background: var(--surface-alt) !important;
  color: var(--primary) !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.toolbar-button > .icon {
  width: 17px !important;
  height: 17px !important;
}

.notification-anchor {
  position: relative !important;
  z-index: 10000 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.notification-count {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  border: 2px solid var(--white) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
  top: -4px !important;
  right: -4px !important;
}

/* Profile Dropdown & Account Panel (Un-hidden & Elevated) */
.profile-dropdown {
  position: relative !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
}

.profile-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 12px 0 6px !important;
  border-radius: var(--radius) !important;
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  cursor: pointer !important;
  color: var(--text-strong) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.profile-link:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.profile-link .avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: var(--secondary-subtle) !important;
  color: var(--secondary) !important;
}

.profile-link > .icon {
  width: 12px !important;
  height: 12px !important;
  color: var(--text-soft) !important;
}

.account-panel {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  width: 250px !important;
  background: var(--white) !important;
  color: var(--text-strong) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  z-index: 10001 !important; /* Above all content and dashboard cards */
  padding: 8px !important;
  animation: modalSlideUp 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.account-identity {
  padding: 12px 14px 10px !important;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 6px !important;
}

.account-identity strong {
  font-size: 14.5px !important;
  font-weight: 750 !important;
  color: var(--text-strong) !important;
  display: block;
}

.account-identity span {
  font-size: 11.5px !important;
  color: var(--primary) !important;
  font-weight: 650 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.account-panel nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.account-panel nav > a, .account-panel nav > button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  border-radius: var(--radius) !important;
  color: var(--text-body) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  border: 0 !important;
  background: transparent !important;
  transition: all 0.14s ease !important;
  cursor: pointer !important;
}

.account-panel nav > a:hover, .account-panel nav > button:hover {
  background: var(--surface-alt) !important;
  color: var(--primary) !important;
}

.account-panel nav > button {
  color: #ef4444 !important;
}

.account-panel nav > button:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* ==========================================================================
   Modern Cards, Stats & Metrics
   ========================================================================== */
.card, .workspace-polished .card {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

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

.workspace-polished .card-head {
  border-bottom: 1px solid var(--border) !important;
  padding: 18px 24px !important;
  background: transparent !important;
}

.workspace-polished .card-head h2 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--text-strong) !important;
}

.workspace-polished .card-head p {
  color: var(--text-soft) !important;
  font-size: 12.5px !important;
}

/* Premium Metrics Tiles */
.premium-metrics .metric {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
  padding: 20px 22px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.premium-metrics .metric:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(13, 148, 136, 0.3) !important;
}

.premium-metrics .metric-top {
  color: var(--text-soft) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.premium-metrics .metric>strong {
  color: var(--text-strong) !important;
  font-size: 32px !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin: 10px 0 6px !important;
}

.premium-metrics .metric-foot {
  color: var(--text-soft) !important;
  font-size: 11.5px !important;
}

.metric-icon {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px var(--primary-glow) !important;
}

.metric-icon.blue {
  background: #eff6ff !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.metric-icon.orange {
  background: #fff7ed !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px var(--primary-glow) !important;
}

/* ==========================================================================
   Hero Banner — Modern, Refined & Compact (Secondary Teal to Primary Amber)
   ========================================================================== */
.dashboard-hero {
  position: relative !important;
  z-index: 1 !important;
  background: linear-gradient(135deg, #032b27 0%, #076e63 45%, #7a3a00 85%, #c96500 100%) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 28px -4px rgba(7, 110, 99, 0.35) !important;
  padding: 24px 32px !important;
  min-height: 170px !important;
  margin-bottom: 24px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  overflow: hidden !important;
}

.dashboard-hero .hero-eyebrow {
  color: #fed7aa !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

.dashboard-hero .hero-eyebrow > i {
  background: #f97316 !important;
  box-shadow: 0 0 6px #f97316 !important;
}

.dashboard-hero .hero-copy h2 {
  font-size: 28px !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  margin: 8px 0 6px !important;
}

.dashboard-hero .hero-copy h2 em {
  color: #fed7aa !important;
  font-style: normal !important;
}

.dashboard-hero .hero-copy > p {
  color: #f1f5f9 !important;
  font-size: 13.5px !important;
  margin-bottom: 16px !important;
}

.dashboard-hero .hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dashboard-hero .hero-button {
  background: #ffffff !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  border-radius: var(--radius) !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  transition: all 0.16s ease !important;
}

.dashboard-hero .hero-button:hover {
  background: var(--primary-subtle) !important;
  color: var(--primary-hover) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.dashboard-hero .hero-secondary {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: var(--radius) !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.16s ease !important;
}

.dashboard-hero .hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.hero-pipeline {
  position: relative !important;
  min-height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pipeline-center {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  width: 130px !important;
  height: 130px !important;
}

.pipeline-center strong {
  font-size: 36px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin: 6px 0 !important;
}

.pipeline-center > span {
  color: #fed7aa !important;
  font-size: 11px !important;
}

/* Remove crooked tilt from floating stats */
.floating-stat {
  transform: none !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14) !important;
  padding: 9px 13px !important;
}

.float-top {
  right: 5% !important;
  top: 8px !important;
}

.float-bottom {
  left: 3% !important;
  bottom: 8px !important;
}

.floating-stat strong {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 750 !important;
}

.floating-stat span {
  color: #64748b !important;
  font-size: 11px !important;
}

/* ==========================================================================
   Vibrant Modern Status Badges
   ========================================================================== */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-full) !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
}

.badge i {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
}

.badge.won {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}
.badge.won i { background: #10b981 !important; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }

.badge.interested {
  background: var(--secondary-subtle) !important;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary-border) !important;
}
.badge.interested i { background: var(--secondary) !important; }

.badge.follow_up {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary-border) !important;
}
.badge.follow_up i { background: var(--primary) !important; }

.badge.contacted {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}
.badge.contacted i { background: #3b82f6 !important; }

.badge.new {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}
.badge.new i { background: #64748b !important; }

.badge.not_interested, .badge.invalid {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
}
.badge.not_interested i, .badge.invalid i { background: #f43f5e !important; }

/* Overdue alert badge */
.overdue, .lead-summary-due.is-overdue {
  color: #dc2626 !important;
  font-weight: 650 !important;
}

/* ==========================================================================
   Polished Data Tables (Generous Side Padding Added)
   ========================================================================== */
.table-scroll {
  border-radius: var(--radius-md) !important;
  overflow-x: auto !important;
  border: 1px solid var(--border) !important;
  background: var(--white) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 14px 22px !important;
  border-bottom: 1.5px solid var(--border) !important;
}

th:first-child {
  padding-left: 32px !important; /* Left side generous padding */
}

th:last-child {
  padding-right: 32px !important; /* Right side generous padding */
}

td {
  padding: 14px 22px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--text-body) !important;
  font-size: 13px !important;
  transition: background-color 0.12s ease;
}

td:first-child {
  padding-left: 32px !important; /* Left side generous padding */
}

td:last-child {
  padding-right: 32px !important; /* Right side generous padding */
}

tbody tr:hover td {
  background-color: #f8fafc !important;
}

td strong {
  color: var(--text-strong) !important;
  font-weight: 650 !important;
}

.table-toolbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 32px !important; /* Generous side padding */
}

.bulk-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 32px !important; /* Generous side padding */
}

/* Modern search input */
.search-input {
  background: #f8fafc !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 2px 14px !important;
  transition: all 0.18s ease;
}

.search-input:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
  background: #ffffff !important;
}

.search-input .icon {
  color: var(--text-soft) !important;
}

/* ==========================================================================
   Modern Modals & Overlays (Fixed Scrollability & Full Content Visibility)
   ========================================================================== */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  animation: modalBackdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 99999 !important; /* Above topbar and all interface elements */
  display: flex !important;
  align-items: flex-start !important; /* Never cuts off top of modal */
  justify-content: center !important;
  padding: 32px 16px !important;
  overflow-y: auto !important; /* Safe backdrop scrolling if needed */
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal {
  position: relative !important;
  width: 640px !important;
  max-width: 100% !important;
  max-height: calc(100vh - 64px) !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 65px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: auto !important;
  overflow-y: auto !important; /* Smooth scrolling for all form fields and contents */
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
}

.modal.wide {
  width: min(1040px, 96vw) !important;
}

.modal-head {
  position: sticky !important;
  top: 0 !important;
  background: var(--white) !important;
  border-bottom: 1.5px solid var(--border) !important;
  padding: 18px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 50 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  box-sizing: border-box !important;
}

.modal-head h2 {
  font-size: 19px !important;
  font-weight: 750 !important;
  color: var(--text-strong) !important;
  margin: 0 !important;
}

/* Modal Inner Body & Form: Full natural flow so NO FIELDS OR CONTENT ARE CUT OFF */
.padded-form, .lead-detail, .modal > form, .modal > div:not(.modal-head) {
  padding: 24px 28px 28px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Form Grid & Responsive Inputs */
.form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px 20px !important;
}

.form-grid .span-two,
.form-grid .lead-catalog {
  grid-column: 1 / -1 !important;
}

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

/* Lead Detail & Columns in Wide Modal */
.detail-columns {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 28px !important;
  align-items: start !important;
}

@media (max-width: 860px) {
  .detail-columns {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Custom modern scrollbars on .modal */
.modal::-webkit-scrollbar {
  width: 7px;
}
.modal::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.modal::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}
.modal::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Sticky Footer actions: clean, elegant, always visible and reachable */
.form-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 28px !important;
  margin-left: -28px !important;
  margin-right: -28px !important;
  margin-bottom: -28px !important;
  padding: 16px 28px !important;
  border-top: 1.5px solid var(--border) !important;
  position: sticky !important;
  bottom: 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 40 !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Toasts & Notifications
   ========================================================================== */
#toast {
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-family) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 12px 24px !important;
}

#toast.visible {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#toast.visible.error {
  background: #e11d48 !important;
  color: #ffffff !important;
}

.notification-panel {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden !important;
  z-index: 10000 !important;
}

.notification-heading {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
}

.notification-item.unread {
  background: #f0fdfa !important;
}

.notification-item:hover {
  background: #f8fafc !important;
}

.unread-dot {
  background: var(--primary) !important;
  box-shadow: 0 0 8px var(--primary-glow) !important;
}

/* ==========================================================================
   Dark Theme (Obsidian & Amber-Teal)
   ========================================================================== */
[data-theme="dark"] {
  --bg: #090d16;
  --white: #0f172a;
  --surface: #0f172a;
  --surface-soft: #111c30;
  --surface-alt: #1e293b;
  --accent-soft: rgba(201, 101, 0, 0.15);
  
  --ink: #f8fafc;
  --text-strong: #f8fafc;
  --text-body: #cbd5e1;
  --text-soft: #94a3b8;
  --muted: #64748b;
  
  --border: #1e293b;
  --line: #1e293b;
  --border-focus: #e07405;
  
  --gradient-hero: radial-gradient(ellipse at 85% 20%, rgba(201, 101, 0, 0.28) 0%, transparent 60%),
                   radial-gradient(ellipse at 15% 90%, rgba(7, 110, 99, 0.25) 0%, transparent 60%),
                   linear-gradient(135deg, #021713 0%, #062b24 50%, #1c0e02 100%);
  
  color-scheme: dark;
}

[data-theme="dark"] body, [data-theme="dark"] .workspace-polished {
  background-color: #090d16 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .workspace-polished .sidebar {
  background: #0b1120 !important;
  border-right-color: #1e293b !important;
}

[data-theme="dark"] .workspace-polished .topbar {
  background: rgba(11, 17, 32, 0.90) !important;
  border-bottom-color: rgba(30, 41, 59, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .card, [data-theme="dark"] .workspace-polished .card {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .workspace-polished .card-head {
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: #111c30 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] input:focus, [data-theme="dark"] select:focus, [data-theme="dark"] textarea:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25) !important;
}

[data-theme="dark"] th {
  background: #111c30 !important;
  color: #94a3b8 !important;
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] td {
  border-bottom-color: #1e293b !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] tbody tr:hover td {
  background-color: #14223d !important;
}

[data-theme="dark"] .modal-head, [data-theme="dark"] .modal {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .form-actions {
  background: rgba(15, 23, 42, 0.98) !important;
  border-top-color: #1e293b !important;
}

[data-theme="dark"] .modal::-webkit-scrollbar-track {
  background: #0b1120;
}
[data-theme="dark"] .modal::-webkit-scrollbar-thumb {
  background: #334155;
}

[data-theme="dark"] .table-toolbar, [data-theme="dark"] .bulk-bar {
  background: #0b1120 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .search-input {
  background: #111c30 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .btn:not(.primary) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .btn:not(.primary):hover {
  background: #334155 !important;
  border-color: #475569 !important;
}

[data-theme="dark"] .workspace-polished .nav-item:hover:not(.active) {
  background: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .metric-icon {
  background: rgba(13, 148, 136, 0.2) !important;
  color: #2dd4bf !important;
}

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

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

/* ==========================================================================
   Modern Auth / Sign In Experience (Fixed Brand & Colors)
   ========================================================================== */
.auth-with-art {
  background: #f8fafc !important;
  min-height: 100vh !important;
}

.auth-with-art .auth-story {
  background: radial-gradient(circle at 85% 15%, rgba(201, 101, 0, 0.4) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(7, 110, 99, 0.4) 0%, transparent 60%),
              linear-gradient(135deg, #032b27 0%, #076e63 45%, #2a1503 100%) !important;
  color: #ffffff !important;
  position: relative !important;
  padding: clamp(30px, 4vw, 55px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Brand badge in story: Clean white frosted pill so dark-green logo is 100% clearly visible */
.auth-with-art .auth-story .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  width: fit-content !important;
  text-decoration: none !important;
}

.auth-with-art .auth-story .company-logo {
  height: 36px !important;
  max-width: 140px !important;
  object-fit: contain !important;
}

.auth-with-art .auth-story h1 {
  font-size: clamp(32px, 3.2vw, 48px) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.18 !important;
  margin: 16px 0 !important;
}

.auth-with-art .auth-story h1 span {
  color: #fdba74 !important;
}

.auth-with-art .auth-copy .eyebrow {
  color: #fed7aa !important;
  font-weight: 750 !important;
  letter-spacing: 0.12em !important;
  font-size: 11px !important;
}

.auth-with-art .auth-copy p {
  color: #f1f5f9 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  max-width: 380px !important;
}

.auth-with-art .auth-art img {
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.auth-with-art .auth-story-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding-top: 18px !important;
  gap: 16px !important;
}

.auth-with-art .auth-feature {
  color: #f8fafc !important;
  font-weight: 550 !important;
  font-size: 12.5px !important;
  gap: 8px !important;
}

.auth-with-art .auth-feature .icon {
  color: #fdba74 !important;
}

/* Right side form: clean, bright surface */
.auth-with-art .auth-form {
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 40px 24px !important;
}

.auth-preference-tools {
  position: absolute !important;
  right: 24px !important;
  top: 24px !important;
  z-index: 10 !important;
}

.auth-with-art .auth-card {
  width: min(100%, 420px) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
  padding: 38px 34px !important;
  margin-top: 0 !important;
}

.auth-card-logo {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 22px !important;
}

.auth-card-logo .company-logo {
  height: 48px !important;
  max-width: 200px !important;
  width: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: var(--radius-sm) !important;
}

[data-theme="dark"] .auth-card-logo .company-logo {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-sm) !important;
}

.auth-with-art .auth-card h2 {
  font-size: 26px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  margin: 10px 0 6px !important;
}

.auth-with-art .auth-card > .muted {
  color: #64748b !important;
  font-size: 13.5px !important;
  margin-bottom: 22px !important;
}

.auth-with-art .auth-card label {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-top: 14px !important;
}

.auth-with-art .auth-card input {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius) !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  transition: all 0.16s ease !important;
}

.auth-with-art .auth-card input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px var(--primary-glow) !important;
}

.auth-with-art .auth-card .btn.primary {
  width: 100% !important;
  padding: 13px 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-top: 22px !important;
  border-radius: var(--radius) !important;
  background: var(--gradient-primary) !important;
  box-shadow: 0 4px 14px var(--primary-glow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.auth-with-art .auth-card .btn.primary:hover {
  box-shadow: 0 6px 20px var(--primary-glow) !important;
  transform: translateY(-1.5px) !important;
}

.auth-security {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  margin-top: 18px !important;
}

.auth-security .icon {
  width: 14px !important;
  height: 14px !important;
  color: var(--primary) !important;
}

/* ==========================================================================
   Modern Leads Overview Cards & Feed
   ========================================================================== */
.leads-overview-shell .lead-overview-card {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.leads-overview-shell .lead-overview-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--primary-glow) !important;
}

.leads-overview-shell .lead-overview-card.is-selected {
  background: var(--surface-soft) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-glow) !important;
}

.lead-overview-disclosure[open] > summary {
  background: var(--primary-subtle) !important;
  border-bottom: 1px solid var(--primary-border) !important;
}

.lead-overview-caption {
  padding: 14px 30px 18px !important;
}

.lead-overview-select {
  position: absolute !important;
  left: 18px !important;
  top: 19px !important; /* Elevated up from 29px */
  z-index: 2 !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  accent-color: var(--primary) !important;
}

.lead-overview-disclosure > summary.has-selection {
  padding-left: 50px !important;
}

.lead-page-selection {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.lead-page-selection input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  accent-color: var(--primary) !important;
  margin: 0 !important;
  vertical-align: middle !important;
  position: relative !important;
  top: -1px !important;
}

.checkbox-cell, th.checkbox-cell, td.checkbox-cell {
  text-align: center !important;
  vertical-align: middle !important;
  width: 44px !important;
  padding-left: 24px !important;
  padding-right: 12px !important;
}

.checkbox-cell input[type="checkbox"], 
td input[type="checkbox"].lead-check,
th input[type="checkbox"]#select-all {
  margin: 0 !important;
  vertical-align: middle !important;
  position: relative !important;
  top: -1px !important;
  width: 17px !important;
  height: 17px !important;
  accent-color: var(--primary) !important;
  cursor: pointer !important;
}

.lead-overview-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 18px 30px !important; /* 30px side padding */
}

.lead-overview-avatar {
  background: linear-gradient(135deg, var(--secondary-subtle), var(--secondary-border)) !important;
  color: var(--secondary) !important;
  border-radius: 12px !important;
  font-weight: 750 !important;
}

.lead-overview-name {
  color: var(--text-strong) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: color 0.15s ease;
}

.lead-overview-name:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}

.lead-overview-company {
  color: var(--text-soft) !important;
  font-size: 12.5px !important;
}

.lead-overview-section {
  padding: 20px 30px !important; /* 30px side padding */
  border-left-color: var(--border) !important;
}

.lead-overview-section h3 {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--text-soft) !important;
  font-weight: 700 !important;
}

.lead-overview-field dt {
  color: var(--text-soft) !important;
  font-size: 11.5px !important;
}

.lead-overview-field dd {
  color: var(--text-strong) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.lead-overview-product {
  background: var(--secondary-subtle) !important;
  border: 1px solid var(--secondary-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--secondary) !important;
  font-weight: 600 !important;
}

.lead-overview-product small {
  color: var(--secondary-light) !important;
}

.lead-overview-activity > span {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

.lead-overview-footer {
  background: var(--surface-soft) !important;
  border-top: 1px solid var(--border) !important;
  padding: 15px 30px !important; /* 30px side padding */
}

.lead-overview-followup {
  border-left: 3px solid var(--primary) !important;
}

.lead-overview-followup strong {
  color: var(--text-strong) !important;
}

/* Pagination */
.lead-pagination {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 14px 30px !important; /* 30px side padding */
}

.lead-pagination .lead-page-button {
  background: var(--surface-alt) !important;
  color: var(--text-body) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.lead-pagination .lead-page-button:hover:not(:disabled) {
  background: #e2e8f0 !important;
  color: var(--text-strong) !important;
}

.lead-pagination .lead-page-button.is-current {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow) !important;
}

/* ==========================================================================
   Modern Mobile Bottom Navigation & Drawer
   ========================================================================== */
.mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06) !important;
}

.mobile-bottom-nav a, .mobile-bottom-nav button {
  color: var(--text-soft) !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.mobile-bottom-nav [aria-current=page] {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
}

.mobile-bottom-nav [aria-current=page] .icon {
  stroke: var(--primary) !important;
}

.mobile-drawer-backdrop:not([hidden]) {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* ==========================================================================
   Invoice Experience & Calculations
   ========================================================================== */
.invoice-summary .card {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.18s ease !important;
}

.invoice-summary .card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

.invoice-summary strong {
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
}

.invoice-calculation {
  background: var(--surface-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.invoice-calculation strong {
  color: var(--primary) !important;
  font-weight: 750 !important;
}

/* ==========================================================================
   Dark Theme Overrides for Components
   ========================================================================== */
[data-theme="dark"] .auth-with-art .auth-form {
  background: #090d16 !important;
}

[data-theme="dark"] .auth-with-art .auth-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .leads-overview-shell .lead-overview-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .leads-overview-shell .lead-overview-card:hover {
  border-color: rgba(20, 184, 166, 0.4) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .lead-overview-disclosure[open] > summary {
  background: #111c30 !important;
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .lead-overview-header {
  background: #0f172a !important;
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .lead-overview-avatar {
  background: rgba(7, 110, 99, 0.3) !important;
  color: #5eead4 !important;
}

[data-theme="dark"] .lead-overview-footer {
  background: #111c30 !important;
  border-top-color: #1e293b !important;
}

[data-theme="dark"] .lead-overview-product {
  background: #111c30 !important;
  border-color: #1e293b !important;
  color: #5eead4 !important;
}

[data-theme="dark"] .lead-pagination {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .lead-pagination .lead-page-button {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lead-pagination .lead-page-button:hover:not(:disabled) {
  background: #334155 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.94) !important;
  border-top-color: #1e293b !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .mobile-bottom-nav [aria-current=page] {
  background: rgba(201, 101, 0, 0.2) !important;
  color: #fdba74 !important;
}

[data-theme="dark"] .invoice-calculation {
  background: #111c30 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .language-control {
  background: #111c30 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .language-control select {
  color: #f8fafc !important;
}

[data-theme="dark"] .toolbar-button {
  background: #111c30 !important;
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .toolbar-button:hover {
  background: #1e293b !important;
  color: #2dd4bf !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .profile-link {
  background: #111c30 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .profile-link:hover {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .account-panel {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .account-identity {
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .account-panel nav > a:hover {
  background: #1e293b !important;
}

[data-theme="dark"] .account-panel nav > button:hover {
  background: #450a0a !important;
  color: #f87171 !important;
}

/* ==========================================================================
   Responsive & Mobile Refinements
   ========================================================================== */
@media (max-width: 768px) {
  .workspace-polished #content {
    padding: 16px 12px !important;
  }
  
  .dashboard-hero {
    padding: 24px 20px !important;
    border-radius: var(--radius-md) !important;
  }
  
  .dashboard-hero .hero-copy h2 {
    font-size: 27px !important;
  }
  
  .premium-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  
  .premium-metrics .metric {
    padding: 16px 14px !important;
  }
  
  .premium-metrics .metric>strong {
    font-size: 26px !important;
  }
  
  .table-toolbar {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  
  .modal {
    border-radius: var(--radius-md) !important;
    max-height: 94vh !important;
  }
  
  .btn {
    padding: 9px 14px !important;
  }
}

@media (max-width: 480px) {
  .premium-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Modern Reports & Executive Analytics Engine Styles
   ========================================================================== */
.reports-modern-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.reports-filter-card {
  padding: 16px 24px !important;
  background: var(--white) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.reports-period-group {
  display: inline-flex;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  gap: 4px;
}

.period-btn {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.16s ease;
}

.period-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
}

.period-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.reports-custom-dates {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reports-custom-dates label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.reports-custom-dates input[type="date"] {
  padding: 6px 10px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
}

.reports-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--secondary-subtle);
  border: 1px solid var(--secondary-border);
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 600;
}

.reports-period-badge .icon {
  width: 15px;
  height: 15px;
}

/* 5-Column KPI Metric Grid */
.reports-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.report-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.report-trend.positive {
  background: #dcfce7;
  color: #15803d;
}

.report-trend.negative {
  background: #fee2e2;
  color: #b91c1c;
}

.report-trend.neutral {
  background: #f1f5f9;
  color: #475569;
}

/* AI Strategic Recommendations Card */
.reports-ai-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(201, 101, 0, 0.25) !important;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.4) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

[data-theme="dark"] .reports-ai-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, #0f172a 100%) !important;
  border-color: rgba(201, 101, 0, 0.35) !important;
}

.ai-head-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-spark-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #c96500, #076e63);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(201, 101, 0, 0.25);
}

.reports-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px 24px;
}

.ai-action-box {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-action-box.what-to-do {
  background: rgba(240, 253, 250, 0.6);
  border-color: rgba(7, 110, 99, 0.2);
}

.ai-action-box.what-not-to-do {
  background: rgba(254, 242, 242, 0.6);
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .ai-action-box.what-to-do {
  background: rgba(7, 110, 99, 0.12);
  border-color: rgba(7, 110, 99, 0.3);
}

[data-theme="dark"] .ai-action-box.what-not-to-do {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.ai-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ai-icon-bubble.green {
  background: #076e63;
  color: #ffffff;
}

.ai-icon-bubble.red {
  background: #ef4444;
  color: #ffffff;
}

.ai-box-title h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.ai-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .ai-rec-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.ai-rec-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary-subtle);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-rec-num.avoid {
  background: #fee2e2;
  color: #b91c1c;
}

.ai-rec-item strong {
  font-size: 13.5px;
  display: block;
  margin-bottom: 3px;
}

.ai-rec-item p {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

/* Role Filter Pills in Table Card */
.role-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.role-pill {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-pill:hover {
  background: var(--surface-alt);
}

.role-pill.active {
  background: var(--secondary);
  color: #ffffff !important;
  border-color: var(--secondary);
}

/* Report Table Customizations */
.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.report-table th {
  padding: 14px 18px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--surface-alt) !important;
  white-space: nowrap;
}

.report-table td {
  padding: 16px 18px !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid var(--border);
}

.report-table tr:hover td {
  background: rgba(201, 101, 0, 0.03) !important;
}

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

.user-role-line {
  margin-top: 3px;
}

.report-rate-pill {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 750;
  display: inline-block;
}

.report-rate-pill.high {
  background: #dcfce7;
  color: #15803d;
}

.report-rate-pill.mid {
  background: #fef3c7;
  color: #92400e;
}

.report-rate-pill.low {
  background: #fee2e2;
  color: #b91c1c;
}

.text-green {
  color: #076e63 !important;
}

.text-amber {
  color: #c96500 !important;
}

/* User Activity Drilldown Inspector Modal */
.user-drilldown-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-drilldown-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.user-drilldown-info h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 750;
}

.user-drilldown-info p {
  margin: 0 0 4px;
  font-size: 13px;
}

.user-drilldown-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface-soft);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.user-drilldown-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-drilldown-kpis span {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.user-drilldown-kpis strong {
  font-size: 18px;
  font-weight: 750;
}

.user-drilldown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-drilldown-section h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 1024px) {
  .reports-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .reports-ai-grid {
    grid-template-columns: 1fr;
  }
  .user-drilldown-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .reports-kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .reports-period-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Secondary Multi-Dimension Filters */
.reports-secondary-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.reports-secondary-filters .filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

[data-theme="dark"] .reports-secondary-filters .filter-item {
  color: var(--text);
}

.reports-secondary-filters select,
.reports-secondary-filters input {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #000000;
  font-weight: 500;
}

[data-theme="dark"] .reports-secondary-filters select,
[data-theme="dark"] .reports-secondary-filters input {
  color: var(--text);
}

.reset-filters-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: var(--radius-full) !important;
  cursor: pointer;
}

/* Section Tabs */
.reports-section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px 0;
  flex-wrap: wrap;
}

.report-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .report-tab-btn {
  color: var(--text);
}

.report-tab-btn:hover {
  background: var(--surface-alt);
}

.report-tab-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(201, 101, 0, 0.25);
}

/* Admin AI Command Center Styles */
.admin-ai-command-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 24px;
}

.admin-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-box-header .bubble-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-box-header h3 {
  font-size: 16px;
  font-weight: 750;
  margin: 0;
  color: #000000;
}

[data-theme="dark"] .admin-box-header h3 {
  color: #ffffff;
}

/* Roadmap Grid */
.admin-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.roadmap-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="dark"] .roadmap-card {
  background: rgba(15, 23, 42, 0.6);
}

.roadmap-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  width: fit-content;
}

.roadmap-card strong {
  font-size: 14px;
  color: #000000;
  line-height: 1.4;
}

[data-theme="dark"] .roadmap-card strong {
  color: #ffffff;
}

.roadmap-card p {
  font-size: 12.5px;
  color: #1a1a1a;
  line-height: 1.55;
  margin: 0;
}

[data-theme="dark"] .roadmap-card p {
  color: var(--muted);
}

/* Employee Directives Cards */
.directives-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.executive-directive-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .executive-directive-card {
  background: rgba(15, 23, 42, 0.7);
}

.executive-directive-card.needs-attention {
  border-color: rgba(201, 101, 0, 0.45) !important;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.5) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

[data-theme="dark"] .executive-directive-card.needs-attention {
  background: linear-gradient(180deg, rgba(201, 101, 0, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
}

.directive-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.directive-member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directive-stat-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-stat {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  color: #000000;
  border: 1px solid var(--border);
}

[data-theme="dark"] .pill-stat {
  color: var(--text);
}

.pill-stat.alert {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.pill-stat.highlight {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.pill-stat.won {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.directive-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.directive-subhead {
  display: block;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  margin-bottom: 4px;
}

.directive-quote {
  font-size: 13px;
  line-height: 1.55;
  color: #000000;
  background: rgba(7, 110, 99, 0.05);
  border-left: 3px solid var(--secondary);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
  font-style: italic;
}

[data-theme="dark"] .directive-quote {
  background: rgba(7, 110, 99, 0.15);
  color: var(--text);
}

.directive-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.directive-checklist li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #000000;
  line-height: 1.4;
}

[data-theme="dark"] .directive-checklist li {
  color: var(--text);
}

.check-box-icon {
  color: var(--primary);
  font-weight: 800;
}

.directive-card-foot {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Meeting Strategy Grid */
.meeting-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .meeting-strategy-grid {
    grid-template-columns: 1fr;
  }
}

.one-on-one-panel,
.standup-agenda-panel {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="dark"] .one-on-one-panel,
[data-theme="dark"] .standup-agenda-panel {
  background: rgba(15, 23, 42, 0.6);
}

.one-on-one-panel h4,
.standup-agenda-panel h4 {
  font-size: 15px;
  font-weight: 750;
  margin: 0;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .one-on-one-panel h4,
[data-theme="dark"] .standup-agenda-panel h4 {
  color: #ffffff;
}

.meeting-priority-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meeting-member-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.mmm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mmm-head strong {
  font-size: 13.5px;
  color: #000000;
}

[data-theme="dark"] .mmm-head strong {
  color: #ffffff;
}

.urgency-badge {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
}

.urgency-badge.high {
  background: #fee2e2;
  color: #b91c1c;
}

.urgency-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.meeting-member-item p {
  font-size: 12px;
  line-height: 1.45;
  color: #1a1a1a;
  margin: 0;
}

[data-theme="dark"] .meeting-member-item p {
  color: var(--muted);
}

.agenda-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-item strong {
  font-size: 13.5px;
  color: #000000;
  display: block;
  margin-bottom: 4px;
}

[data-theme="dark"] .agenda-item strong {
  color: #ffffff;
}

.agenda-item ul {
  padding-left: 20px;
  margin: 0;
  font-size: 12.5px;
  color: #1a1a1a;
  line-height: 1.5;
}

[data-theme="dark"] .agenda-item ul {
  color: var(--text);
}

/* Executive Personal Action Plan */
.executive-personal-plan-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 24px;
}

.personal-kpi-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.pkpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pkpi-item span {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #333333;
}

[data-theme="dark"] .pkpi-item span {
  color: var(--muted);
}

.pkpi-item strong {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
}

[data-theme="dark"] .pkpi-item strong {
  color: #ffffff;
}

.personal-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 850px) {
  .personal-action-grid {
    grid-template-columns: 1fr;
  }
}

.personal-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.personal-box.today-plan {
  background: rgba(240, 253, 250, 0.65);
  border-color: rgba(7, 110, 99, 0.25);
}

.personal-box.focus-leads {
  background: rgba(240, 249, 255, 0.65);
  border-color: rgba(3, 105, 161, 0.25);
}

.personal-box.pitch-tips {
  background: rgba(255, 247, 237, 0.65);
  border-color: rgba(201, 101, 0, 0.25);
}

.personal-box.what-not-to-do {
  background: rgba(254, 242, 242, 0.65);
  border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .personal-box.today-plan {
  background: rgba(7, 110, 99, 0.12);
  border-color: rgba(7, 110, 99, 0.35);
}

[data-theme="dark"] .personal-box.focus-leads {
  background: rgba(3, 105, 161, 0.12);
  border-color: rgba(3, 105, 161, 0.35);
}

[data-theme="dark"] .personal-box.pitch-tips {
  background: rgba(201, 101, 0, 0.12);
  border-color: rgba(201, 101, 0, 0.35);
}

[data-theme="dark"] .personal-box.what-not-to-do {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.pbox-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbox-head h3 {
  font-size: 15px;
  font-weight: 750;
  margin: 0;
  color: #000000;
}

[data-theme="dark"] .pbox-head h3 {
  color: #ffffff;
}

.personal-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.personal-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #000000;
  line-height: 1.5;
}

[data-theme="dark"] .personal-steps-list li {
  color: var(--text);
}

.step-num {
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.focus-leads-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-lead-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

[data-theme="dark"] .focus-lead-card {
  background: rgba(15, 23, 42, 0.7);
}

.focus-lead-card strong {
  font-size: 13px;
  color: #000000;
  display: block;
}

[data-theme="dark"] .focus-lead-card strong {
  color: #ffffff;
}

.focus-lead-card small {
  font-size: 11.5px;
}

/* AI Plan Launchpad & Hit CTA Button */
.ai-launchpad-shell {
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.08) 0%, rgba(7, 110, 99, 0.08) 100%) !important;
  border: 1.5px dashed rgba(201, 101, 0, 0.35) !important;
  text-align: center;
  padding: 40px 24px !important;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

[data-theme="dark"] .ai-launchpad-shell {
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.15) 0%, rgba(7, 110, 99, 0.15) 100%) !important;
  border-color: rgba(201, 101, 0, 0.4) !important;
}

.ai-launchpad-hero {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ai-launchpad-hero h2 {
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

[data-theme="dark"] .ai-launchpad-hero h2 {
  color: #ffffff;
}

.ai-launchpad-hero p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .ai-launchpad-hero p {
  color: #cbd5e1;
}

.ai-hit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c96500 0%, #076e63 100%) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-hit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 101, 0, 0.45) !important;
  color: #ffffff !important;
}

.ai-hit-btn:active {
  transform: translateY(0);
}

.ai-overview-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.06) 0%, rgba(7, 110, 99, 0.06) 100%);
  border: 1px solid rgba(201, 101, 0, 0.25);
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}

.ai-cta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-cta-content h3 {
  font-size: 16px;
  font-weight: 750;
  color: #000000;
  margin: 0;
}

[data-theme="dark"] .ai-cta-content h3 {
  color: #ffffff;
}

.ai-cta-content p {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

[data-theme="dark"] .ai-cta-content p {
  color: #94a3b8;
}

/* ==========================================================================
   Modern Invoice Product Search & Dropdown Picker (Full Width & Full Height)
   ========================================================================== */
.invoice-item-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 24px !important;
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 1.5px solid var(--border, #e2e8f0) !important;
}

.invoice-item-heading h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

[data-theme="dark"] .invoice-item-heading h3 {
  color: #ffffff !important;
}

/* Full Width Container for Search and add products */
.invoice-product-picker,
.invoice-product-picker.full-width-product-picker {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  margin: 8px 0 20px 0 !important;
  padding: 16px 20px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1.5px solid rgba(7, 110, 99, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="dark"] .invoice-product-picker,
[data-theme="dark"] .invoice-product-picker.full-width-product-picker {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border-color: rgba(7, 110, 99, 0.4) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.invoice-product-search-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin-bottom: 10px !important;
  cursor: pointer !important;
}

.invoice-product-search-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  letter-spacing: -0.01em !important;
}

[data-theme="dark"] .invoice-product-search-title {
  color: #ffffff !important;
}

.invoice-product-search-hint {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

[data-theme="dark"] .invoice-product-search-hint {
  color: #94a3b8 !important;
}

.invoice-search-input-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.invoice-search-input-wrap .inv-search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #076e63 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.invoice-search-input-wrap .inv-search-icon svg {
  width: 18px !important;
  height: 18px !important;
}

#invoice-product-search {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 13px 18px 13px 44px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1.5px solid var(--border, #cbd5e1) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #000000 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

#invoice-product-search:focus {
  outline: none !important;
  border-color: #076e63 !important;
  box-shadow: 0 0 0 4px rgba(7, 110, 99, 0.16) !important;
  background: #ffffff !important;
}

[data-theme="dark"] #invoice-product-search {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #invoice-product-search:focus {
  border-color: #076e63 !important;
  box-shadow: 0 0 0 4px rgba(7, 110, 99, 0.32) !important;
}

/* Full Width & Full Height Filtered Product Autocomplete List */
#invoice-catalog-list.autocomplete-list {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(7, 110, 99, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 8px 24px rgba(7, 110, 99, 0.14) !important;
  overflow: hidden !important;
  z-index: 2500 !important;
  padding: 0 !important;
  display: none;
  max-height: min(560px, 65vh) !important;
}

[data-theme="dark"] #invoice-catalog-list.autocomplete-list {
  background: #0f172a !important;
  border-color: rgba(7, 110, 99, 0.5) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7) !important;
}

#invoice-catalog-list.autocomplete-list.open {
  display: flex !important;
  flex-direction: column !important;
  animation: invProductDropOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.invoice-product-dropdown-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1.5px solid rgba(7, 110, 99, 0.12) !important;
  font-size: 13px !important;
  color: #334155 !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .invoice-product-dropdown-header {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.inv-drop-count strong {
  color: var(--primary, #c96500) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.inv-drop-hint {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.04) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

[data-theme="dark"] .inv-drop-hint {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}

/* Full Height Scrollable List */
.invoice-product-dropdown-list {
  max-height: min(480px, 56vh) !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.invoice-product-dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.invoice-product-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.invoice-product-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(7, 110, 99, 0.35);
  border-radius: 4px;
}

.invoice-product-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 18px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .invoice-product-item {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.invoice-product-item:hover,
.invoice-product-item.selected {
  background: linear-gradient(90deg, rgba(201, 101, 0, 0.07) 0%, rgba(7, 110, 99, 0.11) 100%) !important;
  border-color: #076e63 !important;
  box-shadow: 0 4px 16px rgba(7, 110, 99, 0.15) !important;
  transform: translateY(-1px) !important;
}

[data-theme="dark"] .invoice-product-item:hover,
[data-theme="dark"] .invoice-product-item.selected {
  background: linear-gradient(90deg, rgba(201, 101, 0, 0.2) 0%, rgba(7, 110, 99, 0.26) 100%) !important;
  border-color: #076e63 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.inv-prod-avatar-wrap {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.12) 0%, rgba(7, 110, 99, 0.15) 100%) !important;
  color: #076e63 !important;
  border: 1px solid rgba(7, 110, 99, 0.25) !important;
}

.inv-prod-avatar-wrap .inv-prod-icon svg {
  width: 20px !important;
  height: 20px !important;
}

[data-theme="dark"] .inv-prod-avatar-wrap {
  background: rgba(7, 110, 99, 0.25) !important;
  color: #2dd4bf !important;
  border-color: rgba(7, 110, 99, 0.4) !important;
}

.inv-prod-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.inv-prod-headline {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.inv-prod-name {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

[data-theme="dark"] .inv-prod-name {
  color: #ffffff !important;
}

.inv-prod-badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.inv-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2.5px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

.inv-badge-packing {
  background: rgba(7, 110, 99, 0.12) !important;
  color: #076e63 !important;
  border: 1px solid rgba(7, 110, 99, 0.28) !important;
}

[data-theme="dark"] .inv-badge-packing {
  background: rgba(7, 110, 99, 0.28) !important;
  color: #5eead4 !important;
}

.inv-badge-type {
  background: rgba(201, 101, 0, 0.12) !important;
  color: #c96500 !important;
  border: 1px solid rgba(201, 101, 0, 0.28) !important;
}

[data-theme="dark"] .inv-badge-type {
  background: rgba(201, 101, 0, 0.28) !important;
  color: #fdba74 !important;
}

.inv-badge-section {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="dark"] .inv-badge-section {
  background: #334155 !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
}

.inv-prod-composition {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  word-break: break-word !important;
}

[data-theme="dark"] .inv-prod-composition {
  color: #cbd5e1 !important;
}

.inv-comp-prefix {
  font-weight: 750 !important;
  color: #076e63 !important;
  margin-right: 4px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

[data-theme="dark"] .inv-comp-prefix {
  color: #2dd4bf !important;
}

.inv-prod-prices {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 2px !important;
  flex-wrap: wrap !important;
}

.inv-price-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
}

.inv-price-tag.rate {
  background: rgba(7, 110, 99, 0.1) !important;
  color: #076e63 !important;
  border: 1px solid rgba(7, 110, 99, 0.25) !important;
}

.inv-price-tag.rate strong {
  font-weight: 800 !important;
  font-size: 13.5px !important;
  color: #076e63 !important;
}

[data-theme="dark"] .inv-price-tag.rate {
  background: rgba(7, 110, 99, 0.25) !important;
  color: #5eead4 !important;
}

[data-theme="dark"] .inv-price-tag.rate strong {
  color: #5eead4 !important;
}

.inv-price-tag.mrp {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .inv-price-tag.mrp {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

.inv-prod-action {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.inv-add-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  background: #076e63 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.16s ease !important;
  box-shadow: 0 2px 8px rgba(7, 110, 99, 0.28) !important;
}

.inv-add-chip svg {
  width: 14px !important;
  height: 14px !important;
}

.invoice-product-item:hover .inv-add-chip,
.invoice-product-item.selected .inv-add-chip {
  background: #c96500 !important;
  box-shadow: 0 4px 14px rgba(201, 101, 0, 0.38) !important;
  transform: scale(1.05) !important;
}

.invoice-product-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 38px 20px !important;
  text-align: center !important;
  gap: 8px !important;
}

.inv-empty-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(201, 101, 0, 0.1) !important;
  color: #c96500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.inv-empty-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.invoice-product-empty strong {
  font-size: 15px !important;
  color: #000000 !important;
}

[data-theme="dark"] .invoice-product-empty strong {
  color: #ffffff !important;
}

.invoice-product-empty p {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 !important;
}

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

/* ==========================================================================
   Loader Logo & Visual Polish Safeguards
   ========================================================================== */
.loader-logo-circle {
  position: relative !important;
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid rgba(7, 110, 99, 0.28) !important;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), 0 10px 28px rgba(7, 110, 99, 0.22), 0 2px 10px rgba(201, 101, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  overflow: hidden !important;
  animation: loader-logo-pulse 2.4s ease-in-out infinite alternate !important;
}

.loader-logo-shine {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 50% !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%) !important;
  border-top-left-radius: 50px !important;
  border-top-right-radius: 50px !important;
  pointer-events: none !important;
  z-index: 6 !important;
}

.loader-logo-img {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  z-index: 7 !important;
}

/* ==========================================================================
   Modern Side Tab Navigation for Settings Page
   ========================================================================== */

.settings-shell {
  width: 100%;
  margin-top: 20px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.settings-nav-sidebar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 14px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 86px;
  z-index: 20;
}

.settings-nav-header {
  padding: 4px 12px 14px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.settings-nav-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary, #c96500);
  margin-bottom: 4px;
}

.settings-nav-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong, #000000);
  letter-spacing: -0.02em;
}

.settings-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  gap: 12px;
  text-decoration: none;
  font-family: inherit;
  color: var(--text-body, #0a0a0a);
}

.settings-tab-btn:hover {
  background: rgba(7, 110, 99, 0.05);
  border-color: rgba(7, 110, 99, 0.15);
  transform: translateX(3px);
}

.settings-tab-btn.active {
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.08) 0%, rgba(7, 110, 99, 0.09) 100%);
  border-color: rgba(201, 101, 0, 0.4);
  box-shadow: 0 4px 14px rgba(201, 101, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.settings-tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--primary, #c96500) 0%, var(--secondary, #076e63) 100%);
}

.settings-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-alt, #f1f5f9);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.settings-tab-icon svg {
  width: 20px;
  height: 20px;
}

.settings-tab-btn:hover .settings-tab-icon {
  background: rgba(7, 110, 99, 0.12);
  color: var(--secondary, #076e63);
}

.settings-tab-btn.active .settings-tab-icon {
  background: linear-gradient(135deg, var(--primary, #c96500), #e07d1a);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(201, 101, 0, 0.35);
}

.settings-tab-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.settings-tab-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-strong, #000000);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.settings-tab-btn.active .settings-tab-title {
  color: #000000;
  font-weight: 800;
}

.settings-tab-desc {
  font-size: 11px;
  color: var(--muted, #475569);
  margin-top: 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-tab-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.settings-tab-chevron svg {
  width: 16px;
  height: 16px;
}

.settings-tab-btn:hover .settings-tab-chevron {
  color: var(--secondary, #076e63);
  transform: translateX(2px);
}

.settings-tab-btn.active .settings-tab-chevron {
  color: var(--primary, #c96500);
  transform: translateX(3px);
}

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

.settings-panel {
  display: block;
  animation: settingsPanelFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.settings-panel[hidden] {
  display: none !important;
}

.settings-panel > .card {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@keyframes settingsPanelFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 960px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .settings-nav-sidebar {
    position: static;
    padding: 12px;
  }
  
  .settings-nav-header {
    display: none;
  }
  
  .settings-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  
  .settings-tab-btn {
    width: auto;
    flex-shrink: 0;
    padding: 8px 12px;
    gap: 8px;
  }
  
  .settings-tab-btn:hover,
  .settings-tab-btn.active {
    transform: none;
  }
  
  .settings-tab-btn.active::before {
    left: 15%;
    top: auto;
    bottom: 0;
    width: 70%;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }
  
  .settings-tab-desc,
  .settings-tab-chevron {
    display: none;
  }
  
  .settings-tab-icon {
    width: 30px;
    height: 30px;
  }
  
  .settings-tab-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .settings-tab-title {
    font-size: 13px;
  }
}

/* ==========================================================================
   Modern Profile Page Side Navigation & Account Summary
   ========================================================================== */

.profile-shell .profile-layout {
  display: grid !important;
  grid-template-columns: 310px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

.profile-nav-header {
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.08) 0%, rgba(7, 110, 99, 0.09) 100%);
  border: 1px solid rgba(201, 101, 0, 0.22);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-nav-avatar {
  width: 46px !important;
  height: 46px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--primary, #c96500) 0%, #e07d1a 100%) !important;
  color: #ffffff !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(201, 101, 0, 0.3) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.profile-nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.profile-nav-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.profile-nav-user-email {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  margin-bottom: 6px;
}

.profile-nav-role {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* Account & Membership Overview Card */
.profile-summary-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius-lg, 16px) !important;
}

.profile-summary-card .profile-cover {
  height: 120px;
  background: radial-gradient(circle at 75% 70%, rgba(7, 110, 99, 0.45), transparent 60%), linear-gradient(135deg, var(--primary, #c96500) 0%, var(--secondary, #076e63) 100%);
  position: relative;
}

.profile-summary-body {
  padding: 0 28px 28px;
  text-align: center;
}

.profile-summary-body .profile-avatar {
  width: 84px;
  height: 84px;
  font-size: 30px;
  font-weight: 800;
  border: 4px solid var(--surface, #ffffff);
  background: #ffffff;
  color: var(--primary, #c96500);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  margin: -42px auto 14px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.profile-summary-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.profile-summary-body p {
  color: #475569;
  font-size: 14px;
  margin: 0 0 12px;
}

.profile-summary-body .role-tag {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 11px;
  padding: 4px 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-summary-body .profile-facts {
  text-align: left;
  border-top: 1px solid var(--border, #e2e8f0);
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
}

.profile-summary-body .profile-facts > div {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-summary-body .profile-facts span {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-summary-body .profile-facts strong {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.profile-summary-body .profile-role-note {
  font-size: 12px;
  color: #64748b;
  margin: 20px 0 0 0;
  text-align: center;
  font-style: italic;
}

@media (max-width: 960px) {
  .profile-shell .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .profile-nav-header {
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   Printing Sheets Record & Designer Module Styles
   ========================================================================== */

.printing-sheets-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.printing-alert-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(201, 101, 0, 0.08) 0%, rgba(254, 215, 170, 0.22) 100%);
  border: 1px solid rgba(201, 101, 0, 0.35);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 4px 14px -3px rgba(201, 101, 0, 0.12);
  animation: printingBannerPulse 3s ease-in-out infinite alternate;
}

@keyframes printingBannerPulse {
  0% { box-shadow: 0 4px 14px -3px rgba(201, 101, 0, 0.12); }
  100% { box-shadow: 0 6px 20px 0 rgba(201, 101, 0, 0.22); }
}

.printing-alert-visual {
  flex-shrink: 0;
}

.printing-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c96500;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(201, 101, 0, 0.35);
}

.printing-alert-icon .icon {
  width: 22px;
  height: 22px;
}

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

.printing-alert-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.printing-alert-header strong {
  font-size: 15px;
  font-weight: 700;
  color: #7c2d12;
}

.printing-alert-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.printing-alert-text {
  font-size: 13px;
  line-height: 1.45;
  color: #431407;
  margin: 0;
}

.printing-alert-actions {
  flex-shrink: 0;
}

.printing-alert-btn {
  background: #c96500 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(201, 101, 0, 0.25);
  transition: all 0.2s ease;
}

.printing-alert-btn:hover {
  background: #b35a00 !important;
  transform: translateY(-1px);
}

.printing-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.printing-records-card {
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.printing-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.printing-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.printing-filter-row select {
  height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.printing-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.printing-sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.printing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.printing-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.printing-sync-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.printing-sheet-link {
  font-weight: 600;
  color: var(--secondary);
}

.printing-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.printing-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.printing-records-table th {
  background: var(--surface-alt);
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.printing-records-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
}

.printing-records-table tbody tr {
  transition: background-color 0.15s ease;
}

.printing-records-table tbody tr:hover {
  background-color: rgba(201, 101, 0, 0.025);
}

.printing-records-table tbody tr.row-pending {
  background-color: rgba(254, 243, 199, 0.25);
}

.printing-records-table tbody tr.row-pending:hover {
  background-color: rgba(254, 243, 199, 0.45);
}

.cell-date strong {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
}

.cell-batch .batch-title {
  font-weight: 700;
  color: #0f172a;
}

.cell-brand .brand-title {
  font-weight: 700;
  color: var(--primary-dark);
}

.company-tag {
  display: inline-block;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.printing-status-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pending-badge {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #ffedd5 !important;
  font-weight: 700;
}

.nil-badge {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-weight: 600;
}

.followup-cell-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 170px;
}

.followup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  width: fit-content;
}

.followup-badge.overdue {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.followup-badge.today {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.followup-badge.upcoming {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.activity-snippet {
  color: #334155;
  font-size: 11.5px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.printing-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.printing-followup-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.printing-followup-summary .summary-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.printing-followup-summary .summary-line span {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.printing-followup-summary .summary-line strong {
  font-size: 13.5px;
  color: var(--text-strong);
}

.printing-history-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.printing-history-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 12px 0;
}

.history-note {
  font-size: 13px;
  color: #1e293b;
  margin: 4px 0 2px 0;
  line-height: 1.4;
}

.text-urgent {
  color: #dc2626 !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .printing-alert-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .printing-alert-actions {
    width: 100%;
  }
  .printing-alert-btn {
    width: 100%;
  }
  .printing-followup-summary {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   DESIGNER DASHBOARD & ADVANCED PRINTING SHEETS MODERN THEME
   ========================================================================== */

/* Designer Dashboard Hero Banner */
.designer-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.designer-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e1b4b 100%);
  color: #ffffff;
  padding: 28px 32px;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

.designer-hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 101, 0, 0.25) 0%, rgba(201, 101, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.designer-hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.designer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
  width: fit-content;
}

.designer-status-ping {
  width: 8px;
  height: 8px;
  background-color: #f97316;
  border-radius: 50%;
  box-shadow: 0 0 8px #f97316;
  animation: designerPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes designerPing {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.designer-hero-title,
h1.designer-hero-title,
.designer-hero-banner h1,
.designer-hero-banner .designer-hero-title,
html:not([data-theme="dark"]) .designer-hero-banner h1,
html:not([data-theme="dark"]) .designer-hero-banner .designer-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.designer-hero-sub,
p.designer-hero-sub,
.designer-hero-banner p,
.designer-hero-banner .designer-hero-sub,
html:not([data-theme="dark"]) .designer-hero-banner p,
html:not([data-theme="dark"]) .designer-hero-banner .designer-hero-sub {
  font-size: 14px;
  color: #ffffff !important;
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
}

.production-hero-title,
h1.production-hero-title,
.production-hero-banner h1,
.production-hero-banner .production-hero-title,
html:not([data-theme="dark"]) .production-hero-banner h1,
html:not([data-theme="dark"]) .production-hero-banner .production-hero-title,
.production-hero-sub,
p.production-hero-sub,
.production-hero-banner p,
.production-hero-banner .production-hero-sub,
html:not([data-theme="dark"]) .production-hero-banner p,
html:not([data-theme="dark"]) .production-hero-banner .production-hero-sub,
.production-badge-pill,
.production-badge-pill span,
.production-hero-banner .production-badge-pill,
.production-hero-banner .production-badge-pill span:not(.production-status-ping),
html:not([data-theme="dark"]) .production-hero-banner .production-badge-pill,
html:not([data-theme="dark"]) .production-hero-banner .production-badge-pill span:not(.production-status-ping) {
  color: #ffffff !important;
}

.production-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-hero-action {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201, 101, 0, 0.35);
}

.btn-hero-sync {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-hero-sync:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Designer KPI Cards */
.designer-kpi-grid .designer-card-kpi {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
  background: var(--surface);
}

.designer-kpi-grid .designer-card-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.designer-card-kpi strong {
  font-size: 26px;
  font-weight: 800;
}

.text-warning {
  color: #d97706 !important;
}

.text-success {
  color: #16a34a !important;
}

/* Designer Split Layout */
.designer-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

.designer-section-card {
  display: flex;
  flex-direction: column;
}

.designer-section-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.designer-section-card .card-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text-strong);
}

/* Designer Pending List */
.designer-pending-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid var(--border);
}

.designer-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

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

.designer-pending-row:hover {
  background-color: var(--surface-soft);
}

.designer-pending-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.designer-pending-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.designer-pending-title strong {
  font-size: 14px;
  color: var(--text-strong);
}

.designer-pending-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.designer-pending-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Company Breakdown Widget */
.designer-company-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 18px 20px;
}

.designer-company-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.designer-company-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.company-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.company-name-strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.company-item-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.designer-quick-actions {
  padding: 14px 20px 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
}

.designer-quick-actions h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.quick-actions-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quick {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm, 6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.btn-quick:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODERN & ATTRACTIVE PRINTING TABLE DESIGN
   ========================================================================== */

.printing-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.modern-elevated-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: var(--surface);
}

.modern-elevated-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-elevated-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: var(--text-body);
  transition: background-color 0.15s ease;
}

.modern-elevated-table tbody tr.printing-row {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.modern-elevated-table tbody tr.printing-row:hover {
  background-color: #f8fafc !important;
}

.modern-elevated-table tbody tr.row-pending {
  background-color: #fffbeb;
}

.modern-elevated-table tbody tr.row-pending:hover {
  background-color: #fef3c7 !important;
}

.modern-elevated-table tbody tr.row-received {
  background-color: #ffffff;
}

/* Date badge box */
.date-badge-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-badge-box strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.cell-month-sub {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Batch Chip */
.batch-chip-wrapper {
  max-width: 220px;
}

.batch-chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

/* Brand Cell */
.brand-cell-content {
  min-width: 140px;
}

.brand-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Packing Pill */
.packing-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Qty Highlight */
.qty-highlight {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

/* Status Pill with Animated Glowing Pulse Dot */
.status-toggle-wrapper {
  display: flex;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill:hover {
  transform: scale(1.04);
}

.status-pill.status-receive {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

.status-pill.status-receive .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-pill.status-pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
  box-shadow: 0 1px 3px rgba(249, 115, 22, 0.15);
}

.status-pill.status-pending .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
  animation: pendingDotPulse 1.5s infinite;
}

@keyframes pendingDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* MRP Pill */
.mrp-pill {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* Pending Sheet Warning Pill vs Nil Chip */
.pending-chip-warning {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.nil-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* Row Action Buttons */
.btn-action-followup {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s ease;
}

.btn-action-followup:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.btn-action-edit:hover {
  color: #0284c7;
  background: #f0f9ff;
}

.btn-action-delete:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* ==========================================================================
   AUTO-SUGGESTIONS & FORM MODERN STYLES
   ========================================================================== */

.form-notice-modern {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.45;
}

.form-notice-modern span {
  font-size: 18px;
  flex-shrink: 0;
}

.form-hint-autocomplete {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  font-style: italic;
}

.printing-sheet-modal-form input[list]:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Mobile Media Queries */
@media (max-width: 900px) {
  .designer-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .designer-split-grid {
    grid-template-columns: 1fr;
  }

  .designer-pending-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .designer-pending-cta {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Received count badges & partial status pill */
.received-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.received-count-badge.rec-full {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.received-count-badge.rec-partial {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.received-count-badge.rec-zero {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.status-pill.status-partial {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

.status-pill.status-partial .pulse-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.workspace-polished .sidebar-grouped-nav{padding:6px 0 14px;min-height:0;overflow-y:auto;scrollbar-width:thin}
.sidebar-nav-group{margin:0 0 16px}.sidebar-nav-group:last-child{margin-bottom:0}
.sidebar-group-title{display:flex;align-items:center;gap:10px;margin:0 10px 7px;padding:5px 0;font-size:10px;font-weight:750;letter-spacing:1.1px;text-transform:uppercase;color:var(--text-muted,#64748b);line-height:1.4}
.sidebar-group-title:after{content:"";flex:1;height:1px;background:var(--border,#e2e8f0);opacity:.7}
.workspace-polished .sidebar-grouped-nav .nav-item{min-height:42px;margin-bottom:3px;padding:10px 12px;font-size:13px;gap:10px}
.sidebar-group-links .nav-item span{min-width:0;overflow-wrap:anywhere}.sidebar-group-links .nav-item .icon{width:18px;height:18px;flex-shrink:0}
@media(max-width:900px){.workspace-polished .sidebar-grouped-nav .nav-item{min-height:46px;font-size:14px}.sidebar-nav-group{margin-bottom:18px}}

/* Third-Party Planning Modal Full-Width Controls */
#tpp-plan-form {
  width: 100% !important;
  max-width: 960px !important;
  box-sizing: border-box !important;
}

#tpp-plan-form textarea,
#tpp-plan-form #tpp-composition-input,
#tpp-composition-input,
textarea#tpp-composition-input {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 100px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
  resize: vertical !important;
}

#tpp-plan-form select,
#tpp-plan-form input:not([type="checkbox"]):not([type="radio"]),
#tpp-composition-quick-select {
  width: 100% !important;
  box-sizing: border-box !important;
}
