[hidden] { display: none !important; }
:root {
  --vert: #1d3a8a; --vert-clair: #e8eefb; --or: #f2b705; --encre: #1d2421; --gris: #66706b;
  --ligne: #e1e7e4; --fond: #f3f5f9; --rouge: #c0392b; --orange: #c87f0a; --bleu: #1f6feb; --rayon: 12px;
  --ombre: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--encre); background: var(--fond); line-height: 1.45; font-size: 15px; }
a { color: var(--vert); text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.08rem; margin: 0 0 12px; }

/* Mise en page */
.g-app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.g-menu { background: var(--vert); color: #fff; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.g-marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; padding: 4px 8px 16px; color: #fff; }
.g-marque img, .g-marque .m { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--or); color: var(--vert); display: grid; place-items: center; font-weight: 900; }
.g-menu a.lien { color: rgba(255,255,255,.86); padding: 9px 10px; border-radius: 9px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.g-menu a.lien:hover { background: rgba(255,255,255,.08); color: #fff; }
.g-menu a.lien.actif { background: #fff; color: var(--vert); }
.g-menu .sep { margin: 12px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.g-menu .pastille { margin-left: auto; background: var(--or); color: var(--vert); border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 800; }
.g-menu .bas { margin-top: auto; padding-top: 16px; font-size: .85rem; opacity: .9; display: grid; gap: 4px; }
.g-menu .bas a { color: #fff; opacity: .85; padding: 4px 10px; }
.g-principal { min-width: 0; }
.g-barre { display: none; }
.g-contenu { padding: 22px 26px 60px; max-width: 1200px; }
.g-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.g-tete .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sous-titre { color: var(--gris); margin: 2px 0 0; font-size: .9rem; }

@media (max-width: 900px) {
  .g-app { grid-template-columns: 1fr; }
  .g-menu { position: fixed; inset: 0 30% 0 0; z-index: 50; transform: translateX(-105%); transition: transform .2s; box-shadow: 4px 0 30px rgba(0,0,0,.2); }
  body.menu-ouvert .g-menu { transform: none; }
  body.menu-ouvert .voile { display: block; }
  .voile { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
  .g-barre { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--vert); color: #fff; padding: 10px 14px; }
  .g-barre button { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; padding: 2px 6px; }
  .g-barre strong { flex: 1; }
  .g-barre a { color: #fff; position: relative; font-size: 1.25rem; }
  .g-contenu { padding: 16px 14px 60px; }
}

/* Cartes et chiffres */
.carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; margin-bottom: 16px; }
.carte.serree { padding: 0; overflow: hidden; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.chiffre { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; display: grid; gap: 2px; }
.chiffre span { color: var(--gris); font-size: .85rem; font-weight: 600; }
.chiffre strong { font-size: 1.6rem; letter-spacing: -.02em; }
.chiffre small { color: var(--gris); }
.chiffre.alerte strong { color: var(--rouge); }
.chiffre.accent { background: var(--vert); color: #fff; }
.chiffre.accent span, .chiffre.accent small { color: rgba(255,255,255,.8); }
.grille-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grille-2 { grid-template-columns: 1fr; } }

/* Barres */
.barres { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 18px; }
.barres > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: .72rem; color: var(--gris); min-width: 0; }
.barres .b { width: 100%; max-width: 46px; background: var(--vert); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.barres .b em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; white-space: nowrap; color: var(--encre); font-weight: 700; }
.barres.denses .b em { display: none; }

/* Tableaux */
.tableau-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); padding: 10px 12px; border-bottom: 1px solid var(--ligne); background: #fafcfb; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.non-vue td { background: #fffbea; }
.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t .min { width: 1%; white-space: nowrap; }
.t a.ligne-lien { font-weight: 700; }
.discret { color: var(--gris); font-size: .85rem; }
.vide { color: var(--gris); text-align: center; padding: 28px 12px; }

/* Étiquettes */
.etiq { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--vert-clair); color: var(--vert); white-space: nowrap; }
.etiq.recue { background: #fff3cd; color: #7a5800; }
.etiq.acceptee, .etiq.preparation { background: #e3edff; color: #1747a6; }
.etiq.livraison { background: #efe3ff; color: #5b2aa8; }
.etiq.livree { background: var(--vert); color: #fff; }
.etiq.annulee, .etiq.rupture { background: #fdecea; color: var(--rouge); }
.etiq.faible { background: #fff1d6; color: var(--orange); }
.etiq.masque { background: #eceff0; color: var(--gris); }
.etiq.libre { background: var(--vert-clair); color: var(--vert); }
.etiq.en_course { background: #efe3ff; color: #5b2aa8; }
.etiq.indisponible { background: #eceff0; color: var(--gris); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 14px; font-weight: 700; border: 1.5px solid transparent; cursor: pointer; background: #fff; color: var(--encre); white-space: nowrap; }
.btn-p { background: var(--vert); color: #fff; }
.btn-a { background: var(--or); color: var(--vert); }
.btn-c { border-color: var(--ligne); background: #fff; color: var(--encre); }
.btn-d { background: #fff; color: var(--rouge); border-color: #f2c9c4; }
.btn-ok { background: #1f8a4c; color: #fff; }
.btn-s { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.btn-l { padding: 13px 18px; font-size: 1.02rem; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
form.inline { display: inline; }

/* Onglets & filtres */
.onglets { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.onglets a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); font-weight: 600; color: var(--encre); white-space: nowrap; }
.onglets a.actif { background: var(--vert); color: #fff; border-color: var(--vert); }
.onglets a b { margin-left: 4px; font-size: .8rem; opacity: .75; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filtres > * { flex: 0 1 auto; }
.filtres input[type=search] { flex: 1 1 220px; }

/* Formulaires */
.champ-saisie, .filtres input, .filtres select, .saisie-rapide { width: 100%; border: 1px solid #cfd8d3; border-radius: 9px; padding: 9px 11px; background: #fff; color: var(--encre); }
.champ-saisie:focus, .saisie-rapide:focus { outline: 2px solid var(--or); border-color: var(--vert); }
input[type=color].champ-saisie { height: 44px; padding: 4px; width: 90px; }
.form-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.champ { display: grid; gap: 5px; align-content: start; }
.champ > label { font-weight: 700; font-size: .9rem; }
.champ .aide { color: var(--gris); font-size: .8rem; }
.champ .err { color: var(--rouge); font-size: .82rem; font-weight: 600; }
.champ.erreur .champ-saisie { border-color: var(--rouge); }
.champ.case { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.champ.case input { width: 20px; height: 20px; accent-color: var(--vert); }
.champ.case .aide { flex-basis: 100%; }
.champ.large { grid-column: 1 / -1; }
.barre-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.barre-actions .droite { margin-left: auto; }
.apercu-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--ligne); }

/* Saisie rapide dans les listes */
.saisie-rapide { width: 96px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.saisie-rapide.ok { background: #e8f7ee; border-color: #1f8a4c; }
.saisie-rapide.ko { background: #fdecea; border-color: var(--rouge); }
.vignette { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--vert-clair); display: grid; place-items: center; font-size: 1.3rem; }

/* Messages */
.messages { display: grid; gap: 8px; margin-bottom: 14px; }
.msg { padding: 11px 14px; border-radius: 10px; background: #e8f7ee; color: #145a32; font-weight: 600; }
.msg.error { background: #fdecea; color: #8e2a1f; }
.msg.warning { background: #fff4d6; color: #7a5800; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--encre); color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; max-width: 360px; }
.toast a { color: var(--or); font-weight: 800; }
.bandeau-ferme { background: #3b2a00; color: #ffe08a; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 700; }

/* Commande */
.commande-entete { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.infos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .95rem; }
.infos dt { color: var(--gris); }
.infos dd { margin: 0; font-weight: 600; }
.histo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.histo li { display: flex; gap: 10px; }
.histo time { color: var(--gris); min-width: 88px; }
.actions-commande { display: grid; gap: 8px; }

/* Arbre des catégories */
.arbre { list-style: none; padding: 0; margin: 0; }
.arbre > li { border-bottom: 1px solid var(--ligne); padding: 12px 16px; }
.arbre > li:last-child { border-bottom: 0; }
.arbre .rang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arbre .rang .nom { font-weight: 800; font-size: 1.02rem; }
.arbre ul { list-style: none; padding: 8px 0 0 30px; margin: 0; display: grid; gap: 6px; }
.arbre ul .rang .nom { font-weight: 600; font-size: .95rem; }
.arbre .droite { margin-left: auto; display: flex; gap: 6px; }

/* Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--vert), #0b1736); }
.connexion .carte { width: 100%; max-width: 380px; padding: 26px; }
.connexion h1 { text-align: center; margin: 10px 0 4px; }
.connexion .logo-c { width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; background: var(--or); color: var(--vert); display: grid; place-items: center; font-size: 2rem; font-weight: 900; overflow: hidden; }
.connexion .logo-c img { width: 100%; height: 100%; object-fit: cover; }
.connexion form { display: grid; gap: 12px; margin-top: 18px; }

/* Bon imprimable */
@media print { .no-print { display: none !important; } body { background: #fff; } }

/* Icônes */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.g-menu a.lien .ico { width: 19px; height: 19px; opacity: .9; }
.g-menu .bas .moi { display: flex; gap: 8px; align-items: center; padding: 0 10px; }
.g-menu .bas a { display: flex; gap: 8px; align-items: center; }
.g-barre .ico { width: 24px; height: 24px; }
.btn .ico { width: 17px; height: 17px; }
.vignette .ico { width: 22px; height: 22px; color: var(--vert); }
.pastille-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--vert-clair); color: var(--vert); display: inline-grid; place-items: center; flex-shrink: 0; }
.pastille-ico .ico { width: 22px; height: 22px; }
.pastille-ico.petite { width: 30px; height: 30px; border-radius: 8px; }
.pastille-ico.petite .ico { width: 17px; height: 17px; }
h1 .ico, h2 .ico { width: 1em; height: 1em; }

/* Discussion plein écran dans le tableau de bord */
body.mode-discussion .g-contenu { padding: 12px; max-width: 900px; }
body.mode-discussion .page-discussion { height: calc(100dvh - 24px); margin: 0; }
@media (max-width: 900px) { body.mode-discussion .page-discussion { height: calc(100dvh - 76px); } body.mode-discussion .g-contenu { padding: 8px; } }
.disc-tete .btn-rond { width: 38px; height: 38px; }
.disc-tete form { margin: 0; }

/* ---------- Barre d'onglets mobile du tableau de bord ---------- */
.g-onglets { display: none; }
@media (max-width: 900px) {
  .g-onglets { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid #e3e9e6;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,.05); }
  .g-onglets a, .g-onglets button { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: #6b7570; font-size: .7rem; font-weight: 700;
    background: none; border: 0; position: relative; text-decoration: none; cursor: pointer; font-family: inherit; }
  .g-onglets .ico { width: 23px; height: 23px; }
  .g-onglets .actif { color: var(--vert); }
  .g-onglets .actif .ico { background: var(--vert-clair, #e7f2ec); border-radius: 999px; padding: 2px 14px; width: 52px; }
  .g-onglets b { position: absolute; top: 2px; left: calc(50% + 6px); background: #1fae5b; color: #fff; border-radius: 999px; font-size: .66rem; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; }
  .g-contenu { padding-bottom: 90px; }
  .toast { bottom: 78px !important; }
  body.en-conversation .g-onglets, body.en-conversation .g-barre { display: none; }
}

/* ---------- Messagerie à deux colonnes ---------- */
body.mode-messagerie .g-contenu { padding: 0; max-width: none; }
body.mode-messagerie .messages { margin: 8px; }
.msg-app { display: grid; grid-template-columns: 360px 1fr; height: 100dvh; background: #fff; }
.msg-liste, .msg-conv { min-width: 0; }
.msg-liste { border-right: 1px solid #e3e9e6; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.msg-liste-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.msg-liste-tete h1 { margin: 0; font-size: 1.4rem; }
.msg-recherche { margin: 0 12px 8px; display: flex; align-items: center; gap: 8px; background: #f0f2f5; border-radius: 10px; padding: 0 12px; }
.msg-recherche .ico { width: 18px; height: 18px; color: #667781; }
.msg-recherche input { flex: 1; border: 0; background: none; padding: 10px 0; font: inherit; outline: none; min-width: 0; }
.msg-onglets { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.msg-onglets a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #f0f2f5; color: #54656f; font-size: .85rem; font-weight: 700; text-decoration: none; }
.msg-onglets a.actif { background: var(--vert-clair, #e7f2ec); color: var(--vert); }
.msg-liste .liste-disc { flex: 1; overflow-y: auto; }
.msg-conv { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #f0f2f5; }
.msg-conv .page-discussion { height: 100dvh; min-height: 0; }
.msg-accueil { margin: auto; text-align: center; color: #54656f; max-width: 420px; padding: 30px; display: grid; justify-items: center; gap: 8px; }
.msg-accueil h2 { margin: 6px 0 0; color: #111b21; }
.msg-accueil .succes-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--vert-clair, #e7f2ec); color: var(--vert); display: grid; place-items: center; }
.msg-accueil .succes-ico .ico { width: 40px; height: 40px; }
.retour-liste { display: none !important; }
.cases-membres { border: 1px solid #e3e9e6; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin: 8px 0 16px; }
.cases-membres .case { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.titre-carte { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin: 4px 0 10px; }
.titre-carte .ico { width: 20px; height: 20px; color: var(--vert); }
@media (max-width: 900px) {
  .msg-app { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 52px - 64px); }
  .g-app, .g-principal { min-width: 0; max-width: 100vw; overflow-x: clip; }
  body.en-conversation .msg-app { height: 100dvh; }
  body.en-conversation .msg-liste { display: none; }
  body.mode-messagerie:not(.en-conversation) .msg-conv { display: none; }
  .msg-conv .page-discussion { height: 100%; }
  .retour-liste { display: grid !important; }
  body.mode-messagerie .g-contenu { padding-bottom: 0; }
}

/* ================= ScolaPilote ================= */
.g-menu .annee { margin: -8px 8px 10px; font-size: .78rem; background: rgba(255,255,255,.12); border-radius: 8px; padding: 5px 9px; color: #fff; display: flex; gap: 6px; align-items: center; }
.g-menu .annee .ico { width: 15px; height: 15px; }
.chiffre .ico-k { width: 34px; height: 34px; border-radius: 9px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; margin-bottom: 4px; }
.chiffre .ico-k .ico { width: 19px; height: 19px; }
.chiffre.ok strong { color: #1f8a4c; }
.jauge { height: 9px; border-radius: 999px; background: #e6eaf2; overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--vert); border-radius: 999px; }
.jauge.verte span { background: #1f8a4c; }
.jauge.orange span { background: var(--orange); }
.jauge.rouge span { background: var(--rouge); }
.ligne-jauge { display: grid; grid-template-columns: minmax(80px, 140px) 1fr 52px; gap: 10px; align-items: center; font-size: .9rem; padding: 6px 0; }
.ligne-jauge b { text-align: right; font-variant-numeric: tabular-nums; }
.etiq.paye, .etiq.ok, .etiq.valide { background: #e3f5ea; color: #1b6e3c; }
.etiq.partiel, .etiq.brouillon, .etiq.ouverte { background: #fff3cd; color: #7a5800; }
.etiq.retard, .etiq.annule, .etiq.inactif { background: #fdecea; color: var(--rouge); }
.etiq.neutre, .etiq.cloturee { background: #eceff3; color: var(--gris); }
.etiq.bleu, .etiq.validee { background: #e3edff; color: #1747a6; }
.montant { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.montant.rouge, .rouge { color: var(--rouge); }
.montant.vert, .vert-t { color: #1b6e3c; }
.fiche-tete { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-g { width: 64px; height: 64px; border-radius: 16px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; overflow: hidden; flex-shrink: 0; }
.avatar-g img { width: 100%; height: 100%; object-fit: cover; }
.avatar-p { width: 34px; height: 34px; border-radius: 50%; background: var(--vert-clair); color: var(--vert); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.cellule-nom { display: flex; gap: 10px; align-items: center; }
.cellule-nom small { display: block; color: var(--gris); font-size: .8rem; }
.resume-paie { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.resume-paie div { background: #f6f8fc; border-radius: 10px; padding: 10px 12px; }
.resume-paie span { display: block; color: var(--gris); font-size: .8rem; font-weight: 600; }
.resume-paie strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pave-encaissement { border: 2px solid var(--vert); }
.gros-montant { font-size: 1.6rem !important; font-weight: 800; text-align: right; padding: 12px 14px !important; }
.repartition td input { width: 120px; text-align: right; }
.raccourcis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.raccourcis a { background: #fff; border-radius: 12px; box-shadow: var(--ombre); padding: 14px; display: grid; gap: 8px; color: var(--encre); font-weight: 700; font-size: .92rem; }
.raccourcis a .pastille-ico { width: 40px; height: 40px; }
.raccourcis a:hover { outline: 2px solid var(--vert-clair); }
.communique { border-left: 5px solid var(--vert); }
.communique.important { border-left-color: var(--rouge); }
.communique.non-lu { background: #fffdf3; }
.communique h3 { margin: 0 0 4px; font-size: 1.05rem; }
.communique .texte { white-space: pre-line; margin: 10px 0; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grille-3 { grid-template-columns: 1fr; } }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.liste-simple li:last-child { border-bottom: 0; }
.cloche { position: relative; }
.cloche b { position: absolute; top: -6px; right: -8px; background: var(--rouge); color: #fff; border-radius: 999px; font-size: .66rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.table-saisie input { width: 110px; text-align: right; }
.etape { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.etape:last-child { border-bottom: 0; }
.etape .num { width: 28px; height: 28px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.etape.faite .num { background: #1f8a4c; }
.etape p { margin: 2px 0 0; color: var(--gris); font-size: .88rem; }
.g-marque .m { font-size: .72rem; letter-spacing: -.02em; }
.filtres select.champ-saisie, .filtres input.champ-saisie { width: auto; flex: 0 1 auto; }
.bloc-frais { border: 1px solid var(--ligne); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.bloc-frais summary { display: flex; gap: 8px; align-items: center; padding: 10px 14px; cursor: pointer; background: #f8fafd; font-size: 1rem; }
.bloc-frais .t td, .bloc-frais .t th { padding: 6px 12px; }
.impression-seule { display: none; }
@media print {
  .impression-seule { display: block; margin-bottom: 10px; }
  .g-menu, .g-barre, .g-onglets, .no-print, .pagination, .alerte-appel, .toast { display: none !important; }
  .g-app { display: block; } .g-contenu { padding: 0; max-width: none; }
  .carte { box-shadow: none; border: 1px solid #ccc; }
}
.guide { max-width: 900px; line-height: 1.6; }
.guide h2 { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--ligne); color: var(--vert); }
.guide h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.guide li { margin: 4px 0; }
.guide code { background: #f0f3f8; padding: 1px 5px; border-radius: 5px; }
.connexion .logo-c { font-size: 1.25rem; letter-spacing: -.02em; }
