
/* ======================================================================
   BRASILEIRÃO V3 — base visual compartilhada
   Menu sticky, item ativo centralizado e tabela mobile completa.
   ====================================================================== */
html { scroll-padding-top: 92px; }
body { overflow-x: hidden; }

img.is-neutral-shield {
  opacity: .62 !important;
  filter: grayscale(1) saturate(0) !important;
}

.hero, .hero-header {
  margin-bottom: 14px;
}
.hero img, .hero-header img {
  height: clamp(92px, 10vw, 132px) !important;
  max-height: 132px !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center 44% !important;
}

.nav {
  position: relative !important;
  top: auto !important;
  z-index: 500 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(163,230,53,.38) transparent !important;
  padding: 8px !important;
  margin: 12px 0 16px !important;
  border: 1px solid rgba(163,230,53,.16) !important;
  border-radius: 17px !important;
  background: rgba(4, 10, 15, .86) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24) !important;
  scroll-behavior: smooth;
}
.nav::-webkit-scrollbar { height: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(163,230,53,.38); border-radius: 999px; }
.nav::-webkit-scrollbar-track { background: transparent; }

.nav a, .nav button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.035) !important;
  color: #d9e6f2 !important;
  text-decoration: none !important;
  padding: 9px 14px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.nav a:hover, .nav button:hover {
  background: rgba(163,230,53,.09) !important;
  border-color: rgba(163,230,53,.34) !important;
  color: #f4ffce !important;
}
.nav a.active, .nav button.active {
  background: linear-gradient(135deg, #facc15, #fbbf24) !important;
  border-color: rgba(255,231,129,.95) !important;
  color: #142009 !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.20), 0 10px 22px rgba(251,191,36,.20) !important;
  font-weight: 950 !important;
}

.br-page-title {
  margin: 0 0 14px;
}
.br-page-title .panel-inner { padding: 16px; }
.br-page-title h1 { margin: 0; }
.br-page-title p { max-width: 880px; }

.mobile-table-hint {
  display: none;
  margin: -2px 0 8px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.tabela-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(163,230,53,.42) transparent;
}
.tabela-scroll::-webkit-scrollbar { height: 7px; }
.tabela-scroll::-webkit-scrollbar-thumb { background: rgba(163,230,53,.42); border-radius: 999px; }
.tabela-br th, .tabela-br td { white-space: nowrap; }

@media (max-width: 820px) {
  .hero img, .hero-header img {
    height: clamp(82px, 18vw, 112px) !important;
    max-height: 112px !important;
    object-position: 22% 44% !important;
  }
  .nav {
    top: auto !important;
    padding: 7px !important;
    gap: 7px !important;
    border-radius: 15px !important;
    margin: 10px 0 14px !important;
  }
  .nav a, .nav button {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .mobile-table-hint { display: block; }
  .tabela-br {
    min-width: 920px !important;
    width: max-content !important;
  }
  .tabela-br .col-oculta-mobile {
    display: table-cell !important;
  }
  .tabela-br th, .tabela-br td {
    padding: 8px 9px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  .hero, .hero-header { border-radius: 15px !important; }
  .hero img, .hero-header img {
    height: 84px !important;
    max-height: 84px !important;
    object-position: 18% 44% !important;
  }
  .nav {
    margin-left: -1px !important;
    margin-right: -1px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav { scroll-behavior: auto !important; }
  .nav a, .nav button { transition: none !important; }
}

/* AJUSTE FINO 02 — cabeçalho sem corte e rodapé institucional forte */
.hero, .hero-header {
  overflow: hidden !important;
  background: radial-gradient(circle at 10% 10%, rgba(163,230,53,.08), transparent 34%), #06111a !important;
}
.hero img, .hero-header img {
  width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}
.site-footer, .footer {
  margin-top: 18px !important;
  padding: 16px !important;
  border: 1px solid rgba(163,230,53,.18) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(6,16,24,.84), rgba(7,21,15,.72)) !important;
  color: rgba(226,232,240,.82) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.site-footer .footer-title, .footer .footer-title {
  color: #efffc3 !important;
  font-weight: 950 !important;
}
.site-footer .footer-sugestoes, .footer .footer-sugestoes {
  margin-top: 9px !important;
  padding-top: 9px !important;
  border-top: 1px solid rgba(148,163,184,.14) !important;
  color: #fde68a !important;
  font-weight: 800 !important;
}
.site-footer a, .footer a { color: #d9ff76 !important; font-weight: 900 !important; }
@media (max-width: 820px) {
  .hero img, .hero-header img {
    height: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
    object-position: 42% center !important;
  }
}
@media (max-width: 560px) {
  .hero img, .hero-header img {
    height: 88px !important;
    max-height: 88px !important;
    object-position: 42% center !important;
  }
}


/* ======================================================================
   HOTFIX 20260707 — cabeçalho compacto e tabela mobile realmente útil
   - remove o efeito de página "esticada" nas páginas secundárias;
   - usa o banner como faixa horizontal, sem sobras laterais gigantes;
   - aproxima a coluna P do nome do clube no celular;
   - mantém todas as colunas da tabela via rolagem lateral.
   ====================================================================== */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.container,
.br-app-shell {
  width: min(100% - 28px, 1280px) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero,
.hero-header {
  width: 100% !important;
  height: clamp(96px, 11vw, 150px) !important;
  max-height: 150px !important;
  min-height: 96px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #06111a !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}
.hero img,
.hero-header img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Tabela: no celular, todas as colunas continuam existindo, mas sem um
   "buraco" enorme entre Time e Pontos. */
.tabela-scroll {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
@media (max-width: 820px) {
  .container,
  .br-app-shell {
    width: min(100% - 18px, 1280px) !important;
  }
  .hero,
  .hero-header {
    height: 96px !important;
    max-height: 96px !important;
    min-height: 96px !important;
    border-radius: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero img,
  .hero-header img {
    height: 96px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .tabela-shell {
    overflow: hidden !important;
  }
  .tabela-br {
    width: 702px !important;
    min-width: 702px !important;
    max-width: none !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  .tabela-br .col-oculta-mobile {
    display: table-cell !important;
  }
  .tabela-br th,
  .tabela-br td {
    padding: 8px 5px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .tabela-br th:nth-child(1),
  .tabela-br td:nth-child(1) {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  .tabela-br th:nth-child(2),
  .tabela-br td:nth-child(2) {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .tabela-br th:nth-child(1),
  .tabela-br td:nth-child(1) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
  .tabela-br th:nth-child(2),
  .tabela-br td:nth-child(2) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
  }
  .tabela-br th:nth-child(3),
  .tabela-br td:nth-child(3) { width: 50px !important; min-width: 50px !important; max-width: 50px !important; }
  .tabela-br th:nth-child(4),
  .tabela-br td:nth-child(4) { width: 44px !important; min-width: 44px !important; max-width: 44px !important; }
  .tabela-br th:nth-child(5),
  .tabela-br td:nth-child(5),
  .tabela-br th:nth-child(6),
  .tabela-br td:nth-child(6),
  .tabela-br th:nth-child(7),
  .tabela-br td:nth-child(7) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
  .tabela-br th:nth-child(8),
  .tabela-br td:nth-child(8),
  .tabela-br th:nth-child(9),
  .tabela-br td:nth-child(9),
  .tabela-br th:nth-child(10),
  .tabela-br td:nth-child(10) { width: 48px !important; min-width: 48px !important; max-width: 48px !important; }
  .tabela-br th:nth-child(11),
  .tabela-br td:nth-child(11) { width: 58px !important; min-width: 58px !important; max-width: 58px !important; }
  .tabela-br th:nth-child(12),
  .tabela-br td:nth-child(12) { width: 120px !important; min-width: 120px !important; max-width: 120px !important; }

  .tabela-time-cel {
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .tabela-time-cel span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .tabela-escudo {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
  }
}
@media (max-width: 560px) {
  .hero,
  .hero-header {
    height: 82px !important;
    max-height: 82px !important;
    min-height: 82px !important;
    border-radius: 15px !important;
  }
  .hero img,
  .hero-header img {
    height: 82px !important;
    object-position: center center !important;
  }
  .nav {
    max-width: 100% !important;
  }
}


/* ======================================================================
   HOTFIX 20260707 — CABEÇALHO REALMENTE COMPACTO
   Pedido: reduzir o cabeçalho em todas as páginas, sem esticar a imagem.
   Esta regra fica no fim do arquivo para vencer os ajustes anteriores.
   ====================================================================== */
:root {
  --br-header-h-desktop: 92px;
  --br-header-h-tablet: 78px;
  --br-header-h-phone: 68px;
}
.hero,
.hero-header,
.br-hero,
.header-hero {
  height: var(--br-header-h-desktop) !important;
  min-height: var(--br-header-h-desktop) !important;
  max-height: var(--br-header-h-desktop) !important;
  width: 100% !important;
  margin: 10px auto 12px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important;
  background: #06111a !important;
}
.hero img,
.hero-header img,
.br-hero img,
.header-hero img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

@media (max-width: 820px) {
  .hero,
  .hero-header,
  .br-hero,
  .header-hero {
    height: var(--br-header-h-tablet) !important;
    min-height: var(--br-header-h-tablet) !important;
    max-height: var(--br-header-h-tablet) !important;
    margin: 8px auto 10px !important;
    border-radius: 14px !important;
  }
  .hero img,
  .hero-header img,
  .br-hero img,
  .header-hero img {
    height: 100% !important;
    object-position: center center !important;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-header,
  .br-hero,
  .header-hero {
    height: var(--br-header-h-phone) !important;
    min-height: var(--br-header-h-phone) !important;
    max-height: var(--br-header-h-phone) !important;
    margin: 7px auto 9px !important;
    border-radius: 13px !important;
  }
  .hero img,
  .hero-header img,
  .br-hero img,
  .header-hero img {
    height: 100% !important;
    object-position: center center !important;
  }
}


/* HOTFIX FINAL 20260707: cabeçalho realmente compacto e sem expansão.
   Mantém o banner largo, mas com altura controlada em todas as páginas. */
.hero-header,
header.hero,
section.hero,
.container > .hero,
.container > header.hero,
.container > section.hero,
body > .container > header.hero,
body > .container > section.hero {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.hero-header img,
header.hero > img,
section.hero > img,
.container > .hero > img,
.container > header.hero > img,
.container > section.hero > img,
body > .container > header.hero > img,
body > .container > section.hero > img {
  display: block !important;
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  object-fit: cover !important;
  object-position: center center !important;
}
@media (max-width: 980px) {
  .hero-header, header.hero, section.hero, .container > .hero, .container > header.hero, .container > section.hero {
    height: 50px !important; min-height: 50px !important; max-height: 50px !important; border-radius: 12px !important; margin-bottom: 8px !important;
  }
  .hero-header img, header.hero > img, section.hero > img, .container > .hero > img, .container > header.hero > img, .container > section.hero > img {
    height: 50px !important; min-height: 50px !important; max-height: 50px !important; object-position: center center !important;
  }
}
@media (max-width: 640px) {
  .hero-header, header.hero, section.hero, .container > .hero, .container > header.hero, .container > section.hero {
    height: 44px !important; min-height: 44px !important; max-height: 44px !important; border-radius: 11px !important; margin-bottom: 7px !important;
  }
  .hero-header img, header.hero > img, section.hero > img, .container > .hero > img, .container > header.hero > img, .container > section.hero > img {
    height: 44px !important; min-height: 44px !important; max-height: 44px !important; object-position: center center !important;
  }
}


/* HOTFIX 20260707 — cabeçalho web compacto + mobile preservado.
   Desktop estava ficando alto porque a PNG nova era exibida na proporção natural.
   No web, a imagem ocupa o card inteiro em altura controlada; no celular permanece inteira como estava. */
@media (min-width: 641px) {
  .hero-header,
  header.hero,
  section.hero,
  .container > .hero,
  .container > header.hero,
  .container > section.hero,
  body > .container > header.hero,
  body > .container > section.hero {
    display: block !important;
    width: 100% !important;
    height: clamp(112px, 9.4vw, 138px) !important;
    min-height: 112px !important;
    max-height: 138px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #06101d !important;
    margin: 0 0 12px !important;
  }
  .hero-header img,
  header.hero > img,
  section.hero > img,
  .container > .hero > img,
  .container > header.hero > img,
  .container > section.hero > img,
  body > .container > header.hero > img,
  body > .container > section.hero > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: fill !important;
    object-position: center center !important;
    transform: none !important;
  }
}
@media (max-width: 640px) {
  .hero-header,
  header.hero,
  section.hero,
  .container > .hero,
  .container > header.hero,
  .container > section.hero,
  body > .container > header.hero,
  body > .container > section.hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
    line-height: 0 !important;
    margin: 0 0 8px !important;
  }
  .hero-header img,
  header.hero > img,
  section.hero > img,
  .container > .hero > img,
  .container > header.hero > img,
  .container > section.hero > img,
  body > .container > header.hero > img,
  body > .container > section.hero > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* ======================================================================
   MENU PÚBLICO / PARTICIPANTE — 20260712
   O menu só aparece depois de a sessão local ser validada no Supabase.
   Rotas privadas ficam invisíveis até a validação terminar, evitando flash
   de ranking, regras ou aniversariantes antes do redirecionamento ao login.
   ====================================================================== */
.nav[data-br-auth-menu] {
  visibility: hidden;
}
.nav[data-br-auth-menu][data-br-auth-ready="1"] {
  visibility: visible;
}
html.br-private-pending body {
  visibility: hidden !important;
}
.nav [hidden] {
  display: none !important;
}
.nav [data-br-auth-link] {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .nav [data-br-auth-link] { max-width: 155px; }
}


/* ======================================================================
   AVISOS LEGAIS PÚBLICOS — 2026-07-13
   Blocos contextuais, rodapé global, nota de fonte e botão de sugestões.
   ====================================================================== */
.br-legal-context {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(13, 31, 45, .86), rgba(7, 22, 25, .76));
  color: rgba(226, 232, 240, .86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  font-size: 12px;
  line-height: 1.55;
}
.br-legal-context[hidden] { display: none !important; }
.br-legal-context-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 11px;
  background: rgba(96, 165, 250, .10);
  font-size: 16px;
  line-height: 1;
}
.br-legal-context strong {
  display: inline;
  color: #dbeafe;
  font-weight: 950;
}
.br-legal-context p {
  display: inline;
  margin: 0;
  color: rgba(226, 232, 240, .84);
}
.br-legal-context-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 2px 0;
  background: rgba(148, 163, 184, .14);
}
.site-footer.br-disclaimer {
  text-align: left !important;
}
.br-footer-copy {
  color: rgba(226, 232, 240, .82);
}
.br-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-left: 4px;
  padding: 5px 11px;
  border: 1px solid rgba(217, 255, 118, .34);
  border-radius: 999px;
  background: rgba(163, 230, 53, .10);
  color: #eaffad;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  vertical-align: middle;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.br-feedback-button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 255, 118, .58);
  background: rgba(163, 230, 53, .17);
}
.br-feedback-button:focus-visible {
  outline: 3px solid rgba(96, 165, 250, .34);
  outline-offset: 2px;
}
.br-source-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.br-source-note summary {
  width: fit-content;
  color: #bfdbfe;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}
.br-source-note p {
  margin: 8px 0 0;
  max-width: 1040px;
  color: rgba(203, 213, 225, .78);
}
@media (max-width: 560px) {
  .br-legal-context {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 13px;
    border-radius: 15px;
    font-size: 11.5px;
  }
  .br-legal-context-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 14px;
  }
  .br-feedback-button {
    margin-top: 6px;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .br-feedback-button { transition: none; }
}


/* ======================================================================
   TABELA MOBILE — COMPACTAÇÃO NO LIMITE DAS COLUNAS FIXAS (2026-07-14)
   Reduz somente no celular a largura de POS/TIME e os espaçamentos internos,
   mantendo nomes como "Vasco da Gama" inteiros e a tabela desktop intacta.
   ====================================================================== */

/* ======================================================================
   TABELA MOBILE — PAINÉIS CONGELADOS (2026-07-14)
   Somente em telas pequenas: fixa POS/TIME na rolagem horizontal e dá
   suporte ao cabeçalho flutuante criado pelo index.html na rolagem vertical.
   A versão desktop permanece inalterada.
   ====================================================================== */
.tabela-mobile-frozen-head {
  display: none;
}

@media (max-width: 820px) {
  .tabela-br { --br-pos-col-width: 96px; }
  .tabela-br th:nth-child(1),
  .tabela-br td:nth-child(1) {
    width: var(--br-pos-col-width) !important;
    min-width: var(--br-pos-col-width) !important;
    max-width: var(--br-pos-col-width) !important;
    overflow: visible !important;
  }
  .tabela-br tbody tr {
    --br-tabela-row-bg: #08141b;
    background: var(--br-tabela-row-bg) !important;
  }
  .tabela-br tbody tr:nth-child(even) {
    --br-tabela-row-bg: #0a171f;
  }
  .tabela-br tbody tr.zona-libertadores {
    --br-tabela-row-bg: #0a1a18;
  }
  .tabela-br tbody tr.zona-prelibertadores {
    --br-tabela-row-bg: #111c18;
  }
  .tabela-br tbody tr.zona-rebaixamento {
    --br-tabela-row-bg: #18151b;
  }

  .tabela-br th:nth-child(1),
  .tabela-br td:nth-child(1),
  .tabela-br th:nth-child(2),
  .tabela-br td:nth-child(2) {
    position: sticky !important;
    background: var(--br-tabela-row-bg, #142027) !important;
    background-clip: padding-box !important;
  }
  .tabela-br th:nth-child(1),
  .tabela-br td:nth-child(1) {
    left: 0 !important;
    z-index: 7 !important;
  }
  .tabela-br th:nth-child(2),
  .tabela-br td:nth-child(2) {
    left: var(--br-pos-col-width) !important;
    z-index: 6 !important;
    box-shadow: 10px 0 14px -13px rgba(0, 0, 0, .95) !important;
  }
  .tabela-br thead th:nth-child(1),
  .tabela-br thead th:nth-child(2) {
    z-index: 12 !important;
    background: #142027 !important;
  }
  .tabela-br tbody td:nth-child(1),
  .tabela-br tbody td:nth-child(2) {
    background: var(--br-tabela-row-bg) !important;
  }

  .tabela-mobile-frozen-head {
    position: fixed;
    z-index: 480;
    overflow: hidden;
    pointer-events: none;
    border: 1px solid rgba(163, 230, 53, .18);
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: #142027;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
  }
  .tabela-mobile-frozen-head.is-visible {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .tabela-mobile-frozen-head-scroll {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tabela-mobile-frozen-head-scroll::-webkit-scrollbar {
    display: none;
  }
  .tabela-br-frozen-head-table {
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  .tabela-br-frozen-head-table thead th {
    top: auto !important;
    height: 100% !important;
    background: #142027 !important;
  }
}
/* ======================================================================
   EXECUÇÃO 8 — menu realmente suspenso em rolagem longa
   ----------------------------------------------------------------------
   A navegação continua rolável lateralmente, mas ganha fallback fixo via
   br-menu.js quando o sticky nativo deixa de acompanhar a página.
   ====================================================================== */
.br-nav-placeholder {
  display: none !important;
  width: 100% !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.br-nav-placeholder.is-active { display: block !important; }
.nav.br-nav-floating {
  position: fixed !important;
  top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  left: var(--br-nav-fixed-left, 0px) !important;
  width: var(--br-nav-fixed-width, auto) !important;
  max-width: var(--br-nav-fixed-width, none) !important;
  margin: 0 !important;
  z-index: 1800 !important;
  box-sizing: border-box !important;
  transform: translateZ(0);
}
@media (max-width: 820px) {
  .nav.br-nav-floating { top: calc(4px + env(safe-area-inset-top, 0px)) !important; }
}

/* ======================================================================
   SAÚDE OPERACIONAL — indicador mínimo junto ao horário da atualização
   ====================================================================== */
.br-update-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  vertical-align: .05em;
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .16);
}
html[data-br-update-status="ok"] .br-update-status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .16);
}
html[data-br-update-status="warning"] .br-update-status-dot {
  background: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .17);
}
html[data-br-update-status="error"] .br-update-status-dot {
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, .17);
}
