/* M36 « Contrôle OCR » (28/09, maquette validée) — jetons M1 (--cit-*), clair et sombre. Voir js/controle-ocr.js. */
:root { --co-lu-bg: #fff1e0; --co-lu-tx: #a35200; --co-lu-bord: #f5c28a; --co-lu-fond: #fff9ef; --co-sel: #d7e6fb; --co-zebre: #f4f7fc; --co-tete: #e6effc; --co-tete-bord: #b9d0f2; --co-carte: #5b8fd6; }
:root[data-theme="dark"], .cit-theme-sombre { --co-lu-bg: #3d2a12; --co-lu-tx: #ffb561; --co-lu-bord: #8a5a1f; --co-lu-fond: #2a2118; --co-sel: #16304f; --co-zebre: #1f2124; --co-tete: #1d2a3b; --co-tete-bord: #2c4466; --co-carte: #2c5a96; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-lu-bg: #3d2a12; --co-lu-tx: #ffb561; --co-lu-bord: #8a5a1f; --co-lu-fond: #2a2118; --co-sel: #16304f; --co-zebre: #1f2124; --co-tete: #1d2a3b; --co-tete-bord: #2c4466; --co-carte: #2c5a96; } }

#view-controle-ocr { padding: 0 !important; }
.co-ecran { display: flex; flex-direction: column; height: calc(100vh / var(--gp-zoom, 1) - 140px); min-height: 420px; background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); font-size: 13px; }
.co-onglets { height: 41px; flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--cit-border, #e3e3e8); }
.co-on { height: 40px; padding: 0 12px; border: 0; background: transparent; font: inherit; white-space: nowrap; color: var(--cit-text2, #3a3a3c); cursor: pointer; }
.co-on.is-actif { font-weight: 600; color: var(--cit-accent-text, #0a58c2); box-shadow: inset 0 -2px 0 var(--cit-accent, #0a66d6); }
.co-nb { color: var(--cit-text3, #8e8e93); }
.co-pousse { flex-grow: 1; }
.co-cherche { display: flex; align-items: center; gap: 6px; height: 30px; width: 220px; padding: 0 10px; border-radius: 8px; background: var(--cit-fill, #ececf0); color: var(--cit-text2, #636366); margin-right: 12px; }
.co-cherche input { border: 0; background: transparent; font: inherit; width: 100%; outline: none; color: var(--cit-text, #1c1c1e); }
.co-fiab { font-size: 12px; color: var(--cit-text2, #636366); white-space: nowrap; }
.co-corps { flex-grow: 1; min-height: 0; overflow: hidden; }
.co-deux { height: 100%; display: grid; grid-template-columns: 470px 1fr; overflow: hidden; }
.co-liste { overflow: auto; }
.co-plein { height: 100%; overflow: auto; padding-bottom: 10px; }
.co-vide { padding: 40px 16px; color: var(--cit-text2, #636366); text-align: center; }
.co-note { margin: 10px 16px; font-size: 12px; color: var(--cit-text2, #636366); }
.co-titre { margin: 18px 16px 6px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.co-titre .co-b { font-weight: 400; }
.co-b.is-on { background: var(--co-sel); border-color: var(--co-tete-bord); }
.co-gris { color: var(--cit-text3, #8e8e93); }

.co-t { width: 100%; border-collapse: separate; border-spacing: 0; }
.co-t--fixe { table-layout: fixed; }
.co-t th { position: sticky; top: 0; height: 30px; padding: 0 8px; text-align: left; font-size: 12px; font-weight: 600; background: var(--co-tete); border-bottom: 1px solid var(--co-tete-bord); z-index: 1; }
.co-t td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--cit-border, #e3e8f1); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-t td.co-wrap { white-space: normal; }
.co-t .co-gras { font-weight: 700; }
.co-t tr.co-zebre td { background: var(--co-zebre); }
.co-t tr.is-sel td { background: var(--co-sel); }
.co-t tr.co-l { cursor: pointer; }
.co-t tr.co-passe td { color: var(--cit-text3, #8e8e93); }
.co-vign { width: 44px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; }

.co-pa { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 600; margin: 1px 3px 1px 0; white-space: nowrap; }
.co-pa--lu { color: var(--co-lu-tx); background: var(--co-lu-bg); }
.co-pa--ok { color: var(--cit-ok-text, #1a7f37); background: var(--cit-ok-weak, #e3f4e8); }
.co-pa--ko { color: var(--cit-danger-text, #b3261e); background: var(--cit-danger-weak, #fde8e8); }
.co-pa--gris { color: var(--cit-text2, #636366); background: var(--cit-fill, #ececf0); }

.co-b { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--cit-border, #d1d1d6); background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.co-b--p { height: 26px; }
.co-b--prim { background: var(--cit-accent, #0a66d6); color: #fff; border: 0; font-weight: 600; height: 30px; }
.co-sel { height: 28px; border-radius: 6px; border: 1px solid var(--cit-border, #d1d1d6); background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); font: inherit; font-size: 12.5px; padding: 0 6px; }

.co-det { border-left: 1px solid var(--cit-border, #e3e3e8); display: flex; flex-direction: column; min-height: 0; }
.co-det__tete { padding: 12px 16px; border-bottom: 1px solid var(--cit-border, #e3e3e8); }
.co-det__tete b { font-size: 15px; }
.co-det__sous { font-size: 12px; color: var(--cit-text2, #636366); }
.co-det__corps { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: 320px 1fr; gap: 14px; padding: 12px 16px; overflow: auto; }
.co-det__barre { height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--cit-border, #e3e3e8); background: var(--cit-bg, #f7f7f9); }
.co-carte { width: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--cit-border, #d1d1d6); font-size: 12px; background: var(--cit-surface, #fff); }
.co-carte__tete { background: var(--co-carte); color: #fff; padding: 8px 10px; }
.co-carte__sous { font-size: 15px; }
.co-carte__corps { padding: 8px 10px; line-height: 18px; word-break: break-word; }
.co-carte__img { display: block; width: 100%; }
.co-carte__rien { padding: 16px 10px; color: var(--cit-text2, #636366); }
.co-carte__pied { padding: 6px 10px; font-size: 11px; color: var(--cit-text2, #636366); border-top: 1px solid var(--cit-border, #eee); }
.co-lu { background: var(--co-lu-bg); color: inherit; padding: 0 1px; border-radius: 2px; }
.co-carte__tete .co-lu { color: #1c1c1e; }
.co-ch { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; min-height: 40px; border-top: 1px solid var(--cit-border, #f0f0f3); font-size: 12.5px; }
.co-ch__l { color: var(--cit-text2, #636366); }
.co-ch__e { display: flex; gap: 4px; align-items: center; }
.co-in, .co-val { height: 28px; box-sizing: border-box; border-radius: 6px; border: 1px solid var(--cit-border, #d1d1d6); background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); padding: 0 8px; font: inherit; min-width: 0; width: 100%; display: flex; align-items: center; }
.co-in.is-lu { border-color: var(--co-lu-bord); background: var(--co-lu-fond); }
.co-in.is-manque { border-color: var(--co-lu-bord); }

/* 29/09 (lecture des mails v2, étape 1 : TRI — maquette M40) : onglet « À trier » */
:root { --co-cat-tx: #0a58c2; --co-cat-bg: #e5effd; --co-texte-fond: #f7f7f9; }
:root[data-theme="dark"], .cit-theme-sombre { --co-cat-tx: #64b0ff; --co-cat-bg: #0b2a4a; --co-texte-fond: #1c1d20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-cat-tx: #64b0ff; --co-cat-bg: #0b2a4a; --co-texte-fond: #1c1d20; } }
.co-deux--tri { grid-template-columns: 520px 1fr; }
.co-per { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: var(--cit-surface, #fff); border-bottom: 1px solid var(--cit-border, #e3e3e8); }
.co-t--tri th { top: 39px; }
.co-t--tri td { height: 46px; }
.co-de { font-size: 11.5px; color: var(--cit-text2, #636366); }
.co-pct { font-size: 11px; color: var(--cit-text3, #8e8e93); }
.co-pa--cat { color: var(--co-cat-tx); background: var(--co-cat-bg); }
.co-det__corps--tri { grid-template-columns: 1fr 300px; gap: 16px; }
.co-mailtxt { font-size: 12.5px; line-height: 20px; color: var(--cit-text, #3a3a3c); background: var(--co-texte-fond); border-radius: 10px; padding: 10px 12px; overflow: auto; word-break: break-word; min-height: 0; }
.co-transf { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.co-sur { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--cit-accent-text, #0a58c2); }
.co-sur--2 { margin-top: 12px; }
.co-tri-l { margin-top: 6px; font-size: 12.5px; }
.co-tri-n { margin-top: 6px; font-size: 12px; color: var(--cit-text2, #636366); }
.co-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.co-cat { height: 28px; border-radius: 7px; font-size: 12.5px; }
.co-cat.is-prop { border: 1.5px solid var(--cit-accent, #0a66d6); color: var(--cit-accent-text, #0a58c2); font-weight: 600; }
.co-retenir { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; }
.co-retenir input { margin: 0; }
.co-b:disabled { opacity: .55; cursor: default; }
.co-mail { position: fixed; inset: 0; z-index: 99990; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-mail__boite { width: 900px; max-width: 100%; height: 85%; background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.co-mail__tete { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--cit-border, #e3e3e8); }
.co-mail__cadre { flex-grow: 1; border: 0; background: #fff; }

/* 30/09 (M40 v2 : sélection multiple) — barre « n sélectionnés · catégorie · Classer la sélection » sous le filtre de période */
:root { --co-lot-bg: #eaf2fe; --co-lot-bord: #c9dcf6; }
:root[data-theme="dark"], .cit-theme-sombre { --co-lot-bg: #10263f; --co-lot-bord: #24466f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-lot-bg: #10263f; --co-lot-bord: #24466f; } }
.co-lot { position: sticky; top: 39px; z-index: 2; box-sizing: border-box; height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--co-lot-bg); border-bottom: 1px solid var(--co-lot-bord); font-size: 12px; }
.co-lot .co-sel { height: 26px; font-size: 12px; }
.co-lot .co-b--prim { height: 26px; }
.co-t--tri.is-lot th { top: 78px; }
.co-t--tri td.co-coche { text-align: center; padding: 0; }
.co-coche input { margin: 0; cursor: pointer; }
/* 02/10 (requal lot 1 02/10) : action d'archivage (rouge) + champ motif dans la barre de sélection */
.co-b--danger { background: var(--cit-danger, #c62828); color: #fff; border: 0; font-weight: 600; height: 26px; }
.co-b--danger:disabled { opacity: .55; }
.co-lot .co-motif { flex: 1 1 220px; min-width: 160px; max-width: 360px; height: 26px; }
.co-plein--req .co-lot { top: 0; }                    /* pas de filtre de période au-dessus (≠ « À trier ») */
.co-plein--req .co-lot + .co-t--req th { top: 39px; } /* en-têtes juste sous la barre de sélection */
/* 02/10 (annul DO 02/10, maquette M53) : onglet « Annulées par le DO » — pastille Facturable (100 % vert, 50 % orange, non facturable gris) */
:root { --co-fa100-tx: #1a7f37; --co-fa100-bg: #e3f4e8; --co-fa50-tx: #a35200; --co-fa50-bg: #fff1e0; --co-fa0-tx: #5f5f64; --co-fa0-bg: #ececef; }
:root[data-theme="dark"], .cit-theme-sombre { --co-fa100-tx: #5fd383; --co-fa100-bg: #133621; --co-fa50-tx: #ffb561; --co-fa50-bg: #3d2a12; --co-fa0-tx: #aeaeb2; --co-fa0-bg: #2c2c2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-fa100-tx: #5fd383; --co-fa100-bg: #133621; --co-fa50-tx: #ffb561; --co-fa50-bg: #3d2a12; --co-fa0-tx: #aeaeb2; --co-fa0-bg: #2c2c2e; } }
.co-voirvues { display: flex; gap: 6px; align-items: center; font-size: 12.5px; white-space: nowrap; margin-right: 4px; }
.co-voirvues input { margin: 0; }
.co-ann-barre { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--cit-border, #e3e3e8); font-size: 12.5px; }
.co-plein--ann .co-lot { position: static; }
.co-t--ann td { height: 44px; }
.co-t--ann td.co-coche { text-align: center; }
.co-ann-motif { max-width: 260px; font-size: 12px !important; color: var(--cit-text2, #3a3a3c); }
.co-ann-eff { max-width: 150px; font-size: 11.5px !important; color: var(--cit-text2, #636366); }
.co-fa { display: inline-block; padding: 2px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.co-fa--100 { color: var(--co-fa100-tx); background: var(--co-fa100-bg); }
.co-fa--50 { color: var(--co-fa50-tx); background: var(--co-fa50-bg); }
.co-fa--0 { color: var(--co-fa0-tx); background: var(--co-fa0-bg); }
.co-fa__s { font-size: 11px; color: var(--cit-text2, #636366); }
.co-ann-eff { line-height: 15px; }
/* 02/10 (annul DO 02/10) : téléphone 390 px — la barre d'onglets (5 onglets) défile DANS SA zone ; avant, elle élargissait #page-content
   (917 px pour 390) et le clic sur un onglet faisait défiler toute la page vers la droite : la liste sortait de l'écran (tous les onglets) */
.co-onglets { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.co-on, .co-voirvues { flex-shrink: 0; }
.co-cherche { flex: 0 1 220px; min-width: 110px; }
.co-fiab { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.co-ecran { min-width: 0; max-width: 100%; }
/* 02/10 (requal complet 02/10, maquette M52) : « À requalifier » — liste + détail (mail / capture d'origine, type à taper avec prix de la grille) */
:root { --co-rouge: #b3261e; --co-rouge-b: #f5b5b0; }
:root[data-theme="dark"], .cit-theme-sombre { --co-rouge: #ff8a80; --co-rouge-b: #7a2b27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-rouge: #ff8a80; --co-rouge-b: #7a2b27; } }
.co-deux--rq { grid-template-columns: 380px 1fr; }
.co-rq-outils { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--cit-border, #e3e3e8); font-size: 12px; background: var(--cit-surface, #fff); }
.co-rq-outils .co-b { height: 24px; padding: 0 8px; }
.co-rq-outils .co-motif { flex: 1 1 140px; min-width: 100px; height: 24px; }
.co-t--rq th { top: 37px; }
.co-t--rq td { height: 38px; }
.co-t--rq td.co-coche { width: 26px; text-align: center; padding: 0; }
.co-b--rouge { border-color: var(--co-rouge-b); color: var(--co-rouge); }
.co-det__corps--rq { grid-template-columns: 1fr 320px; gap: 14px; }
.co-rq-txt { max-height: 340px; }
.co-rq-img { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 8px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--co-texte-fond); color: var(--cit-text2, #636366); font-size: 12px; text-decoration: none; }
.co-rq-img img { max-height: 66px; max-width: 100%; object-fit: contain; }
.co-rq-lu { margin: 6px 0; font-size: 12.5px; color: var(--cit-text2, #636366); }
.co-rq-prop { color: var(--cit-accent-text, #0a58c2); }
.co-rq-combo { position: relative; }
.co-rq-in { display: block; width: 100%; box-sizing: border-box; height: 34px; border-radius: 8px; border: 1.5px solid var(--cit-accent, #0a66d6); padding: 0 28px 0 10px; background: var(--cit-surface, #fff); color: var(--cit-text, #1c1c1e); font: inherit; font-size: 13.5px; }
.co-rq-fl { position: absolute; right: 10px; top: 8px; color: var(--cit-text3, #8e8e93); pointer-events: none; }
.co-rq-liste { position: absolute; left: 0; right: 0; top: 38px; background: var(--cit-surface, #fff); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18), 0 0 0 1px var(--cit-border, #e3e3e8); padding: 4px; z-index: 3; max-height: 290px; overflow: auto; }
.co-rq-opt { padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.co-rq-opt.is-act, .co-rq-opt:hover { background: var(--co-lot-bg); }
.co-rq-prix { float: right; font-size: 11.5px; color: var(--cit-text2, #636366); }
.co-rq-pied { padding: 6px 10px; font-size: 11.5px; color: var(--cit-text2, #636366); border-top: 1px solid var(--cit-border, #eef0f4); margin-top: 4px; }
.co-rq-barre { justify-content: flex-end; }
.co-rq-barre .co-rq-arch { margin-right: auto; }
.co-rq-barre .co-motif { flex: 1 1 220px; max-width: 420px; height: 28px; }
.co-rq-np { display: flex; gap: 6px; align-items: center; font-size: 12px; white-space: nowrap; }
.co-rq-np input { margin: 0; }
@media (max-width: 760px) { .co-deux--rq { grid-template-columns: 1fr; overflow: auto; } .co-det__corps--rq { grid-template-columns: 1fr; } .co-rq-barre { flex-wrap: wrap; height: auto; padding: 8px 16px; } }

/* ── 03/10 (session [MAILS]) : onglet « Règles apprises » — maquettes M56 (type d'intervention) et M40 (tri des mails) ── */
:root { --co-rg-fond: #f2f2f7; --co-rg-cadre: #e3e3e8; --co-rg-effet-bg: #f2f7fe; --co-rg-effet-tx: #0c447c; --co-rg-seg: #ececf0; --co-rg-seg-on: #fff; --co-rg-zebre: #f8fafd; }
:root[data-theme="dark"], .cit-theme-sombre { --co-rg-fond: #111214; --co-rg-cadre: #2c2c2e; --co-rg-effet-bg: #10263f; --co-rg-effet-tx: #9cc8ff; --co-rg-seg: #2c2c2e; --co-rg-seg-on: #3a3a3c; --co-rg-zebre: #1f2124; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-rg-fond: #111214; --co-rg-cadre: #2c2c2e; --co-rg-effet-bg: #10263f; --co-rg-effet-tx: #9cc8ff; --co-rg-seg: #2c2c2e; --co-rg-seg-on: #3a3a3c; --co-rg-zebre: #1f2124; } }
.co-rg-sorte { align-self: center; display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--co-rg-seg); font-size: 12px; flex-shrink: 0; }
.co-rg-so { padding: 4px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--cit-text2, #636366); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.co-rg-so.is-on { background: var(--co-rg-seg-on); color: var(--cit-text, #1c1c1e); font-weight: 600; }
.co-rg-sorte + * { margin-left: 0; }
.co-onglets .co-fiab + .co-rg-sorte { margin-left: 10px; }
.co-rg { height: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr); gap: 12px; padding: 12px 16px; background: var(--co-rg-fond); overflow: hidden; }
.co-rg-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.co-rg-boite { background: var(--cit-surface, #fff); border-radius: 12px; box-shadow: 0 0 0 1px var(--co-rg-cadre); }
.co-rg-boite--liste { overflow: auto; min-height: 0; flex-shrink: 1; }
.co-rg-note { padding: 8px 10px; font-size: 12px; color: var(--cit-text2, #636366); }
.co-t--rg td, .co-t--rgx td { height: 38px; }
.co-t--rg tr.co-zebre td { background: var(--co-rg-zebre); }
.co-t .co-centre { text-align: center; }
.co-rg-pa { padding: 2px 8px; font-size: 11.5px; font-weight: 700; margin: 0; }
.co-pa--off { color: var(--co-fa0-tx); background: var(--co-fa0-bg); }
.co-rg-b { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; }
.co-rg-b--act { border-color: var(--cit-accent, #0a66d6); color: var(--cit-accent-text, #0a58c2); font-weight: 600; }
.co-rg-fiab { padding: 10px 14px; flex-shrink: 0; }
.co-rg-fiab__t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-rg-fiab__s { font-size: 12px; color: var(--cit-text2, #636366); min-width: 0; }
.co-rg-do { height: 26px; font-size: 12px; }
.co-rg-barres { display: flex; gap: 14px; align-items: flex-end; min-height: 120px; margin-top: 8px; }   /* 1,1 px par point (maquette) : au-delà de ~75 %, le cadre grandit au lieu de recouvrir le titre */
.co-rg-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--cit-text2, #636366); }
.co-rg-bar b { color: var(--cit-text, #1c1c1e); }
.co-rg-bar__b { width: 34px; border-radius: 4px 4px 0 0; background: #ffcc00; }
.co-rg-bar__b.is-ok { background: #34c759; }
.co-rg-det { padding: 12px 14px; overflow: auto; min-height: 0; }
.co-rg-det__t { font-size: 15px; }
.co-rg-det__s { font-size: 12.5px; color: var(--cit-text2, #636366); margin-top: 2px; }
.co-rg-effet { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--co-rg-effet-bg); font-size: 12.5px; color: var(--co-rg-effet-tx); }
.co-t--rgx { margin-top: 10px; }
.co-t--rgx th { position: static; }
.co-t td.co-rg-ext { font-size: 12px; color: var(--cit-text2, #3a3a3c); }
.co-rg-contre { font-size: 11px; color: var(--co-rouge); }
.co-rg-aut { font-size: 11px; color: var(--cit-text2, #636366); }
.co-t td.co-rg-x { padding: 0 4px; }
.co-rg-xb { height: 26px; width: 26px; padding: 0; border-radius: 7px; }
.co-rg-pied { margin-top: 6px; font-size: 12px; color: var(--cit-text2, #636366); }
.co-t--rgt td { height: 40px; }
.co-t--rgt .co-rg-b { height: 28px; padding: 0 10px; font-size: 12.5px; }
.co-rg-mails { max-width: 760px; }
.co-rg-mails__l { overflow: auto; padding: 6px 0; }
.co-rg-mails__m { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 16px; color: inherit; text-decoration: none; font-size: 12.5px; border-bottom: 1px solid var(--cit-border, #e3e8f1); }
.co-rg-mails__m:hover { background: var(--co-lot-bg); }
@media (max-width: 760px) { .co-rg { grid-template-columns: minmax(0, 1fr); overflow: auto; height: auto; } .co-rg-boite--liste { overflow: auto; } .co-rg-mails__m { grid-template-columns: 1fr; gap: 2px; } }/* 03/10 : la maquette M56 (1366 sans menu) donne 0,92 / 1,12 ; avec le menu ouvert, la liste (8 colonnes, bouton « Activer » en dernier) ne tient
   plus : en dessous de 1150 px de place réelle, liste puis fiabilité puis détail, les uns sous les autres (rien de caché, rien de coupé). */
.co-rg-hote { height: 100%; container-type: inline-size; }
@container (max-width: 1149px) {
  .co-rg { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .co-rg-col, .co-rg-boite--liste, .co-rg-det { overflow: visible; min-height: auto; }
}/* recette [POSTE] 02/10 (1491 px menu ouvert : colonne Action coupée) : même empilement quand la liste ne tient pas (mesuré par controle-ocr.js) */
.co-rg.co-rg--empile { grid-template-columns: minmax(0, 1fr); overflow: auto; }
.co-rg--empile .co-rg-col, .co-rg--empile .co-rg-boite--liste, .co-rg--empile .co-rg-det { overflow: visible; min-height: auto; }
/* 03/10 ([MAILS]) — onglet « PV Sogetrel » (maquette M61) : liste / détail 1fr 1fr, pastilles d'écart, cartes avec preuve, carte rouge « non validé » */
:root { --co-pv-or-tx: #a35200; --co-pv-or-bg: #fff1e0; --co-pv-ko-tx: #b3261e; --co-pv-ko-bg: #fde8e8; --co-pv-gr-tx: #5f5f64; --co-pv-gr-bg: #ececef; --co-pv-rouge-bg: #fff5f5; --co-pv-rouge-b: #f5c2bd; --co-pv-preuve: #f7f7f9; --co-pv-fi: #ececf0; --co-pv-prop: #0a58c2; }
:root[data-theme="dark"], .cit-theme-sombre { --co-pv-or-tx: #ffb561; --co-pv-or-bg: #3d2a12; --co-pv-ko-tx: #ff8a80; --co-pv-ko-bg: #3b1715; --co-pv-gr-tx: #c7c7cc; --co-pv-gr-bg: #2c2c2e; --co-pv-rouge-bg: #2a1514; --co-pv-rouge-b: #7a2b27; --co-pv-preuve: #1f2124; --co-pv-fi: #2c2c2e; --co-pv-prop: #9cc8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-pv-or-tx: #ffb561; --co-pv-or-bg: #3d2a12; --co-pv-ko-tx: #ff8a80; --co-pv-ko-bg: #3b1715; --co-pv-gr-tx: #c7c7cc; --co-pv-gr-bg: #2c2c2e; --co-pv-rouge-bg: #2a1514; --co-pv-rouge-b: #7a2b27; --co-pv-preuve: #1f2124; --co-pv-fi: #2c2c2e; --co-pv-prop: #9cc8ff; } }
.co-pv { height: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 16px; background: var(--co-rg-fond); overflow: hidden; }
.co-pv-boite { background: var(--cit-surface, #fff); border-radius: 12px; box-shadow: 0 0 0 1px var(--co-rg-cadre); padding: 10px 12px; }
.co-pv-liste { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.co-pv-defile { overflow: auto; min-height: 0; }
.co-pv-filtres { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.co-pv-fi { padding: 4px 9px; border-radius: 14px; border: 0; background: var(--co-pv-fi); color: var(--cit-text, #1c1c1e); font: inherit; font-size: 12px; cursor: pointer; }
.co-pv-fi.is-on { background: var(--cit-accent, #0a66d6); color: #fff; }
.co-t--pv td { height: 36px; font-size: 12.5px; white-space: nowrap; }
.co-pv-pa { display: inline-block; padding: 2px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.co-pv-pa--or { color: var(--co-pv-or-tx); background: var(--co-pv-or-bg); }
.co-pv-pa--ko { color: var(--co-pv-ko-tx); background: var(--co-pv-ko-bg); }
.co-pv-pa--gr { color: var(--co-pv-gr-tx); background: var(--co-pv-gr-bg); }
.co-pv-det { display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.co-pv-s { font-size: 12.5px; color: var(--cit-text2, #636366); margin-top: 2px; }
.co-pv-l { font-size: 13px; margin-top: 4px; }
.co-pv-prop { color: var(--co-pv-prop); }
.co-pv-preuve { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--co-pv-preuve); font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.co-pv-bt { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.co-pv-bt .co-b { height: 28px; font-size: 12.5px; }
.co-pv-rouge { background: var(--co-pv-rouge-bg); box-shadow: 0 0 0 1px var(--co-pv-rouge-b); }
.co-pv-rouge > b { color: var(--co-pv-ko-tx); }
.co-pv-vu { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.co-pv-vu label { display: flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.co-pv-note { flex-grow: 1; min-width: 0; height: 28px; border-radius: 7px; border: 1px solid var(--cit-border, #c9d3e3); padding: 0 8px; font: inherit; font-size: 12.5px; background: var(--cit-surface, #fff); color: inherit; }
.co-pv-gris { color: var(--cit-text2, #636366); font-size: 13px; }
.co-pv-pied { font-size: 12px; color: var(--cit-text2, #636366); padding: 0 4px; }
@media (max-width: 1149px) { .co-pv { grid-template-columns: minmax(0, 1fr); overflow: auto; } .co-pv-liste, .co-pv-det { overflow: visible; min-height: auto; } .co-pv-defile { overflow-x: auto; } }.co-t--pv td.co-pv-ec { white-space: normal; line-height: 22px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 760px) { .co-t--pv .co-pv-tech, .co-t--pv .co-pv-mod { display: none; } }

/* 03/10 ([MAILS]) — Règles apprises › Correspondance du type réel (maquette M65) : liste 1,08 / détail 0,92 ; téléphone = cartes puis détail en écran */
:root { --co-co-rouge-bg: #fdeceb; --co-co-rouge: #a52a1f; --co-co-ok-tx: #1a7f37; --co-co-ok-bg: #e3f4e8; --co-co-off-tx: #5b6475; --co-co-off-bg: #eef1f5; --co-co-chip: #e9ecf1; --co-co-t2: #5b6475; --co-co-t3: #7a8394; --co-co-bord: #e3e6ec; --co-co-sw: #34a853; --co-co-sw-off: #c5ccd6; }
:root[data-theme="dark"], .cit-theme-sombre { --co-co-rouge-bg: #3b1715; --co-co-rouge: #ff8a80; --co-co-ok-tx: #6fdd8b; --co-co-ok-bg: #173a22; --co-co-off-tx: #c7ccd6; --co-co-off-bg: #2c3038; --co-co-chip: #2c3038; --co-co-t2: #b5bcc8; --co-co-t3: #8e96a5; --co-co-bord: #343842; --co-co-sw: #2e9e4b; --co-co-sw-off: #4a505c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-co-rouge-bg: #3b1715; --co-co-rouge: #ff8a80; --co-co-ok-tx: #6fdd8b; --co-co-ok-bg: #173a22; --co-co-off-tx: #c7ccd6; --co-co-off-bg: #2c3038; --co-co-chip: #2c3038; --co-co-t2: #b5bcc8; --co-co-t3: #8e96a5; --co-co-bord: #343842; --co-co-sw: #2e9e4b; --co-co-sw-off: #4a505c; } }
.co-co { height: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 12px; padding: 12px 16px; background: var(--co-rg-fond); overflow: hidden; }
.co-co-boite { background: var(--cit-surface, #fff); border: 1px solid var(--co-co-bord); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.co-co-tete { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--co-co-bord); flex-wrap: wrap; }
.co-co-lab { font-size: 12px; color: var(--co-co-t2); }
.co-co-res { font-size: 12px; color: var(--co-co-t3); }
.co-co-defile { overflow: auto; min-height: 0; flex-grow: 1; }
.co-t--co td { height: 44px; padding: 0 8px; font-size: 12.5px; border-bottom: 1px solid var(--co-co-bord); }
.co-t--co tr.co-co-rouge td { background: var(--co-co-rouge-bg); }
.co-co-mots { font-size: 11px; color: var(--co-co-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.co-co-prix { margin-left: 4px; color: var(--co-co-t3); font-variant-numeric: tabular-nums; }
.co-co-pav { margin-left: 4px; padding: 2px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: var(--co-pv-or-tx); background: var(--co-pv-or-bg); white-space: nowrap; }
.co-co-aucun, .co-co-corr { color: var(--co-co-rouge); font-weight: 700; }
.co-co-et { padding: 2px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.co-co-et--on { color: var(--co-co-ok-tx); background: var(--co-co-ok-bg); }
.co-co-et--off, .co-co-et--pro { color: var(--co-co-off-tx); background: var(--co-co-off-bg); }
.co-num { font-variant-numeric: tabular-nums; }
.co-co-pied { padding: 8px 12px; border-top: 1px solid var(--co-co-bord); font-size: 11.5px; color: var(--co-co-t3); }
.co-co-corps { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; overflow: auto; min-height: 0; flex-grow: 1; }
.co-co-sur { font-size: 12px; color: var(--co-co-t3); }
.co-co-titre { font-size: 18px; font-weight: 700; }
.co-co-alerte { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--co-co-rouge-bg); color: var(--co-co-rouge); font-size: 12.5px; line-height: 1.45; }
.co-co-reg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: end; }
.co-co-lab2 { display: block; font-size: 11.5px; color: var(--co-co-t2); margin-bottom: 4px; }
.co-co-sel { width: 100%; height: 32px; border: 1px solid var(--cit-border, #cfd5de); border-radius: 7px; background: var(--cit-surface, #fff); color: inherit; font: inherit; font-size: 13px; padding: 0 8px; }
.co-co-case, .co-co-inter { display: flex; align-items: center; gap: 6px; height: 32px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.co-co-inter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-co-sw { width: 38px; height: 22px; border-radius: 11px; background: var(--co-co-sw-off); position: relative; display: inline-block; transition: background .15s; }
.co-co-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.co-co-inter input:checked + .co-co-sw { background: var(--co-co-sw); }
.co-co-inter input:checked + .co-co-sw::after { left: 18px; }
.co-co-inter input:focus-visible + .co-co-sw { outline: 2px solid var(--cit-accent, #0a66d6); outline-offset: 2px; }
.co-co-lect { display: flex; gap: 24px; flex-wrap: wrap; }
.co-co-cad { font-size: 12px; color: var(--co-co-t3); }
.co-co-h { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--co-co-t2); text-transform: uppercase; }
.co-co-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.co-co-chips span { padding: 3px 9px; border-radius: 12px; background: var(--co-co-chip); font-size: 12px; }
.co-co-pieges { font-size: 12px; color: var(--co-co-t2); margin-top: 8px; }
.co-co-pieges ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.55; }
.co-co-note { font-size: 11.5px; color: var(--co-co-t3); margin-top: 4px; }
.co-t--cof { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.co-t--cof th { text-align: left; padding: 0 8px 6px; font-weight: 600; color: var(--co-co-t2); font-size: 12px; }
.co-t--cof td { height: 36px; padding: 0 8px; border-top: 1px solid var(--co-co-bord); }
.co-co-pr { color: var(--co-co-t2); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.co-co-autres { font-size: 12px; color: var(--co-co-t3); padding: 6px 8px; }
.co-co-bas { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--co-co-bord); }
.co-co-maj { font-size: 12px; color: var(--co-co-t3); }
.co-co-enr { margin-left: auto; height: 32px; }
.co-co-hist { padding: 0 14px 10px; font-size: 12px; color: var(--co-co-t2); display: flex; flex-direction: column; gap: 4px; }
.co-co-cartes, .co-co-retour { display: none; }
@media (max-width: 1149px) { .co-co { grid-template-columns: minmax(0, 1fr); overflow: auto; } .co-co-boite, .co-co-defile, .co-co-corps { overflow: visible; min-height: auto; } }
@media (max-width: 760px) {
  .co-co { padding: 12px; }
  .co-t--co { display: none; }
  .co-co-cartes { display: block; }
  .co-co-carte { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 14px; border-top: 1px solid var(--co-co-bord); color: inherit; text-decoration: none; }
  .co-co-carte:first-child { border-top: 0; }
  .co-co-carte.co-co-rouge { background: var(--co-co-rouge-bg); }
  .co-co-carte__t { min-width: 0; flex-grow: 1; display: flex; flex-direction: column; }
  .co-co-carte__t b { font-size: 15px; }
  .co-co-carte__t span { font-size: 12.5px; color: var(--co-co-t2); margin-top: 2px; }
  .co-co-carte__n { font-size: 12px; color: var(--co-co-t3); white-space: nowrap; }
  .co-co-carte__n.co-co-corr { color: var(--co-co-rouge); }
  .co-co-do { width: 100%; height: 44px; }
  .co-co-retour { display: inline-block; font-size: 15px; min-height: 44px; line-height: 44px; }
  .co-co--detail .co-co-liste { display: none; }
  .co-co:not(.co-co--detail) .co-co-det { display: none; }
  .co-co-reg { grid-template-columns: minmax(0, 1fr); }
  .co-co-pr { max-width: 110px; }
}.co-t--co td:nth-child(2) { white-space: normal; line-height: 1.35; }
.co-t--co th { white-space: nowrap; }
.co-co.co-co--empile { grid-template-columns: minmax(0, 1fr); overflow: auto; }
.co-co--empile .co-co-boite, .co-co--empile .co-co-defile, .co-co--empile .co-co-corps { overflow: visible; min-height: auto; }
.co-t--co th { white-space: normal; line-height: 1.2; vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
.co-t--co th.co-centre { width: 1%; min-width: 46px; }
.co-t--co td { padding: 0 6px; }
.co-co-mots { max-width: 150px; }

/* ── 03/10 (session [MAILS]) — M66 « À trier » regroupé par FIL (maquette MAQUETTE_fils.html.txt, artboards FI_ATrier*) ─────────────── */
:root { --co-fi-fond: #f5f6f8; --co-fi-bord: #e3e6ec; --co-fi-ligne: #eef0f3; --co-fi-t2: #5b6475; --co-fi-t3: #7a8394; --co-fi-nb: #0a66d6; --co-fi-pt-nous: #7a8394; --co-fi-mark: #fff3b0;
  --co-fi-seg: #e9ecf1; --co-fi-seg-on: #fff; --co-fi-carte: #fff;
  --co-fi-violet-bg: #efe7fb; --co-fi-violet-tx: #6b3fa0; --co-fi-vert-bg: #e3f4e8; --co-fi-vert-tx: #1a6e37; --co-fi-bleu-bg: #e3edfb; --co-fi-bleu-tx: #1f4f8f;
  --co-fi-orange-bg: #fff1dd; --co-fi-orange-tx: #8a4b00; --co-fi-pv-bg: #e4eef2; --co-fi-pv-tx: #33505f; --co-fi-rouge-bg: #fdeceb; --co-fi-rouge-tx: #a52a1f;
  --co-fi-gris-bg: #eef1f5; --co-fi-gris-tx: #5b6475; --co-fi-rien-bg: #f3f4f7; --co-fi-rien-tx: #7a8394; }
:root[data-theme="dark"], .cit-theme-sombre { --co-fi-fond: #1b1e23; --co-fi-bord: #343842; --co-fi-ligne: #2c3038; --co-fi-t2: #a7aebb; --co-fi-t3: #8d95a3; --co-fi-nb: #3d8bfd; --co-fi-pt-nous: #8d95a3; --co-fi-mark: #5a4b12;
  --co-fi-seg: #2b2f37; --co-fi-seg-on: #3a3f49; --co-fi-carte: #1f2228;
  --co-fi-violet-bg: #2e2650; --co-fi-violet-tx: #c6a6ff; --co-fi-vert-bg: #1d3a26; --co-fi-vert-tx: #8fd6a3; --co-fi-bleu-bg: #1d3357; --co-fi-bleu-tx: #9cc2ff;
  --co-fi-orange-bg: #3e2c12; --co-fi-orange-tx: #ffc27a; --co-fi-pv-bg: #22323a; --co-fi-pv-tx: #a9c9d6; --co-fi-rouge-bg: #45201d; --co-fi-rouge-tx: #ff9b92;
  --co-fi-gris-bg: #2c3038; --co-fi-gris-tx: #c3c9d4; --co-fi-rien-bg: #25282e; --co-fi-rien-tx: #a7aebb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --co-fi-fond: #1b1e23; --co-fi-bord: #343842; --co-fi-ligne: #2c3038; --co-fi-t2: #a7aebb; --co-fi-t3: #8d95a3; --co-fi-nb: #3d8bfd; --co-fi-pt-nous: #8d95a3; --co-fi-mark: #5a4b12;
  --co-fi-seg: #2b2f37; --co-fi-seg-on: #3a3f49; --co-fi-carte: #1f2228;
  --co-fi-violet-bg: #2e2650; --co-fi-violet-tx: #c6a6ff; --co-fi-vert-bg: #1d3a26; --co-fi-vert-tx: #8fd6a3; --co-fi-bleu-bg: #1d3357; --co-fi-bleu-tx: #9cc2ff;
  --co-fi-orange-bg: #3e2c12; --co-fi-orange-tx: #ffc27a; --co-fi-pv-bg: #22323a; --co-fi-pv-tx: #a9c9d6; --co-fi-rouge-bg: #45201d; --co-fi-rouge-tx: #ff9b92;
  --co-fi-gris-bg: #2c3038; --co-fi-gris-tx: #c3c9d4; --co-fi-rien-bg: #25282e; --co-fi-rien-tx: #a7aebb; } }
.co-fi { height: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 12px; padding: 12px 16px; background: var(--co-rg-fond); overflow: hidden; }
.co-fi--vide { grid-template-columns: minmax(0, 1fr); }
.co-fi-boite { background: var(--cit-surface, #fff); border: 1px solid var(--co-fi-bord); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.co-fi-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--co-fi-bord); flex-wrap: wrap; }
.co-fi-titre { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.co-fi-sous { font-size: 12px; color: var(--co-fi-t3); }
.co-fi-grp { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--co-fi-t2); cursor: pointer; }
.co-fi-grp--per { margin-left: auto; padding-left: 12px; }
.co-fi-defile { overflow: auto; min-height: 0; flex-grow: 1; }
.co-t--fi td { border-bottom: 1px solid var(--co-fi-ligne); }
.co-t--fi td.co-coche, .co-t--fi th.co-coche { width: 28px; }
.co-fi-obj { max-width: 280px; font-weight: 600; }
.co-fi-date { color: var(--co-fi-t2); }
.co-fi-tri { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.co-fi-tri svg { opacity: .55; }
.co-fi-tri.is-on svg { opacity: 1; }
.co-fi-nb { min-width: 22px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--co-fi-nb); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.co-fi-pa { height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.co-fi-pa--violet { background: var(--co-fi-violet-bg); color: var(--co-fi-violet-tx); } .co-fi-pa--vert { background: var(--co-fi-vert-bg); color: var(--co-fi-vert-tx); }
.co-fi-pa--bleu { background: var(--co-fi-bleu-bg); color: var(--co-fi-bleu-tx); } .co-fi-pa--orange { background: var(--co-fi-orange-bg); color: var(--co-fi-orange-tx); }
.co-fi-pa--pv { background: var(--co-fi-pv-bg); color: var(--co-fi-pv-tx); } .co-fi-pa--rouge { background: var(--co-fi-rouge-bg); color: var(--co-fi-rouge-tx); }
.co-fi-pa--gris { background: var(--co-fi-gris-bg); color: var(--co-fi-gris-tx); } .co-fi-pa--rien { background: var(--co-fi-rien-bg); color: var(--co-fi-rien-tx); }
.co-fi-pied { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--co-fi-bord); font-size: 12.5px; color: var(--co-fi-t2); flex-wrap: wrap; }
.co-fi-pied .co-b { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
.co-fi-pied .co-b:disabled { opacity: .55; cursor: default; }
.co-fi-menu { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.co-fi-dtete { padding: 12px 14px; border-bottom: 1px solid var(--co-fi-bord); }
.co-fi-dsur { font-size: 12px; color: var(--co-fi-t3); }
.co-fi-dtitre { font-size: 14.5px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.co-fi-chrono { overflow: auto; min-height: 0; flex-grow: 1; padding: 12px 14px; background: var(--co-fi-fond); }
.co-fi-ev { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.co-fi-axe { display: flex; flex-direction: column; align-items: center; }
.co-fi-pt { width: 10px; height: 10px; border-radius: 5px; background: var(--co-fi-nb); margin-top: 12px; flex-shrink: 0; }
.co-fi-pt--nous { background: var(--co-fi-pt-nous); }
.co-fi-trait { flex-grow: 1; width: 2px; background: var(--co-fi-bord); margin-top: 4px; }
.co-fi-msg { background: var(--co-fi-carte); border: 1px solid var(--co-fi-bord); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; min-width: 0; }
.co-fi-mtete { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-fi-qui { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.co-fi-quand { font-size: 11.5px; color: var(--co-fi-t3); }
.co-fi-pas { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.co-fi-ext { font-size: 12.5px; color: var(--co-fi-t2); margin-top: 5px; line-height: 1.45; overflow-wrap: anywhere; }
.co-fi-mark { background: var(--co-fi-mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.co-fi-voir { margin-top: 4px; font-size: 12px; }
.co-fi-bas { padding: 10px 14px; border-top: 1px solid var(--co-fi-bord); display: flex; flex-direction: column; gap: 8px; }
.co-fi-cl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-fi-cll { font-size: 12.5px; font-weight: 600; }
.co-fi-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--co-fi-seg); }
.co-fi-so { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; font: inherit; font-size: 12px; background: transparent; color: var(--co-fi-t2); cursor: pointer; }
.co-fi-so.is-on { background: var(--co-fi-seg-on); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font-weight: 600; color: var(--cit-text, #1c2330); }
.co-fi-note { font-size: 12px; color: var(--co-fi-t3); }
.co-fi-go { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
.co-fi-cartes, .co-fi-retour { display: none; }
.co-fi.co-fi--empile { grid-template-columns: minmax(0, 1fr); overflow: auto; }
.co-fi--empile .co-fi-boite, .co-fi--empile .co-fi-defile, .co-fi--empile .co-fi-chrono { overflow: visible; min-height: auto; }
@media (max-width: 1149px) { .co-fi { grid-template-columns: minmax(0, 1fr); overflow: auto; } .co-fi-boite, .co-fi-defile, .co-fi-chrono { overflow: visible; min-height: auto; } }
@media (max-width: 760px) {
  .co-fi { padding: 12px; }
  .co-t--fi, .co-fi-sous, .co-fi-tete .co-fi-grp, .co-fi-pied { display: none; }
  .co-fi-tete { border-bottom: 0; padding: 4px 6px 8px; } .co-fi-titre { font-size: 14px; }
  .co-fi-liste { background: transparent; border: 0; overflow: visible; }
  .co-fi-cartes { display: block; background: var(--cit-surface, #fff); border-radius: 12px; overflow: hidden; }
  .co-fi-carte { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 14px; border-top: 1px solid var(--co-fi-ligne); color: inherit; text-decoration: none; }
  .co-fi-carte:first-child { border-top: 0; }
  .co-fi-carte__t { min-width: 0; flex-grow: 1; display: flex; flex-direction: column; }
  .co-fi-carte__l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--co-fi-t2); }
  .co-fi-carte__d { font-size: 12px; color: var(--co-fi-t3); margin-left: auto; }
  .co-fi-carte__t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 4px; }
  .co-fi-chev { color: var(--co-fi-t3); font-size: 18px; }
  .co-fi-retour { display: inline-block; font-size: 15px; min-height: 44px; line-height: 44px; }
  .co-fi--detail .co-fi-liste { display: none; }
  .co-fi:not(.co-fi--detail) .co-fi-det { display: none; }
  .co-fi-so { height: 36px; }
  .co-fi-go { height: 44px; width: 100%; }
  .co-fi { height: auto; padding-bottom: 96px; }   /* le fil prend sa hauteur ; « Classer le fil » reste au-dessus du bouton + et de la barre du bas */
  .co-fi-chrono { flex-grow: 0; }
}