/* Painel de Desempenho — cópia fiel do painel do Perfil da Empresa no Google.
   As medidas vieram do painel de verdade (prints em referencia/). */

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  /* A página de busca escurecida que fica atrás do painel do Google. */
  background: #666;
  overflow: hidden;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #1f1f1f;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

/* ---------- troca de cliente (fora do painel) ---------- */
.troca-cliente {
  position: fixed; top: 16px; left: 50%; z-index: 1;
  width: min(1200px, calc(100vw - 48px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/16px 'Google Sans Flex', 'Google Sans', Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, .72); letter-spacing: .1px;
}
.troca-cliente select {
  height: 32px; padding: 0 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; cursor: pointer; outline: 0;
}
.troca-cliente select option { color: #1f1f1f; }

/* ---------- a janela ---------- */
#raiz { position: fixed; inset: 0; padding-top: 64px; }
.janela {
  position: relative; z-index: 2;
  width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
  font: 400 16px/24px 'Google Sans', Roboto, Arial, sans-serif;
  color: #1f1f1f;
}
.janela.estreita { width: min(700px, calc(100vw - 48px)); }

.cabecalho {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: 56px; padding: 3px 4px 4px; border-top: 1px solid transparent;
  display: flex; align-items: center;
}
.cabecalho h1 {
  flex: 1; margin: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 18px/24px 'Google Sans', Roboto, Arial, sans-serif;
}

.botao-icone {
  width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: none; color: #444746; cursor: pointer; outline: 0;
}
.botao-icone svg { display: block; fill: currentColor; }
.botao-icone:hover { background: rgba(68, 71, 70, .08); }
.botao-icone:active, .botao-icone.ativo { background: rgba(68, 71, 70, .12); }

/* ---------- topo fixo: período + abas ---------- */
.topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding-top: 56px; background: #fff;
  transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
}
.janela.rolado .topo { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15); }
.janela.encolhido .topo { transform: translateY(-88px); }
.janela.encolhido .periodo-area { visibility: hidden; }

.periodo-area { position: relative; z-index: 10; width: 340px; height: 88px; margin: 0 auto; }
.periodo-botao {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 308px; height: 56px; padding: 0 12px; border: 0; border-radius: 4px;
  display: flex; align-items: center;
  background: none; cursor: pointer; outline: 0;
}
.periodo-contorno {
  position: absolute; inset: 0; border: 1px solid #747775; border-radius: 4px; pointer-events: none;
}
.periodo-botao:hover .periodo-contorno { border-color: #1f1f1f; }
.periodo-rotulo {
  position: absolute; top: -8px; left: 12px; padding: 0 4px; background: #fff;
  font: 400 12px/16px Roboto, Arial, sans-serif; letter-spacing: .075px; color: #444746;
}
.periodo-botao svg { flex: none; fill: #444746; }
.periodo-texto {
  flex: 1; margin: 0 8px 0 12px; overflow: hidden; white-space: nowrap; text-align: left;
  font: 400 16px/24px Roboto, Arial, sans-serif; letter-spacing: .1px; color: #1f1f1f;
}
.periodo-area.aberto .periodo-contorno { border: 3px solid #0b57d0; }
.periodo-area.aberto .periodo-rotulo { color: #0b57d0; }
.periodo-area.aberto .seta { fill: #0b57d0; }

.periodo-janela {
  display: none;
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 340px; padding-top: 88px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
}
.periodo-area.aberto .periodo-janela { display: block; }

.meses { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.mes { width: 50%; margin: 6px 0; }
.mes.meio { background: #a8c7fa; }
.mes.ini { background: linear-gradient(to right, transparent 50%, #a8c7fa 50%); }
.mes.fim { background: linear-gradient(to right, #a8c7fa 50%, transparent 50%); }
.mes.ini.fim { background: none; }
.mes button {
  display: block; width: 100%; margin: -6px 0; padding: 6px 0 6px 8px; border: 0;
  background: none; text-align: left; cursor: pointer; outline: 0;
}
.mes:nth-child(even) button { padding: 6px 8px 6px 0; text-align: right; }
.mes-fundo { display: inline-block; padding: 8px; vertical-align: top; }
.mes.ini .mes-fundo { background: #a8c7fa; border-radius: 26px 0 0 26px; }
.mes.fim .mes-fundo { background: #a8c7fa; border-radius: 0 26px 26px 0; }
.mes.ini.fim .mes-fundo { background: none; }
.mes-nome {
  width: 112px; padding: 0 8px; border: 2px solid transparent; border-radius: 18px;
  font: 400 16px/32px 'Google Sans', Roboto, Arial, sans-serif; text-align: center; color: #1f1f1f; white-space: nowrap;
}
.mes button:hover .mes-nome { border-color: #0b57d0; }
.mes.ini .mes-nome, .mes.fim .mes-nome { background: #0b57d0; border-color: #0b57d0; color: #fff; }

.periodo-acoes { margin: -4px 0; padding: 0 8px 8px; text-align: right; }
.periodo-acoes .btn { margin: 4px 0; }
.periodo-acoes .btn:first-child { margin-right: 8px; }

.btn {
  position: relative; height: 40px; padding: 0 24px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/24px 'Google Sans Flex', 'Google Sans Text', 'Google Sans', Roboto, Arial, sans-serif;
  cursor: pointer; outline: 0; vertical-align: top; text-decoration: none;
}
.btn.contorno { border: 1px solid #747775; background: none; color: #0b57d0; }
.btn.contorno:hover { background: rgba(11, 87, 208, .08); }
.btn.cheio { border: 0; background: #0b57d0; color: #fff; }
.btn.cheio:hover {
  background: #0a51c2;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
}
.btn.texto { padding: 0 12px; border: 0; background: none; color: #0b57d0; line-height: 20px; }
.btn.texto:hover { background: rgba(11, 87, 208, .08); }

.abas { height: 48px; display: flex; border-bottom: 1px solid #dadce0; }
.abas-dentro { display: flex; margin: 0 48px; overflow: auto hidden; scrollbar-width: none; }
.aba {
  position: relative; flex: none; height: 47px; padding: 0 16px; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; cursor: pointer; outline: 0;
  font: 500 14px/20px 'Google Sans Flex', 'Google Sans Text', 'Google Sans', Roboto, Arial, sans-serif;
  color: #444746; white-space: nowrap;
}
.aba:hover { background: rgba(31, 31, 31, .08); color: #1f1f1f; }
.aba.ativa { color: #0b57d0; }
.aba.ativa:hover { background: rgba(11, 87, 208, .08); color: #0b57d0; }
.aba.ativa::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: #0b57d0;
}

/* ---------- a área que rola ---------- */
.rolagem { flex: 1; min-height: 0; margin-top: 192px; overflow: hidden auto; }
.janela.encolhido .rolagem { margin-top: 104px; }
.janela.encolhido .conteudo { padding-top: 88px; }
.janela.estreita .rolagem { margin-top: 56px; }

.resumo { min-height: 456px; padding: 24px 48px 16px; }
.numero-grande {
  font: 400 56px/64px 'Google Sans Display', 'Google Sans', Roboto, Arial, sans-serif; color: #202124;
}
.numero-rotulo { height: 32px; display: flex; align-items: center; color: #202124; }
.numero-rotulo > span { font: 400 16px/24px Roboto, Arial, sans-serif; letter-spacing: .1px; }

.info { position: relative; width: 12px; height: 12px; margin-left: 10px; display: flex; flex: none; }
.info .botao-icone { margin: -14px; padding: 10px; }
.balao-area { display: none; position: absolute; top: 12px; left: -18px; z-index: 5; width: 320px; }
.info.aberto .balao-area { display: block; }
.balao-ponta { position: absolute; top: 0; left: 0; width: 48px; height: 20px; overflow: hidden; }
.balao-ponta::before {
  content: ''; position: absolute; top: 9px; left: 12px; width: 24px; height: 24px;
  background: #f0f4f9; border-radius: 3px; transform: rotate(45deg);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
}
.balao {
  margin-top: 20px; padding: 12px 16px 0; border-radius: 8px; background: #f0f4f9;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
  font: 400 14px/20px Roboto, Arial, sans-serif; letter-spacing: .2px; color: #3c4043;
}
.balao h4 {
  margin: 0 0 4px; font: 500 14px/20px 'Google Sans', Roboto, Arial, sans-serif; letter-spacing: .25px; color: #3c4043;
}
.balao p { margin: 0 0 12px; }
.balao .btn.texto { margin: 0 0 8px -8px; letter-spacing: normal; }

/* ---------- gráfico ---------- */
.grafico { position: relative; height: 300px; }
.grafico svg { display: block; margin: 0 -20px; overflow: hidden; }
.grafico text { font: 400 12px/16px Roboto, Arial, sans-serif; letter-spacing: .3px; fill: #5e5e5e; }
.grafico .ponto { fill: #fff; stroke: #0b57d0; stroke-width: 2; }
.grafico .ponto.ativo { fill: #0842a0; stroke: #0842a0; }
.dica {
  display: none; position: absolute; z-index: 1; padding: 8px; border-radius: 8px;
  background: #0b57d0; color: #fff; text-align: center; white-space: nowrap; pointer-events: none;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
}
.dica::before {
  content: ''; position: absolute; top: 50%; left: -5px; width: 12px; height: 12px; margin-top: -6px;
  background: #0b57d0; border-radius: 2px; transform: rotate(45deg);
}
.dica.esquerda::before { left: auto; right: -5px; }
.dica b { display: block; position: relative; font: 400 22px/28px 'Google Sans', Roboto, Arial, sans-serif; }
.dica span { display: block; position: relative; font: 400 14px/20px 'Google Sans', Roboto, Arial, sans-serif; }

/* ---------- seções ---------- */
.secoes { padding: 0 48px 80px; }
.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 16px; align-items: stretch; }
.grade > * { grid-column: 1 / -1; min-width: 0; }
.grade > .metade { grid-column: span 6; }
.titulo-secao { height: 16px; }
.titulo-secao > div { height: 24px; display: flex; align-items: center; }
.titulo-secao h2 { margin: 0; font: 500 16px/24px 'Google Sans', Roboto, Arial, sans-serif; }

.cartao { border: 1px solid #dadce0; border-radius: 8px; }

/* cartão do anúncio */
.anuncio { padding: 32px; display: flex; }
.anuncio-esq { width: 49.2%; padding-right: 32px; flex: none; }
.anuncio-esq-dentro { width: 326px; margin: 0 auto; }
.celular {
  position: relative; height: 200px; display: flex;
  border: 2px solid #dadce0; border-bottom: 0; border-radius: 40px 40px 0 0;
}
.celular::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 0; height: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.celular-moldura {
  flex: 1; min-width: 0; margin: 2px 2px 0; display: flex;
  background: #f8f9fa; border: 2px solid #dadce0; border-bottom: 0; border-radius: 36px 36px 0 0;
}
.celular-tela {
  flex: 1; min-width: 0; margin: 28px 8px 0; padding: 6px 6px 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #fff; border-bottom: 0; border-radius: 24px 24px 0 0;
}
.celular-busca {
  height: 32px; margin-bottom: 6px; padding: 0 12px; display: flex; align-items: center; flex: none;
  background: #fff; border: 1px solid #dadce0; border-radius: 18.5px; overflow: hidden;
}
.celular-busca > svg { flex: none; }
.celular-busca > div {
  flex: 1; margin: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 14px; line-height: 16px; letter-spacing: .1px;
}
.celular-anuncio {
  flex: 1; min-width: 0; overflow: hidden; padding: 10px 12px 0; background: #fff;
  border: 1px solid #dadce0; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.celular-linha { display: flex; align-items: center; margin-bottom: 4px; font-size: 12px; }
.celular-linha b { font-weight: 700; line-height: 20px; }
.celular-linha i { width: 2px; height: 2px; margin: 0 6px; border-radius: 50%; background: #3c4043; flex: none; }
.celular-linha span {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 12px/16px Roboto, Arial, sans-serif; letter-spacing: .3px;
}
.celular-titulo { max-height: 40px; margin-bottom: 6px; overflow: hidden; line-height: 20px; color: #0b57d0; }
.celular-desc {
  margin-bottom: 6px; overflow: hidden; white-space: nowrap;
  font: 400 14px/16px Roboto, Arial, sans-serif; letter-spacing: .3px;
}
.anuncio-legenda { padding-top: 14px; font-size: 12px; line-height: 16px; letter-spacing: .1px; }
.anuncio-dir { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.anuncio-dir h3 { margin: 0; padding-bottom: 24px; font: 400 22px/28px 'Google Sans', Roboto, Arial, sans-serif; }
.anuncio-dir p { flex: 1; margin: 0; font-size: 14px; line-height: 20px; }
.anuncio-acao { margin-top: 32px; padding: 4px 0; }
.anuncio-acao .btn { padding: 0 24px 0 16px; }
.anuncio-acao svg { margin-right: 8px; fill: currentColor; }

/* cartões de descoberta */
.cartao-topo { padding: 32px; }
.cartao-numero { font: 400 36px/44px 'Google Sans', Roboto, Arial, sans-serif; color: #202124; }
.cartao-rotulo {
  margin: 4px 0; display: flex; align-items: flex-start; color: #202124;
  font: 400 16px/24px Roboto, Arial, sans-serif; letter-spacing: .1px;
}
.cartao-rotulo svg { flex: none; margin: 2px 8px 2px 0; fill: #202124; }
.cartao-corpo { padding: 0 32px 32px; }
.cartao-intro { margin-bottom: 32px; }
.cartao-intro h3 { margin: 0; font: 500 16px/24px 'Google Sans', Roboto, Arial, sans-serif; }
.cartao-intro p { margin: 0; font-size: 14px; line-height: 20px; }

.rosca-area { display: flex; }
.rosca { flex: none; margin-right: 16px; transform: rotate(-90deg); }
.rosca circle { fill: none; stroke-width: 16; }
.legenda { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.legenda li { margin-bottom: 28px; }
.legenda li:last-child { margin-bottom: 8px; }
.legenda-valor { margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .25px; }
.legenda-valor i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }
.legenda-valor u { display: inline-block; margin: 0 4px; font-size: 22px; font-weight: 400; line-height: 4px; text-decoration: none; vertical-align: middle; }
.legenda-nome { font: 400 14px/20px Roboto, Arial, sans-serif; letter-spacing: .2px; color: #444746; }

.termos { margin: 0 0 32px; padding: 0; list-style: none; }
.termos li { display: flex; padding: 16px 0; }
.termos .ordem { flex: none; font: 400 16px/24px Roboto, Arial, sans-serif; letter-spacing: .1px; text-align: right; }
.termos .termo {
  flex: 1; min-width: 0; padding: 0 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 16px/24px Roboto, Arial, sans-serif; letter-spacing: .1px;
}
.termos .vezes { flex: none; font-weight: 500; letter-spacing: .1px; }
.ver-mais { display: flex; justify-content: center; padding: 4px 0; }

/* tela "Detalhamento das pesquisas" */
.lista-inteira { padding: 24px 24px; }
.lista-inteira .termos { margin-bottom: 16px; }
.lista-inteira .termos .ordem { width: 27px; }
.lista-inteira .termos .termo { white-space: normal; }

/* menu dos três pontinhos */
.menu {
  position: fixed; z-index: 20; margin: 0; padding: 8px 0; list-style: none;
  background: #f0f4f9; border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
}
.menu li {
  height: 48px; padding: 8px 12px; display: flex; align-items: center; cursor: pointer; white-space: nowrap;
  font: 500 14px/20px 'Google Sans Flex', 'Google Sans Text', 'Google Sans', Roboto, Arial, sans-serif; color: #1f1f1f;
}
.menu li:hover { background: rgba(31, 31, 31, .08); }

/* ---------- celular (só abaixo de 760px; no computador nada muda) ---------- */
@media (max-width: 760px) {
  #raiz { padding-top: 56px; }
  .troca-cliente { top: 12px; width: calc(100vw - 32px); }
  .janela { width: calc(100vw - 32px); max-height: calc(100vh - 72px); }
  .resumo { min-height: 0; padding: 16px 24px 28px; }
  .secoes { padding: 0 24px 48px; }
  .grade > .metade { grid-column: 1 / -1; }
  .abas-dentro { margin: 0 8px; }
  .numero-rotulo { height: auto; min-height: 32px; }
  .anuncio { flex-direction: column; padding: 24px; }
  .anuncio-esq { width: auto; padding: 0 0 24px; }
  .anuncio-esq-dentro { width: auto; max-width: 326px; }
  .cartao-topo { padding: 24px; }
  .cartao-corpo { padding: 0 24px 24px; }
  .rosca-area { flex-direction: column; }
  .rosca { margin: 0 0 24px; }
  .lista-inteira { padding: 16px; }
  .balao-area { width: min(320px, calc(100vw - 64px)); }
}

/* ---------- comparação com o ano anterior: "+9,8% (x set. de 2025)" ---------- */
.comparacao {
  display: flex; align-items: flex-start;
  font: 400 14px/20px Roboto, Arial, sans-serif; letter-spacing: .2px; color: #444746;
}
.comparacao > span:first-child {
  display: flex; margin-right: 8px;
  font: 500 14px/20px 'Google Sans', Roboto, Arial, sans-serif; letter-spacing: .25px;
}
.comparacao .subiu { color: #188038; }
.comparacao .caiu { color: #b3261e; }
.comparacao svg { flex: none; margin-right: 8px; fill: currentColor; }

/* etiqueta do gráfico em cima do ponto (a ponta fica embaixo) */
.dica.acima::before { top: auto; bottom: -5px; left: 50%; margin: 0 0 0 -6px; }

/* seletor de período com um mês só: o mês fica numa bolinha, sem faixa */
.mes.ini.fim .mes-fundo { background: #a8c7fa; border-radius: 26px; }
.mes.ini.fim.falta .mes-fundo { background: #d3e3fd; }
