/* ===================== VARIABLES ===================== */
:root {
  --crm-primary: #8b5cf6;
  --crm-secondary: #22d3ee;
  --crm-bg: #f8fafc;
  --crm-card: #ffffff;
  --crm-text: #0f172a;
  --crm-text-muted: #64748b;
  --crm-border: #e2e8f0;
  --crm-success: #10b981;
  --crm-danger: #ef4444;
  --crm-warning: #f59e0b;
  --crm-radius: 14px;
  --crm-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--crm-bg);
  color: var(--crm-text);
  font-size: 15px;
  line-height: 1.5;
}

/* ===================== AUTH ===================== */
.auth-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  display: flex; justify-content: center; align-items: center; z-index: 10000;
}
.auth-card {
  background: white; padding: 40px; border-radius: 28px;
  width: 90%; max-width: 450px; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.auth-card h2 { margin-bottom: 24px; font-size: 22px; }
.auth-card input {
  width: 100%; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid #e2e8f0; border-radius: 14px; font-size: 16px;
  transition: border-color 0.2s;
}
.auth-card input:focus { outline: none; border-color: var(--crm-primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.auth-card button {
  width: 100%; padding: 14px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  color: white; border: none; border-radius: 14px;
  font-weight: 600; cursor: pointer; margin-bottom: 12px;
  font-size: 15px; transition: opacity 0.2s;
}
.auth-card button:hover { opacity: 0.9; }
.auth-switch { margin-top: 20px; color: #64748b; }
.auth-switch a { color: #8b5cf6; cursor: pointer; text-decoration: underline; }

/* ===================== LAYOUT ===================== */
.crm-container { display: flex; min-height: 100vh; }

/* ===================== SIDEBAR (PC LARGE) ===================== */
@media (min-width: 1025px) {
  .crm-sidebar {
    width: 260px;
    background: var(--crm-card);
    border-right: 1px solid var(--crm-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
  }
  .crm-logo {
    padding: 24px 20px;
    border-bottom: 1px solid var(--crm-border);
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    background: linear-gradient(90deg, var(--crm-primary), var(--crm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .crm-nav {
    padding: 20px;
    flex: 1;
  }
  .crm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--crm-text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .crm-nav-item:hover {
    background: rgba(139,92,246,0.08);
    color: var(--crm-primary);
  }
  .crm-nav-item.active {
    background: linear-gradient(90deg, rgba(139,92,246,0.12), rgba(34,211,238,0.08));
    color: var(--crm-primary);
    font-weight: 600;
  }
  .nav-icon {
    font-size: 20px;
    line-height: 1;
  }
  .nav-label {
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
  }
  .keyboard-hint {
    font-size: 11px;
    color: var(--crm-text-muted);
    text-align: left;
    padding: 20px;
  }
  .crm-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
  }
}

/* ===================== SIDEBAR (MOBILE) ===================== */
@media (max-width: 1024px) {
  .crm-sidebar {
    width: 80px;
    background: var(--crm-card);
    border-right: 1px solid var(--crm-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
  }
  .crm-logo {
    padding: 16px 8px;
    border-bottom: 1px solid var(--crm-border);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, var(--crm-primary), var(--crm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .crm-nav {
    padding: 8px;
    flex: 1;
  }
  .crm-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    margin-bottom: 4px;
    border-radius: 12px;
    color: var(--crm-text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .crm-nav-item:hover {
    background: rgba(139,92,246,0.08);
    color: var(--crm-primary);
  }
  .crm-nav-item.active {
    background: linear-gradient(90deg, rgba(139,92,246,0.12), rgba(34,211,238,0.08));
    color: var(--crm-primary);
    font-weight: 600;
  }
  .nav-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
  }
  .nav-label {
    font-size: 10px;
    font-weight: 500;
    display: block;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
  }
  .keyboard-hint {
    display: none;
  }
  .crm-main {
    flex: 1;
    margin-left: 80px;
    padding: 24px 16px;
  }
}

/* ===================== HEADER (commun) ===================== */
.crm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--crm-border);
  flex-wrap: wrap;
  gap: 16px;
}
.crm-header h1 {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#globalSearch {
  padding: 9px 18px;
  border-radius: 40px;
  border: 1px solid var(--crm-border);
  width: 250px;
  font-size: 14px;
  background: white;
  transition: 0.2s;
  margin-right: auto;
}
#globalSearch:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.crm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--crm-card);
  border-radius: 40px;
  border: 1px solid var(--crm-border);
}
.crm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--crm-primary), var(--crm-secondary));
}
#userEmail { font-size: 13px; color: var(--crm-text-muted); }
.logout-btn {
  background: none;
  border: 1px solid var(--crm-border);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.2s;
}
.logout-btn:hover {
  background: var(--crm-danger);
  color: white;
  border-color: var(--crm-danger);
}
.online-status {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.online-status.online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.25);
}
.online-status.offline { background: #ef4444; }

/* ===================== STATS ===================== */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--crm-card);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--crm-border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--crm-shadow);
}
.stat-card h3 {
  font-size: 13px;
  color: var(--crm-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--crm-primary);
}
.stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-mini-card {
  background: var(--crm-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--crm-border);
  text-align: center;
}
.stat-mini-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--crm-primary);
}
.stat-mini-card .label {
  font-size: 12px;
  color: var(--crm-text-muted);
  margin-top: 4px;
}

/* ===================== BOUTONS ===================== */
.btn-add, .btn-export, .btn-import, .btn-filter {
  background: var(--crm-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-add:hover, .btn-export:hover, .btn-import:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-export { background: var(--crm-success); }
.btn-filter { background: var(--crm-text-muted); }
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===================== FORMULAIRES ===================== */
.search-bar, .filter-select {
  padding: 11px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--crm-border);
  font-size: 15px;
  background: var(--crm-card);
  transition: 0.2s;
  width: 100%;
}
.search-bar:focus, .filter-select:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.filter-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-select { margin-bottom: 0; flex: 1; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--crm-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

/* ===================== TABLEAUX ===================== */
.contacts-table {
  background: var(--crm-card);
  border-radius: 20px;
  border: 1px solid var(--crm-border);
  overflow-x: auto;
  margin-bottom: 24px;
}
.contacts-table table {
  width: 100%;
  border-collapse: collapse;
}
.contacts-table th, .contacts-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--crm-border);
}
.contacts-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
}
.contacts-table tr:last-child td { border-bottom: none; }
.contacts-table tr:hover td { background: rgba(139,92,246,0.03); }
.contact-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.status-prospect { background: #fef3c7; color: #d97706; }
.status-contact { background: #dbeafe; color: #2563eb; }
.status-client { background: #d1fae5; color: #059669; }

/* ===================== SCORE / PRIORITÉ ===================== */
.score-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 70px;
}
.score-chaud { background: #fee2e2; color: #b91c1c; }
.score-tiede { background: #ffedd5; color: #b45309; }
.score-froid { background: #e0e7ff; color: #1e40af; }

/* ===================== COLONNES CONFIGURATION ===================== */
#columnsConfigList {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.column-config-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--crm-border);
}
.column-config-item label {
  margin-left: 12px;
  font-size: 14px;
  cursor: pointer;
  flex: 1;
}
.column-config-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.column-config-item.disabled label,
.column-config-item.disabled input {
  opacity: 0.6;
  cursor: not-allowed;
}
.table-responsive {
  overflow-x: auto;
}
/* ===================== KANBAN ===================== */
.kanban-columns {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 20px;
}
.kanban-column {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  min-height: 400px;
}
.kanban-column h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.kanban-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--crm-border);
  cursor: grab;
  transition: all 0.2s;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.kanban-card:active { cursor: grabbing; opacity: 0.5; }

/* ===================== MODALS ===================== */
.crm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.crm-modal.active { display: flex; }
.modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 650px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}
.modal-content h3 { margin-bottom: 20px; font-size: 18px; }
.modal-content input, .modal-content select, .modal-content textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--crm-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: 0.2s;
}
.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===================== WORKFLOW BUILDER (no-code) ===================== */
.workflow-card {
  background: var(--crm-card);
  border: 1px solid var(--crm-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}
.workflow-card:hover {
  box-shadow: var(--crm-shadow);
}
.workflow-info {
  flex: 1;
}
.workflow-trigger {
  font-weight: 600;
  color: var(--crm-primary);
  font-size: 14px;
}
.workflow-action {
  font-size: 13px;
  color: var(--crm-text-muted);
  margin-top: 4px;
}
.workflow-delete-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--crm-text-muted);
  transition: color 0.2s;
  padding: 6px 12px;
}
.workflow-delete-btn:hover {
  color: var(--crm-danger);
}

#actionParams {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 3px solid var(--crm-primary);
  font-size: 13px;
  color: var(--crm-text-muted);
}
#workflowsList {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* ===================== GRAPHIQUES ===================== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.chart-card {
  background: var(--crm-card);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--crm-border);
  box-shadow: var(--crm-shadow);
}
.chart-card h3 {
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-card canvas {
  max-height: 250px;
  width: 100%;
}
.funnel-card { grid-column: span 2; }
.funnel-steps {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.funnel-step {
  text-align: center;
  flex: 1;
  min-width: 100px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
}
.funnel-step .count {
  font-size: 30px;
  font-weight: 700;
  color: var(--crm-primary);
}
.funnel-step .label {
  font-size: 13px;
  color: var(--crm-text-muted);
  margin-top: 8px;
}
.funnel-step .percent {
  font-size: 12px;
  color: var(--crm-success);
  margin-top: 4px;
}

/* ===================== RENDEZ-VOUS ===================== */
.appointment-container { max-width: 1200px; margin: 0 auto; }
.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.appointment-calendar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 10px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: #f8fafc;
  font-size: 13px;
  transition: 0.2s;
}
.calendar-day:hover { background: rgba(139,92,246,0.12); }
.calendar-day.selected { background: var(--crm-primary); color: white; }
.calendar-day.has-appointment { border: 2px solid var(--crm-warning); }
.calendar-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background: transparent;
}
.appointment-form {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
}

/* ===================== WELCOME BANNER ===================== */
.welcome-banner {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(34,211,238,0.05));
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--crm-primary);
  font-size: 14px;
}

/* ===================== TOAST ===================== */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  z-index: 9999;
  display: none;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================== LOADING ===================== */
.loading-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--crm-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 12px;
  display: none;
  z-index: 3000;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
  gap: 20px;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: white; font-size: 1.1rem; font-weight: 500; }

/* ===================== OBJECTIFS MENSUELS ===================== */
.monthly-targets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.monthly-target-item {
  background: #f8fafc;
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.monthly-target-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--crm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.monthly-target-item input {
  padding: 8px 10px;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--crm-primary);
  background: white;
  transition: 0.2s;
}
.monthly-target-item input:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

/* ===================== DASHBOARD CHATBOT ===================== */
#chatbotDashboardView .stat-card small {
  font-size: 11px;
  opacity: 0.8;
}
#chatbotDashboardView > div:first-of-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
#chatbotDashboardView .chart-card canvas {
  max-height: 280px;
}
#chatbotRevenue, #chatbotConversionRate, #chatbotAvgBasket, #chatbotROI {
  font-size: 32px;
}
.intent-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.intent-prospecting { background: #fef3c7; color: #d97706; }
.intent-support { background: #fee2e2; color: #dc2626; }
.intent-existing_client { background: #d1fae5; color: #059669; }
.intent-info { background: #dbeafe; color: #2563eb; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
#chatbotDashboardView .chart-card {
  animation: fadeIn 0.3s ease-out;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .monthly-targets-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .crm-main { padding: 16px; }
  .crm-stats { grid-template-columns: 1fr; }
  .stats-mini { grid-template-columns: repeat(2, 1fr); }
  .appointment-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .funnel-card { grid-column: span 1; }
  .modal-content { padding: 20px; }
  .monthly-targets-grid { grid-template-columns: repeat(2, 1fr); }
  #globalSearch { width: 180px; }
  #chatbotIntentTable th, #chatbotIntentTable td,
  #chatbotTopClientsTable th, #chatbotTopClientsTable td {
    font-size: 12px;
    padding: 8px 10px;
  }
  #chatbotDashboardView .crm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .monthly-targets-grid { grid-template-columns: 1fr 1fr; }
  .crm-header { gap: 10px; }
  #userEmail { display: none; }
}