/* ── KPI cards (used by interruptions section in pages without dashboard.html's <style>) ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-strong);
  line-height: 1;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  margin-top: 0.35rem;
}

/* ── Preguntas mid-flujo ──────────────────────────────────────── */

.int-period-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.int-description {
  color: var(--color-text-tertiary);
  font-size: 0.92rem;
  margin: -0.5rem 0 1rem;
}

/* Flow badges — semantic status colors, hardcoded hex intentional */
.int-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.int-badge--schedule {
  background: #dbeafe;
  color: #1d4ed8;
}

.int-badge--order {
  background: #fef3c7;
  color: #92400e;
}

:root.dark-mode .int-badge--schedule {
  background: #1e3a5f;
  color: #93c5fd;
}

:root.dark-mode .int-badge--order {
  background: #451a03;
  color: #fcd34d;
}

/* Table */
.int-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--color-text);
}

.int-table thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.int-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.int-table tbody tr:last-child {
  border-bottom: none;
}

.int-table tbody tr:hover {
  background: var(--color-surface-muted);
}

.int-table td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.int-col-time {
  white-space: nowrap;
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
}

.int-col-step {
  color: var(--color-text-strong);
}

.int-col-link {
  text-align: right;
  white-space: nowrap;
}

.int-conv-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.int-conv-link:hover {
  text-decoration: underline;
}

.int-empty {
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
