/* Leads mock prototype: lead record body -- one continuous scrolling
   page (financial, documents, notes, follow-up, activity), no tabs. */

.record-section { margin-bottom: 28px; }
.record-section:last-child { margin-bottom: 0; }
.record-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.record-section-count {
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: normal;
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--border-subtle);
}
.timeline-item { position: relative; padding-bottom: 18px; animation: fadeIn 0.2s ease-out forwards; }
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}
.timeline-dot svg { width: 8px; height: 8px; color: white; }
.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.timeline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.timeline-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.timeline-time { font-size: 10px; color: var(--text-muted); }
.timeline-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; }
.timeline-actor { font-size: 10px; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.12s;
}
.doc-item:hover { border-color: var(--border-medium); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-danger-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { width: 18px; height: 18px; color: var(--accent-danger); }
.doc-info { flex: 1; min-width: 0; }
.doc-label { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.financial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.financial-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.financial-card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.financial-card-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

.bank-account {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.bank-account-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.bank-account-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}
.bank-account-row:last-child { border-bottom: none; }
.bank-account-label { color: var(--text-tertiary); }
.bank-account-value { color: var(--text-primary); font-weight: 500; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 10px 0; }
.bar-chart-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-chart-bar {
  width: 100%;
  background: var(--accent-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 4px;
  transition: all 0.3s ease;
  opacity: 0.8;
}
.bar-chart-bar:hover { opacity: 1; }
.bar-chart-label { font-size: 9px; color: var(--text-muted); }

.ai-pitch {
  background: var(--accent-purple-ghost);
  border: 1px solid var(--accent-purple-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
}
.ai-pitch-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-pitch-header svg { width: 16px; height: 16px; color: var(--accent-purple); }
.ai-pitch-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ai-pitch-content { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }
.ai-pitch-content p { margin-bottom: 8px; }
.ai-pitch-content strong { color: var(--text-primary); }

.notes-area {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-height: 200px;
}
.note-item { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.note-item:last-child { border-bottom: none; }
.note-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.note-meta { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.follow-up-card {
  background: var(--accent-warning-ghost);
  border: 1px solid var(--accent-warning-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.follow-up-card svg { width: 16px; height: 16px; color: var(--accent-warning); flex-shrink: 0; }
