/*
 * Kœurflor — Charte : tableaux, colonnes de commandes, graphiques en barres, lignes de liste
 * Auteur : Jacks Ngalangala
 */
/* --- Tableaux --- */
.tableau-cadre {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 20px;
  overflow: auto;
}
.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tableau th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--sable);
  white-space: nowrap;
}
.tableau td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sable);
  vertical-align: middle;
}
.tableau tr:last-child td {
  border-bottom: 0;
}
.tableau tbody tr.cliquable {
  cursor: pointer;
}
.tableau tbody tr.cliquable:hover {
  background: var(--creme);
}
.tableau .actions {
  text-align: right;
  white-space: nowrap;
}
.tableau .actions .btn + .btn {
  margin-left: 8px;
}
.barre-outils {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.barre-outils select.saisie {
  width: auto;
  min-width: 160px;
  border-color: var(--sable);
}

/* --- Colonnes de commandes (WebBoutiqueCommandes) --- */
.colonnes {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  align-items: start;
}
.colonne {
  background: var(--surface-alt);
  border-radius: 22px;
  padding: 16px 12px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.colonne-alerte {
  background: var(--petal-soft);
}
.colonne-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 6px;
  font-weight: 700;
  font-size: 15px;
}
.cmd {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-tete {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cmd-photo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--petal-soft);
  flex-shrink: 0;
}
.cmd-titre {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.cmd-sous {
  font-size: 12px;
  line-height: 15px;
  color: var(--ink-muted);
}
.cmd-puces {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cmd-reste {
  font-size: 12px;
  font-weight: 700;
  color: var(--warning);
}
.cmd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmd-actions .btn {
  flex: 1 0 auto;
  min-height: var(--tactile);
  padding: 0 12px;
  font-size: 14px;
}
.cmd-actions .btn-neutre {
  flex: 0 0 auto;
}

/* --- Graphiques en barres (sans bibliothèque) --- */
.barres {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding-top: 8px;
}
.barre {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  min-width: 0;
}
.barre-remplie {
  background: var(--brand-pale);
  border-radius: 6px;
  min-height: 4px;
}
.barre-remplie.max {
  background: var(--brand);
}
.barre-legende {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
}

/* --- Liste « À traiter », lignes de liste --- */
.liste-lignes {
  display: flex;
  flex-direction: column;
}
.liste-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--sable);
}
.liste-ligne:first-child {
  border-top: 0;
}
.liste-ligne-texte {
  flex: 1;
  min-width: 0;
}
.liste-ligne-texte .fort {
  font-size: 14px;
}
.liste-ligne-texte .legende {
  font-size: 12px;
}
.point-ok {
  color: var(--success);
}
.point-ko {
  color: var(--danger);
}
