/*
 * Kœurflor — Charte : pièces propres à certains écrans (livreur, tableaux de bord, fiche, stock, téléphone)
 * Auteur : Jacks Ngalangala
 */
/* Page livreur */
.etape-livreur {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-saisie {
  font: 800 28px var(--display);
  letter-spacing: 10px;
  text-align: center;
}
.texte-danger {
  color: var(--danger) !important;
}
.pastille {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  pointer-events: none;
}
.droite-centre {
  text-align: center;
  padding: 12px 4px;
}
.pousse-texte {
  flex: 1;
}
.btn-ouverte {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
  font-weight: 700;
}
.btn-ouverte::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.barre-texte {
  text-decoration: line-through;
  color: var(--ink-muted);
}
.grille-tableau {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
}
.grille-fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .grille-tableau,
  .grille-fiche {
    grid-template-columns: 1fr;
  }
}
.case-tableau {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}
/* Zone tactile de 48 px autour de la case (C4) */
.case-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tactile);
  min-height: var(--tactile);
  cursor: pointer;
}
.option-logo-sombre {
  background: var(--brand-strong);
  color: var(--on-brand);
  border: 0;
}
.titre-centre {
  text-align: center;
}
.titre-section {
  font: 700 18px/24px var(--display);
}
.titre-choix {
  font: 700 20px/26px var(--display);
}
.page-boutique {
  background: var(--surface-alt);
}
.boutique-actions {
  position: absolute;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  display: flex;
  gap: 8px;
}
.boutique-onglets {
  background: var(--surface);
  padding: 14px 20px;
  border-bottom: 1px solid var(--sable);
  overflow-x: auto;
}
.boutique-onglets .onglets {
  flex-wrap: nowrap;
}
.boutique-corps {
  background: var(--surface-alt);
}
.vignette-bouton {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  min-width: var(--tactile);
  min-height: var(--tactile);
}
.vignette-bouton[aria-pressed='true'] {
  border-color: var(--brand);
}
.logo-grand {
  width: 96px;
  height: 96px;
  border-radius: 26px;
}
.stock-compte {
  min-width: 56px;
  align-items: center;
}
.grille-stock {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.tiroir:focus,
.fenetre:focus {
  outline: none;
}
.defile .tableau th,
.defile .tableau td {
  padding: 12px 8px;
}
.grille-fiche {
  grid-template-columns: minmax(0, 1fr) 320px;
}
