/* Canonical roster, positions and player identity presentation. */
.roster-row.is-goalkeeper {
  border-left: 4px solid #111;
  background: linear-gradient(90deg, #fffbe8 0, #fff 28%);
  padding-left: 10px;
}
.roster-row.is-goalkeeper .dorsal {
  background: #111;
  color: #ffe500;
  border-color: #111;
}
.roster-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.goalkeeper-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #111;
  color: #ffe500;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.goalkeeper-field {
  align-self: end;
}
.goalkeeper-toggle {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #deded9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.goalkeeper-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #ffe500;
  flex: 0 0 auto;
}
.goalkeeper-toggle span {
  display: grid;
  gap: 2px;
}
.goalkeeper-toggle strong {
  font-size: 11px;
}
.goalkeeper-toggle small {
  font-size: 8px;
  color: #777;
  font-weight: 600;
}
@media (max-width: 720px) {
  .roster-row.is-goalkeeper {
    padding-left: 8px;
  }
  .goalkeeper-badge {
    font-size: 6.5px;
  }
  .goalkeeper-toggle {
    min-height: 52px;
  }
}

.roster-toolbar-v296 {
  align-items: flex-end;
}
.roster-toolbar-actions,
.admin-player-actions-v296 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-order-caption {
  font-size: 10px;
  margin-top: 3px;
}
.roster-sort {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #f1f2f2;
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 2px;
}
.roster-sort button {
  border: 0;
  background: transparent;
  color: #6d7175;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.roster-sort button.active {
  background: #111;
  color: var(--yellow);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
.roster-player-main {
  min-width: 0;
}
.roster-positions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.position-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0f1f2;
  color: #555b60;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.position-badge.goalkeeper {
  background: #111;
  color: var(--yellow);
}
.roster-no-position {
  font-size: 8px;
  color: #999;
  font-weight: 700;
}
.position-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.position-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #deded9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #111 !important;
}
.position-check:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(255, 229, 0, 0.35);
}
.position-check.goalkeeper:has(input:checked) {
  background: #fffbe1;
}
.position-check input {
  width: 20px !important;
  height: 20px;
  accent-color: #111;
  flex: 0 0 auto;
}
.position-check span {
  display: grid;
  gap: 2px;
}
.position-check strong {
  font-size: 11px;
}
.position-check small {
  font-size: 8px;
  color: #777;
  font-weight: 600;
}
.position-help {
  font-size: 9px;
  margin-top: 7px;
}
.admin-player-filter-v296 {
  align-items: flex-end;
}
.admin-player-filter-v296 > label {
  min-width: min(360px, 100%);
}
@media (max-width: 720px) {
  .roster-toolbar-v296 {
    align-items: stretch;
  }
  .roster-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .roster-sort {
    flex: 1;
  }
  .roster-sort button {
    flex: 1;
    padding: 8px 7px;
  }
  .roster-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    row-gap: 5px;
  }
  .roster-row > .dorsal {
    grid-row: 1 / span 2;
  }
  .roster-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .roster-row .roster-state {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .roster-row > .btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 0;
    padding: 8px;
  }
  .roster-row > .btn .icon {
    margin: 0;
  }
  .position-check-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-player-actions-v296 {
    width: 100%;
    justify-content: space-between;
  }
  .admin-player-actions-v296 .roster-sort {
    flex: 1;
  }
  .admin-player-filter-v296 {
    align-items: stretch;
  }
}
@media (max-width: 430px) {
  .position-check-grid {
    grid-template-columns: 1fr;
  }
  .roster-toolbar-actions > .btn {
    width: 100%;
  }
  .admin-player-actions-v296 > .btn {
    width: 100%;
  }
}

.roster-name-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.player-alias {
  font-size: 10px;
  font-weight: 850;
  color: #6d7073;
  font-style: italic;
}
.field-help {
  font-size: 9px;
  color: #777;
  line-height: 1.35;
  margin-top: -2px;
}
.admin-player-table .roster-name-line {
  display: grid;
  gap: 2px;
}
.admin-player-table .player-alias {
  font-size: 9px;
}
@media (max-width: 760px) {
  .roster-name-line {
    gap: 5px;
  }
  .player-alias {
    font-size: 9px;
  }
}
