/* Café com Planta, painel de resultados. Sem fonte externa, sem imagem, sem estilo inline (CSP). Mesma paleta da pesquisa. */
:root {
  --fundo: #faf9f5;
  --papel: #ffffff;
  --tinta: #2b2a26;
  --suave: #5f5e58;
  --borda: #d6d3c9;
  --verde: #2f6b3f;
  --verde-escuro: #234f2f;
  --verde-claro: #e6f0e8;
  --amarelo: #b7791f;
  --amarelo-fundo: #fbf0dc;
  --laranja: #8a4b08;
  --erro: #a3271b;
  --erro-fundo: #fbe7e4;
  --raio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1 { margin: 0 0 14px; font-size: 1.6rem; line-height: 1.2; }
h2 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 8px; }
.suave { color: var(--suave); font-size: .92rem; }
a { color: var(--verde-escuro); }

.barra { background: var(--verde-escuro); color: #fff; }
.barra-in { max-width: 62rem; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { margin: 0; font-weight: 700; letter-spacing: .01em; }
.marca span { font-weight: 400; opacity: .8; margin-left: 6px; }
.sair { display: flex; align-items: center; gap: 12px; margin: 0; }
.quem { font-size: .85rem; opacity: .8; }
button.link { background: none; border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 8px 14px; border-radius: 99px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }

main { max-width: 62rem; margin: 0 auto; padding: 20px 16px 40px; }

/* Entrar */
.entrar { max-width: 26rem; padding-top: 32px; }
.entrar form { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; display: grid; gap: 14px; margin-top: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="password"], input[type="date"] {
  font: inherit; font-weight: 400; padding: 12px 12px; min-height: 48px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; color: var(--tinta); width: 100%;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #7fb48a; outline-offset: 2px; }
.erro { margin: 0; padding: 10px 12px; background: var(--erro-fundo); color: var(--erro); border-radius: 10px; font-weight: 600; }
button.principal, a.principal { font: inherit; font-weight: 700; padding: 13px 18px; min-height: 50px; border: 0; border-radius: 10px; background: var(--verde); color: #fff; cursor: pointer; }
button.principal:hover { background: var(--verde-escuro); }
.secundario { font: inherit; font-weight: 600; padding: 10px 16px; min-height: 46px; border: 1.5px solid var(--verde); border-radius: 10px; background: #fff; color: var(--verde-escuro); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Filtros */
.filtros { display: grid; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; min-height: 42px; display: inline-flex; align-items: center; border: 1.5px solid var(--borda); border-radius: 99px; background: #fff; color: var(--tinta); text-decoration: none; font-size: .95rem; }
.chip.ativo { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 700; }

.abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--borda); padding-bottom: 8px; }
.abas a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border: 1.5px solid var(--borda); border-radius: 99px; background: #fff; color: var(--tinta); text-decoration: none; font-size: .95rem; font-weight: 600; }
.abas a.ativo { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 700; }
.abas a:hover { border-color: var(--verde); }
.datas { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.datas label { flex: 1 1 9rem; }

/* Cartões */
.cartoes { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
.cartao { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 18px; }
.cartao h2 { font-size: .95rem; color: var(--suave); font-weight: 600; margin-bottom: 4px; }
.grande { font-size: 3rem; font-weight: 800; line-height: 1.05; margin: 0; }
.leitura { font-weight: 700; margin: 2px 0 4px; }
.cartao.destaque { border-width: 2px; }
.cartao.destaque.nps-otimo { background: var(--verde-claro); border-color: var(--verde); }
.cartao.destaque.nps-bom { background: var(--verde-claro); border-color: var(--verde); }
.cartao.destaque.nps-atencao { background: var(--amarelo-fundo); border-color: var(--amarelo); }
.cartao.destaque.nps-ruim { background: var(--erro-fundo); border-color: var(--erro); }
.grande.nps-otimo, .grande.nps-bom { color: var(--verde-escuro); }
.grande.nps-atencao { color: var(--laranja); }
.grande.nps-ruim { color: var(--erro); }

.bloco { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 18px; margin-bottom: 14px; }

/* Distribuição */
.dist { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--borda); margin: 6px 0 10px; }
.seg { display: block; height: 100%; }
.promotor { background: var(--verde); }
.neutro { background: #d9a33a; }
.detrator { background: var(--erro); }
.legenda { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.bola { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.ajuda summary { cursor: pointer; color: var(--verde-escuro); font-weight: 600; min-height: 32px; }
.ajuda p { color: var(--suave); margin-top: 6px; }

/* Barras (mês e nota) */
.meses, .notas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.linha-mes, .linha-nota { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.linha-mes .mes, .linha-nota .rot { grid-column: 1; text-transform: capitalize; font-weight: 600; font-size: .95rem; }
.linha-nota .rot { text-transform: none; }
.linha-mes .num, .linha-nota .num { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.linha-mes .num small, .linha-nota .num small { color: var(--suave); }
.trilho { grid-column: 1 / -1; height: 12px; background: #ece9df; border-radius: 99px; overflow: hidden; display: block; }
.enche { display: block; height: 100%; border-radius: 99px; background: var(--verde); }
.enche.nps-atencao { background: #d9a33a; }
.enche.nps-ruim { background: var(--erro); }

/* Tabela */
.rolagem { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--borda); }
thead th { font-size: .8rem; color: var(--suave); font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
.sel { display: inline-block; min-width: 2.6rem; text-align: center; padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.sel.nps-otimo, .sel.nps-bom { background: var(--verde-claro); color: var(--verde-escuro); }
.sel.nps-atencao { background: var(--amarelo-fundo); color: var(--laranja); }
.sel.nps-ruim { background: var(--erro-fundo); color: var(--erro); }

/* Comentários */
.lista-coment { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.coment { border: 1px solid var(--borda); border-radius: 10px; padding: 12px 14px; }
.coment p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cab { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pill { padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.s-positivo { background: var(--verde-claro); color: var(--verde-escuro); }
.s-neutro { background: var(--amarelo-fundo); color: var(--laranja); }
.s-negativo { background: var(--erro-fundo); color: var(--erro); }
.nota-c { font-weight: 700; font-size: .9rem; }
.vazio { padding: 16px; text-align: center; color: var(--suave); }
.paginas { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.rodape { margin-top: 18px; text-align: center; }

@media (min-width: 640px) {
  .cartoes { grid-template-columns: 1.3fr 1fr 1fr; }
  .linha-mes, .linha-nota { grid-template-columns: 11rem 1fr 8rem; }
  .linha-mes .mes, .linha-nota .rot { grid-column: 1; }
  .trilho { grid-column: 2; grid-row: 1; }
  .linha-mes .num, .linha-nota .num { grid-column: 3; }
  .legenda { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 24px; }
}
@media (min-width: 960px) {
  main { padding-top: 28px; }
  .grande { font-size: 3.6rem; }
}

/* Larguras das barras: w0 a w100 (porcentagem). */
.w0 { width: 0%; }
.w1 { width: 1%; }
.w2 { width: 2%; }
.w3 { width: 3%; }
.w4 { width: 4%; }
.w5 { width: 5%; }
.w6 { width: 6%; }
.w7 { width: 7%; }
.w8 { width: 8%; }
.w9 { width: 9%; }
.w10 { width: 10%; }
.w11 { width: 11%; }
.w12 { width: 12%; }
.w13 { width: 13%; }
.w14 { width: 14%; }
.w15 { width: 15%; }
.w16 { width: 16%; }
.w17 { width: 17%; }
.w18 { width: 18%; }
.w19 { width: 19%; }
.w20 { width: 20%; }
.w21 { width: 21%; }
.w22 { width: 22%; }
.w23 { width: 23%; }
.w24 { width: 24%; }
.w25 { width: 25%; }
.w26 { width: 26%; }
.w27 { width: 27%; }
.w28 { width: 28%; }
.w29 { width: 29%; }
.w30 { width: 30%; }
.w31 { width: 31%; }
.w32 { width: 32%; }
.w33 { width: 33%; }
.w34 { width: 34%; }
.w35 { width: 35%; }
.w36 { width: 36%; }
.w37 { width: 37%; }
.w38 { width: 38%; }
.w39 { width: 39%; }
.w40 { width: 40%; }
.w41 { width: 41%; }
.w42 { width: 42%; }
.w43 { width: 43%; }
.w44 { width: 44%; }
.w45 { width: 45%; }
.w46 { width: 46%; }
.w47 { width: 47%; }
.w48 { width: 48%; }
.w49 { width: 49%; }
.w50 { width: 50%; }
.w51 { width: 51%; }
.w52 { width: 52%; }
.w53 { width: 53%; }
.w54 { width: 54%; }
.w55 { width: 55%; }
.w56 { width: 56%; }
.w57 { width: 57%; }
.w58 { width: 58%; }
.w59 { width: 59%; }
.w60 { width: 60%; }
.w61 { width: 61%; }
.w62 { width: 62%; }
.w63 { width: 63%; }
.w64 { width: 64%; }
.w65 { width: 65%; }
.w66 { width: 66%; }
.w67 { width: 67%; }
.w68 { width: 68%; }
.w69 { width: 69%; }
.w70 { width: 70%; }
.w71 { width: 71%; }
.w72 { width: 72%; }
.w73 { width: 73%; }
.w74 { width: 74%; }
.w75 { width: 75%; }
.w76 { width: 76%; }
.w77 { width: 77%; }
.w78 { width: 78%; }
.w79 { width: 79%; }
.w80 { width: 80%; }
.w81 { width: 81%; }
.w82 { width: 82%; }
.w83 { width: 83%; }
.w84 { width: 84%; }
.w85 { width: 85%; }
.w86 { width: 86%; }
.w87 { width: 87%; }
.w88 { width: 88%; }
.w89 { width: 89%; }
.w90 { width: 90%; }
.w91 { width: 91%; }
.w92 { width: 92%; }
.w93 { width: 93%; }
.w94 { width: 94%; }
.w95 { width: 95%; }
.w96 { width: 96%; }
.w97 { width: 97%; }
.w98 { width: 98%; }
.w99 { width: 99%; }
.w100 { width: 100%; }
