/* Repetidas do Concurso Anterior — padrões + histórico — shares freq-controls/chips/tabs/bar-wrap from mais-sorteados-frequencia.css */

/* Padrões table (modern grid rows) */
.rep-rows { min-width: 620px; display: flex; flex-direction: column; gap: 6px; }
.rep-row {
  display: grid;
  grid-template-columns: 110px 1.3fr 80px 90px 1.3fr;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}
.rep-row-head {
  padding: 0 18px 10px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}
.rep-rows-body .rep-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.rep-rows-body .rep-row:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.rep-cell { font-size: 14px; color: var(--text-main); }

/* Histórico table */
.rep-hist-rows { min-width: 560px; display: flex; flex-direction: column; gap: 6px; }
.rep-hist-row {
  display: grid;
  grid-template-columns: 90px 100px 1.2fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}
.rep-hist-row-head {
  padding: 0 18px 10px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}
.rep-hist-rows-body .rep-hist-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.rep-hist-rows-body .rep-hist-row:hover { background: #fafafa; }
.rep-hist-cell { font-size: 14px; color: var(--text-main); }
.rep-hist-cell-contest { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-main); }

/* Quantidade-repetidas badge */
.qtd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  background: var(--accent);
  color: #ffffff;
}
.qtd-badge-0   { background: #e0e0e0; color: #555; }
.qtd-badge-1   { background: #b3e5fc; color: #01579b; }
.qtd-badge-2   { background: #c8e6c9; color: #1b5e20; }
.qtd-badge-3   { background: #66bb6a; color: #ffffff; }
.qtd-badge-4   { background: #43a047; color: #ffffff; }
.qtd-badge-5   { background: #fb8c00; color: #ffffff; }
.qtd-badge-6   { background: #f4511e; color: #ffffff; }
.qtd-badge-7   { background: #e53935; color: #ffffff; }
.qtd-badge-hi  { background: #b71c1c; color: #ffffff; }

/* Dezenas list (history view) — neutral by default, amber highlight for repeated */
.dzn-list { display: flex; flex-wrap: wrap; gap: 4px; max-height: 64px; overflow-y: auto; }
.dzn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  background: #eceff1;
  color: #455a64;
}
.dzn-rep { background: #ffe082; color: #5d4037; border: 1.5px solid #f9a825; }

/* Occurrence / proportion bars (generic) */
.rep-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.rep-bar-bg { flex: 1; height: 7px; background: #eee; border-radius: 4px; overflow: hidden; }
.rep-bar-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.3s ease; }
.rep-bar-pct { font-size: 12px; color: var(--text-muted); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }

/* Pagination */
.rep-pag-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 4px; overflow-x: auto; }
.rep-pag-btns { display: flex; gap: 4px; flex-shrink: 0; }
.rep-pag-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.rep-pag-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-dark); background: #ffffff; }
.rep-pag-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rep-pag-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.rep-pag-active { background: var(--accent) !important; color: #ffffff !important; border-color: var(--accent) !important; font-weight: 700; }
.rep-pag-active:hover { background: var(--accent-dark) !important; color: #ffffff !important; border: 1px solid var(--accent-dark) !important; }

@media (max-width: 720px) {
  .rep-row { grid-template-columns: 90px 1.1fr 60px 70px 1.1fr; }
  .rep-hist-row { grid-template-columns: 70px 80px 1fr 1fr; }
}
