/* Centrer les colonnes Genre, licence, Index, Comp, Départ, Voit (les hidden comptent aussi) */
#playerTable {
  width: 100%;
}
#playerTable th:nth-child(n+4), #playerTable td:nth-child(n+4) {
  text-align: center;
}
/*
.col-carpool {
  max-width: 200px;
}
*/œ
.select-carpool {
  min-width: 190px;
}
  
input[type="number"] {
  width: 60px;
}

.controls {
    padding-top: 1rem;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr 2fr;
    gap: 0.7rem;
}

/* syles pour participants */
.container_participants {
    display: flex;
    gap: 30px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-section {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fafafa;
}

.container_participants ul {
    min-width: 230px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 4px;
}
.container_participants li {
    padding: 3px 3px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container_participants li:last-child {
    border-bottom: none;
}
.container_participants li:hover {
    background-color: #f0f0f0;
}
.container_participants li.selected {
    background-color: #d4edda; /* Vert clair pour les éléments sélectionnés */
    font-weight: bold;
}

.search-container {
  display: flex; /* This aligns the input and button side-by-side */
  border: 1px solid #ccc;
  border-radius: 4px; /* Optional: adds rounded corners */
  overflow: hidden; /* This hides any content that goes outside the border */
}

.search-container input {
  margin-bottom: 0;
  border: none;
  outline: none; /* Removes the default outline on focus */
  padding: 4px;
  flex-grow: 1; /* Allows the input to take up the available space */
}

.search-container button {
  border: none;
  margin-top: 0;
  margin-bottom: 0;
  background-color: #007bff;
  color: white;
  padding: 4px 8px 4px 8px;
  cursor: pointer;
}
.search-container button:hover {
  color: #555;
}
