/* ==========================================================================
   saisie.css — l'ecran de saisie d'E1, repris de la maquette validee
   ==========================================================================
   Ne le 2026-09-30. Les regles viennent de `docs/design/maquettes/2026-09-
   26-application-complete.html` (bloc <style>), aux memes mesures : pave a
   46 px, « Garder » a 48 px et 20 px sous le 0, sens, boucle, anomalie et
   fils a 44 px (spec § 11.3), retours et champs a 44 px (§ 11.14). Tout est
   borne a `hc-saisie` : rien ne deborde sur la liste de T1. Les jetons
   absents de la base sont poses ici, sur le composant.
   Aucune animation permanente : les seules sont un tremblement et une
   entree, joues une fois au geste.
   ========================================================================== */

hc-saisie {
  --surface: #FFFEFB; --filet: #7C8792; --filet-doux: #C9CFD5; --actif: #EEF1F5;
  --texte2: #3E4A56; --calcule: #56616C; --vert-texte: #087A56; --vert-fond: #E7F5EF;
  --bande-s: #F7F4EE; --r-cel: 2px; --r-s: 4px; --r-carte: 6px;
  --mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", ui-monospace, monospace;
  display: block; max-width: 520px; margin: 0 auto; color: var(--nuit); font-size: 14px;
}
body.soleil hc-saisie { --surface: #FFFFFF; --filet: #000000; --filet-doux: #000000; --texte2: #000000; --calcule: #000000; }
hc-saisie[hidden] { display: none; }
hc-saisie button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
hc-saisie button:disabled { cursor: default; }
body.en-mesure .barre-onglets { display: none; }

hc-saisie .aff { min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; background: var(--surface); border-bottom: 1px solid var(--filet-doux); }
hc-saisie .aff .ret { width: 48px; height: 48px; font-size: 22px; flex: none; }
hc-saisie .aff .qui { min-width: 0; flex: 1 1 auto; padding: 3px 6px; }
hc-saisie .aff .id { font-size: 14px; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
hc-saisie .aff .cl { font-size: 11px; color: var(--texte2); }
hc-saisie .aff .attente { margin-left: auto; padding: 3px 8px; border: 1px dashed var(--ambre); border-radius: var(--r-s); background: var(--ambre-fond); color: var(--ambre-texte); font-size: 12px; font-weight: 700; white-space: nowrap; }

hc-saisie .lect { margin: 8px 12px 0; padding: 7px 10px; border-left: 3px solid var(--pierre); background: var(--surface); font-size: 12px; color: var(--texte2); border-radius: var(--r-cel); }
hc-saisie .lect b { color: var(--nuit); }
hc-saisie .lect.att { border-left-color: var(--ambre); background: var(--ambre-fond); color: var(--ambre-texte); }

hc-saisie .passage { margin: 8px 12px 0; padding: 7px 10px; border-left: 3px solid var(--vert); background: var(--vert-fond); font-size: 12px; border-radius: var(--r-cel); animation: hc-entre .3s ease; }
hc-saisie .passage.info { border-left-color: var(--nuit); background: var(--actif); }
hc-saisie .passage.att { border-left-color: var(--ambre); background: var(--ambre-fond); color: var(--ambre-texte); }
hc-saisie .passage.annul { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; }
hc-saisie .passage.annul > span { flex: 1; min-width: 0; }
hc-saisie .annuler { min-height: 48px; min-width: 64px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--nuit); background: var(--surface); color: var(--nuit); font-size: 13px; font-weight: 700; flex: none; }

hc-saisie .bloc { padding: 10px 12px 0; }
hc-saisie .bloc h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--texte2); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; gap: 8px; }
hc-saisie .bloc h3.avant { margin-top: 12px; }
hc-saisie .vide { margin: 14px 12px; padding: 16px 14px; border: 1px dashed var(--filet); border-radius: var(--r-carte); background: var(--surface); font-size: 13px; line-height: 1.45; }
hc-saisie .vide b { display: block; font-size: 14px; margin-bottom: 4px; }
hc-saisie .aide { padding: 6px 12px 0; font-size: 11px; color: var(--texte2); }
hc-saisie .bloc .aide { padding: 0; }
hc-saisie .bas { height: 72px; }

hc-saisie .lp { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 8px; min-height: 48px; padding: 6px 10px; margin-bottom: 4px; background: var(--surface); border: 1px solid var(--filet-doux); border-radius: var(--r-s); text-align: left; }
hc-saisie .lp .n { font-size: 14px; font-weight: 700; font-family: var(--mono); }
hc-saisie .lp .d { font-size: 11px; color: var(--texte2); grid-column: 1 / 2; }
hc-saisie .lp .c { font-size: 12px; font-weight: 700; color: var(--texte2); grid-row: 1 / 3; grid-column: 2; text-align: right; }
hc-saisie .lp.ici { border: 2px solid var(--nuit); padding: 5px 9px; }
hc-saisie .ajoute { width: 100%; height: 48px; border: 1px dashed var(--filet); border-radius: var(--r-s); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

hc-saisie .tetep { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; }
hc-saisie .tetep .ret { min-width: 48px; height: 48px; padding: 0 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--texte2); }
hc-saisie .tetep h2 { margin: 0; font-size: 18px; font-weight: 700; font-family: var(--mono); }
hc-saisie .tetep h2.t { font-family: inherit; font-size: 15px; }
hc-saisie .actions { display: grid; gap: 6px; padding: 10px 12px 0; }
hc-saisie .act { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--filet); border-radius: var(--r-s); background: var(--surface); text-align: left; }
hc-saisie .act b { display: block; font-size: 14px; }
hc-saisie .act span span { font-size: 11px; color: var(--texte2); }
hc-saisie .act .fl { margin-left: auto; font-size: 18px; color: var(--pierre); }
hc-saisie .act.p { background: var(--nuit); color: #fff; border-color: var(--nuit); }
hc-saisie .act.p span span { color: #D5DCE4; }
hc-saisie .act.p .fl { color: #fff; }

hc-saisie .btn { min-height: 48px; padding: 0 12px; border-radius: var(--r-s); font-size: 13px; font-weight: 700; border: 1px solid var(--filet); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
hc-saisie .btn.p { background: var(--nuit); color: #fff; border-color: var(--nuit); }
hc-saisie .btn.large { width: 100%; }
hc-saisie .btn:disabled { background: var(--surface); color: var(--calcule); border-color: var(--filet-doux); }

hc-saisie .mtete { display: flex; align-items: center; gap: 6px; padding: 4px 12px 0; }
hc-saisie .mtete .ret { width: 48px; height: 48px; font-size: 22px; color: var(--texte2); flex: none; text-align: left; padding-left: 2px; }
hc-saisie .ptsw { min-height: 48px; padding: 0 9px; border: 1px solid var(--nuit) !important; border-radius: var(--r-s); font-size: 13px; font-weight: 700; font-family: var(--mono); background: var(--surface) !important; }
hc-saisie .mesb { height: 26px; padding: 0 7px; border-radius: var(--r-s); background: var(--nuit); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; flex: none; }
hc-saisie .mesb.rempl { background: var(--ambre-fond); color: var(--ambre-texte); box-shadow: inset 0 0 0 1px var(--ambre); }
hc-saisie .mtete .mesb { margin-left: auto; }

hc-saisie .crans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 6px 12px 0; }
hc-saisie .cran { min-height: 48px; border: 1px solid var(--filet-doux) !important; border-radius: var(--r-s); background: var(--surface) !important; font-size: 11px; font-weight: 700; color: var(--texte2); }
hc-saisie .cran.on { border: 2px solid var(--nuit) !important; color: var(--nuit); background: var(--actif) !important; }
hc-saisie .cran.propose { border: 2px dashed var(--nuit) !important; color: var(--nuit); line-height: 1.1; }
hc-saisie .cran.propose::after { content: ""; display: block; margin: 3px auto 0; width: 60%; border-top: 1px dashed var(--nuit); }
hc-saisie .cran.manque { border: 1px dashed var(--ambre) !important; color: var(--ambre-texte); }
hc-saisie .cran.tard { border-style: dashed !important; color: var(--calcule); font-size: 10px; font-weight: 600; line-height: 1.15; padding: 0 2px; }
hc-saisie .secoue { animation: hc-secoue .35s ease 1; }

hc-saisie .cfg { display: flex; gap: 4px; padding: 6px 12px 0; align-items: center; }
hc-saisie .cfg .lib { font-size: 10px; font-weight: 700; color: var(--texte2); width: 30px; flex: none; line-height: 1.1; }
hc-saisie .seg { display: flex; border: 1px solid var(--filet); border-radius: var(--r-s); overflow: hidden; min-height: 48px; flex: none; }
hc-saisie .seg button { padding: 0 9px; font-size: 12px; font-weight: 600; background: var(--surface); min-height: 48px; }
hc-saisie .seg button + button { border-left: 1px solid var(--filet); }
hc-saisie .seg button.on { background: var(--nuit); color: #fff; }
hc-saisie .seg button.on.oui { background: var(--ambre-fond); color: var(--ambre-texte); box-shadow: inset 0 0 0 1px var(--ambre); }
hc-saisie .fils { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
hc-saisie .fils::-webkit-scrollbar { display: none; }
hc-saisie .puces { display: flex; flex-wrap: wrap; gap: 6px; }
hc-saisie .puce { min-height: 48px; padding: 4px 10px; border: 1px solid var(--filet); border-radius: var(--r-s); background: var(--surface); font-size: 13px; font-weight: 600; text-align: left; }
hc-saisie .puce.on { border: 2px solid var(--nuit); background: var(--actif); padding: 3px 9px; }
hc-saisie .puce.nouv { border-style: dashed; color: var(--texte2); }
hc-saisie .puce.manque { border-color: var(--ambre); color: var(--ambre-texte); }
hc-saisie .fils .puce { font-family: var(--mono); white-space: nowrap; flex: none; }
hc-saisie .fils .puce.nouv { font-family: inherit; font-size: 12px; }
hc-saisie .ch { min-height: 48px; padding: 0 9px; border: 1px solid var(--filet) !important; border-radius: var(--r-s); background: var(--surface) !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; text-align: left; flex: 1 1 40%; }
hc-saisie .ch small { font-size: 10px; color: var(--texte2); font-weight: 600; }
hc-saisie .ch b { font-size: 13px; font-weight: 700; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

hc-saisie .lecture { margin: 6px 12px 0; min-height: 70px; border: 1px solid var(--nuit); border-radius: var(--r-s); background: var(--surface); display: flex; align-items: center; padding: 6px 12px; gap: 10px; }
hc-saisie .lecture.rempl { border-color: var(--ambre); box-shadow: inset 3px 0 0 var(--ambre); }
hc-saisie .lecture .q { font-size: 11px; color: var(--texte2); line-height: 1.35; flex: 1; min-width: 0; }
hc-saisie .lecture .q b { display: block; color: var(--nuit); font-size: 13px; }
hc-saisie .lecture .q .att { color: var(--ambre-texte); font-weight: 600; }
hc-saisie .lecture .v { font-size: 30px; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
hc-saisie .lecture .v.rien { color: var(--filet-doux); }
hc-saisie .lecture .u { font-size: 13px; color: var(--texte2); font-weight: 600; align-self: flex-end; margin-bottom: 12px; }
hc-saisie .com { display: flex; gap: 4px; padding: 6px 12px 0; align-items: center; overflow-x: auto; scrollbar-width: none; }
hc-saisie .com::-webkit-scrollbar { display: none; }
hc-saisie .com .puce { white-space: nowrap; font-size: 12px; flex: none; }
hc-saisie .comtxt { margin: 4px 12px 0; font-size: 12px; font-style: italic; }
hc-saisie .sous-pave { height: 330px; }

hc-saisie .pave { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 12px 10px; }
hc-saisie .pave button { min-height: 48px; border: 1px solid var(--filet); border-radius: var(--r-s); background: var(--surface); font-size: 19px; font-weight: 600; }
hc-saisie .pave button:active { background: var(--actif); }
hc-saisie .pave .f { font-size: 15px; font-weight: 700; }
hc-saisie .pave .z3 { grid-column: span 3; }
hc-saisie .pave .g { grid-column: 1 / 5; margin-top: 20px; min-height: 52px; background: var(--nuit); color: #fff; border-color: var(--nuit); font-size: 14px; font-weight: 700; }
hc-saisie .pave .g.rempl { background: var(--ambre-fond); color: var(--ambre-texte); border-color: var(--ambre); }
hc-saisie .gt { display: inline-block; margin-left: 1px; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--r-cel); line-height: 20px; white-space: nowrap; }
hc-saisie .gt.sans { background: var(--ambre-fond); color: var(--ambre-texte); border: 1px dashed var(--ambre); }
hc-saisie .dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; background: var(--ivoire); border-top: 1px solid var(--filet-doux); padding-bottom: max(10px, env(safe-area-inset-bottom)); z-index: 6; }

hc-saisie .vp { display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin-top: 4px; border: 1px solid var(--filet-doux); border-radius: var(--r-s); background: var(--surface); font-size: 12px; }
hc-saisie .vp .h { width: 40px; flex: none; color: var(--texte2); }
hc-saisie .vp .tx { flex: 1; min-width: 0; }
hc-saisie .vp .tx i, hc-saisie .vp .tx .sous { display: block; color: var(--texte2); }
hc-saisie .vp.retire .tx { opacity: .62; }
hc-saisie .vp.retire .tx b { text-decoration: line-through; }
hc-saisie .vp.refuse { border-color: var(--ambre); background: var(--ambre-fond); color: var(--ambre-texte); }
hc-saisie .btn.s { font-size: 12px; padding: 0 10px; }

hc-saisie .anol { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 2px; padding: 4px 10px; border: 1px solid var(--ambre); border-left-width: 3px; border-radius: var(--r-s); background: var(--ambre-fond); color: var(--ambre-texte); font-size: 12px; font-weight: 600; text-align: left; }
hc-saisie .anol .n { font-family: var(--mono); font-weight: 700; color: var(--nuit); flex: none; }
hc-saisie .anol .fl { margin-left: auto; font-size: 16px; flex: none; }
hc-saisie .anol.clos { border-color: var(--filet-doux); background: var(--surface); color: var(--texte2); }

hc-saisie .cycle { display: flex; gap: 4px; padding: 8px 12px 8px; }
hc-saisie .cycle span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 2px; border: 1px solid var(--filet-doux); border-radius: var(--r-s); background: var(--surface); color: var(--texte2); }
hc-saisie .cycle span.on { border: 2px solid var(--nuit); color: var(--nuit); padding: 5px 2px; }
hc-saisie .cycle span.fait { background: var(--vert-fond); color: var(--vert-texte); border-color: var(--vert); }
hc-saisie .fiche { margin: 0 12px 8px; border: 1px solid var(--filet-doux); border-radius: var(--r-carte); background: var(--surface); }
hc-saisie .fiche.ouverte { border-color: var(--nuit); }
hc-saisie .fiche h4 { margin: 0; padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--texte2); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
hc-saisie .fl2 { width: 100%; display: grid; grid-template-columns: 128px 1fr; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--bande-s); text-align: left; min-height: 48px; align-items: center; }
hc-saisie .fl2 span { font-size: 12px; color: var(--texte2); }
hc-saisie .fl2 b { font-size: 13px; font-weight: 650; }
hc-saisie .fl2 b.manq { color: var(--calcule); font-weight: 500; font-style: italic; }
hc-saisie .fl2 b.brouil { font-weight: 600; text-decoration: underline dashed var(--pierre); text-underline-offset: 3px; }
hc-saisie .fiche .pe { padding: 8px 12px 10px; border-top: 1px solid var(--bande-s); font-size: 12px; color: var(--texte2); }
hc-saisie .fiche .pe .btn { width: 100%; margin-top: 6px; }
hc-saisie .seg3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 12px 10px; border: 1px solid var(--filet); border-radius: var(--r-s); overflow: hidden; }
hc-saisie .seg3 button { min-height: 48px; padding: 0 4px; font-size: 12px; font-weight: 600; background: var(--surface); }
hc-saisie .seg3 button + button { border-left: 1px solid var(--filet); }
hc-saisie .seg3 button.on { background: var(--nuit); color: #fff; }
hc-saisie .cadre-defait { padding: 0 12px; }
hc-saisie .defait { margin: 8px 0 0; padding: 8px 12px 10px; border: 1px dashed var(--filet); border-radius: var(--r-s); background: var(--surface); }
hc-saisie .defait p { font-size: 12px; color: var(--texte2); margin: 0 0 8px; }

hc-saisie .voile { position: fixed; inset: 0; background: rgba(16, 36, 62, .45); z-index: 9; }
hc-saisie .feuille { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; max-height: 84vh; overflow: auto; background: var(--ivoire); border-radius: var(--r-carte) var(--r-carte) 0 0; padding: 10px 12px 18px; z-index: 10; }
hc-saisie .feuille .poig { width: 40px; height: 4px; border-radius: 2px; background: var(--filet-doux); margin: 0 auto 8px; }
hc-saisie .feuille h2 { font-size: 15px; margin: 0 0 2px; }
hc-saisie .feuille .s { font-size: 12px; color: var(--texte2); margin-bottom: 8px; }
hc-saisie .feuille h4 { margin: 10px 0 6px; font-size: 11px; font-weight: 700; color: var(--texte2); text-transform: uppercase; letter-spacing: .04em; }
hc-saisie .champ { display: flex; gap: 6px; margin-top: 10px; }
hc-saisie .champ input { flex: 1; min-width: 0; min-height: 48px; padding: 0 10px; border: 1px solid var(--filet); border-radius: var(--r-s); background: var(--surface); font: inherit; font-size: 16px; color: var(--nuit); }

/* Deuxieme passe (30.09) : Saisie | Visualisation, la tournee, la fiche du point,
   Corrections et retraits. Memes mesures que la maquette, cibles a 48 px. */
hc-saisie .sousong { display: flex; background: var(--surface); border-bottom: 1px solid var(--filet-doux); }
hc-saisie .sousong button { flex: 1; min-height: 48px; font-size: 13px; font-weight: 700; color: var(--texte2); position: relative; }
hc-saisie .sousong button.on { color: var(--nuit); }
hc-saisie .sousong button.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px; background: var(--nuit); }
hc-saisie .sousong small { font-weight: 600; color: var(--texte2); margin-left: 4px; }
hc-saisie .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
hc-saisie .resu { margin: 10px 12px 0; padding: 10px 12px; border: 1px solid var(--filet-doux); border-radius: var(--r-carte); background: var(--surface); }
hc-saisie .resu .m { font-size: 12px; color: var(--texte2); }
hc-saisie .compte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
hc-saisie .compte div { border: 1px solid var(--filet-doux); border-radius: var(--r-s); padding: 5px 6px; font-size: 10px; color: var(--texte2); font-weight: 600; }
hc-saisie .compte b { display: block; font-size: 16px; color: var(--nuit); }
hc-saisie .compte .a b { color: var(--ambre-texte); }
hc-saisie .filtres { display: flex; gap: 4px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; }
hc-saisie .filtres button { min-height: 48px; padding: 0 12px; border: 1px solid var(--filet); border-radius: var(--r-s); font-size: 12px; font-weight: 700; background: var(--surface); white-space: nowrap; flex: none; }
hc-saisie .filtres button.on { background: var(--nuit); color: #fff; border-color: var(--nuit); }
hc-saisie .tournee { padding: 10px 12px 20px; }
hc-saisie .arret { position: relative; padding-left: 30px; padding-bottom: 10px; }
hc-saisie .arret::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--filet-doux); }
hc-saisie .arret:last-child::before { display: none; }
hc-saisie .arret .rond { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--nuit); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
hc-saisie .arret .th { display: flex; align-items: center; gap: 8px; min-height: 26px; }
hc-saisie .arret .th b { font-size: 14px; font-family: var(--mono); }
hc-saisie .arret .th span { font-size: 11px; color: var(--texte2); }
hc-saisie .arret .th button { margin-left: auto; min-height: 48px; font-size: 12px; font-weight: 700; text-decoration: underline; flex: none; }
hc-saisie .vm { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; margin-top: 4px; background: var(--surface); border: 1px solid var(--filet-doux) !important; border-radius: var(--r-s); text-align: left; min-height: 48px; }
hc-saisie .vm .mesb { height: 22px; font-size: 12px; }
hc-saisie .vm .d { font-size: 12px; line-height: 1.35; min-width: 0; }
hc-saisie .vm .d b { font-family: var(--mono); font-size: 12px; }
hc-saisie .vm .d i { color: var(--texte2); display: block; }
hc-saisie .vm .v { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; white-space: nowrap; }
hc-saisie .vm .v small { display: block; font-size: 10px; font-weight: 600; color: var(--texte2); }
hc-saisie .vm.ano { border-left: 3px solid var(--ambre) !important; }
hc-saisie .vm .tag { font-size: 10px; font-weight: 700; color: var(--ambre-texte); background: var(--ambre-fond); border-radius: var(--r-cel); padding: 0 4px; margin-left: 4px; }
hc-saisie .form { padding: 0 12px 20px; }
hc-saisie .form h2 { font-size: 12px; font-weight: 700; margin: 14px 0 6px; color: var(--texte2); text-transform: uppercase; letter-spacing: .04em; }
hc-saisie .form .btn.large { margin-top: 12px; }
hc-saisie .jl { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; margin-top: 4px; background: var(--surface); border: 1px solid var(--filet-doux); border-radius: var(--r-s); font-size: 12px; }
hc-saisie .jl .h { font-family: var(--mono); color: var(--texte2); }
hc-saisie .fl2 .prem { font-weight: 500; color: var(--texte2); font-size: 11px; }
hc-saisie .feuille .fiche { margin: 0 0 8px; }
hc-saisie .feuille .duo { margin-top: 10px; }

/* Troisieme passe (30.09, spec § 11.14 (6)) : compteur des envois, refus, affaire non lue, navigation privee. */
hc-saisie .compteur-envois { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 12px 0; }
hc-saisie .cpt { min-height: 48px; padding: 0 12px; border: 1px dashed var(--ambre); border-radius: var(--r-s); background: var(--ambre-fond); color: var(--ambre-texte); font-size: 12px; font-weight: 700; }
hc-saisie .cpt.refuse { border-style: solid; }
hc-saisie .refus { margin-top: 4px; padding: 8px 10px; border: 1px solid var(--ambre); border-left-width: 3px; border-radius: var(--r-s); background: var(--ambre-fond); color: var(--ambre-texte); font-size: 12px; }
hc-saisie .refus .t { font-family: var(--mono); font-weight: 700; color: var(--nuit); }
hc-saisie .refus p { margin: 4px 0; }
hc-saisie .refus .code { display: block; color: var(--calcule); font-size: 10px; margin-bottom: 6px; }
hc-saisie .nonlue .btn { margin: 8px 0 0; display: flex; }
hc-saisie .nonlue p { margin: 8px 0 0; color: var(--texte2); }
hc-saisie .prive { margin-top: 6px; }

/* Les cartes de la liste s'ouvrent en E1 : un bouton, sans changer leur dessin. */
button.carte-int { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cellule-ref button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 48px; }

@keyframes hc-entre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes hc-secoue { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { hc-saisie .passage, hc-saisie .secoue { animation: none; } }
