:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --bg: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #0F172A;

  --text: #1F2937;
  --text-light: #94A3B8;
  --text-secondary: #6B7280;

  --border: #E5E7EB;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  --radius: 10px;
  --radius-xs: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-sidebar);
  color: #E2E8F0;
  padding: 24px 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar-header {
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  position: relative;
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.sidebar-logo span {
  color: var(--accent);
}

.sidebar-subtitle {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 500;
}

.sidebar-nav {
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-xs);
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nav-item.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-item.active svg {
  color: #FFFFFF;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #94A3B8;
  transition: all 0.2s;
}

.nav-item:hover svg {
  color: #FFFFFF;
}

.nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  padding: 16px 16px 8px;
  font-weight: 600;
}

/* ========== MAIN CONTENT ========== */
.main {
  margin-left: 260px;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.notif-bell {
  position: absolute;
  top: 0;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notif-bell:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.12);
}

.notif-bell svg {
  width: 18px;
  height: 18px;
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.notif-item:hover { background: var(--bg); }
.notif-item.nao-lida { border-color: var(--accent); background: rgba(59, 130, 246, 0.05); }

.notif-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-item .notif-msg { font-size: 13px; font-weight: 500; line-height: 1.4; }
.notif-item .notif-time { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.notif-item.nao-lida .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; margin-top: 6px; }

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: var(--primary-light);
}

.stat-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.stat-icon.blue { background: var(--primary-light); }
.stat-icon.blue svg { color: var(--primary); }
.stat-icon.green { background: #D1FAE5; }
.stat-icon.green svg { color: var(--success); }
.stat-icon.yellow { background: var(--accent-light); }
.stat-icon.yellow svg { color: var(--warning); }
.stat-icon.red { background: #FEE2E2; }
.stat-icon.red svg { color: var(--danger); }
.stat-icon.cyan { background: #CFFAFE; }
.stat-icon.cyan svg { color: var(--info); }

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-change {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* ========== TABLES ========== */
.table-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 9px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

tr:hover {
  background: var(--bg);
}

tr:last-child td {
  border-bottom: none;
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active, .badge-ativo { background: #D1FAE5; color: var(--success); }
.badge-inactive, .badge-inativo { background: #FEE2E2; color: var(--danger); }
.badge-pending, .badge-pendente { background: var(--accent-light); color: var(--warning); }
.badge-paid, .badge-pago { background: #D1FAE5; color: var(--success); }
.badge-novo { background: var(--primary-light); color: var(--primary); }
.badge-contato { background: #CFFAFE; color: var(--info); }
.badge-proposta { background: var(--accent-light); color: var(--warning); }
.badge-negociacao { background: #FEF3C7; color: #D97706; }
.badge-fechado, .badge-convertido { background: #D1FAE5; color: var(--success); }
.badge-perdido { background: #FEE2E2; color: var(--danger); }
.badge-agendado { background: var(--primary-light); color: var(--primary); }
.badge-concluido { background: #D1FAE5; color: var(--success); }
.badge-cancelado { background: #E5E7EB; color: var(--text-secondary); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

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

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

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--bg-card);
  color: var(--text);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 92%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: all 0.2s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 16px 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ========== PIPELINE ========== */
.pipeline-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.pipeline-column {
  min-width: 280px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  flex-shrink: 0;
}

.pipeline-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.pipeline-column-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
}

.pipeline-column-count {
  background: var(--bg-card);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pipeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.pipeline-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pipeline-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.pipeline-card-company {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pipeline-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-card-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.pipeline-card-score.high { color: var(--success); }
.pipeline-card-score.medium { color: var(--warning); }
.pipeline-card-score.low { color: var(--danger); }

.pipeline-card-value {
  font-size: 12px;
  color: var(--text-secondary);
}

.pipeline-card-contato {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.pipeline-src {
  font-size: 10px;
  color: var(--text-light);
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 6px;
}

.pipeline-atv {
  font-size: 10px;
  color: var(--text-light);
}

.pipeline-card-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pipeline-warn {
  font-size: 10px;
  font-weight: 600;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border-radius: 4px;
  padding: 3px 6px;
}

.pipeline-cad {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 4px;
  padding: 3px 6px;
}

/* ========== CALENDAR ========== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--bg);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.calendar-day {
  background: var(--bg-card);
  min-height: 100px;
  padding: 8px;
}

.calendar-day.other-month {
  background: var(--bg);
  color: var(--text-light);
}

.calendar-day.today {
  background: var(--primary-light);
}

.calendar-day-number {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-event {
  background: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== CHARTS ========== */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.chart-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: 20px;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--info));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: all 0.2s;
  position: relative;
}

.bar:hover {
  opacity: 0.8;
}

.bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* ========== SEARCH ========== */
.search-bar {
  position: relative;
}

.search-bar input {
  padding-left: 36px;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-xs);
  margin-bottom: 20px;
}

.tab {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ========== SCORE BAR ========== */
.score-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.score-bar-fill.high { background: var(--success); }
.score-bar-fill.medium { background: var(--warning); }
.score-bar-fill.low { background: var(--danger); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main {
    margin-left: 0;
    padding: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pipeline-container {
    flex-direction: column;
  }

  .pipeline-column {
    min-width: auto;
  }
}

/* ========== ADDITIONAL STYLES ========== */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.badge-fechado, .badge-convertido { background: #D1FAE5; color: var(--success); }

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

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

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.progress-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========== COMPONENTS ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.info-box {
  background: var(--primary-light);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.btn-confirm {
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}

.btn-confirm:hover {
  background: #059669;
}

.btn-submit {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* ========== DRAWER LATERAL ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 500px;
  max-width: 92vw;
  background: var(--bg-card);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.drawer-overlay.active .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.drawer-close:hover { color: var(--text); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin: 22px 0 10px;
}

.drawer-section-title:first-child { margin-top: 0; }

.deal-header {
  padding: 14px 16px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}

.deal-header-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.deal-header-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.deal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.deal-meta-item { display: flex; flex-direction: column; gap: 2px; }

.deal-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-light);
}

.deal-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
}

.timeline-item.status::before { border-color: var(--warning); }
.timeline-item.followup::before { border-color: var(--accent); }
.timeline-item.conversao::before { border-color: var(--success); }

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.drawer-contato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  background: var(--bg);
}

.drawer-contato-info { display: flex; flex-direction: column; gap: 1px; }

.drawer-contato-name { font-size: 13px; font-weight: 600; color: var(--text); }

.drawer-contato-sub { font-size: 12px; color: var(--text-secondary); }

.drawer-nova-atividade {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.drawer-nova-atividade .form-input { flex: 1; }