/* Envois aux familles (envois.js) — admin et espace équipe. Téléphone d'abord. */
#env-root { --env-vert: #1B5E3F; --env-vert-clair: #eef5f1; --env-bord: #e5e7eb; --env-gris: #6b7280; --env-att: #b45309;
  display: flex; flex-direction: column; gap: .9rem; font-size: .9rem; color: #1f2937; }
#env-root button { font-family: inherit; cursor: pointer; }
.env-vide, .env-erreur { padding: 1.4rem; text-align: center; color: var(--env-gris); background: #fff; border: 1px dashed var(--env-bord); border-radius: 12px; }
.env-erreur { color: #b91c1c; }
.env-msg { background: var(--env-vert-clair); color: var(--env-vert); border-radius: 10px; padding: .7rem .9rem; font-weight: 600; }
.env-bloc { background: #fff; border: 1px solid var(--env-bord); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.env-bloc h4 { margin: 0; font-size: .95rem; }
.env-bloc label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: #374151; }
.env-ligne { display: flex; gap: .6rem; flex-wrap: wrap; }
.env-ligne label { flex: 1 1 12rem; }
#env-root select, #env-root input:not([type=checkbox]), #env-root textarea { width: 100%; box-sizing: border-box; padding: .6rem .7rem; border: 1.5px solid var(--env-bord); border-radius: 9px; font: inherit; background: #fff; min-height: 42px; }
#env-root textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.env-resume { margin: 0; }
.env-att { color: var(--env-att); font-weight: 600; }
.env-ok { color: var(--env-vert); font-weight: 700; }
.env-petit { font-size: .78rem; color: var(--env-gris); margin: 0; }
.env-familles summary { cursor: pointer; color: var(--env-vert); font-weight: 600; min-height: 32px; }
.env-liste { display: flex; flex-direction: column; gap: .3rem; max-height: 18rem; overflow-y: auto; margin-top: .4rem; }
.env-fam { flex-direction: row !important; align-items: center; gap: .6rem !important; font-weight: 500 !important; padding: .35rem 0; border-bottom: 1px solid #f3f4f6; }
.env-fam input { width: 20px; height: 20px; flex: none; }
.env-vars { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .78rem; color: var(--env-gris); }
.env-var { border: 1px solid #c2ddd0; background: var(--env-vert-clair); color: var(--env-vert); border-radius: 999px; padding: .2rem .55rem; font-size: .74rem; font-family: ui-monospace, Consolas, monospace !important; min-height: 30px; }
.env-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.env-actions input { flex: 1 1 10rem; }
.env-btn { background: var(--env-vert); color: #fff; border: none; border-radius: 10px; padding: .7rem 1.1rem; font-weight: 700; font-size: .88rem; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.env-btn:disabled { opacity: .45; cursor: not-allowed; }
.env-btn-2 { background: #fff; color: var(--env-vert); border: 1.5px solid var(--env-vert); }
.env-lien { border: none; background: none; color: var(--env-vert); text-decoration: underline; font-size: .8rem; padding: .3rem; }
#env-apercu { width: 100%; height: 26rem; border: 1px solid var(--env-bord); border-radius: 10px; background: #f5f5f5; }
.env-sujet-apercu { margin: 0; font-weight: 600; font-size: .85rem; }
.env-histo { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid #f3f4f6; flex-wrap: wrap; }
.env-histo > span:first-child { flex: 1; min-width: 12rem; }
.env-histo-a { display: flex; gap: .2rem; flex-wrap: wrap; }
.env-barre { height: 10px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.env-barre i { display: block; height: 100%; background: var(--env-vert); transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .env-barre i { transition: none; } }
