/* pic-appel.css */
.queue-color-pill {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Queue list grows to fill sidebar ── */
.gc-sidebar-section--grow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  /* La liste à l'intérieur est limitée par max-height calc */
}

.gc-check-list-scroll--fill {
  /* Hauteur fixe calculée : sidebar - tous les autres éléments fixes */
  max-height: calc(100vh - var(--header-h) - 380px);
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Empêcher tout débordement hors de la sidebar */
  contain: layout;
}

.gc-check-list-scroll--fill .gc-check-item {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: unset;
}

/* ── Légende chart optimisée ── */
.gc-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  max-height: 60px;        /* 2 lignes max — pas de liste infinie */
  overflow: hidden;
}

.gc-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text2);
  font-weight: 600;
  white-space: nowrap;
}

.pa-legend-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Autres (N files)" avec indication survol */
.pa-legend-others {
  cursor: help;
  position: relative;
}
.pa-legend-hint {
  font-size: 9px;
  color: var(--text3);
  font-weight: 400;
  font-style: italic;
  margin-left: 2px;
}

/* Tooltip natif via title= suffit — pas besoin de CSS custom */

/* ── Sidebar élargie pour les noms de files longs ── */
.gc-layout .gc-sidebar {
  width: 340px;
  min-width: 340px;
  padding: 20px 14px;
}

/* L'item doit absorber le débordement — flex avec min-width:0 */
.gc-check-item {
  min-width: 0;       /* critique : permet aux enfants flex de réduire */
  overflow: hidden;
}

/* Le label prend tout l'espace disponible et tronque proprement */
.gc-check-label {
  flex: 1;
  min-width: 0;       /* critique : sans ça flex:1 ne tronque pas */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Tooltip natif sur l'item pour voir le nom complet */
.gc-check-item[title] { cursor: pointer; }
