/* V156 : écrans « Tablette passager » (chauffeur) et « Tablettes passagers » (administrateur). */
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}
.tab-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin: 0.2rem 0;
}
.site-card .tab-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}
.tab-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tab-playlists {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem 1.75rem;
  border: 0;
  padding: 0;
  min-width: 0;
}
.tab-playlists[hidden] {
  display: none;
}
.tab-playlists legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}
.tab-playlists small {
  font-weight: 400;
}
.tab-pl-list {
  display: grid;
  gap: 0.5rem;
}
.tab-pl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.4rem;
  align-items: center;
}
.tab-pl-row input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
}
.tab-pl-del {
  padding: 0.35rem 0.7rem;
}
.tab-pl-add {
  justify-self: start;
}
.tab-pl-add[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .tab-pl-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tab-pl-row input[name='pl_subtitle'],
  .tab-pl-row input[name='pl_link'] {
    grid-column: 1;
  }
  .tab-pl-row .tab-pl-del {
    grid-row: 1;
    grid-column: 2;
  }
}
.tab-scroll {
  overflow-x: auto;
}
.tab-table {
  width: 100%;
  border-collapse: collapse;
}
.tab-table th,
.tab-table td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--theme-border, #d0d5dd);
  vertical-align: top;
}
.tab-actions {
  white-space: nowrap;
}
.tab-options {
  display: grid;
  gap: 0.5rem;
  margin: 0.4rem 0 1.2rem;
}
/* Demande du passager reçue par le chauffeur (tablet-requests.js) : bandeau en haut de l'écran, lisible d'un coup d'œil. */
#treq-banner {
  position: fixed;
  top: max(0.6rem, env(safe-area-inset-top));
  left: 0.6rem;
  right: 0.6rem;
  z-index: 9999;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 3px solid var(--theme-accent);
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: 0 0.6rem 2rem var(--theme-border);
  text-align: center;
}
#treq-banner .treq-head {
  font-weight: 700;
  color: var(--theme-muted);
}
#treq-banner .treq-text {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0.4rem 0;
}
#treq-banner .treq-ok {
  min-width: 8rem;
  font-size: 1.2rem;
}
/* Liste des tablettes (administrateur) : en ligne ou non, batterie. */
.tab-online {
  font-weight: 600;
  color: var(--theme-accent-text);
}
.tab-offline {
  color: var(--theme-muted);
}
