.jug-filtros-card .card-body {
  padding: 14px 18px !important;
}

/* Dash Dropdown (react-select v1) */
.jug-premium-dd .Select-control {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid #c9a227 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07) !important;
}

.jug-premium-dd .Select-placeholder,
.jug-premium-dd .Select-value-label,
.jug-premium-dd .Select-input > input {
  line-height: 34px !important;
  font-size: 0.84rem !important;
  color: #123a67 !important;
  font-weight: 700 !important;
}

.jug-premium-dd .Select-menu-outer {
  border-radius: 10px !important;
  border: 1px solid #d7e3f4 !important;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18) !important;
  z-index: 9999 !important;
}

.jug-filtros-card .perf-avanzado-btn {
  height: 32px !important;
  border-radius: 10px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

/* Encaje: controles más compactos y premium */
.jug-encaje-dd .Select-control {
  min-height: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

.jug-encaje-dd .Select-placeholder,
.jug-encaje-dd .Select-value-label,
.jug-encaje-dd .Select-input > input {
  line-height: 28px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

#jug-perfil-wrap {
  min-width: 190px !important;
  max-width: 260px !important;
  flex: 0 1 220px !important;
}

#jug-encaje-form .jug-encaje-multi-dd.Select--multi .Select-control {
  min-height: 30px !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#jug-encaje-form .jug-encaje-multi-dd.Select--multi .Select-value {
  border-radius: 12px !important;
  padding: 0 5px !important;
  margin: 1px 3px 1px 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(201, 162, 39, 0.75) !important;
  background: linear-gradient(180deg, #f9fbff 0%, #edf3ff 100%) !important;
}

#jug-encaje-form .jug-encaje-multi-dd.Select--multi .Select-value-label {
  font-weight: 700 !important;
  color: #0f3f78 !important;
}

#jug-encaje-form .jug-encaje-multi-dd.Select--multi .Select-value-icon {
  color: #0f3f78 !important;
  border-right: 1px solid rgba(201, 162, 39, 0.55) !important;
}

#jug-encaje-form .jug-encaje-multi-dd .Select-menu-outer,
#jug-liga-propia-form .jug-encaje-dd .Select-menu-outer {
  font-size: 0.74rem !important;
  max-height: 240px !important;
}

#jug-encaje-form .jug-encaje-multi-dd .Select-option,
#jug-liga-propia-form .jug-encaje-dd .Select-option,
#jug-encaje-form .jug-encaje-multi-dd .VirtualizedSelectOption,
#jug-liga-propia-form .jug-encaje-dd .VirtualizedSelectOption {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  line-height: 1.15 !important;
}

.jug-encaje-cta {
  box-shadow: 0 8px 16px rgba(0, 72, 154, 0.24) !important;
}

.jug-encaje-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 72, 154, 0.28) !important;
}

#jug-encaje-resultado table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

#jug-encaje-resultado .jug-encaje-table-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(10, 30, 60, 0.08);
  overflow: hidden;
}

#jug-encaje-resultado thead th {
  background: linear-gradient(180deg, #f2f5fb 0%, #edf2f9 100%) !important;
  color: #0d2f57 !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #d3dceb !important;
  vertical-align: middle !important;
}

#jug-encaje-resultado tbody td {
  font-size: 0.81rem !important;
  padding: 10px 14px !important;
  color: #14263b !important;
  vertical-align: middle !important;
  border-top: 1px solid #e6ebf3 !important;
}

#jug-encaje-resultado .jug-encaje-matrix-table tbody tr:nth-child(even) td {
  background: rgba(240, 244, 251, 0.28);
}

#jug-encaje-resultado .jug-encaje-matrix-table tbody tr:hover td {
  background: rgba(225, 234, 247, 0.42);
}

#jug-encaje-resultado .jug-encaje-matrix-table thead th:first-child,
#jug-encaje-resultado .jug-encaje-matrix-table tbody td:first-child {
  text-align: left !important;
}

#jug-encaje-resultado .jug-encaje-matrix-table thead th:not(:first-child),
#jug-encaje-resultado .jug-encaje-matrix-table tbody td:not(:first-child) {
  text-align: center !important;
}

.jug-encaje-matrix-table .jug-encaje-rank-main {
  font-weight: 900;
  color: #123a67;
  line-height: 1.15;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.jug-encaje-matrix-table .jug-encaje-rank-sub {
  font-size: 0.78rem;
  color: #5f728a;
  line-height: 1.2;
  margin-top: 3px;
  font-weight: 700;
}

.jug-encaje-matrix-table .jug-encaje-empty-cell {
  font-size: 0.77rem;
  color: #66788f;
  line-height: 1.2;
  font-weight: 600;
  max-width: 220px;
  margin: 0 auto;
}

.jug-encaje-liga-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.jug-encaje-liga-cell:hover .jug-encaje-liga-text {
  text-decoration: underline;
}

.jug-encaje-liga-flag {
  width: 12px;
  height: 9px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
  flex: 0 0 auto;
}

.jug-encaje-liga-flag-placeholder {
  width: 12px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
}

.jug-encaje-liga-text {
  font-weight: 700;
  color: #1d3552;
}

/* Jugadores: selector Perfil/Resto compacto (sin ocupar todo el ancho) */
#jug-top-bottom-scope-wrap {
  text-align: center;
}

#jug-top-bottom-scope.mapa-seg-group {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 auto 4px auto !important;
}
