/* Outbound portal integration (Phase 3)
   - Wizard modal
   - Campaign stats + table
   Note: styles are additive; keep selectors scoped to outbound classes.
*/

.outbound-campaigns-view .outbound-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .outbound-campaigns-view .outbound-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .outbound-campaigns-view .outbound-stats-grid {
    grid-template-columns: 1fr;
  }
}

.outbound-table-card .table-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* Wizard Modal */
.wizard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.wizard-modal {
  width: min(1000px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-header h2 {
  margin: 0;
}

.wizard-body {
  padding: 16px;
  overflow: auto;
}

.wizard-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

/* Stepper */
.outbound-stepper {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  overflow-x: auto;
}

.outbound-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  white-space: nowrap;
  font-size: 0.875rem;
}

.outbound-step .index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

.outbound-step.active {
  border-color: #3b82f6;
  color: #1f2937;
}

.outbound-step.active .index {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.outbound-step.done {
  border-color: #10b981;
  color: #065f46;
}

.outbound-step.done .index {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

/* Minor helpers */
.wizard-step h3 {
  margin-top: 0;
}

