/* ═══════════════════════════════════════════════════════════════════════
   RAVVO — V52 Pesquisa NPS                                    2026-09-11
   Reaproveita as classes genéricas do relatório de CRM (crm-chip, crm-nums,
   crm-num, card.crm-sec, table.crm-tab — ver v19-crm-funil.css) e adiciona
   só o que é específico do NPS: o gauge do score e o card de comentário.
   ═══════════════════════════════════════════════════════════════════════ */

.nps-score-card {
  text-align: center; padding: 22px 14px; margin-bottom: 14px;
  background: var(--bg-card, #17181c); border: 1px solid var(--border, #2a2c33);
  border-radius: var(--radius-md, 12px);
}
.nps-score-big {
  font-family: var(--font-display, inherit); font-size: 3rem; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.nps-score-label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted, #8b8f9a); margin-top: 6px;
}
.nps-num-detrator b { color: var(--danger, #ef4444); }

.nps-comentario {
  background: var(--bg-input, #101115); border: 1px solid var(--border, #2a2c33);
  border-left: 3px solid var(--danger, #ef4444); border-radius: var(--radius-sm, 9px);
  padding: 11px 13px; margin-bottom: 8px;
}
.nps-comentario-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.nps-comentario-nota {
  background: var(--danger, #ef4444); color: #fff; font-weight: 800; font-size: 0.78rem;
  border-radius: 999px; width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nps-comentario-nome { font-weight: 600; font-size: 0.85rem; color: var(--text-primary, #fff); }
.nps-comentario-top .crm-mini { margin-left: auto; }
.nps-comentario-texto { font-size: 0.83rem; color: var(--text-secondary, #c9ccd4); line-height: 1.5; }

/* ── v54: liga/desliga, canal, presets e teto ── */
.nps-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.nps-switch-estado { font-size: 0.76rem; color: var(--text-muted, #8b8f9a); }
.nps-switch-estado.on { color: var(--success, #22c55e); }
.nps-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.nps-switch input { opacity: 0; width: 0; height: 0; }
.nps-switch span {
  position: absolute; inset: 0; border-radius: 999px; transition: background .18s;
  background: var(--bg-input, #101115); border: 1px solid var(--border, #2a2c33);
}
.nps-switch span::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: var(--text-muted, #8b8f9a); transition: transform .18s, background .18s;
}
.nps-switch input:checked + span { background: var(--accent, #8B3FE8); border-color: var(--accent, #8B3FE8); }
.nps-switch input:checked + span::before { transform: translateX(22px); background: #fff; }
.nps-switch input:focus-visible + span { outline: 2px solid var(--accent, #8B3FE8); outline-offset: 2px; }

.nps-config-corpo { margin-top: 16px; transition: opacity .18s; }
.nps-config-corpo.desligado { opacity: .45; }

.nps-label {
  display: block; font-family: var(--font-display, inherit); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary, #c9ccd4); margin-bottom: 8px;
}
.nps-canais { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.nps-canal {
  display: block; cursor: pointer; padding: 12px 13px; border-radius: var(--radius-sm, 9px);
  background: var(--bg-input, #101115); border: 1px solid var(--border, #2a2c33); transition: border-color .15s;
}
.nps-canal:hover { border-color: var(--text-muted, #8b8f9a); }
.nps-canal.on { border-color: var(--accent, #8B3FE8); background: var(--accent-dim, rgba(139,63,232,.12)); }
.nps-canal input { margin-right: 6px; }
.nps-canal strong { font-size: .85rem; font-weight: 700; }
.nps-canal small { display: block; margin-top: 4px; font-size: .72rem; color: var(--text-muted, #8b8f9a); line-height: 1.45; }

.nps-aviso {
  margin-top: 12px; padding: 11px 13px; border-radius: var(--radius-sm, 9px); font-size: .8rem; line-height: 1.5;
  background: rgba(255, 170, 0, .09); border: 1px solid var(--warning, #ffaa00); color: var(--text-secondary, #c9ccd4);
}

.nps-presets { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.nps-preset {
  background: var(--bg-input, #101115); border: 1px solid var(--border, #2a2c33);
  color: var(--text-muted, #8b8f9a); border-radius: 999px; padding: 3px 11px; font-size: .72rem; cursor: pointer;
}
.nps-preset:hover { border-color: var(--text-muted, #8b8f9a); color: var(--text-primary, #fff); }
.nps-preset.on { background: var(--accent, #8B3FE8); border-color: var(--accent, #8B3FE8); color: #fff; }
.nps-hint { display: block; margin-top: 7px; font-size: .72rem; color: var(--text-muted, #8b8f9a); line-height: 1.5; }

/* ── v55: sequência de boas-vindas (marcos) ── */
.nps-marcos { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nps-marco {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--accent-dim, rgba(139,63,232,.15)); color: var(--accent, #8B3FE8);
  border: 1px solid var(--accent, #8B3FE8);
}
.nps-marco button {
  background: none; border: none; cursor: pointer; padding: 0; line-height: 1;
  font-size: 1rem; color: inherit; opacity: .65;
}
.nps-marco button:hover { opacity: 1; }
.nps-marcos-vazio { font-size: .78rem; color: var(--text-muted, #8b8f9a); font-style: italic; }
.form-input.nps-marco-novo { width: 90px; margin: 0; padding: 5px 10px; font-size: .78rem; }
