/* Atelia · console · onglet d'un processus dans la page d'un restaurant (screens/restaurant-processus.js, 20/10/2026) :
   carte « Réglages » (mode par plateforme en contrôle segmenté, limites du jour et du mois, consommé, suspension, journal), puis
   « À valider » et « Fait » de ce restaurant (css/processus.css). Lisible à 390, 820 et 1280 px, sans défilement de côté. */
.rp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.rp > *, .pc-resto, .pc-resto > * { min-width: 0; }
.rp-reglages .card-b { display: grid; gap: 14px; }
/* Têtes des cartes « Réglages » et « Fait » : celles de « À valider » (css/processus.css, .av2). */
.rp-reglages .card-h, .pc-resto .pc-fait .card-h { padding: 14px 16px 6px; align-items: flex-start; }
.rp-reglages .card-h h2, .pc-resto .pc-fait .card-h h2 { margin: 0; font-size: 18px; }
.pc-resto .pc-fait > .empty, .pc-resto .pc-fait > .note, .pc-resto .pc-fait > .pc-fait-defile, .pc-resto .pc-fait > .pc-fait-plus { margin: 10px 16px 16px; }
.rp-pfs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* Une plateforme de la carte « Réglages ». Sélecteurs à deux classes : la page Réputation pose sa propre « .rp-pf » (une pastille ovale
   sur une ligne, style injecté par screens/processus-reputation.js) ; sans cette portée, elle déformait la carte de l'onglet Réputation. */
.rp-reglages .rp-pf { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 10px; min-width: 0; background: var(--surface);
  align-items: stretch; font-size: inherit; font-weight: inherit; white-space: normal; }
.rp-reglages .rp-pf-non-reliee { background: var(--surface-2); }
.rp-pf-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-pf-tete h3 { margin: 0; font-size: 16px; }

/* Contrôle segmenté (Segmented control) : trois choix, un seul actif ; il passe à la ligne plutôt que de déborder. */
.rp-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-3); width: max-content; max-width: 100%; }
.rp-seg-b { font: inherit; font-size: 13.5px; line-height: 1.2; padding: 8px 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--navy); cursor: pointer; flex: 1 1 auto; white-space: nowrap; }
.rp-seg-b:hover:not([disabled]):not(.on) { background: var(--surface); }
.rp-seg-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.rp-seg-b[disabled] { cursor: not-allowed; opacity: .55; }
.rp-seg-b.on { font-weight: 700; color: #fff; background: var(--blue); }
.rp-seg-b.on.m-automatique { background: var(--vert); }
.rp-seg-b.on.m-arret { background: var(--navy); }
.rp-raison { font-size: 13px; color: var(--ink-2); }

.rp-suspension { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-color: var(--rouge-bd); background: var(--rouge-bg); }
.rp-suspension > div { flex: 1 1 220px; min-width: 0; }
.rp-atteinte { border-color: var(--orange-bd); background: var(--orange-bg); }

.rp-limites { display: grid; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.rp-lim-titre { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.rp-lim-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.rp-lim { display: grid; gap: 4px; min-width: 0; }
.rp-lim-l { font-size: 13px; color: var(--ink-2); }
.rp-lim-champ { display: inline-flex; align-items: center; gap: 6px; }
.rp-lim-champ input { width: 7.5em; max-width: 100%; font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface-2); color: var(--navy); }
.rp-lim-champ input:focus { outline: 2px solid var(--blue); outline-offset: 0; background: var(--surface); }
.rp-lim-u { font-size: 13px; color: var(--muted); max-width: 12em; overflow-wrap: anywhere; }
.rp-lim-max { font-size: 12px; color: var(--muted); }
.rp-lim-modif { font-size: 12.5px; color: var(--orange); font-weight: 600; }
.rp-conso { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.rp-conso div { display: flex; gap: 6px; align-items: baseline; }
.rp-conso dt { font-size: 13px; color: var(--muted); }
.rp-conso dd { margin: 0; font-weight: 700; font-size: 14px; }
.rp-reglages .rp-note { margin: 0; }
.rp-change { font-size: 12.5px; }

.rp-journal summary { cursor: pointer; font-weight: 600; }
.rp-journal-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.rp-journal-l li { overflow-wrap: anywhere; }

/* « À valider » d'un seul restaurant : la liste des restaurants de la page d'un processus n'a pas lieu d'être. */
.pc-resto .av2-restos { display: none; }
.pc-resto .av2-corps { grid-template-columns: minmax(0, 1fr); }
.pc-resto [data-pc-zone="fait"] { margin-top: 16px; }
.pc-fait-defile { overflow-x: auto; max-width: 100%; }
.pc-fait-plus { margin-top: 10px; }

@media (max-width: 600px) {
  .rp-reglages .rp-pf { padding: 12px; }
  .rp-seg { width: 100%; }
  .rp-seg-b { padding: 8px 10px; white-space: normal; }
  .rp-lim-champ input { width: 6.5em; }
  /* « Fait » en téléphone : une ligne devient un petit bloc (sans en-tête de colonnes), jamais un tableau qui défile de côté. */
  .pc-resto .pc-fait-table thead { display: none; }
  .pc-resto .pc-fait-table, .pc-resto .pc-fait-table tbody, .pc-resto .pc-fait-table tr, .pc-resto .pc-fait-table td { display: block; width: auto; }
  .pc-resto .pc-fait-table tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .pc-resto .pc-fait-table td { padding: 2px 0; border: 0; overflow-wrap: anywhere; }
}

/* Étapes de la page du processus dans l'onglet d'un restaurant : à petite largeur, une tuile par ligne (les pastilles ne débordent plus). */
@container (max-width: 560px) {
  .pc-resto .pc-etapes { grid-template-columns: minmax(0, 1fr); }
  .pc-resto .pc-etapes > .pc-etape-li > .pc-fleche { display: none; }
  .pc-resto .pc-etape { min-height: 0; }
}
.pc-resto .pc-etape .st { max-width: 100%; white-space: normal; }

/* Réglage du réseau en lecture seule (onglets Menu et Marketing, 21/10/2026) : une ligne sous la carte « Réglages ». */
.rp-reseau { margin: -6px 2px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
