.PlayerList {
  display: flex;
  position: relative;
  padding: 0.5em;
  user-select: none;
  flex-direction: column;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.PlayerList .Name {
  flex-grow: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.PlayerList .NoNetwork {
  display: flex;
  justify-self: flex-end;
  width: 1em;
  height: 1em;
  background-image: url("./assets/no-network.png");
  background-size: contain;
  background-position: center; 
  background-repeat: no-repeat;
}

.PlayerList .Unselected {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

/* Player name in the Unselected list... */
.PlayerList .Unselected > div:nth-child(2) > div > div:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.PlayerList .Unselected > div:nth-child(2) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.PlayerList .PlayerSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex-direction: row;
  align-items: start;
}

.PlayerList .PlayerSelector.MuiList-padding {
  padding: 0;
}

.PlayerList .PlayerSelector .MuiTypography-body1 {
  font-size: 0.8rem;
/*  white-space: nowrap;*/
}

.PlayerList .PlayerSelector .MuiTypography-body2 {
  font-size: 0.7rem;
  white-space: nowrap;
}

.PlayerList .PlayerSelector .PlayerEntry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* min-width: 10rem; */
  padding: 0.25rem;
  justify-content: flex-end;
  max-width: min-content;
}

/* .PlayerList .PlayerSelector .PlayerEntry > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  margin-bottom: 0.25em;
} */

/* .PlayerList .PlayerEntry[data-selectable=true]:hover {
  border-color: rgba(0,0,0,0.5);
  cursor: pointer;
} */

/* Ensure the inline border color (player color) is visible */
/* inline style borderColor on .PlayerEntry will override background/border defaults */

.PlayerList .Players .PlayerToggle {
  min-width: 5em;
  display: inline-flex;
  align-items: flex-end;
  flex-direction: column;
}

.PlayerList .PlayerName {
  padding: 0.5em;
}

.PlayerList .Players > * {
  width: 100%;
}

.PlayerList .Players .nameInput {
  flex-grow: 1;
}

