/* (08/11/2026) Benelyon, cycle comptable : justification des lignes bancaires (cycle_justif.js), d'après la maquette du 06/11 (écrans 3a et 3b).
   Tout est sous #bjsRoot, ou sous .bcd-flot pour ce qui est posé sur la page (menu, liste). Couleurs par variables de thème, clair et sombre. */
#s54.bjs-on>:not(#bjsRoot){display:none!important}
#s54:not(.bjs-on)>#bjsRoot{display:none}
#bjsRoot,.bjs-mfond,.bjs-pop{--bcd-cf:#f6f8f9;--bcd-mut:#5f707a;--bcd-w:#92580a;--bcd-wf:#fdf3e1;--bcd-ok:#18794e;--bcd-r:#e63946;--bcd-rd:#c92d3a;--bcd-lk:#1b5fa8;--bcd-nv:#20506a;--bjs-wl:#f0dcb6}
html.theme-dark #bjsRoot,html.theme-dark .bjs-mfond,html.theme-dark .bjs-pop{--bcd-cf:#1a3a47;--bcd-mut:#a3b8c3;--bcd-w:#f0c26e;--bcd-wf:#3a3320;--bcd-ok:#5fd19b;--bcd-lk:#7fb8ec;--bcd-nv:#dbe8ed;--bjs-wl:#5b4d2b}
/* La place des boutons flottants (téléphone, Chat, copilote), avec 16 px de marge au moins */
#bjsRoot{container-type:inline-size;color:var(--txt);padding-right:80px}
@media (max-width:700px){#bjsRoot{padding-right:0}}
#bjsRoot *,.bjs-mfond *{box-sizing:border-box}
#bjsRoot button,.bjs-mfond button{font-family:inherit;cursor:pointer}
#bjsRoot a,.bjs-mfond a{color:var(--bcd-lk);font-weight:700;text-decoration:none}
#bjsRoot a:hover{text-decoration:underline}
#bjsRoot svg,.bjs-mfond svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}

/* Barre : les deux côtés, la banque */
.bjs-sub{display:flex;align-items:center;gap:10px;margin-bottom:12px;height:34px}
.bjs-seg{display:inline-flex;gap:2px;padding:3px;background:var(--card);border:1px solid var(--line);border-radius:10px;height:34px;flex:0 0 auto}
.bjs-seg button{border:0;background:transparent;border-radius:7px;padding:0 8px 0 10px;height:26px;font-weight:700;font-size:12.5px;color:var(--bcd-mut);white-space:nowrap;display:inline-flex;align-items:center;gap:7px}
.bjs-seg button:hover{color:var(--ink)}
.bjs-seg button.on{background:var(--card2);color:var(--ink)}
.bjs-seg .cnt{width:26px;height:18px;border-radius:5px;background:var(--card2);color:var(--bcd-mut);font-size:10.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.bjs-seg button.on .cnt{background:var(--card);color:var(--ink)}
.bjs-sp{flex:1}
.bjs-txt{font-size:12.5px;color:var(--bcd-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bjs-txt b{color:var(--ink);font-weight:700}

.bjs-card{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(15,29,51,.05)}
html.theme-dark .bjs-card{box-shadow:none}
.bjs-vide{padding:22px 18px;color:var(--bcd-mut);font-size:13px}

/* Par liste */
.bjs-liste{display:flex;align-items:center;gap:12px;padding:0 10px 0 16px;height:50px;margin-bottom:12px}
.bjs-liste b{font-size:13px;color:var(--ink);white-space:nowrap}
.bjs-liste .t{flex:1;min-width:0;font-size:12.5px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Deux colonnes : la liste, la ligne choisie */
.bjs-cols{display:grid;grid-template-columns:430px minmax(0,1fr);gap:14px;align-items:start}
.bjs-col{min-width:0}
.bjs-gauche{overflow-y:auto;overscroll-behavior:contain}
.bjs-gh{display:flex;justify-content:space-between;align-items:center;gap:10px;height:34px;padding:0 14px;background:var(--bcd-cf);border-bottom:1px solid var(--line);font-size:12.5px;font-weight:800;color:var(--ink);position:sticky;top:0;z-index:1}
.bjs-gh .n{font-variant-numeric:tabular-nums;white-space:nowrap}
.bjs-gh span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;height:58px;padding:0 14px;border:0;border-bottom:1px solid var(--line);border-left:3px solid transparent;background:var(--card);text-align:left;color:var(--ink)}
.bjs-row:hover{background:var(--bcd-cf)}
.bjs-row.on{background:var(--sel);border-left-color:var(--bcd-nv)}
.bjs-row .g{min-width:0;display:flex;flex-direction:column;gap:2px}
.bjs-row .t1{font-size:13.5px;line-height:18px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-row .t2{font-size:12px;line-height:16px;color:var(--bcd-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-row .m{font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.bjs-acompte{margin-top:8px;font-size:12px;color:var(--bcd-mut);line-height:17px}

/* La ligne choisie */
.bjs-det{padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.bjs-dh{display:flex;align-items:flex-start;gap:14px}
.bjs-dh .q{flex:1;min-width:0}
.bjs-ti{font-size:18px;font-weight:800;color:var(--ink);line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-so{font-size:12px;color:var(--bcd-mut);line-height:17px;margin-top:1px}
.bjs-am{font-size:24px;font-weight:800;color:var(--ink);white-space:nowrap;letter-spacing:-.2px;line-height:28px;text-align:right;font-variant-numeric:tabular-nums}
.bjs-am span{display:block;font-size:11.5px;font-weight:600;letter-spacing:0;color:var(--bcd-mut);line-height:16px}
.bjs-lib{margin-top:12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bcd-cf);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:16px;color:var(--bcd-mut);word-break:break-word}
.bjs-prop{margin-top:12px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bcd-cf)}
.bjs-prop .etq,.bjs-etq{display:block;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--bcd-mut)}
.bjs-prop b{display:block;margin-top:3px;font-size:14px;line-height:19px;color:var(--ink)}
.bjs-etq{margin-top:14px}
.bjs-why{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.bjs-why li{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:17px;color:var(--txt)}
.bjs-why svg{width:14px;height:14px;stroke-width:2.4;flex:0 0 auto;margin-top:1.5px}
.bjs-why li.ok svg{color:var(--bcd-ok)}
.bjs-why li.al svg{color:var(--bcd-w)}
.bjs-pcs{list-style:none;margin:10px 0 0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.bjs-pcs li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,150px) 46px 92px;column-gap:10px;align-items:center;height:30px;padding:0 12px;border-bottom:1px solid var(--line);font-size:12.5px}
.bjs-pcs li:last-child{border-bottom:0}
.bjs-pcs .n{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-pcs .u{color:var(--bcd-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-pcs .dt{color:var(--bcd-mut);font-variant-numeric:tabular-nums}
.bjs-pcs .v{text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.bjs-pcs li.plus{display:block;line-height:30px;color:var(--bcd-mut)}
.bjs-note{margin-top:12px;padding:9px 12px;border-radius:10px;background:var(--bcd-cf);font-size:12px;line-height:17px;color:var(--txt)}
.bjs-err{margin:10px 0 12px;padding:10px 12px;border-radius:10px;background:var(--bcd-wf);border:1px solid var(--bjs-wl);color:var(--bcd-w);font-size:12.5px;font-weight:600}
.bjs-det .bjs-err{margin:12px 0 0}
.bjs-ferme{margin-top:10px;font-size:12px;color:var(--bcd-mut)}
.bjs-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.bjs-b1,.bjs-b2{height:36px;border-radius:10px;font-weight:800;font-size:12.5px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 14px}
.bjs-b1{background:var(--bcd-r);color:#fff;border:1px solid var(--bcd-r);width:100%}
.bjs-b1:hover{background:var(--bcd-rd);border-color:var(--bcd-rd);color:#fff}
.bjs-b1:disabled{background:var(--card2);border-color:var(--line);color:var(--bcd-mut);cursor:not-allowed}
.bjs-b2{background:var(--card);color:var(--ink);border:1px solid var(--line);flex:0 0 auto}
.bjs-acts .bjs-b2{width:100%}
.bjs-b2:hover{border-color:var(--ink);background:var(--card);color:var(--ink)}
.bjs-b2:disabled{opacity:.5;cursor:default}
.bjs-avis{margin-bottom:12px;padding:10px 12px;border-radius:10px;background:var(--bcd-cf);border:1px solid var(--line);color:var(--ink);font-size:12.5px;font-weight:600;display:flex;gap:10px;align-items:center}
.bjs-avis>svg{width:15px;height:15px;stroke-width:2.4;color:var(--bcd-ok);flex:0 0 auto}
.bjs-avis span{flex:1}
.bjs-lien{border:0;background:transparent;padding:0;color:var(--bcd-lk);font-size:12px;font-weight:700}
.bjs-lien:hover{text-decoration:underline}
.bjs-x{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--bcd-mut);display:inline-flex;align-items:center;justify-content:center;padding:0;flex:0 0 auto}
.bjs-x:hover{background:var(--card2);color:var(--ink)}
.bjs-x svg{width:15px;height:15px;stroke-width:2.2}

/* Encaissements : les boutiques à gauche, la ligne et la liste à droite */
.bjs-enc{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.bjs-droite{display:flex;flex-direction:column;gap:12px;min-width:0}
.bjs-bqs{overflow:hidden}
.bjs-bqh,.bjs-bq{display:grid;grid-template-columns:minmax(0,1fr) 104px 96px 86px 16px;column-gap:12px;align-items:center;padding:0 14px}
.bjs-bqh{height:32px;white-space:nowrap;background:var(--bcd-cf);border-bottom:1px solid var(--line);font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--bcd-mut)}
.bjs-bqh .mt{text-align:right}
.bjs-bq{width:100%;height:52px;border:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left}
.bjs-bq:hover{background:var(--bcd-cf)}
.bjs-bq .g{min-width:0;display:flex;flex-direction:column;gap:2px}
.bjs-bq .t1{font-size:13.5px;font-weight:700;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-bq .t2{font-size:12px;line-height:16px;color:var(--bcd-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-bq .mt{text-align:right;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13.5px}
.bjs-bq .va{font-variant-numeric:tabular-nums;font-size:12.5px}
.bjs-bq .ec{font-size:12.5px;color:var(--bcd-mut);white-space:nowrap}
.bjs-bq .ec.w{color:var(--bcd-w);font-weight:700}
.bjs-bq svg{width:15px;height:15px;stroke-width:2.2;color:var(--bcd-mut)}
.bjs-bqn{padding:10px 14px;font-size:12px;line-height:17px;color:var(--bcd-mut)}
.bjs-cl .bjs-row{height:54px}

/* Faire autrement */
.bjs-pop .it{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:8px;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
.bjs-pop .it:hover{background:var(--bcd-cf)}

/* La liste « facultatif » */
.bjs-mfond{position:fixed;inset:0;z-index:9980;background:rgba(15,29,51,.42);display:flex;align-items:center;justify-content:center;padding:24px}
.bjs-modal{width:min(720px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:var(--card);color:var(--txt);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(15,29,51,.28);overflow:hidden}
.bjs-mh{display:flex;gap:12px;align-items:flex-start;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
.bjs-mh>div{flex:1;min-width:0}
.bjs-mh .bjs-so{white-space:normal}
.bjs-mb{overflow-y:auto;overscroll-behavior:contain}
.bjs-ml{display:grid;grid-template-columns:18px minmax(0,1fr) 46px 100px;column-gap:10px;align-items:center;height:36px;padding:0 18px;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--ink);cursor:pointer}
.bjs-ml:hover{background:var(--bcd-cf)}
.bjs-ml .t1{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bjs-ml .dt{color:var(--bcd-mut);font-variant-numeric:tabular-nums}
.bjs-ml .v{text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.bjs-mf{display:flex;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid var(--line)}
.bjs-mn{flex:1;font-size:12.5px;color:var(--bcd-mut)}
.bjs-mf .bjs-b1{width:auto;min-width:180px}

/* Fenêtre étroite (téléphone ancré, petite fenêtre) */
@container (max-width:1060px){
  .bjs-enc{grid-template-columns:1fr}
  .bjs-liste{height:auto;flex-wrap:wrap;padding:10px 12px 10px 16px;row-gap:6px}
  .bjs-liste .t{white-space:normal;flex-basis:calc(100% - 200px)}
}
.bjs-enc .bjs-pcs li{grid-template-columns:minmax(0,1fr) 46px 92px}
.bjs-enc .bjs-pcs .u{display:none}
@container (max-width:900px){
  .bjs-cols{grid-template-columns:1fr}
  .bjs-gauche{max-height:none!important}
  .bjs-txt{display:none}
}
@container (max-width:560px){
  .bjs-liste{height:auto;flex-wrap:wrap;padding:10px 12px}
  .bjs-liste .t{white-space:normal;flex-basis:100%}
  .bjs-bqh,.bjs-bq{grid-template-columns:minmax(0,1fr) 96px 16px}
  .bjs-bqh .va,.bjs-bqh .ec,.bjs-bq .va,.bjs-bq .ec{display:none}
  .bjs-pcs li{grid-template-columns:minmax(0,1fr) 46px 86px}
  .bjs-pcs .u{display:none}
  .bjs-acts{grid-template-columns:1fr}
  .bjs-ti{white-space:normal}
}
