/* === email.css === */
/* Email / Lifecycle Suite Templates */
.email-template-item {
  padding: 10px 14px; border-radius: 10px; border: 1px solid #e2e8f0;
  margin-bottom: 6px; cursor: pointer; transition: all 0.2s;
}
.email-template-item:hover, .email-template-item.selected { border-color: var(--accent); background: #eff6ff; }
.email-template-name { font-size: 0.82rem; font-weight: 700; color: #1e293b; }
.email-template-industry { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }
.email-compose-area {
  width: 100%; min-height: 200px; padding: 14px;
  border: 2px solid #e2e8f0; border-radius: 10px;
  font-family: inherit; font-size: 0.85rem; resize: vertical; outline: none;
  line-height: 1.6;
}
.email-compose-area:focus { border-color: var(--accent); }
.suite-stage-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.suite-stage-btn {
  flex: 1; padding: 7px 6px; border: 2px solid #e2e8f0; border-radius: 8px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  cursor: pointer; text-align: center; transition: all 0.2s; background: white; color: #64748b;
}
.suite-stage-btn:hover { border-color: #94a3b8; }
.suite-stage-btn.active-cold { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.suite-stage-btn.active-warm { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.suite-stage-btn.active-closing { border-color: #10b981; background: #ecfdf5; color: #047857; }
.closing-variant-tabs { display: flex; gap: 4px; margin-top: 8px; }
.closing-var-btn {
  flex: 1; padding: 5px 4px; border: 1.5px solid #e2e8f0; border-radius: 6px;
  font-size: 0.65rem; font-weight: 700; cursor: pointer; text-align: center;
  transition: all 0.15s; background: white; color: #64748b;
}
.closing-var-btn:hover { border-color: #10b981; }
.closing-var-btn.active { border-color: #10b981; background: #ecfdf5; color: #047857; }
.suite-indicator {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 6px; font-size: 0.62rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.suite-indicator.stage-cold { background: #dbeafe; color: #1d4ed8; }
.suite-indicator.stage-warm { background: #fef3c7; color: #b45309; }
.suite-indicator.stage-win { background: #dcfce7; color: #15803d; }
.suite-indicator.stage-delay { background: #fef3c7; color: #92400e; }
.suite-indicator.stage-no { background: #fee2e2; color: #b91c1c; }
.suite-indicator.stage-none { background: #f1f5f9; color: #64748b; }
.template-list-scroll { max-height: 380px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent; }
.template-list-scroll::-webkit-scrollbar { width: 4px; }
.template-list-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* Email Stage Stepper — Pipeline Card */
.email-stepper {
  display: flex; align-items: center; gap: 0; margin-top: 6px;
  background: #f8fafc; border-radius: 8px; padding: 5px 8px;
  border: 1px solid #e2e8f0;
}
.email-stepper-step {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 2px 7px; border-radius: 5px; transition: all 0.15s;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: #94a3b8; white-space: nowrap;
}
.email-stepper-step:hover { background: #f1f5f9; }
.email-stepper-step i { font-size: 0.55rem; }
.email-stepper-step.completed { color: #10b981; }
.email-stepper-step.completed i { color: #10b981; }
.email-stepper-step.active-cold { color: #1d4ed8; background: #dbeafe; }
.email-stepper-step.active-warm { color: #b45309; background: #fef3c7; }
.email-stepper-step.active-win { color: #047857; background: #d1fae5; }
.email-stepper-step.active-delay { color: #92400e; background: #fef3c7; }
.email-stepper-step.active-no { color: #b91c1c; background: #fee2e2; }
.email-stepper-arrow { color: #cbd5e1; font-size: 0.55rem; margin: 0 2px; flex-shrink: 0; }
.email-stepper-suite {
  font-size: 0.58rem; color: #94a3b8; font-weight: 600;
  margin-left: auto; padding-left: 8px; border-left: 1px solid #e2e8f0;
  white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}

/* Outreach Panel in Lead Body */
.outreach-panel { padding: 4px 0; }
.outreach-progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 16px;
  background: #f8fafc; border-radius: 10px; padding: 10px 14px;
  border: 1px solid #e2e8f0;
}
.outreach-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; cursor: pointer; padding: 6px 4px; border-radius: 8px; transition: all 0.15s;
}
.outreach-step:hover { background: #f1f5f9; }
.outreach-step-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; background: #f1f5f9; color: #94a3b8;
  border: 2px solid #e2e8f0; transition: all 0.2s;
}
.outreach-step.done .outreach-step-icon { background: #d1fae5; color: #047857; border-color: #10b981; }
.outreach-step.current .outreach-step-icon { background: #dbeafe; color: #1d4ed8; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.outreach-step.current.warm-active .outreach-step-icon { background: #fef3c7; color: #b45309; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.outreach-step.current.closing-active .outreach-step-icon { background: #d1fae5; color: #047857; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.outreach-step-label { font-size: 0.62rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
.outreach-step.done .outreach-step-label { color: #047857; }
.outreach-step.current .outreach-step-label { color: #1d4ed8; }
.outreach-step.current.warm-active .outreach-step-label { color: #b45309; }
.outreach-step.current.closing-active .outreach-step-label { color: #047857; }
.outreach-connector { width: 24px; height: 2px; background: #e2e8f0; flex-shrink: 0; }
.outreach-connector.done { background: #10b981; }
.outreach-detail-card {
  background: white; border-radius: 10px; border: 1px solid #e2e8f0;
  padding: 14px 18px; margin-bottom: 10px;
}
.outreach-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 0.8rem;
}
.outreach-detail-row .odr-label { color: #64748b; font-weight: 600; }
.outreach-detail-row .odr-value { color: #1e293b; font-weight: 700; }
.outreach-next-action {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe; border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.outreach-next-label { font-size: 0.78rem; font-weight: 700; color: #334155; }
.outreach-next-sub { font-size: 0.68rem; color: #64748b; margin-top: 2px; }
