/**
 * Aba Funil comercial (GoHighLevel).
 *
 * Os tokens e componentes base (.card, .panel, .data-table, .chip) vêm de
 * tokens.css / main.css / components.css; aqui só o que é específico do funil.
 */

/* --- funil por estágio --- */

.ghl-funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ghl-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ghl-stage-name {
  font-weight: 600;
  color: var(--text);
}

.ghl-stage-count {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.ghl-bar-track {
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ghl-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.ghl-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/**
 * Estágio zerado fica DISCRETO, não invisível: num funil comercial "zero em
 * Reunião Agendada" é informação, e sumir com a linha faria a etapa parecer
 * inexistente.
 */
.ghl-stage.is-empty .ghl-stage-name,
.ghl-stage.is-empty .ghl-stage-count {
  color: var(--text-muted);
  font-weight: 500;
}

.ghl-stage.is-empty .ghl-bar-track {
  border-style: dashed;
}

.ghl-pass {
  white-space: nowrap;
}

/* Passagem fraca: onde o funil está furando. */
.ghl-pass--weak {
  color: var(--warn);
}

.ghl-pass--last {
  font-style: italic;
}

.ghl-empty {
  list-style: none;
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
}

/* --- taxa de comparecimento: o número mais olhado da tela --- */

.card--hero {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.12), transparent 70%);
}

.card--hero .card-value {
  font-size: 2rem;
  color: var(--primary);
}

.card-hint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ghl-rate--ok {
  color: var(--ok);
  font-weight: 600;
}

.ghl-rate--bad {
  color: var(--danger);
  font-weight: 600;
}
