.sim-header-badge {
  color: #004898 !important;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.sim-header-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  margin-top: 2px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.sim-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.20);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.92) 100%);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 1px 0 rgba(255,255,255,0.84) inset;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sim-header-chip-value {
  color: #004898;
  font-size: 0.66rem;
  font-weight: 700;
}

.sim-header-chip-player {
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.95) 0%, rgba(223, 236, 255, 0.92) 100%);
  border-color: rgba(0, 72, 152, 0.16);
}

.sim-header-chip-league {
  background: linear-gradient(180deg, rgba(255, 249, 233, 0.98) 0%, rgba(251, 241, 210, 0.94) 100%);
  border-color: rgba(201, 162, 39, 0.24);
}

.sim-header-chip-profile {
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.98) 0%, rgba(232, 241, 255, 0.94) 100%);
  border-color: rgba(76, 118, 186, 0.18);
}

.sim-header-chip-minutes {
  background: linear-gradient(180deg, rgba(241, 248, 238, 0.98) 0%, rgba(231, 242, 226, 0.94) 100%);
  border-color: rgba(78, 144, 83, 0.18);
}

.sim-header-empty {
  color: #6c83a4;
  font-size: 0.70rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Badge clicable — icono editar en chips */
.sim-header-chip-edit {
  font-size: 0.60rem;
  opacity: 0;
  margin-left: 5px;
  transition: opacity 0.15s;
  color: #6c83a4;
}

#sim-header-context-badge[style*="pointer"] .sim-header-chip {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#sim-header-context-badge[style*="pointer"]:hover .sim-header-chip {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 72, 152, 0.15) !important;
}
#sim-header-context-badge[style*="pointer"]:hover .sim-header-chip-edit {
  opacity: 1;
}
#sim-header-context-badge[style*="pointer"]:active .sim-header-chip {
  transform: translateY(0);
}

/* Header toggle: simplificar esquina derecha */
.tabla-ranking-header > div > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tabla-ranking-header > div > div:last-child > span:first-child:not(#sim-historico-mode-help) {
  display: none !important;
}

#sim-historico-mode-help {
  order: -1;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
