/* Aba Prospecção — layout enxuto. Os !important vencem as classes que o JS aplica em alguns elementos. */
#view-prospeccao { color: #0f172a; }
.pp-topo .pp-status-linha { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-top: .2rem; font-size: .85rem; color: #64748b; }

/* Canal ativo: texto simples com bolinha */
#view-prospeccao #badgeCanalAtivoProspeccao { all: unset; display: inline-flex !important; align-items: center; gap: .4rem; font-size: .85rem; color: #475569; }
#view-prospeccao #badgeCanalAtivoProspeccao > span:first-child:not(#textoCanalAtivoProspeccao) { width: .45rem !important; height: .45rem !important; background: #10b981 !important; border-radius: 9999px; }
#view-prospeccao #badgeCanalAtivoProspeccao::after { content: '·'; color: #cbd5e1; margin-left: .35rem; }

/* Status (pronto / prospectando): vira uma linha de texto */
#view-prospeccao #cardStatusContextual { all: unset; display: inline-flex !important; align-items: center; gap: .45rem; min-width: 0; }
#view-prospeccao #iconStatusContextual { all: unset; display: inline-flex !important; width: .5rem !important; height: .5rem !important; border-radius: 9999px; background: #94a3b8; overflow: hidden; flex-shrink: 0; }
#view-prospeccao #iconStatusContextual svg { display: none; }
#view-prospeccao #iconStatusContextual > span { width: 100% !important; height: 100% !important; background: #10b981 !important; border-radius: 9999px; }
#view-prospeccao .pp-status-txt { display: flex; flex-wrap: wrap; gap: 0 .4rem; align-items: baseline; min-width: 0; }
#view-prospeccao #titleStatusContextual { font-size: .85rem !important; font-weight: 500 !important; color: #0f172a !important; }
#view-prospeccao #descStatusContextual { font-size: .8rem !important; color: #94a3b8 !important; white-space: normal !important; }

/* Números: uma faixa */
.pp-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; }
.pp-numeros > div { padding: .85rem 1.1rem; border-left: 1px solid #f1f5f9; min-width: 0; }
.pp-numeros > div:first-child { border-left: 0; }
.pp-numeros > div > span { font-size: .78rem; color: #64748b; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.pp-numeros b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: .1rem; }
#view-prospeccao #badgeDetalheSalvos { display: none !important; }
#view-prospeccao .pp-veloc { font-size: .7rem; color: #64748b; background: #f1f5f9; border-radius: .35rem; padding: 0 .35rem; font-variant-numeric: tabular-nums; }

/* Grade principal */
.pp-grade { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.pp-lado { display: flex; flex-direction: column; gap: .75rem; }
.pp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; padding: 1.2rem; }
.pp-rotulo { display: block; font-size: .78rem; font-weight: 500; color: #64748b; margin-bottom: .5rem; }
.pp-dica { font-size: .8rem; color: #94a3b8; margin-top: .5rem; line-height: 1.45; }

/* Campo da hashtag */
.pp-input { display: flex; align-items: center; gap: .5rem; border: 1px solid #e2e8f0; border-radius: .7rem; padding: 0 .4rem 0 .85rem; background: #fff; transition: border-color .15s; }
.pp-input:focus-within { border-color: #0f172a; }
.pp-input > span { color: #94a3b8; font-weight: 500; }
.pp-input input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: .7rem 0; font-size: .95rem; font-weight: 500; color: #0f172a; }
.pp-input button { font-size: .8rem; color: #94a3b8; background: none; border: 0; padding: .35rem .55rem; border-radius: .45rem; cursor: pointer; }
.pp-input button:hover { background: #f1f5f9; color: #475569; }

/* Nichos */
.pp-nichos { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
#view-prospeccao .nicho-chip { all: unset; display: inline-flex; align-items: center; font-size: .82rem; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 9999px; padding: .3rem .75rem; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
#view-prospeccao .nicho-chip:hover { border-color: #cbd5e1; color: #0f172a; }
#view-prospeccao .nicho-chip .nicho-dot { display: none !important; }
#view-prospeccao .nicho-chip.active { background: #0f172a !important; color: #fff !important; border-color: #0f172a !important; }
#view-prospeccao .nicho-chip.active * { color: #fff !important; }

/* Seletores segmentados (quem capturar, tipo de perfil, filtros de atividade) */
.pp-seg { display: flex; background: #f1f5f9; border-radius: .7rem; padding: .2rem; gap: .2rem; }
#view-prospeccao .pp-seg > button { all: unset; flex: 1; text-align: center; font-size: .85rem; color: #64748b; padding: .5rem .5rem; border-radius: .55rem; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
#view-prospeccao .pp-seg > button:hover { color: #0f172a; }
#view-prospeccao .pp-seg > button.active { background: #fff !important; color: #0f172a !important; font-weight: 500 !important; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px #e2e8f0 !important; }
.pp-seg-mini { flex: 0 0 auto; }
#view-prospeccao .pp-seg-mini > button { font-size: .78rem; padding: .3rem .65rem; flex: 0 0 auto; }

/* Linhas de filtro */
.pp-linha { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; border-top: 1px solid #f1f5f9; font-size: .88rem; }
.pp-rotulo + .pp-linha { border-top: 0; padding-top: .2rem; }
.pp-linha small { display: block; font-size: .75rem; color: #94a3b8; margin-top: .05rem; }
.pp-clicavel { cursor: pointer; }
.pp-select { font-size: .82rem; border: 1px solid #e2e8f0; border-radius: .5rem; padding: .35rem .6rem; background: #fff; color: #0f172a; cursor: pointer; }
.pp-ia { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.pp-link { font-size: .8rem; color: #2563eb; }
#view-prospeccao #badgeIaStatusPill { all: unset; display: inline-flex !important; align-items: center; gap: .35rem; font-size: .78rem; color: #475569; white-space: nowrap; }
#view-prospeccao #badgeIaDot { width: .45rem !important; height: .45rem !important; border-radius: 9999px; }

/* Interruptor "Só exterior" (o JS troca as classes; aqui fica a aparência) */
.pp-switch { flex-shrink: 0; }
#view-prospeccao #switchExteriorTrack { width: 2.1rem !important; height: 1.2rem !important; border-radius: 9999px !important; position: relative !important; transition: background .15s; }
#view-prospeccao #switchExteriorThumb { width: .9rem !important; height: .9rem !important; top: .15rem !important; left: .15rem !important; }

/* Botões */
.pp-btn-iniciar, .pp-btn-parar { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; font-size: .95rem; font-weight: 500; color: #fff; background: #0f172a; border: 0; border-radius: .8rem; padding: .85rem 1rem; cursor: pointer; transition: background .15s; }
.pp-btn-iniciar:hover, .pp-btn-parar:hover { background: #1e293b; }
.pp-btn-iniciar:disabled { opacity: .4; cursor: not-allowed; }
.pp-btn-zerar { align-self: center; font-size: .8rem; color: #64748b; background: none; border: 0; cursor: pointer; padding: .25rem .5rem; }
.pp-btn-zerar:hover { color: #0f172a; text-decoration: underline; }

/* Atividade */
.pp-ativ-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pp-vazio { text-align: center; padding: 1.75rem 0; font-size: .85rem; color: #94a3b8; }
#listaLogsFeed { max-height: 22rem; overflow-y: auto; }
.pp-log { display: flex; gap: .75rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid #f1f5f9; font-size: .84rem; }
.pp-log:first-child { border-top: 0; }
.pp-log time { width: 4.2rem; flex-shrink: 0; font-size: .75rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.pp-log p { flex: 1; min-width: 0; color: #334155; word-break: break-word; line-height: 1.45; }
.pp-log-tipo { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: #64748b; white-space: nowrap; flex-shrink: 0; }
.pp-log-tipo::before { content: ''; width: .45rem; height: .45rem; border-radius: 9999px; background: var(--cor, #94a3b8); }

/* Celular: uma coluna */
@media (max-width: 1023px) { .pp-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .pp-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-numeros > div:nth-child(3) { border-left: 0; }
  .pp-numeros > div:nth-child(n+3) { border-top: 1px solid #f1f5f9; }
  .pp-numeros b { font-size: 1.25rem; }
  #view-prospeccao .pp-seg-foco > button { white-space: normal; font-size: .8rem; line-height: 1.2; }
  .pp-log { flex-wrap: wrap; gap: .1rem .6rem; }
  .pp-log p { flex-basis: 100%; order: 3; }
}
#view-prospeccao .pp-seg > button, #view-prospeccao .pp-seg > button.active { border: 0 !important; outline: none; }
#view-prospeccao #badgeExteriorStatus { display: none !important; }
@media (max-width: 640px) { #view-prospeccao #badgeCanalAtivoProspeccao::after { display: none; } .pp-topo .pp-status-linha { flex-direction: column; align-items: flex-start; } }
.pp-btn-zerar-confirmar { color: #b91c1c !important; font-weight: 600; }
