/* ==========================================================================
   AKTÜRK MAKİNA B2B CRM - DESIGN SYSTEM & STYLESHEET
   Endüstriyel Lüks, Koyu Yeşil / Zümrüt & Slate Palet, Akıcı Mikro-Etkileşimler
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Primary & Brand Colors */
  --brand-emerald-dark: #061c14;
  --brand-emerald-primary: #10b981;
  --brand-emerald-light: #34d399;
  --brand-emerald-hover: #059669;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  
  /* Backgrounds & Surfaces */
  --bg-app: #090e17;
  --bg-sidebar: #0d1522;
  --bg-header: rgba(13, 21, 34, 0.85);
  --bg-card: #131d2e;
  --bg-card-hover: #19263c;
  --bg-surface-elevated: #1a273e;
  --bg-input: #0c1421;
  
  /* Borders */
  --border-subtle: #1e2c42;
  --border-light: #283a57;
  --border-focus: #10b981;
  
  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-emerald: #34d399;
  
  /* Accents & Status */
  --status-lead: #6366f1;
  --status-rfq: #0ea5e9;
  --status-quote: #eab308;
  --status-neg: #f97316;
  --status-won: #10b981;
  --status-lost: #ef4444;
  
  /* Spacings & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--brand-emerald-glow);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* App Shell Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar-brand {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.brand-link {
  transition: transform 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.brand-link:hover .brand-icon-box {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.brand-link:hover .brand-name {
  color: var(--brand-emerald-light);
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-emerald-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-toggle-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background-color: var(--border-light);
  color: #ffffff;
}

/* Collapsed Sidebar State (Sola Yanaştırılmış / Daraltılmış Mod) */
.sidebar.collapsed {
  width: 74px;
}

.sidebar.collapsed .brand-title-wrap {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-toggle-btn {
  margin-left: 0;
  position: absolute;
  right: -14px;
  top: 26px;
  background-color: var(--brand-emerald-dark);
  border-color: var(--brand-emerald-primary);
  color: var(--brand-emerald-light);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: rotate(180deg);
  z-index: 101;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 14px 0;
  border-left: none;
  position: relative;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .nav-item.active {
  border-left: none;
  background: rgba(16, 185, 129, 0.2);
}

.sidebar.collapsed .company-factory-info {
  display: none;
}

/* Tooltip on Collapsed Nav Items */
.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0b1320;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 999;
  pointer-events: none;
}

.sidebar-nav {
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
}

.nav-item span {
  flex: 1;
  word-break: break-word;
  hyphens: auto;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 100%);
  color: var(--brand-emerald-light);
  border-left: 3px solid var(--brand-emerald-primary);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.nav-item.active svg {
  stroke: var(--brand-emerald-light);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.btn-db-sync {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-db-sync:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-emerald-primary);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.db-sync-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-footer {
  padding: 8px 6px;
}

.sidebar.collapsed .btn-db-sync {
  justify-content: center;
  padding: 8px;
}

.sidebar.collapsed .db-sync-label {
  display: none;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-app);
}

/* Top App Header */
.top-header {
  height: 72px;
  padding: 0 32px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: #ffffff;
}

.header-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  width: 380px;
  transition: all 0.2s ease;
}

.header-search-box:focus-within {
  border-color: var(--brand-emerald-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.header-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
}

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

/* Language Selector */
.lang-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
}

.lang-selector-wrap select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-selector-wrap select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* View Container */
.main-content-view {
  padding: 32px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* View Header */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.view-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.view-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  color: var(--text-primary);
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-emerald-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Cards & Containers */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-light);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* Modern Luxury KPI Cards (Hiyerarşik, Net ve Ferah Düzen) */
.kpi-card-luxury {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card-luxury:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border-color: var(--brand-emerald-primary);
}

.kpi-card-luxury.glow-emerald {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, #131d2e 0%, #0c2b20 100%);
}

.kpi-luxury-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

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

.kpi-label-luxury {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kpi-arrow-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.kpi-card-luxury:hover .kpi-arrow-badge {
  color: #ffffff;
  background-color: var(--brand-emerald-primary);
  transform: translateX(3px);
}

.kpi-main-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.kpi-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.kpi-luxury-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.kpi-subtext-luxury {
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-action-link {
  color: var(--brand-emerald-light);
  font-weight: 600;
  transition: transform 0.15s ease;
}

.kpi-card-luxury:hover .kpi-action-link {
  text-decoration: underline;
}

.kpi-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-emerald-light { background: rgba(16, 185, 129, 0.15); }
.bg-indigo-light { background: rgba(99, 102, 241, 0.15); }
.bg-amber-light { background: rgba(245, 158, 11, 0.15); }

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dashboard Analytics Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

/* Pipeline Bars */
.pipeline-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.bar-stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-track.sm {
  height: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Country Rows */
.country-distribution-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
}

.country-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  font-weight: 500;
}

.country-flag {
  font-size: 1.2rem;
}

.country-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.country-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: right;
}

/* Filter Bar & Pills */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--brand-emerald-primary);
  color: var(--brand-emerald-light);
}

.view-toggle {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.icon-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-toggle.active {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

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

.data-table th {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table-row-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.table-row-clickable:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.cust-table-name {
  color: #ffffff;
  font-size: 0.92rem;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.whatsapp-btn-sm:hover {
  transform: scale(1.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-sm {
  font-size: 0.72rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.tag-md {
  font-size: 0.8rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  color: #ffffff;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.active::before { background-color: #10b981; box-shadow: 0 0 6px #10b981; }
.status-indicator.lead::before { background-color: #f59e0b; }

/* Customer Grid Cards */
.customer-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.cust-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.cust-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.cust-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.cust-card-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cust-card-body {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.cust-field {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.cust-val {
  color: #ffffff;
  font-weight: 500;
}

.cust-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Kanban Board */
.kanban-board-wrapper {
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-board {
  display: flex;
  gap: 16px;
  min-width: 1200px;
}

.kanban-column {
  flex: 1;
  min-width: 250px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
}

.kanban-column-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(0, 0, 0, 0.1);
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.kanban-count-badge {
  background-color: var(--bg-surface-elevated);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.kanban-col-total {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-emerald-light);
  margin-top: 4px;
}

.kanban-cards-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 150px;
  transition: background-color 0.2s ease;
}

.kanban-cards-list.drag-over {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--brand-emerald-primary);
  border-radius: var(--radius-md);
}

.kanban-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kanban-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.priority-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.priority-urgent { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.priority-high { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.priority-normal { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.kanban-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.kanban-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.kanban-card-footer {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-amount {
  color: var(--brand-emerald-light);
  font-size: 0.95rem;
}

.stage-quick-change {
  margin-top: 8px;
}

.stage-select-sm {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 4px 6px;
  cursor: pointer;
}

.kanban-empty-placeholder {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  position: relative;
  height: 190px;
  width: 100%;
  background-color: #0c1421;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.product-code-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.product-card-body {
  padding: 20px;
  flex: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.product-specs-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.product-card-footer {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-val {
  font-size: 1.15rem;
}

/* Quick Products on Dashboard */
.quick-product-list {
  display: flex;
  flex-direction: column;
}

.quick-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.quick-product-item:last-child {
  border-bottom: none;
}

.quick-prod-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.quick-prod-info {
  flex: 1;
}

.quick-prod-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.quick-prod-specs {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Timeline & Activities */
.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.timeline-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-icon-badge.phone { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.timeline-icon-badge.fair { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.timeline-icon-badge.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.timeline-icon-badge.visit { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.timeline-icon-badge.service { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.timeline-body {
  flex: 1;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-title {
  font-size: 0.88rem;
  color: #ffffff;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-customer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 2px 0;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.timeline-full-list {
  display: flex;
  flex-direction: column;
}

.activity-full-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-full-row:last-child {
  border-bottom: none;
}

.act-details-col {
  flex: 1;
}

.act-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.act-company-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.act-summary-body {
  font-size: 0.88rem;
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  line-height: 1.45;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Forms */
.crm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, select.form-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-emerald-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-textarea {
  resize: vertical;
}

/* Customer 360 Detail View */
.cust-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.detail-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

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

.list-item-row {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Printable Proforma / Official Quotation */
.proforma-document {
  background: #ffffff;
  color: #1e293b;
  padding: 30px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  line-height: 1.4;
  box-sizing: border-box;
}

.proforma-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #059669;
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 16px;
}

.proforma-logo-box {
  max-width: 48%;
  flex: 1 1 48%;
}

.company-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #064e3b;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.company-sub-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  margin-top: 2px;
  margin-bottom: 6px;
}

.company-address-box {
  font-size: 0.73rem;
  color: #64748b;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
}

.proforma-title-box {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.doc-badge-title {
  background-color: #064e3b;
  color: #ffffff;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.doc-meta-table {
  border-collapse: collapse;
}

.doc-meta-table td {
  padding: 2px 4px;
  font-size: 0.80rem;
  color: #334155;
  white-space: nowrap;
}

.proforma-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.proforma-info-block {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fcfdfd;
}

.block-title {
  background-color: #f1f5f9;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: 0.2px;
}

.block-body {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.38;
}

.proforma-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.80rem;
}

.proforma-items-table th {
  background-color: #064e3b;
  color: #ffffff;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
}

.proforma-items-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.proforma-totals-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.proforma-notes {
  flex: 1;
  font-size: 0.76rem;
  color: #334155;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.proforma-totals-box {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: #475569;
}

.total-row.grand-total {
  border-top: 2px solid #064e3b;
  padding-top: 5px;
  font-size: 0.98rem;
  color: #064e3b;
}

.proforma-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 10px;
}

.sig-col {
  width: 200px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.sig-line {
  margin-top: 32px;
  border-top: 1px solid #94a3b8;
  padding-top: 4px;
  font-size: 0.72rem;
  color: #64748b;
}

/* File Upload Zone for Excel Import */
.file-upload-zone {
  border: 2px dashed var(--border-light);
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-zone:hover, .file-upload-zone.drag-over {
  border-color: var(--brand-emerald-primary);
  background-color: rgba(16, 185, 129, 0.05);
}

.upload-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.import-help-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.max-h-48 {
  max-height: 192px;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.toast-success { border-left: 4px solid var(--brand-emerald-primary); }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }

/* Utilities */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-white { color: #ffffff; }
.text-muted { color: var(--text-muted); }
.text-emerald { color: var(--text-emerald); }
.text-danger { color: #f87171; }
.text-success { color: #34d399; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.p-0 { padding: 0 !important; }

/* Print Media Query */
@page {
  size: A4 portrait;
  margin: 18mm 14mm 14mm 14mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-size: 11pt !important;
  }

  body * {
    visibility: hidden;
  }

  #proforma-printable-area, #proforma-printable-area * {
    visibility: visible;
  }

  .modal-backdrop {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
  }

  .modal-container {
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .modal-header, .modal-footer, .sidebar, .top-header, .btn-close-modal, .global-search-modal-backdrop {
    display: none !important;
  }

  #proforma-printable-area {
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .proforma-header {
    border-bottom: 2px solid #059669 !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .proforma-logo-box {
    max-width: 48% !important;
    flex: 1 1 48% !important;
  }

  .company-logo-text {
    color: #064e3b !important;
    font-size: 1.3rem !important;
    line-height: 1.15 !important;
  }

  .company-sub-text {
    color: #059669 !important;
    font-size: 0.8rem !important;
  }

  .company-address-box {
    font-size: 0.72rem !important;
    color: #475569 !important;
    line-height: 1.35 !important;
  }

  .proforma-title-box {
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .doc-badge-title {
    background-color: #064e3b !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    white-space: nowrap !important;
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    border-radius: 4px !important;
    display: inline-block !important;
  }

  .doc-meta-table td {
    padding: 2px 4px !important;
    font-size: 0.78rem !important;
    color: #334155 !important;
  }

  .proforma-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .proforma-info-block {
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .block-title {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }

  .block-body {
    padding: 6px 8px !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  .proforma-items-table {
    width: 100% !important;
    margin-bottom: 14px !important;
    font-size: 0.78rem !important;
  }

  .proforma-items-table th {
    background-color: #064e3b !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
  }

  .proforma-items-table td {
    padding: 6px 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .proforma-totals-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
  }

  .proforma-notes {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
  }

  .proforma-totals-box {
    width: 240px !important;
    font-size: 0.80rem !important;
  }

  .total-row {
    padding: 2px 0 !important;
  }

  .total-row.grand-total {
    border-top: 2px solid #064e3b !important;
    font-size: 0.95rem !important;
    color: #064e3b !important;
  }

  .proforma-signatures {
    margin-top: 22px !important;
    padding-top: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .sig-col {
    width: 190px !important;
    font-size: 0.75rem !important;
  }

  .sig-line {
    margin-top: 28px !important;
    border-top: 1px solid #64748b !important;
    color: #64748b !important;
  }
}

/* User Switcher Dropdown in Header */
.user-switcher-wrap {
  position: relative;
}

.user-switcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.user-switcher-btn:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.user-switcher-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-switcher-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

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

.user-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 1000;
  display: none;
  animation: fadeIn 0.15s ease;
}

.user-switcher-dropdown.open {
  display: block !important;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.profile-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-role {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-email {
  font-size: 0.7rem;
  color: var(--brand-emerald-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dropdown-header-title {
  padding: 8px 12px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.user-switch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
}

.user-switch-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.user-switch-item.active {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.user-switch-details {
  flex: 1;
  min-width: 0;
}

.user-switch-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-switch-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-footer {
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.btn-manage-team {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--brand-emerald-light);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-manage-team:hover {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: var(--brand-emerald-light);
}

/* Admin Quick Rep Filter in Sub-headers */
.rep-filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 10px;
}

.rep-filter-box select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

/* Team & User Management Modern UI Styles */
.team-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Executive Role Notice Banner */
.role-notice-banner {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.banner-admin {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.banner-rep {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.role-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Luxury Rep Card */
.team-rep-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-rep-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.team-rep-card.active-user-highlight {
  border-color: var(--brand-emerald-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}

.team-rep-card.active-user-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.team-card-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

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

.team-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.team-status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-card);
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #10b981;
}

.team-status-dot.dot-inactive {
  background-color: #ef4444;
}

.team-user-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 2px;
  min-width: 0;
}

.team-user-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.team-user-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
}

.team-territory-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.team-contact-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.contact-chip:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-light);
}

/* 3-Col Metric Box */
.team-stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  margin-bottom: 16px;
}

.team-stat-item {
  display: flex;
  flex-direction: column;
}

.team-stat-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.team-stat-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

/* Performance Progress Bar */
.team-perf-progress-wrap {
  margin-bottom: 18px;
}

.team-perf-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.team-progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.team-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* Card Action Footer */
.team-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn-switch-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-switch-primary:hover {
  background-color: var(--brand-emerald-primary);
  border-color: var(--brand-emerald-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-switch-primary.active-self {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--brand-emerald-light);
  cursor: default;
}

/* Regional Distribution Strip */
.territory-strip-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.territory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.territory-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.territory-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .team-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .territory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboard-grid, .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 270px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar.collapsed {
    width: 270px;
    transform: translateX(-100%);
  }
  .sidebar.collapsed.mobile-open {
    transform: translateX(0);
  }
  .top-header {
    padding: 0 16px;
  }
  .header-search-box {
    width: 170px;
  }
  .main-content-view {
    padding: 16px;
  }
  .team-kpi-grid {
    grid-template-columns: 1fr;
  }
  .team-cards-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .user-switcher-role {
    display: none;
  }
}

/* Authentication / Login Screen */
.auth-pending .app-layout {
  display: none !important;
}

.login-page-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 78, 59, 0.08) 0px, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.login-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.login-ambient-orb.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  top: 10%;
  left: 15%;
}

.login-ambient-orb.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
}

.login-card-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  animation: loginFadeUp 0.35s ease-out;
}

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

.login-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-glow {
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.1));
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
  margin-bottom: 12px;
}

.login-brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.login-brand-title span {
  color: var(--brand-emerald-light);
}

.login-brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-glass-card {
  background: rgba(13, 20, 33, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg:first-child {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 40px;
  width: 100%;
}

.input-password-wrap .form-input {
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-pwd:hover {
  color: #ffffff;
}

.demo-users-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.demo-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.demo-user-chip:hover {
  border-color: var(--brand-emerald-primary);
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.demo-user-chip.chip-admin {
  border-color: rgba(16, 185, 129, 0.4);
}

.demo-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-chip-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.demo-chip-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.btn-logout-dropdown {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s ease;
}

.btn-logout-dropdown:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Status Tabs (Active vs Archived) */
.cust-status-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.cust-status-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cust-status-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.cust-status-tab.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.cust-status-tab.tab-archive.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Custom Checkbox */
.custom-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #10b981;
  cursor: pointer;
  border-radius: 4px;
}

.table-row-selected {
  background-color: rgba(16, 185, 129, 0.07) !important;
}

/* Floating Batch Action Toolbar */
.batch-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  animation: slideUpBatch 0.25s ease forwards;
}

@keyframes slideUpBatch {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.batch-info-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-actions-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Müşteri Detay Modalı (High-Contrast, Ultra Okunaklı & Lüks Kart Tasarımı)
   ========================================================================== */
.cust-detail-view-luxury {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-main);
}

.cust-detail-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  gap: 16px;
  flex-wrap: wrap;
}

.cust-detail-company-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cust-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.cust-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.cust-detail-grid-luxury {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .cust-detail-grid-luxury {
    grid-template-columns: 1fr;
  }
}

.cust-info-card-luxury {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cust-info-card-luxury:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(15, 23, 42, 0.98);
}

.cust-info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cust-info-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-info-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.cust-info-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cust-info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  line-height: 1.35;
}

.cust-info-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-quick-wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #4ade80;
}
.btn-quick-wa:hover {
  background: #25d366;
  color: #052e16;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

.btn-quick-mail {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.btn-quick-mail:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-quick-call {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}
.btn-quick-call:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #ffffff;
}

/* Biçerdöver & Traktör Rozetleri */
.cust-brands-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.cust-section-title-sm {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-pill-luxury {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Notlar Kutusu */
.cust-notes-panel-luxury {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.cust-notes-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cust-notes-content {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-top: 6px;
  font-weight: 400;
}

/* Modal Alt Aksiyon Barı */
.cust-detail-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 10px;
}

/* Gelişmiş Arama & Filtre Çubuğu (Müşteriler & Genel) */
.advanced-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 6px 12px;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 680px;
}

.advanced-search-container:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.search-criteria-dropdown {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-criteria-dropdown:focus {
  border-color: #10b981;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
}

.search-input-field::placeholder {
  color: #64748b;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.search-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Canlı Global Arama Sonuç Dropdown'ı */
.live-search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.live-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}


