/* Bureau web Devis Vocal — feuille de style unique, sans dépendance externe. */
:root {
  --fond: #f5f4f0;
  --surface: #ffffff;
  --texte: #1f2328;
  --discret: #646a73;
  --bord: #dcd9d2;
  --accent: #c2531b;
  --accent-fonce: #9c3f10;
  --accent-clair: #fbeee6;
  --ok: #1d7a46;
  --ok-clair: #e6f4ec;
  --erreur: #b42318;
  --erreur-clair: #fdecea;
  --info-clair: #eef3fb;
  --info: #3b6fd4;
  --violet: #6d4bc4;
  --violet-clair: #f1ecfb;
  --rayon: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #17181a;
    --surface: #212326;
    --texte: #e9e7e3;
    --discret: #a0a4ab;
    --bord: #383b40;
    --accent: #e0723a;
    --accent-fonce: #f08c56;
    --accent-clair: #3a2a20;
    --ok: #4cc283;
    --ok-clair: #1b3326;
    --erreur: #f07b6f;
    --erreur-clair: #3a2120;
    --info-clair: #1f2a3a;
    --info: #7fa6ef;
    --violet: #b39cf0;
    --violet-clair: #2c2540;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-fonce); }
h1 { font-size: 1.6rem; margin: 0 0 .3rem; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
code { background: var(--accent-clair); padding: 0 .3em; border-radius: 4px; }
pre { white-space: pre-wrap; background: var(--fond); padding: .8rem; border-radius: var(--rayon); font-size: .9rem; }
blockquote { margin: 0 0 .6rem; padding: .5rem .8rem; border-left: 3px solid var(--bord); color: var(--discret); }
small { display: block; }
.discret { color: var(--discret); font-size: .92rem; }
.cache { display: none !important; }

/* En-tête et menu */
.entete {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem;
  background: var(--surface); border-bottom: 1px solid var(--bord);
}
.marque { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.1rem; }
.entreprise { color: var(--discret); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deconnexion { margin: 0; }
.menu {
  display: flex; gap: .3rem; padding: .5rem 1rem; overflow-x: auto;
  background: var(--surface); border-bottom: 1px solid var(--bord);
}
.menu a {
  padding: .45rem .8rem; border-radius: 999px; text-decoration: none; color: var(--texte); white-space: nowrap;
}
.menu a:hover { background: var(--fond); }
.menu a.actif { background: var(--accent-clair); color: var(--accent-fonce); font-weight: 600; }
.menu a.principal { color: var(--accent-fonce); font-weight: 600; }

.contenu { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.contenu.etroit { max-width: 460px; padding-top: 3rem; }

/* Cartes, sections */
.carte, section, details.section, .aide {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 1rem 1.2rem; margin: 1rem 0;
}
section > h2:first-child, .aide > h2:first-child { margin-top: 0; }
details.section > summary, details > summary { cursor: pointer; font-weight: 600; }
.titre-ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.boutons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.deux-colonnes > div > h2:first-child { margin-top: 0; }

/* Formulaires */
.pile { display: flex; flex-direction: column; gap: .8rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; align-items: end; }
.grille .large { grid-column: 1 / -1; }
.grille.lecture > div span { display: block; color: var(--discret); font-size: .85rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .92rem; font-weight: 500; }
input, select, textarea {
  font: inherit; color: var(--texte); background: var(--surface);
  border: 1px solid var(--bord); border-radius: 8px; padding: .55rem .65rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input.code { text-transform: uppercase; letter-spacing: .15em; font-family: ui-monospace, monospace; }
label.invalide input, label.invalide textarea { border-color: var(--erreur); }
label.invalide small { color: var(--erreur); }
.ligne-champ { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ligne-champ input { flex: 1; min-width: 140px; width: auto; }
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.filtres input { flex: 1; min-width: 180px; width: auto; }
.filtres select { width: auto; }
form.inline, .actions-inline form { display: inline; margin: 0; }
.actions-inline { display: inline-flex; gap: .3rem; flex-wrap: wrap; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--bord);
  background: var(--surface); color: var(--texte);
}
.bouton:hover { border-color: var(--accent); }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: #fff; }
.bouton.principal:hover { background: var(--accent-fonce); }
.bouton.danger { color: var(--erreur); }
.bouton.petit { padding: .25rem .6rem; font-size: .88rem; }
.bouton.grand { padding: .8rem 1.4rem; font-size: 1.05rem; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.choix-modele .bouton:not(.petit) { flex-direction: column; align-items: flex-start; font-weight: 500; text-align: left; }
.choix-modele small { font-weight: 400; opacity: .8; }
.lien { background: none; border: 0; color: var(--discret); cursor: pointer; font: inherit; text-decoration: underline; }

/* Alertes et badges */
.alerte { padding: .7rem 1rem; border-radius: var(--rayon); margin: .8rem 0; }
.alerte ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alerte.ok { background: var(--ok-clair); color: var(--ok); }
.alerte.erreur { background: var(--erreur-clair); color: var(--erreur); }
.alerte.info { background: var(--info-clair); }
.alerte-bloc { border-color: var(--erreur); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px;
  vertical-align: middle; background: var(--fond); color: var(--discret); border: 1px solid var(--bord);
}
.badge.valide { background: var(--ok-clair); color: var(--ok); border-color: transparent; }
.badge.projet { background: var(--accent-clair); color: var(--accent-fonce); border-color: transparent; }
.badge.paye { background: var(--ok-clair); color: var(--ok); border-color: transparent; }
.badge.attente { background: var(--info-clair); color: var(--texte); border-color: transparent; }

/* Compteurs */
.compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1rem 0; }
.compteur {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem; text-decoration: none; color: var(--texte);
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
}
.compteur .chiffre { font-size: 1.6rem; font-weight: 700; }
.compteur span:last-child { color: var(--discret); font-size: .9rem; }
a.compteur:hover { border-color: var(--accent); }
.alerte-compteur .chiffre { color: var(--erreur); }

/* Totaux */
.totaux { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; margin: 1rem 0; }
.totaux > div { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .6rem 1rem; text-align: right; }
.totaux span { display: block; color: var(--discret); font-size: .85rem; }
.totaux strong { white-space: nowrap; }
.totaux .ttc { border-color: var(--accent); }
.totaux .ttc strong { color: var(--accent-fonce); font-size: 1.2rem; }

/* Tableaux */
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem .55rem; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
th { font-size: .82rem; color: var(--discret); font-weight: 600; white-space: nowrap; }
.nb { text-align: right; white-space: nowrap; }
td.tronque { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.liste tbody tr:hover { background: var(--fond); }
table.lignes input, table.lignes select { padding: .35rem .45rem; min-width: 70px; }
table.lignes input.court { width: 90px; }
table.lignes td:first-child input.court { width: 150px; }
table.lignes td:nth-child(2) input { min-width: 220px; }
table.lignes tr.manquant td { background: var(--erreur-clair); }
table.lignes tr.nouvelle input { border-style: dashed; }

/* Agenda */
.agenda-liste { list-style: none; padding: 0; margin: 0; }
.agenda-liste li { padding: .5rem 0; border-bottom: 1px solid var(--bord); }
.agenda-liste li:last-child { border-bottom: 0; }
.agenda-liste li.projet { color: var(--discret); }
.onglets { display: flex; gap: .3rem; }
.onglets a { padding: .4rem .8rem; border: 1px solid var(--bord); border-radius: 999px; text-decoration: none; color: var(--texte); background: var(--surface); }
.onglets a.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.notes { white-space: pre-wrap; margin: 0; }

/* Commandes */
.commande { border-top: 1px solid var(--bord); padding: .8rem 0; }
.commande:first-of-type { border-top: 0; }
.commande ul { margin: .2rem 0 .6rem; }

/* Enregistreur vocal */
.enregistreur { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--accent-clair); border-radius: var(--rayon); }
.enregistreur .etat { margin: 0; }
.chrono { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-fonce); }
.micro {
  flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.micro:hover { background: var(--accent-fonce); }
.micro:disabled { opacity: .4; cursor: not-allowed; }
.micro.en-cours { background: var(--erreur); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,35,24,.5); } 50% { box-shadow: 0 0 0 14px rgba(180,35,24,0); } }
.dictee details { margin-top: .4rem; }
.dictee details[open] { display: flex; flex-direction: column; gap: .8rem; }
.aide ul { padding-left: 1.2rem; }

.voile {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.15rem; font-weight: 600; padding: 2rem; text-align: center;
}

@media (max-width: 720px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .entreprise { display: none; }
  .carte, section, details.section, .aide { padding: .9rem; }
  .totaux { justify-content: stretch; }
  .totaux > div { flex: 1; }
  .titre-ligne .bouton.grand { width: 100%; }
}

/* Envoi au client et page publique du devis */
.envoi .boutons { margin: .6rem 0; }
.envoi form.inline label.case { display: inline-flex; margin-left: .4rem; font-size: .9rem; vertical-align: middle; }
.envoi details { margin-top: .8rem; }
.badge.annule { background: var(--erreur-clair); color: var(--erreur); border-color: transparent; }
.client-devis { max-width: 900px; }
.entete-client { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 2px solid var(--accent); }
.entete-client .droite { text-align: right; }
.entete-client p { margin: .3rem 0 0; }
.nom-entreprise { font-size: 1.3rem; color: var(--accent-fonce); }
label.case { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.case input { width: auto; margin-top: .3rem; }
@media (max-width: 720px) { .entete-client .droite { text-align: left; } }

/* Photos de chantier */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin-top: .8rem; }
.galerie figure { margin: 0; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; background: var(--fond); }
.galerie img { display: block; width: 100%; height: 160px; object-fit: cover; }
.galerie figcaption { padding: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.galerie figcaption input, .galerie figcaption select { padding: .3rem .45rem; font-size: .9rem; }

/* QR code de virement : toujours noir sur blanc, même en mode sombre, sinon les banques ne le lisent pas. */
.qr { background: #fff; padding: 10px; border-radius: var(--rayon); display: inline-block; line-height: 0; }
.qr svg { width: 180px; height: 180px; max-width: 100%; }
.virement { margin-bottom: 1rem; }
.apres-accord { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .6rem 1rem; margin: .8rem 0; }
.apres-accord h3 { margin: .2rem 0 .4rem; }
.apres-accord ul { margin: 0 0 .4rem; padding-left: 1.2rem; }
/* Frise de suivi des dossiers (liste des devis) : une pastille par étape, l'étape bloquante en couleur.
   Orange = à l'artisan d'agir ; bleu = on attend quelqu'un ; rouge = en retard ou arrêté. */
table.liste td:first-child { white-space: nowrap; }
td.suivi { min-width: 15rem; }
.frise { display: inline-flex; align-items: center; vertical-align: middle; margin-right: .45rem; }
.pastille {
  width: .8rem; height: .8rem; border-radius: 50%; flex: none; box-sizing: border-box;
  background: var(--surface); border: 2px solid var(--bord);
}
.pastille + .pastille { margin-left: .9rem; position: relative; }
.pastille + .pastille::before {
  content: ""; position: absolute; right: calc(100% + 2px); top: 50%; width: .9rem; height: 2px;
  transform: translateY(-50%); background: var(--bord);
}
.pastille.fait { background: var(--ok); border-color: var(--ok); }
.pastille.fait + .pastille::before { background: var(--ok); }
.pastille.a_faire { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-clair); }
.pastille.attente { background: #3b6fd4; border-color: #3b6fd4; box-shadow: 0 0 0 3px var(--info-clair); }
.pastille.retard, .pastille.stop { background: var(--erreur); border-color: var(--erreur); box-shadow: 0 0 0 3px var(--erreur-clair); }
.frise.etat-stop .pastille.fait { opacity: .45; }
.frise-texte { font-size: .85rem; vertical-align: middle; color: var(--discret); }
.frise-texte.a_faire { color: var(--accent-fonce); font-weight: 600; }
.frise-texte.retard, .frise-texte.stop { color: var(--erreur); font-weight: 600; }
.frise-texte.termine { color: var(--ok); }

/* Fiche de suivi : s'ouvre au survol de la frise (app.js) ou au clic (popover du navigateur, marche sans script). */
.frise-bouton {
  all: unset; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: .2rem;
  border-radius: 6px; padding: .15rem .25rem;
}
.frise-bouton:hover, .frise-bouton:focus-visible { background: var(--fond); outline: 2px solid var(--bord); }
.fiche-suivi {
  width: min(30rem, calc(100vw - 2rem)); max-height: min(32rem, calc(100vh - 2rem)); overflow-y: auto;
  padding: .8rem 1rem; border: 1px solid var(--bord); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-size: .9rem; white-space: normal; text-align: left;
}
.fiche-suivi.place { position: fixed; inset: auto; margin: 0; }
.fiche-suivi p { margin: 0 0 .4rem; }
.fiche-travaux { color: var(--discret); }
.fiche-etapes { list-style: none; margin: .5rem 0; padding: 0; }
.fiche-etapes li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; border-top: 1px solid var(--bord); }
.fiche-etapes li .pastille { margin-top: .2rem; }
.fiche-etapes li.a_venir { color: var(--discret); }
.fiche-etapes li.retard strong, .fiche-etapes li.stop strong { color: var(--erreur); }
.fiche-etapes li.a_faire strong { color: var(--accent-fonce); }
.fiche-etat { font-size: .8rem; color: var(--discret); font-weight: normal; }
.fiche-sous-titre { font-weight: 600; margin-top: .6rem; }
.fiche-materiaux { margin: 0 0 .5rem; padding-left: 1.1rem; }
.fiche-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-top: .5rem; font-size: .8rem; }
.fiche-legende { color: var(--discret); display: inline-flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.fiche-legende .pastille, .fiche-legende .pastille + .pastille { width: .6rem; height: .6rem; margin-left: .3rem; box-shadow: none; }
.fiche-legende .pastille::before { display: none; }

/* Bulle d'une étape (survol d'une pastille de la frise). */
.bulle-etape {
  position: fixed; inset: auto; margin: 0; z-index: 50; display: none; pointer-events: none;
  max-width: min(20rem, calc(100vw - 2rem)); padding: .5rem .7rem; border: 1px solid var(--bord); border-radius: 8px;
  background: var(--surface); color: var(--texte); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font-size: .85rem;
}
.bulle-etape:popover-open, .bulle-etape.visible { display: block; }
.bulle-etape p { margin: .25rem 0 0; }
.bulle-etat { font-size: .8rem; color: var(--discret); }
.bulle-etat.fait { color: var(--ok); }
.bulle-etat.a_faire { color: var(--accent-fonce); }
.bulle-etat.attente { color: #3b6fd4; }
.bulle-etat.retard, .bulle-etat.stop { color: var(--erreur); font-weight: 600; }
.frise-bouton .pastille { cursor: help; }
.frise-bouton .pastille:hover { outline: 2px solid var(--texte); outline-offset: 1px; }

/* Relecture par l'expert (assurance) */
.avis-expert { border-top: 1px solid var(--bord); padding: .8rem 0; }
.avis-expert h3 { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.commentaire-expert { white-space: pre-line; }
td del, .avis-expert del { color: var(--discret); }
tr.saisie-expert td { border-top: none; padding-top: 0; }
tr.saisie-expert label { flex: 0 1 9rem; font-size: .85rem; }
tr.saisie-expert label.large { flex: 1 1 16rem; }
tr.saisie-expert input { width: 100%; min-width: 0; }

/* Pictogrammes dans les pastilles de la frise et de la fiche : pastille pleine de 18 px (couleur de l'état,
   comme avant), pictogramme blanc au trait ; pastille « à venir » vide, pictogramme gris clair. */
.frise .pastille, .fiche-etapes .pastille {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.frise .pastille + .pastille { margin-left: .6rem; }
.frise .pastille + .pastille::before { width: .6rem; }
.frise .pastille.a_venir, .fiche-etapes .pastille.a_venir { color: var(--discret); }
/* 12 px dans 14 px utiles (18 px moins la bordure) : marge entière de 1 px, pas de demi-pixel qui décentre. */
.icone-etape { width: 12px; height: 12px; display: block; flex: none; pointer-events: none; }
.fiche-etapes li .pastille { margin-top: 0; flex: none; }
/* Pictogramme dans la bulle d'une étape (survol) : même dessin, en gris, devant le titre. */
.bulle-etape .bulle-icone { display: inline-flex; vertical-align: -2px; margin-right: .35rem; color: var(--discret); }
.bulle-etape .bulle-icone .icone-etape { width: 14px; height: 14px; }

/* Alertes (devis_vocal/alertes.py) : pastille rouge des onglets, boîte « Alertes », vue d'ensemble.
   Rouge = hors délai ; orange = à traiter ; violet = à vérifier ; bleu = en attente ; vert = clôturé. */
.pastille-alerte {
  display: inline-block; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; margin-left: .2rem;
  border-radius: 999px; background: #d92d20; color: #fff; font-size: .7rem; font-weight: 700;
  line-height: 1.15rem; text-align: center; vertical-align: super;
}
.bouton-alertes {
  font: inherit; cursor: pointer; padding: .45rem .8rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--bord); background: var(--surface); color: var(--texte);
}
.bouton-alertes:hover, .bouton-alertes.actif { border-color: var(--erreur); }
.boite-alertes {
  width: min(34rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100vh - 3rem)); overflow-y: auto;
  padding: .8rem 1rem; border: 1px solid var(--bord); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte); box-shadow: 0 10px 32px rgba(0, 0, 0, .25);
}
.boite-alertes::backdrop { background: rgba(0, 0, 0, .25); }
.boite-entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.boite-statut, .sous-titre { margin: .8rem 0 .2rem; font-weight: 600; font-size: .9rem; }
.boite-pied { margin: .8rem 0 0; font-size: .9rem; }
.boite-statut.hors_delai, .titre-statut.hors_delai { color: var(--erreur); }
.boite-statut.a_traiter, .titre-statut.a_traiter { color: var(--accent-fonce); }
.boite-statut.a_verifier, .titre-statut.a_verifier { color: var(--violet); }
.titre-statut.en_attente { color: var(--info); }
.titre-statut.cloture { color: var(--ok); }
.alertes-liste { list-style: none; margin: 0; padding: 0; }
.alerte-ligne { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--bord); }
.alerte-point { flex: none; width: .7rem; height: .7rem; border-radius: 50%; margin-top: .35rem; }
.alerte-ligne.hors_delai .alerte-point { background: var(--erreur); box-shadow: 0 0 0 3px var(--erreur-clair); }
.alerte-ligne.a_traiter .alerte-point { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-clair); }
.alerte-ligne.a_verifier .alerte-point { background: var(--violet); box-shadow: 0 0 0 3px var(--violet-clair); }
.alerte-texte { flex: 1; min-width: 0; }
.alerte-texte .discret { font-size: .88rem; }
.alerte-onglet { font-size: .75rem; color: var(--discret); border: 1px solid var(--bord); border-radius: 999px; padding: 0 .45rem; margin-left: .3rem; white-space: nowrap; }
.alerte-vu { flex: none; }
.bulles-statut { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: .6rem 0; }
.bulle-statut {
  display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border-radius: var(--rayon);
  text-decoration: none; color: var(--texte); border: 1px solid var(--bord); border-left-width: 5px; background: var(--surface);
}
.bulle-statut .chiffre { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.bulle-statut:hover, .bulle-statut.choisi { outline: 2px solid var(--bord); }
.bulle-statut.hors_delai { border-left-color: var(--erreur); }
.bulle-statut.hors_delai:not(.vide) { background: var(--erreur-clair); }
.bulle-statut.hors_delai .chiffre { color: var(--erreur); }
.bulle-statut.a_traiter { border-left-color: var(--accent); }
.bulle-statut.a_traiter .chiffre { color: var(--accent-fonce); }
.bulle-statut.a_verifier { border-left-color: var(--violet); }
.bulle-statut.a_verifier .chiffre { color: var(--violet); }
.bulle-statut.en_attente { border-left-color: var(--info); }
.bulle-statut.en_attente .chiffre { color: var(--info); }
.bulle-statut.cloture { border-left-color: var(--ok); }
.bulle-statut.cloture .chiffre { color: var(--ok); }
.bulle-statut.vide .chiffre { color: var(--discret); }
@media (max-width: 720px) { .bouton-alertes { padding: .35rem .6rem; } }
.alertes-ici { margin: .8rem 0 1rem; padding: .5rem 1rem; border: 1px solid var(--erreur); border-left-width: 5px;
  border-radius: var(--rayon); background: var(--surface); }
.alertes-ici summary { cursor: pointer; font-weight: 600; }
.alertes-ici summary .pastille-alerte { vertical-align: middle; margin: 0 .3rem 0 0; }
.alertes-ici .alertes-liste { margin-top: .4rem; }
.choix-liste { display: inline-flex; flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; color: var(--discret); white-space: nowrap; }
.choix-liste select { width: auto; color: var(--texte); }

/* Vocaux gardés sur l'appareil en attente d'envoi */
.vocaux-attente p { margin: 0 0 .5rem; font-weight: 600; }
.vocal-attente { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--bord); }
.vocal-attente span { flex: 1 1 18rem; font-weight: 400; }
.vocal-attente audio { height: 2rem; max-width: 100%; }
