/* Messages clients (WhatsApp) */
.notif-etape{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line)}
.notif-etape textarea{min-height:56px;resize:vertical}
.msg-texte{max-width:420px;white-space:pre-wrap}
.notif-wa{display:flex;flex-direction:column;gap:var(--esp-1)}
/* Paramètres › Messages : WhatsApp du garage (code QR toujours sur fond blanc, lisible en mode nuit) */
.wa-qr{background:#fff;border:1px solid var(--line);border-radius:var(--r-carte);padding:8px;width:258px;height:258px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.wa-qr img{display:block;width:240px;height:240px}
.par-config-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--esp-4)}
.par-config-grille>div{border:1px solid var(--line);border-radius:var(--r-carte);padding:var(--esp-3);display:flex;flex-direction:column;gap:6px}
.par-config-grille ol{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px;line-height:1.45}
@media (max-width:800px){.par-config-grille{grid-template-columns:minmax(0,1fr)}}
.par-config-grille.par-config-seul{grid-template-columns:minmax(0,1fr);max-width:640px}
/* Boutons segmentés à leur taille (pas étirés sur toute la largeur) */
form[data-form="reglagesMessages"] .seg,.msg-entete .seg{align-self:flex-start;width:fit-content;max-width:100%}
/* Téléphone : le texte du message prend toute la largeur de la carte */
@media (max-width:760px){.cartes-tel td.msg-texte{grid-column:1/-1;max-width:none}}
/* Paramètres › WhatsApp (public/whatsapp.js) : sous-parties, résumé du soir, invitations */
.wa-sous{margin:0 0 12px;flex-wrap:wrap;width:fit-content;max-width:100%}
.rs-jours{display:flex;flex-wrap:wrap;gap:6px 14px;font-weight:var(--g-normal)}
.msg-lien-reglages{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.msg-lien-reglages>div{display:flex;flex-direction:column;gap:2px}
.wi-barre{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wi-barre #wiRecherche{flex:1 1 220px;max-width:320px}
.wi-barre select{width:auto}
.wi-table{max-height:520px;overflow:auto}
.wi-detail td{background:var(--bg2, rgba(127,127,127,.06))}
.wi-personne{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:2px 0}
#wiTexte{min-height:80px;resize:vertical}
@media (max-width:640px){.wi-barre #wiRecherche{max-width:none;flex-basis:100%}#wiEnvoyer{margin-left:0!important;width:100%}}
.wa-partie .actions{flex-wrap:wrap;justify-content:flex-end}
/* Paramètres › WhatsApp › Messages envoyés (public/whatsapp.js partieEnvois) */
.we-panel{display:flex;flex-direction:column;gap:10px}
.we-alerte{background:var(--bad-soft);color:var(--bad);border:1px solid var(--bad);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.45}
.we-alerte b{display:block;margin-bottom:2px}
.we-maj{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn);border-radius:8px;padding:9px 12px;font-size:13px;line-height:1.45}
.we-barre{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.we-barre .check{margin:0}
.we-table td{vertical-align:top}
.we-table tr.we-pb>td{background:var(--bad-soft)}
.we-table .sub{display:block}
.we-detail{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.we-table td:nth-child(4){min-width:170px;max-width:240px}
.we-table td:nth-child(4) .sub{white-space:normal}
.we-ouvrir{margin-top:6px}
.we-table .pill{white-space:nowrap}
.we-versions{display:flex;flex-wrap:wrap;gap:10px 28px}
.we-versions>div{display:flex;flex-direction:column;gap:2px;min-width:110px}
.we-versions .pill{align-self:flex-start;margin-top:3px}
@media (max-width:760px){.we-detail{max-width:none;white-space:normal}.we-table tr.we-pb{background:var(--bad-soft)}.we-table tr.we-pb>td{background:none}}
/* Bibliothèque WhatsApp : bouton « Mettre à jour », confirmation, avancement (public/whatsapp.js cadreMaj) */
.we-majbloc{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-radius:8px;font-size:13px;line-height:1.45}
.we-majbloc>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.we-majbloc>.xs{flex:1;min-width:220px}
.we-majconf,.we-majcours,.we-majok,.we-majko{padding:10px 12px;border:1px solid var(--line)}
.we-majconf{background:var(--info-soft);border-color:var(--info)}
.we-majconf ul{margin:4px 0 6px;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.we-majcours{background:var(--info-soft);border-color:var(--info);align-items:flex-start}
.we-majok{background:var(--ok-soft);border-color:var(--ok)}
.we-majok b{color:var(--ok)}
.we-majko{background:var(--bad-soft);border-color:var(--bad)}
.we-majko b{color:var(--bad)}
.we-roue{flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--info) 25%,transparent);border-top-color:var(--info);animation:weRoue .9s linear infinite}
@keyframes weRoue{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.we-roue{animation-duration:3s}}
@media (max-width:640px){.we-majbloc>.btn{width:100%}.we-majconf .actions{flex-direction:column;align-items:stretch}.we-majconf .actions .btn{width:100%;white-space:normal}}
