/* platform: Central da plataforma (painel de receita, clientes, financeiro, cupons, configurações) e a tela Plano, pagamento e créditos.
   Só tokens do app.css (claro e escuro já trocam sozinhos). */
.pf-head { margin-bottom: 14px; gap: 12px; }
.pf-tabs { margin-bottom: 16px; overflow-y: hidden; scrollbar-width: thin; }
.pf .kpi .s { line-height: 1.4; }
.pf-g { align-items: stretch; } /* quadros da mesma linha com a mesma altura */
.pf-g > .card { min-width: 0; }
.pf-filters input, .pf-filters select { width: auto; min-width: 0; }
.pf-cl tr.click { cursor: pointer; }
.pf-cl tr.click:hover td { background: var(--hover); }
.pf-acts .btn { white-space: nowrap; }

/* gráficos feitos à mão: grade discreta, rótulos em cinza, uma cor por série, legenda sempre visível */
.pf-chart { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.pf-chart .pf-grid { stroke: var(--line); stroke-width: 1; }
.pf-chart .pf-ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.pf-chart .pf-empty { font-size: 13px; font-weight: 600; }
.pf-tw { overflow-x: auto; margin: 0 -2px; }
.pf-cr { width: 100%; }
.pf-cr th, .pf-cr td { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.pf-chart .pf-col:hover rect[fill]:not([fill="transparent"]) { opacity: .85; }
.pf-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.pf-leg span { display: inline-flex; align-items: center; gap: 6px; }
.pf-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pf-tab { margin-top: 8px; }
.pf-tab summary { cursor: pointer; color: var(--muted); }
.pf-tab .tbl { margin-top: 6px; }

/* barras horizontais (situação, atraso, previsão, MRR por plano) */
.pf-hb { display: grid; gap: 8px; }
.pf-hbr { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.pf-hbr .tiny { grid-column: 2 / -1; margin-top: -6px; }
.pf-hbl { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-hbt { height: 10px; background: var(--hover); border-radius: 6px; overflow: hidden; }
.pf-hbt span { display: block; height: 100%; border-radius: 6px; }
.pf-hbr b { font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ficha do cliente */
.pf-kv { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 7px 12px; font-size: 13px; }
.pf-kv > span { color: var(--muted); }
.pf-kv > b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pf-note { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-note .tiny { display: flex; align-items: center; gap: 6px; }
.pf-note .ib { margin-left: auto; }

/* Plano, pagamento e créditos (conta): forma de pagamento e cupom */
.bp-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-methods label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.bp-methods input { width: auto; accent-color: var(--brand); }

@media (max-width: 820px) {
  .pf-hbr { grid-template-columns: minmax(80px, 42%) minmax(0, 1fr) auto; }
  .pf-acts .row { gap: 6px !important; }
  .pf-kv { grid-template-columns: minmax(84px, auto) minmax(0, 1fr); }
}

/* ---------- Central: novo cliente, teste grátis, liberar para uso (01/12/2026) ---------- */
/* duas etapas: cartão no lugar do erro */
.pf-2fa, .pf-empty { text-align: center; padding: 32px 28px; }
.pf-2fa h2, .pf-empty h3 { margin: 10px 0 8px; font-family: var(--display); }
.pf-2fa p, .pf-empty p { max-width: 560px; margin: 0 auto 12px; color: var(--text2); }
.pf-2fa ol { text-align: left; max-width: 520px; margin: 0 auto 18px; padding-left: 22px; color: var(--text2); font-size: 14px; line-height: 1.6; }
.pf-2fa .row, .pf-empty .btn { justify-content: center; }
.pf-2fa-ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand2); }
.pf-2fa-ic svg.i { width: 26px; height: 26px; }
/* atalhos da lista de clientes */
.pf-grupos { margin-bottom: 12px; max-width: 100%; }
.pf-grupos button.warn .n { color: var(--red2); }
.pf-urg { color: var(--red2); font-weight: 600; }
.pf-wa { color: var(--green) !important; }
.pf-wa svg.i { color: var(--green); }
.pf-cl .pill.tiny { font-size: 10.5px; padding: 1px 7px; margin-top: 4px; }
.pf-cl .pf-cn { min-width: 210px; }
.pf-cl .pf-nw { white-space: nowrap; }
.pf-rowb { gap: 6px; flex-wrap: nowrap; }
/* formulário de novo cliente e de liberar para uso */
.nc [hidden] { display: none !important; }
.nc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nc-mode, .nc-opt { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--panel); transition: border-color .15s, background .15s; }
.nc-mode input, .nc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nc-mode.on, .nc-opt.on { border-color: var(--brand); background: var(--brand-bg); }
.nc-mode:focus-within, .nc-opt:focus-within { box-shadow: 0 0 0 3px var(--brand-ring); }
.nc-mt { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.nc-md { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.nc-bill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nc-opt { flex-direction: row; align-items: flex-start; }
.nc-opt > span { display: flex; flex-direction: column; gap: 3px; }
.nc-opt.off { opacity: .55; cursor: not-allowed; }
.nc .hint b { color: var(--text); }
.pf-err { border-color: var(--red-line) !important; background: var(--red-bg) !important; }
/* ficha: próximo passo */
.pf-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; border-left: 4px solid var(--brand); }
.pf-next.warn { border-left-color: var(--amber); }
.pf-next.ok { border-left-color: var(--green); }
.pf-next-in { display: flex; gap: 12px; align-items: center; flex: 1 1 320px; min-width: 0; }
.pf-next-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand2); }
.pf-next.warn .pf-next-ic { background: var(--amber-bg); color: var(--amber); }
.pf-next.ok .pf-next-ic { background: var(--green-bg); color: var(--green); }
.pf-next-t { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.pf-next-b { gap: 8px; }
/* painel: funil comercial */
.pf-funil .sec-t { margin: 4px 0 6px; }
/* cartões de números da Plataforma ocupam a linha inteira em tela larga (o auto-fill comum deixava colunas vazias à direita) */
.pf .kpis:not(.sa-kpis) { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.pf-li { padding: 8px 4px; }
.pf-li a { color: inherit; }
.pf-li a:hover { color: var(--brand2); }
/* faixa do teste grátis (tela do cliente) e conta bloqueada */
.banner.trial { background: var(--brand-bg); color: var(--text); }
.banner.trial svg.i { color: var(--brand2); }
.banner.trial-soon { background: var(--amber-bg); color: var(--text); }
.banner > span { min-width: 0; }
.blk { max-width: 620px; margin: 40px auto; text-align: center; padding: 34px 28px; }
.blk h2 { font-family: var(--display); margin: 12px 0 8px; }
.blk p { margin: 0 auto 18px; max-width: 480px; line-height: 1.55; }
.blk-ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand2); }
.blk-ic svg.i { width: 28px; height: 28px; }
.blk-b { gap: 8px; justify-content: center; }
@media (max-width: 720px) {
  .pf-cl .pf-mh { display: none; }
  .pf-cl .pf-cn { min-width: 0; }
  .pf-rowb .btn[data-enter] { display: none; }
  .nc-modes, .nc-bill { grid-template-columns: 1fr; }
  .pf-next-b { width: 100%; }
  .pf-next-b .btn { flex: 1 1 auto; justify-content: center; }
  .blk { margin: 16px auto; padding: 24px 18px; }
  .banner { flex-wrap: wrap; }
}
