/* ============================================================
   FILTROS PREMIUM — redesign do bloco #filters no BIA+
   ============================================================
   Princípios:
   - Cor de acento única (ciano #38bdf8) só pro estado ativo
   - Bordas finíssimas (1px) com baixa saturação
   - Sem gradientes, sem glow, sem caps lock dramático
   - Layout em grid (Status + Posição lado a lado em desktop)
   - Tipografia escalonada: labels uppercase 10px, chips 11-12px
   - Override via .page--biaplus pra evitar afetar outras páginas
============================================================ */

/* === Tokens locais (variáveis encapsuladas no scope da página) === */
.page--biaplus #filters {
  --fp-bg:           rgba(14, 22, 32, 0.5);
  --fp-border:       rgba(148, 163, 184, 0.10);
  --fp-border-soft:  rgba(148, 163, 184, 0.15);
  --fp-text:         #e2e8f0;
  --fp-text-muted:   #94a3b8;
  --fp-text-dim:     #64748b;
  --fp-accent:       #38bdf8;
  --fp-accent-soft:  rgba(56, 189, 248, 0.10);
  --fp-accent-border:rgba(56, 189, 248, 0.45);
  --fp-accent-text:  #7dd3fc;
  --fp-radius-card:  14px;
  --fp-radius-chip:  999px;
  --fp-radius-sm:    6px;
  --fp-radius-md:    8px;
}

/* === Card container === */
.page--biaplus #filters.panel.filters {
  background: rgba(14, 22, 32, 0.6);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-card);
  padding: 18px 20px;
  box-shadow: none;
}

/* === Toolbar topo: busca + sliders + botões agrupados === */
.page--biaplus #filters .toolbar.space {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page--biaplus #filters .toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.page--biaplus #filters .toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
}

/* Busca */
.page--biaplus #filters .control input[type="search"] {
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--fp-text);
  outline: none;
  min-width: 220px;
  transition: border-color 0.15s, background 0.15s;
}
.page--biaplus #filters .control input[type="search"]:hover {
  border-color: rgba(148, 163, 184, 0.25);
}
.page--biaplus #filters .control input[type="search"]:focus {
  border-color: var(--fp-accent-border);
  background: rgba(15, 23, 32, 0.85);
}
.page--biaplus #filters .control input[type="search"]::placeholder {
  color: var(--fp-text-dim);
}

/* Sliders compactos */
.page--biaplus #filters .control.slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
}
.page--biaplus #filters .control.slider .muted:first-child {
  font-size: 11px;
  color: var(--fp-text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.page--biaplus #filters .control.slider .muted:last-child {
  font-size: 11px;
  color: var(--fp-text);
  font-weight: 600;
  min-width: 16px;
  text-align: right;
}
.page--biaplus #filters .control.slider input[type="range"] {
  width: 70px;
  height: 3px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.page--biaplus #filters .control.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--fp-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0e1620;
}
.page--biaplus #filters .control.slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--fp-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0e1620;
}

/* Esconde "Mais colunas" — sempre ON, ruído visual */
.page--biaplus #filters #btn-expand { display: none !important; }

/* Botões toggle compactos (toolbar segmentada) */
.page--biaplus #filters .toolbar-right .btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: var(--fp-radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-width: auto;
  box-shadow: none;
}
.page--biaplus #filters .toolbar-right .btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--biaplus #filters .toolbar-right .btn.active {
  background: var(--fp-accent-soft);
  color: var(--fp-accent-text);
}
/* esconde emojis dos botões — só texto limpo */
.page--biaplus #filters .toolbar-right .btn::first-letter {
  font-size: inherit;
}

/* === Filters body: layout em grid (2 colunas: Status | Posições, Clubes span) === */
.page--biaplus #filters .filters-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 6px;
  align-items: start;
}

/* 4 filhos diretos: div Status (1), div Posições (2), .filters-clubes-header (3), #chips (4) */
.page--biaplus #filters .filters-body > :nth-child(1) { grid-column: 1; grid-row: 1; }
.page--biaplus #filters .filters-body > :nth-child(2) { grid-column: 2; grid-row: 1; }
.page--biaplus #filters .filters-body > :nth-child(3) {
  grid-column: 1 / -1; grid-row: 2; margin-top: 14px;
}
.page--biaplus #filters .filters-body > :nth-child(4) {
  grid-column: 1 / -1; grid-row: 3;
}

/* Mobile: colapsa pra 1 coluna */
@media (max-width: 720px) {
  .page--biaplus #filters .filters-body {
    grid-template-columns: 1fr;
  }
  .page--biaplus #filters .filters-body > * {
    grid-column: 1;
    grid-row: auto;
  }
}

/* === Labels de seção (Status, Posições, Clubes) === */
.page--biaplus #filters .filters-label,
.page--biaplus #filters .filters-clubes-header label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  margin-bottom: 0;
  display: block;
  line-height: 1.4;
}

/* === Status chips === */
.page--biaplus #filters #status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}
.page--biaplus #filters #status-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-chip);
  color: var(--fp-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
  text-transform: none;
  line-height: 1.4;
}
.page--biaplus #filters #status-badges .badge:hover {
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--fp-text);
}
.page--biaplus #filters #status-badges .badge.active {
  background: var(--fp-accent-soft);
  border-color: var(--fp-accent-border);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* Bolinhas semânticas dos status (sutis) */
.page--biaplus #filters #status-badges .badge i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  opacity: 0.7; display: inline-block;
}
.page--biaplus #filters #status-badges .badge-provavel    { color: #86efac; border-color: rgba(34, 197, 94, 0.30); }
.page--biaplus #filters #status-badges .badge-duvida      { color: #fcd34d; border-color: rgba(245, 158, 11, 0.30); }
.page--biaplus #filters #status-badges .badge-suspenso    { color: #fca5a5; border-color: rgba(239, 68, 68, 0.30); }
.page--biaplus #filters #status-badges .badge-contundido  { color: #fdba74; border-color: rgba(180, 83, 9, 0.30); }
.page--biaplus #filters #status-badges .badge-nulo        { color: var(--fp-text-muted); }
.page--biaplus #filters #status-badges .badge.active.badge-provavel    { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.50); }
.page--biaplus #filters #status-badges .badge.active.badge-duvida      { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.50); }
.page--biaplus #filters #status-badges .badge.active.badge-suspenso    { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.50); }
.page--biaplus #filters #status-badges .badge.active.badge-contundido  { background: rgba(180,83,9,0.10); border-color: rgba(180,83,9,0.50); }
.page--biaplus #filters #status-badges .badge.active.badge-nulo,
.page--biaplus #filters #status-badges .badge-nulo.active {
  background: var(--fp-accent-soft); border-color: var(--fp-accent-border); color: var(--fp-accent-text);
}

/* === Posição chips === */
.page--biaplus #filters #chips-pos-wrap { margin: 0; }
.page--biaplus #filters #chips-pos {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.page--biaplus #filters #chips-pos .chip {
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-chip);
  color: var(--fp-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.page--biaplus #filters #chips-pos .chip:hover {
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--fp-text);
}
.page--biaplus #filters #chips-pos .chip.active {
  background: var(--fp-accent-soft);
  border-color: var(--fp-accent-border);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* === Clubes: header com ações inline === */
.page--biaplus #filters .filters-clubes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.page--biaplus #filters .filters-clubes-header .clubs-actions {
  display: inline-flex;
  gap: 12px;
}
.page--biaplus #filters .filters-clubes-header .clubs-actions .btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--fp-text-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: none;
  border-radius: 0;
}
.page--biaplus #filters .filters-clubes-header .clubs-actions .btn:hover {
  color: var(--fp-accent-text);
  background: transparent;
}

/* === Grid de chips de clube === */
.page--biaplus #filters #chips.chips-clubes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 5px;
  margin: 0;
}
.page--biaplus #filters #chips.chips-clubes .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-sm);
  color: var(--fp-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
  text-transform: none;
  line-height: 1.4;
  min-height: 28px;
}
.page--biaplus #filters #chips.chips-clubes .chip:hover {
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--fp-text);
}
.page--biaplus #filters #chips.chips-clubes .chip.active {
  background: var(--fp-accent-soft);
  border-color: var(--fp-accent-border);
  color: var(--fp-accent-text);
}
.page--biaplus #filters #chips.chips-clubes .chip img {
  width: 16px; height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* === Esconde elementos legados que poluem (caso existam) === */
.page--biaplus #filters .panel-header,
.page--biaplus #filters .filters-meta { display: none; }

/* ============================================================
   Botões eliminados da UI (handlers continuam no JS, só ocultos).
   Tendência: biaOn=true por default no JS, coluna FORMA sempre visível.
   BIA PLUS:  biaPlusColOn=true forçado em init+render, coluna sempre visível.
============================================================ */
.page--biaplus #filters #btn-trend,
.page--biaplus #filters #btn-biaplus { display: none !important; }

/* ============================================================
   TABELA PREMIUM — redesign do bloco #bia-ranking no BIA+
   Coerente com o card de filtros: mesma paleta, mesma borda,
   mesma tipografia de labels.
============================================================ */

/* === Card container — irmão visual do card de filtros === */
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel).panel {
  background: rgba(14, 22, 32, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: none;
  margin-top: 14px;
}

/* === Header da seção (Ranking + contador) === */
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  border: none;
  padding: 0;
  background: none;
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  margin: 0;
  text-transform: none;
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-meta {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.02em;
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-meta #count {
  color: #94a3b8;
  font-weight: 600;
}

/* === Wrapper da tabela com borda sutil === */
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
}

/* === Tabela base === */
.page--biaplus #grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

/* === Header (thead) — tipografia de seção, igual labels dos filtros === */
.page--biaplus #grid thead {
  background: rgba(15, 23, 32, 0.5);
}
.page--biaplus #grid thead th {
  padding: 9px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.12s;
}
.page--biaplus #grid thead th:hover {
  color: #cbd5e1;
}
.page--biaplus #grid thead th.num {
  text-align: right;
}
.page--biaplus #grid thead th.sorted {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.04);
}

/* Setas de sort — só na coluna ATIVA, e em hover */
.page--biaplus #grid thead th .sort {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  color: transparent;
  transition: color 0.12s;
}
.page--biaplus #grid thead th:hover .sort {
  color: #475569;
}
.page--biaplus #grid thead th.sorted .sort {
  color: #38bdf8;
}

/* === Corpo (tbody) — linhas com hover, bordas finas === */
.page--biaplus #grid tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  transition: background 0.12s;
}
.page--biaplus #grid tbody tr:last-child {
  border-bottom: none;
}
.page--biaplus #grid tbody tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

/* === Células base === */
.page--biaplus #grid tbody td {
  padding: 10px 10px;
  font-size: 12px;
  color: #cbd5e1;
  vertical-align: middle;
  border: none;
  background: transparent;
}
.page--biaplus #grid tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* === Célula CLUBE (escudo + sigla) === */
.page--biaplus #grid tbody td.club {
  padding: 10px 12px;
}
.page--biaplus #grid tbody td.club img {
  width: 18px; height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

/* === Coluna NOME — destaque (peso 500), truncate === */
.page--biaplus #grid tbody td[data-k="Nome"] {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* === Coluna POS — discreta, peso fraco === */
.page--biaplus #grid tbody td[data-k="PosAbbr"] {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
}

/* === Heatmap MUITO mais sutil (override das classes c-green/yellow/orange/red) === */
.page--biaplus #grid tbody td.c-green {
  background: rgba(16, 185, 129, 0.10) !important;
  color: #cbd5e1 !important;
}
.page--biaplus #grid tbody td.c-yellow {
  background: rgba(56, 189, 248, 0.08) !important;
  color: #cbd5e1 !important;
}
.page--biaplus #grid tbody td.c-orange {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #cbd5e1 !important;
}
.page--biaplus #grid tbody td.c-red {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #cbd5e1 !important;
}

/* === BIA_mod cell (FORMA) — anula bg da célula (badge minimalista assume) === */
.page--biaplus #grid tbody td.forma-cell,
.page--biaplus #grid tbody td.bia-cell {
  background: transparent !important;
}

/* === Divisor de grupo de colunas (col-group-start) === */
.page--biaplus #grid tbody td.col-group-start,
.page--biaplus #grid thead th.col-group-start {
  border-left: 1px solid rgba(148, 163, 184, 0.06);
}

/* === Scrollbar customizada da .table-wrap === */
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-wrap::-webkit-scrollbar {
  height: 8px; width: 8px;
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 32, 0.4);
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.20);
  border-radius: 999px;
}
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) .table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.35);
}

/* === Mobile: padding interno reduzido === */
@media (max-width: 720px) {
  :is(.page--biaplus #bia-ranking, .page--biaplus #table-panel).panel { padding: 14px 14px; }
  .page--biaplus #grid tbody td { padding: 9px 8px; }
  .page--biaplus #grid thead th { padding: 8px 8px; }
}

/* ============================================================
   Suporte a #table-panel (Participações) — center-num em vez de num
   biaparticipa.js usa "center-num" pra centralizar valores numéricos
============================================================ */
:is(.page--biaplus #bia-ranking, .page--biaplus #table-panel) thead th.center-num {
  text-align: center;
}
.page--biaplus #table-panel #grid tbody td.num {
  text-align: center;
}
.page--biaplus #table-panel #grid tbody td.num.sorted,
.page--biaplus #table-panel #grid thead th.sorted {
  background: rgba(56, 189, 248, 0.04);
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
/* ============================================================
   Heatmap sutil (override do CSS injetado dinamicamente pelo
   biaparticipa.js, que usa #grid.heat-on td.num.c-X com cores
   fortes). Specificity reforçada com .page--biaplus + body.
============================================================ */
body.page--biaplus #grid.heat-on td.c-green,
body.page--biaplus #grid td.c-green {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}
body.page--biaplus #grid.heat-on td.c-yellow,
body.page--biaplus #grid td.c-yellow {
  background: rgba(56, 189, 248, 0.10) !important;
  color: #cbd5e1 !important;
}
body.page--biaplus #grid.heat-on td.c-orange,
body.page--biaplus #grid td.c-orange {
  background: rgba(245, 158, 11, 0.10) !important;
  color: #cbd5e1 !important;
}
body.page--biaplus #grid.heat-on td.c-red,
body.page--biaplus #grid td.c-red {
  background: rgba(239, 68, 68, 0.10) !important;
  color: #cbd5e1 !important;
}

/* ============================================================
   Slider G+A em Participações — mesma estética dos demais sliders.
   biaparticipa.js insere via JS com class="participa-minga"; aqui
   aplicamos o mesmo visual de .control.slider (pílula compacta).
============================================================ */
.page--biaplus #filters .participa-minga {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
  margin: 0;
}
.page--biaplus #filters .participa-minga > span:first-child {
  font-size: 11px;
  color: var(--fp-text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.page--biaplus #filters .participa-minga .participa-minga-val {
  font-size: 11px;
  color: var(--fp-text);
  font-weight: 600;
  min-width: 16px;
  text-align: right;
}
.page--biaplus #filters .participa-minga input[type="range"] {
  width: 70px;
  height: 3px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.page--biaplus #filters .participa-minga input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 12px;
  background: var(--fp-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0e1620;
}
.page--biaplus #filters .participa-minga input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--fp-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0e1620;
}

/* ============================================================
   RECORRÊNCIA — adaptações específicas
   - Grid de chips de clube usa #club-chips (não #chips)
   - Toolbar tem .mando-toggle (Ambos/Em casa/Fora) injetado por JS
============================================================ */

/* Estende todas as regras do #chips pra cobrir #club-chips também */
.page--biaplus #filters #club-chips.chips-clubes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 5px;
  margin: 0;
}
.page--biaplus #filters #club-chips.chips-clubes .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-sm);
  color: var(--fp-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
  text-transform: none;
  line-height: 1.4;
  min-height: 28px;
}
.page--biaplus #filters #club-chips.chips-clubes .chip:hover {
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--fp-text);
}
.page--biaplus #filters #club-chips.chips-clubes .chip.active {
  background: var(--fp-accent-soft);
  border-color: var(--fp-accent-border);
  color: var(--fp-accent-text);
}
.page--biaplus #filters #club-chips.chips-clubes .chip img {
  width: 16px; height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mando-toggle (Ambos / Em casa / Fora) — toolbar segmentada
   Mesma estética dos botões do BIA+ na toolbar-right (compactos, sutis). */
.page--biaplus #filters .mando-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  margin-right: 6px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
}
.page--biaplus #filters .mando-toggle .mando-toggle__btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: var(--fp-radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  line-height: 1.4;
}
.page--biaplus #filters .mando-toggle .mando-toggle__btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--biaplus #filters .mando-toggle .mando-toggle__btn.is-active {
  background: var(--fp-accent-soft);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* ============================================================
   CEDIMENTO — adaptações específicas
   - Mais filtros: Posição + Lado + Janela + Recorte + Mando
   - Usa componentes próprios: .ced-row, .ced-toggle, .seg, .seg-btn
   - Desliga grid 2-col (filtros não cabem) e usa flow vertical
============================================================ */

/* Desliga grid 2-col pra Cedimento (volta pra flow vertical) */
.page--cedimento #filters .filters-body {
  display: block;
}
.page--cedimento #filters .filters-body > * {
  grid-column: auto !important;
  grid-row: auto !important;
  margin-top: 14px;
}
.page--cedimento #filters .filters-body > :first-child { margin-top: 0; }

/* .ced-row — linha de grupos de toggle (flex com wrap) */
.page--cedimento #filters .ced-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
}

/* .ced-toggle — grupo individual (label em cima, seg embaixo) */
.page--cedimento #filters .ced-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page--cedimento #filters .ced-toggle__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  line-height: 1.4;
}

/* .seg — container de botões segmentados (mesma estética da .mando-toggle) */
.page--cedimento #filters .seg {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: var(--fp-radius-md);
}
.page--cedimento #filters .seg .seg-btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: var(--fp-radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  line-height: 1.4;
  min-width: auto;
}
.page--cedimento #filters .seg .seg-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--cedimento #filters .seg .seg-btn.is-active,
.page--cedimento #filters .seg .seg-btn.active,
.page--cedimento #filters .seg .seg-btn[aria-selected="true"] {
  background: var(--fp-accent-soft);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* ============================================================
   BOLA PARADA — esconde botões "visuais" sem handler
   - btn-expand: já escondido por regra geral
   - btn-trend e btn-biaplus: estão no HTML só pra ficar "igual ao BIA+",
     mas não controlam nada nessa página. Escondemos pra deixar a toolbar
     mais limpa (só ATIVAR CORES sobra).
============================================================ */
.page--bola-parada #filters #btn-trend,
.page--bola-parada #filters #btn-biaplus { display: none !important; }

/* ============================================================
   ESCALAÇÃO OTIMIZADA — adaptação premium
   Body usa class="page--escalacao" (não page--biaplus).
   Aplica os mesmos tokens visuais nos cards, headings, abas,
   barras de progresso e tabela. Não toca no campo (.pitch).
============================================================ */

/* Tokens locais (encapsulados — mesma família do filtros-premium) */
.page--escalacao {
  --fp-bg:           rgba(14, 22, 32, 0.5);
  --fp-border:       rgba(148, 163, 184, 0.10);
  --fp-border-soft:  rgba(148, 163, 184, 0.15);
  --fp-text:         #e2e8f0;
  --fp-text-muted:   #94a3b8;
  --fp-text-dim:     #64748b;
  --fp-accent:       #38bdf8;
  --fp-accent-soft:  rgba(56, 189, 248, 0.10);
  --fp-accent-border:rgba(56, 189, 248, 0.45);
  --fp-accent-text:  #7dd3fc;
}

/* === Cards .panel (side, mobile-list) — pitch-wrap mantém estilo próprio === */
.page--escalacao .panel.side,
.page--escalacao .panel.mobile-list {
  background: rgba(14, 22, 32, 0.6);
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  box-shadow: none;
}

/* === H3 (Resumo do time, Otimização por setores, Destaque, Lista dos 12) === */
.page--escalacao .panel.side h3,
.page--escalacao .panel.mobile-list h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  margin: 18px 0 10px;
  border: none;
  padding: 0;
}
.page--escalacao .panel.side h3:first-child,
.page--escalacao .panel.mobile-list h3:first-child {
  margin-top: 0;
}

/* === Abas (.side-tabs / .side-tab) — toolbar segmentada === */
.page--escalacao .side-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 16px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
}
.page--escalacao .side-tabs .side-tab {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  line-height: 1.4;
}
.page--escalacao .side-tabs .side-tab:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--escalacao .side-tabs .side-tab.is-active,
.page--escalacao .side-tabs .side-tab[aria-selected="true"] {
  background: var(--fp-accent-soft);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* === Métricas (.kv / .kv-big) — label uppercase + valor peso 500 === */
.page--escalacao .kv {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.page--escalacao .kv-big {
  padding: 12px 14px;
  background: rgba(15, 23, 32, 0.5);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 8px 0;
}
.page--escalacao .kv-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
}
.page--escalacao .kv-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}

/* === Barras de progresso (.bar / .fill) === */
.page--escalacao .kv.row {
  font-size: 12px;
  color: var(--fp-text-muted);
}
.page--escalacao .kv.row > span:first-child {
  min-width: 70px;
  font-weight: 500;
  color: var(--fp-text);
}
.page--escalacao .bar {
  flex: 1;
  height: 4px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.page--escalacao .bar .fill {
  height: 100%;
  background: var(--fp-accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.page--escalacao .kv.row .mono {
  min-width: 40px;
  text-align: right;
  font-size: 11px;
  color: var(--fp-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* === Side note (descrição da aba) === */
.page--escalacao .side-note {
  font-size: 11px;
  color: var(--fp-text-dim);
  margin: 4px 0 12px;
  line-height: 1.5;
}

/* === Tabela .tabela-time (desktop + mobile) === */
.page--escalacao .tabela-time {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.page--escalacao .tabela-time thead {
  background: rgba(15, 23, 32, 0.5);
}
.page--escalacao .tabela-time thead th {
  padding: 9px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  border-bottom: 1px solid var(--fp-border);
  background: transparent;
  text-align: left;
  white-space: nowrap;
}
.page--escalacao .tabela-time thead th.col-price,
.page--escalacao .tabela-time thead th.col-media,
.page--escalacao .tabela-time thead th.col-mb {
  text-align: right;
}
.page--escalacao .tabela-time tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  transition: background 0.12s;
}
.page--escalacao .tabela-time tbody tr:hover {
  background: rgba(56, 189, 248, 0.04);
}
.page--escalacao .tabela-time tbody tr:last-child { border-bottom: none; }
.page--escalacao .tabela-time tbody td {
  padding: 10px 10px;
  color: #cbd5e1;
  vertical-align: middle;
  border: none;
  background: transparent;
}
.page--escalacao .tabela-time tbody td.col-price,
.page--escalacao .tabela-time tbody td.col-media,
.page--escalacao .tabela-time tbody td.col-mb {
  text-align: right;
}
.page--escalacao .tabela-time tbody td img {
  width: 18px; height: 18px; object-fit: contain; vertical-align: middle;
}

/* === Lista mobile — cards de resumo === */
.page--escalacao .resumo-mobile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.page--escalacao .resumo-mobile .card {
  background: rgba(15, 23, 32, 0.5);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--fp-text-muted);
}
.page--escalacao .resumo-mobile .card b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}

/* === Pitch summary embaixo do campo (mantém visual mas alinhado) === */
.page--escalacao .pitch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 14px;
  margin-top: 8px;
  background: rgba(15, 23, 32, 0.5);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fp-text-muted);
}
.page--escalacao .pitch-summary .stat b {
  color: var(--fp-text);
  font-weight: 600;
}

/* ============================================================
   ESCALAÇÃO OTIMIZADA — barra superior .hbar
   Cartoletas, Incluir Dúvida, Modo, Montar equipe, Atualizar rodada
============================================================ */

/* === Container da barra === */
.page--escalacao .hbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14, 22, 32, 0.6);
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.page--escalacao .hbar-left,
.page--escalacao .hbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page--escalacao .hbar-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page--escalacao .hbar-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === Labels (Cartoletas:, Modo:, Incluir "Dúvida") === */
.page--escalacao .hbar .stat.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  white-space: nowrap;
}

/* === Input step (Cartoletas: − [180] +) — pílula compacta === */
.page--escalacao .hbar .input-step {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
}
.page--escalacao .hbar .input-step button {
  width: 26px; height: 26px;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.page--escalacao .hbar .input-step button:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--escalacao .hbar .input-step input {
  width: 56px;
  background: transparent;
  border: none;
  color: var(--fp-text);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
}

/* === Toggle switch (Incluir "Dúvida") === */
.page--escalacao .hbar .switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.page--escalacao .hbar .swcheck {
  appearance: none;
  -webkit-appearance: none;
  width: 32px; height: 18px;
  background: rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
  margin: 0;
  border: none;
}
.page--escalacao .hbar .swcheck::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: left 0.15s ease, background 0.15s;
}
.page--escalacao .hbar .swcheck:checked {
  background: var(--fp-accent);
}
.page--escalacao .hbar .swcheck:checked::after {
  left: 16px;
  background: #fff;
}

/* === Chips de modo (Balanceado / Fechamento de Defesa) — segmented === */
.page--escalacao .hbar .mode-chips {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
}
.page--escalacao .hbar .chip-mode {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: transparent;
  color: var(--fp-text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: none;
  line-height: 1.4;
}
.page--escalacao .hbar .chip-mode:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
}
.page--escalacao .hbar .chip-mode.is-active {
  background: var(--fp-accent-soft);
  color: var(--fp-accent-text);
  font-weight: 600;
}

/* === Botão "Montar equipe otimizada" — primário sutil === */
.page--escalacao .hbar .btn,
.page--escalacao .hbar #run {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.10);
  color: var(--fp-accent-text);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
}
.page--escalacao .hbar .btn:hover:not(:disabled),
.page--escalacao .hbar #run:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.65);
}
.page--escalacao .hbar .btn:disabled,
.page--escalacao .hbar #run:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === Botão "Atualizar rodada" — ghost (refresh) === */
.page--escalacao .hbar .btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fp-text-muted);
  border: 1px solid var(--fp-border-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: none;
}
.page--escalacao .hbar .btn-refresh:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--fp-text);
  border-color: rgba(148, 163, 184, 0.30);
}
.page--escalacao .hbar .btn-refresh .i {
  width: 14px; height: 14px;
  fill: currentColor;
}

/* === Indicador de status (ready) === */
.page--escalacao .hbar .ready-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}
.page--escalacao .hbar .ready-indicator.is-loading {
  background: rgba(245, 158, 11, 0.7);
  animation: fp-pulse 1.2s ease-in-out infinite;
}
@keyframes fp-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
