/* Entregas 5 e 6 (22/11/2026): faixa "Novidades", contador do topo e página "Relatórios". Usa as cores do estilo.css. */

/* ---------- contador discreto no logo (novidades não vistas) ---------- */
.marca { position: relative; }
.novas-topo {
  position: absolute; top: -6px; left: 70px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1; color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff4d6d 0%, var(--cereja) 60%, #8f0b27 100%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 2px 8px rgba(208,17,57,.55);
}

/* ---------- faixa "Novidades" na página inicial ---------- */
.novidades {
  margin: 10px 0 14px; padding: 12px 0 12px 12px; border-radius: var(--raio-m);
  background: linear-gradient(140deg, rgba(208,17,57,.32), rgba(53,15,21,.28) 55%, rgba(35,56,84,.32));
  border: 1px solid rgba(255,180,195,.35); box-shadow: var(--vidro-sombra);
  -webkit-backdrop-filter: var(--vidro-blur); backdrop-filter: var(--vidro-blur);
}
.nov-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 12px; margin-bottom: 10px; }
.nov-cab .tema { color: #ffe3e8; font-size: 11px; letter-spacing: .14em; }
.nov-conta { flex: none; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--cereja); }
.nov-conta.nov-ok { background: rgba(255,255,255,.14); color: var(--texto-2); font-weight: 500; }
.nov-lista { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 2px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nov-lista::-webkit-scrollbar { display: none; }
.nov-item {
  flex: 0 0 min(82%, 300px); scroll-snap-align: start; display: flex; gap: 10px; align-items: center; text-decoration: none;
  padding: 8px; border-radius: var(--raio-p); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.nov-lista .nov-item:only-child { flex-basis: 100%; }
.nov-item > img, .nov-sem-capa { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.08); }
.nov-sem-capa { display: grid; place-items: center; font-weight: 700; color: var(--old-bone); text-transform: uppercase; }
.nov-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nov-txt b { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nov-txt small { font-size: 12.5px; color: var(--texto-2); line-height: 1.25; }
.nov-quando { color: var(--texto-3) !important; }
.nov-quando i { font-style: normal; color: #ffd0da; font-weight: 600; }
.nov-item.nao-vista { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.16); }

/* ---------- página "Relatórios" (só administrador) ---------- */
.rel-datas { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 2px 0 12px; }
.rel-datas label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--texto-2); flex: 1 1 130px; }
.rel-datas input {
  height: 44px; border-radius: 12px; padding: 0 10px; font: inherit; font-size: 15px; color: #fff;
  background: var(--vidro-forte); border: 1px solid var(--vidro-borda); color-scheme: dark;
}
.rel-datas .botao { flex: 0 0 auto; min-height: 44px; }
.rel-periodo { margin: 4px 2px 10px; color: var(--texto-2); }
.rel-periodo b { color: #fff; }
.rel-aviso { margin: -4px 2px 10px; font-size: 13px; color: var(--old-bone); }
.rel-totais { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 12px; }
@media (min-width: 700px) { .rel-totais { grid-template-columns: repeat(3, 1fr); } }
.rel-total {
  position: relative; padding: 12px 14px; border-radius: var(--raio-p); background: var(--vidro); border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra); -webkit-backdrop-filter: var(--vidro-blur); backdrop-filter: var(--vidro-blur); overflow: hidden;
}
.rel-total span { display: block; font-size: 12px; color: var(--texto-2); line-height: 1.2; }
.rel-total b { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.rel-total b small { font-size: 14px; color: var(--texto-3); font-weight: 500; }
.rel-total i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: linear-gradient(90deg, #e8264f, var(--old-bone)); }
.rel-excel { margin-top: 4px; }
.rel-nota { font-size: 12.5px; color: var(--texto-3); margin: 8px 2px 4px; }
.rel-abas { margin-top: 10px; }
.rel-abas .chip .contagem { font-size: 12px; margin-left: 2px; color: inherit; opacity: .7; }
.rel-quadro h2 { margin-top: 14px; }

.rel-tabela {
  overflow-x: auto; border-radius: var(--raio-p); border: 1px solid var(--vidro-borda); background: rgba(21,24,47,.35);
  -webkit-overflow-scrolling: touch;
}
.rel-tabela table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rel-tabela th, .rel-tabela td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.rel-tabela th { font-size: 11.5px; font-weight: 600; color: var(--old-bone); background: rgba(53,15,21,.92); position: sticky; top: 0; white-space: normal; min-width: 72px; vertical-align: bottom; line-height: 1.2; }
.rel-tabela .num { text-align: right; }
.rel-tabela td.zero { color: var(--texto-3); }
.rel-tabela td.barra { background: linear-gradient(90deg, #e8264f, rgba(228,214,201,.85)) right 10px bottom 5px / calc(var(--b) * .8) 3px no-repeat; }
/* 1ª coluna fixa ao rolar para o lado (celular) */
.rel-tabela th:first-child, .rel-tabela td:first-child { position: sticky; left: 0; z-index: 1; min-width: 138px; max-width: 170px; white-space: normal; line-height: 1.25; }
.rel-nome { display: block; }
.rel-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--texto-3); margin-top: 2px; }
/* celular: apelido e equipe embaixo do nome; computador: em colunas próprias (como no Excel) */
@media (max-width: 699px) { .rel-tabela .rel-dobra { display: none; } }
@media (min-width: 700px) { .rel-sub { display: none; } .rel-tabela th:first-child, .rel-tabela td:first-child { max-width: 260px; } }
.rel-tabela td:first-child { background: rgba(35,22,38,.96); font-weight: 600; }
.rel-tabela th:first-child { z-index: 2; }
.rel-tabela tbody tr:last-child td { border-bottom: 0; }
.rel-quadro .mais { margin-top: 10px; }

/* topo do administrador no celular: com "Usuários" e "Relatórios" não cabe numa linha. Logo + Sair em cima, os dois atalhos embaixo. */
@media (max-width: 440px) {
  .topo.com-admin { flex-wrap: wrap; row-gap: 8px; }
  .topo.com-admin .topo-acoes { display: contents; }
  .topo.com-admin .marca { order: 0; flex: 1 1 auto; }
  .topo.com-admin #btn-sair { order: 1; }
  .topo.com-admin .topo-acoes a.usuario { order: 2; flex: 1 1 calc(50% - 6px); text-align: center; }
}

/* Corretores ativos no mês (23/11/2026): base da cobrança da manutenção. publico/ativos.js */
.at-meses { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.at-meses::-webkit-scrollbar { display: none; }
.at-meses .chip { white-space: nowrap; }
.at-totais { grid-template-columns: repeat(2, 1fr); grid-template-areas: "entraram cadastrados" "valor valor"; }
.at-totais .at-entraram { grid-area: entraram; } .at-totais .at-cadastrados { grid-area: cadastrados; } .at-totais .at-valor { grid-area: valor; }
.at-datas { display: block; }
.at-totais .at-valor b { font-size: 30px; }
.at-conta { display: block; margin-top: 2px; font-size: 12px; color: var(--texto-3); }
.at-parcial { color: var(--old-bone); font-weight: 600; }
@media (min-width: 700px) { .at-totais { grid-template-columns: 1fr 1.3fr 1fr; grid-template-areas: "entraram valor cadastrados"; } .at-datas { display: none; } }
.at-cartao { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0; border-radius: 18px; text-decoration: none; color: inherit; }
.at-cartao .at-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid var(--vidro-borda); }
.at-cartao .at-ic svg { width: 21px; height: 21px; }
.at-cartao small { display: block; margin: 0 0 2px; }
.at-cartao b { display: block; font-size: 16px; }
.at-cartao .at-seta { margin-left: auto; width: 20px; color: var(--texto-3); }
