/* Akainix Prospect Flow — estilos propios (sobrios, sobre Bootstrap 5) */
:root {
  --apf-dnc: #b02a37;
}

body {
  background: #f5f6f8;
  font-size: 0.925rem;
}

.card {
  border: 1px solid #e3e6ea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kpi .value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.kpi .label {
  color: #6c757d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-contacts td, .table-contacts th {
  vertical-align: middle;
  white-space: nowrap;
}

.table-contacts td.wrap {
  white-space: normal;
  min-width: 12rem;
}

.dnc-banner {
  background: var(--apf-dnc);
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.badge-dnc {
  background: var(--apf-dnc);
  color: #fff;
}

.row-dnc {
  --bs-table-bg: #fbecee;
}

.overdue {
  color: #b02a37;
  font-weight: 600;
}

/* Línea de tiempo */
.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid #dee2e6;
  margin-left: 0.75rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1rem 1.5rem;
}

.timeline li .dot {
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.timeline li.type-llamada .dot { border-color: #0d6efd; color: #0d6efd; }
.timeline li.type-reunion .dot { border-color: #198754; color: #198754; }
.timeline li.type-cambio_estado .dot { border-color: #6c757d; color: #6c757d; }
.timeline li.type-nota .dot { border-color: #ffc107; color: #997404; }

/* Kanban */
.kanban {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: flex-start;
}

.kanban-col {
  flex: 0 0 17rem;
  background: #eceef1;
  border-radius: 0.5rem;
  padding: 0.5rem;
  max-height: calc(100vh - 14rem);
  display: flex;
  flex-direction: column;
}

.kanban-col .cards {
  overflow-y: auto;
  min-height: 3rem;
  flex: 1;
}

.kanban-card {
  background: #fff;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
  cursor: grab;
}

.kanban-card:focus-within {
  outline: 2px solid #0d6efd;
}

.kanban-card.sortable-ghost {
  opacity: 0.4;
}

.score-pill {
  font-variant-numeric: tabular-nums;
}

.raw-json {
  font-size: 0.8rem;
  max-height: 20rem;
  overflow: auto;
  background: #f8f9fa;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.merge-table td {
  vertical-align: top;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-indicator {
  display: none;
}
