/* Ali Gator · v241 · Page du lot plus calme : groupes par statut, tuiles PDF épurées, une seule tuile de téléchargement.
   Thème clair. Retour arrière : retirer lot-v241.css et lot-v241.js d’index.html. */

/* ---------- Groupes par statut (un seul ouvert) ---------- */
html:root body .batch-list.ag241-grouped > .ag241-grp{grid-column:1/-1;display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;margin:0;
  padding:12px 16px;border-radius:16px;border:1px solid rgba(29,97,65,.12);background:rgba(255,255,255,.66);cursor:pointer;text-align:left;
  font:600 14.5px/1.2 "Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1f3a2a;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background-color .25s ease,box-shadow .3s ease,border-color .25s ease,transform .2s ease}
html:root body .batch-list.ag241-grouped > .ag241-grp:hover{background:rgba(255,255,255,.92);border-color:rgba(29,97,65,.2)}
html:root body .batch-list.ag241-grouped > .ag241-grp:active{transform:scale(.995)}
html:root body .batch-list.ag241-grouped > .ag241-grp.is-open{background:#fff;border-color:rgba(29,97,65,.18);box-shadow:0 16px 34px -26px rgba(23,68,47,.55)}
html:root body .batch-list.ag241-grouped > .ag241-grp:focus-visible{outline:2px solid #8cbf5c;outline-offset:2px}
html:root body .ag241-grp .ag241-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#9fb1a4}
html:root body .ag241-grp[data-tone="review"] .ag241-dot{background:#d4952a}
html:root body .ag241-grp[data-tone="error"] .ag241-dot{background:#c94a33}
html:root body .ag241-grp[data-tone="ready"] .ag241-dot{background:#78b043}
html:root body .ag241-grp[data-tone="done"] .ag241-dot{background:#2f7a4a}
html:root body .ag241-grp[data-tone="pending"] .ag241-dot{background:#a8b8ad}
html:root body .ag241-grp[data-tone="processing"] .ag241-dot{background:#7fbf2a;animation:ag241-pulse 1.6s ease-out infinite}
html:root body .ag241-grp .ag241-gname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root body .ag241-grp .ag241-gcount{flex:none;display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 8px;box-sizing:border-box;border-radius:999px;
  background:rgba(29,97,65,.08);color:#46644f;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
html:root body .ag241-grp.is-open .ag241-gcount{background:#24493a;color:#f2fbe6}
html:root body .ag241-grp .ag241-chev{flex:none;margin-left:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#5f7864;background:rgba(29,97,65,.06);
  transition:transform .32s cubic-bezier(.22,.8,.24,1),background-color .25s ease}
html:root body .ag241-grp .ag241-chev svg{width:16px;height:16px}
html:root body .ag241-grp.is-open .ag241-chev{transform:rotate(90deg);background:rgba(29,97,65,.1)}
html:root body:not(#lx) #root .batch-list.ag241-grouped > article.batch-item.ag241-off:not(#agt-x):not(#ag241-x){display:none!important}
html:root body:not(#lx) #root .batch-list > article.batch-item.ag241-in:not(#agt-x):not(#ag241-x){animation:ag241-in .44s cubic-bezier(.22,.8,.24,1) both!important;animation-delay:calc(var(--ag241-i,0) * 32ms)!important}
html:root body:not(#lx) #root .batch-list > article.batch-item.ag241-out:not(#agt-x):not(#ag241-x){animation:ag241-out .15s ease both!important}
@keyframes ag241-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ag241-out{to{opacity:0;transform:translateY(-4px) scale(.985)}}
@keyframes ag241-pulse{0%{box-shadow:0 0 0 0 rgba(127,191,42,.55)}100%{box-shadow:0 0 0 8px rgba(127,191,42,0)}}

/* ---------- Tuile PDF : œil en haut à droite, crayon, petites icônes ---------- */
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x){position:relative!important}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .row-between{padding-right:42px!important}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > :is(.batch-actions,.ag205-single,.batch-previews){display:none!important}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-eye{position:absolute;top:14px;right:14px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0;
  border-radius:12px;border:1px solid rgba(29,97,65,.14);background:rgba(255,255,255,.92);color:#2f5c43;cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-eye svg{width:18px;height:18px}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-eye:hover{background:#f2f8ec;border-color:rgba(29,97,65,.28);transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(23,68,47,.5)}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-eye:active{transform:scale(.95)}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-bar{display:flex;align-items:center;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(29,97,65,.08)}
html:root body:not(#lx) #root article.batch-item.ag241:not(#agt-x):not(#ag241-x) > .ag241-bar:empty{display:none}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-gap{flex:1 1 auto}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;box-sizing:border-box;border-radius:12px;cursor:pointer;white-space:nowrap;
  border:1px solid rgba(29,97,65,.14);background:#fff;color:#26432f;font:600 13px/1 "Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease,filter .2s ease}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-chip svg{width:16px;height:16px;flex:none}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-chip:hover:enabled{background:#f2f8ec;border-color:rgba(29,97,65,.26)}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-chip.is-primary{border-color:transparent;color:#f4fbe9;background:linear-gradient(180deg,#2f5c43,#244a35);box-shadow:0 6px 14px -9px rgba(23,68,47,.7)}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-chip.is-primary:hover:enabled{background:linear-gradient(180deg,#2f5c43,#244a35);filter:brightness(1.08)}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-ic{position:relative;flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:12px;cursor:pointer;
  border:1px solid rgba(29,97,65,.14);background:#fff;color:#26432f;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-ic svg{width:17px;height:17px}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-ic:hover:enabled{background:#f2f8ec;border-color:rgba(29,97,65,.26)}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar :is(.ag241-ic,.ag241-chip):active:enabled{transform:scale(.96)}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar :is(.ag241-ic,.ag241-chip):disabled{opacity:.45;cursor:default}
html:root body:not(#lx) #root article.batch-item.ag241 > .ag241-bar .ag241-ic.is-busy::after{content:'';position:absolute;inset:-3px;border-radius:14px;border:2px solid rgba(79,154,82,.22);border-top-color:#4f9a52;animation:ag241-spin .9s linear infinite}
@keyframes ag241-spin{to{transform:rotate(360deg)}}

/* Menu « … » */
html:root body > .ag241-pop{position:fixed;z-index:2147482000;min-width:230px;padding:6px;box-sizing:border-box;border-radius:14px;border:1px solid rgba(29,97,65,.14);
  background:rgba(255,255,255,.98);box-shadow:0 22px 46px -22px rgba(23,68,47,.5),0 2px 6px rgba(23,68,47,.06);
  opacity:0;transform:translateY(4px) scale(.97);transition:opacity .16s ease,transform .22s cubic-bezier(.22,.8,.24,1)}
html:root body > .ag241-pop.is-in{opacity:1;transform:none}
html:root body > .ag241-pop button{display:block;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;cursor:pointer;text-align:left;
  font:600 13px/1.25 "Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#26432f}
html:root body > .ag241-pop button:hover:enabled{background:rgba(29,97,65,.07)}
html:root body > .ag241-pop button:disabled{opacity:.45;cursor:default}

/* ---------- Aperçu rapide du PDF original ---------- */
html:root body > .ag241-ql{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;box-sizing:border-box}
html:root body > .ag241-ql > .ag241-ql-back{position:absolute;inset:0;background:rgba(18,38,27,.28);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;transition:opacity .25s ease}
html:root body > .ag241-ql.is-in > .ag241-ql-back{opacity:1}
html:root body > .ag241-ql > .ag241-ql-card{position:relative;display:flex;flex-direction:column;width:min(780px,100%);height:min(88vh,1100px);box-sizing:border-box;border-radius:24px;overflow:hidden;
  background:linear-gradient(180deg,#fbfdf8,#f3f8ee);border:1px solid rgba(29,97,65,.12);box-shadow:0 40px 90px -40px rgba(18,38,27,.6);
  opacity:0;transform:translateY(14px) scale(.975);transition:opacity .22s ease,transform .34s cubic-bezier(.22,.8,.24,1)}
html:root body > .ag241-ql.is-in > .ag241-ql-card{opacity:1;transform:none}
html:root body > .ag241-ql.is-out > .ag241-ql-card{opacity:0;transform:translateY(8px) scale(.985)}
html:root body > .ag241-ql header{flex:none;display:flex;align-items:center;gap:10px;padding:14px 14px 12px 20px;border-bottom:1px solid rgba(29,97,65,.08);background:rgba(255,255,255,.7)}
html:root body > .ag241-ql .ag241-ql-t{flex:1 1 auto;min-width:0;display:grid;gap:2px;font-family:"Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
html:root body > .ag241-ql .ag241-ql-tag{justify-self:start;padding:3px 9px;border-radius:999px;background:#eef6e6;color:#2f6b45;font-size:11px;font-weight:700;letter-spacing:.02em}
html:root body > .ag241-ql .ag241-ql-t strong{font-size:16px;font-weight:700;color:#1f3a2a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:root body > .ag241-ql .ag241-ql-t small{font-size:12px;color:#6a7f6b}
html:root body > .ag241-ql .ag241-ql-t small.is-err{color:#9a3a26}
html:root body > .ag241-ql :is(.ag241-ql-ext,.ag241-ql-x){flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;border:1px solid rgba(29,97,65,.14);background:#fff;color:#26432f;cursor:pointer;text-decoration:none;
  transition:background-color .2s ease,transform .2s ease}
html:root body > .ag241-ql :is(.ag241-ql-ext,.ag241-ql-x):hover{background:#f2f8ec}
html:root body > .ag241-ql :is(.ag241-ql-ext,.ag241-ql-x) svg{width:18px;height:18px}
html:root body > .ag241-ql .ag241-ql-ext[hidden]{display:none}
html:root body > .ag241-ql .ag241-ql-pages{flex:1 1 auto;overflow:auto;padding:20px 22px 28px;display:grid;gap:18px;justify-items:center;overscroll-behavior:contain}
html:root body > .ag241-ql .ag241-ql-page{position:relative;margin:0;width:100%;max-width:700px;min-height:240px;border-radius:10px;background:#fff;
  box-shadow:0 14px 32px -22px rgba(18,38,27,.55),0 0 0 1px rgba(29,97,65,.08);overflow:hidden;opacity:0;transform:translateY(8px);
  transition:opacity .35s ease,transform .45s cubic-bezier(.22,.8,.24,1)}
html:root body > .ag241-ql .ag241-ql-page.is-ready{opacity:1;transform:none;min-height:0}
html:root body > .ag241-ql .ag241-ql-page img{display:block;width:100%;height:auto}
html:root body > .ag241-ql .ag241-ql-page.is-err{min-height:120px;background:repeating-linear-gradient(45deg,#fff,#fff 8px,#f6f8f4 8px,#f6f8f4 16px)}
html:root body > .ag241-ql .ag241-ql-page figcaption{position:absolute;right:10px;bottom:10px;padding:3px 9px;border-radius:999px;background:rgba(31,58,42,.78);color:#f2fbe6;
  font:700 11px/1.3 "Hellix",ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums}

/* ---------- Une seule tuile de téléchargement ---------- */
html:root body section.batch-page > section.ag205-downloads.ag241-merged{display:none!important}
html:root body section.batch-page > div.batch-final.ag241-dl{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
html:root body section.batch-page > div.batch-final.ag241-dl > h2{flex:1 1 100%;margin-bottom:4px}
html:root body section.batch-page > div.batch-final.ag241-dl > .ag241-dl-main{display:contents}
html:root body div.batch-final.ag241-dl .ag241-dl-all{order:1;display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 18px;border:0;border-radius:14px;cursor:pointer;
  font:600 14px/1 "Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#f4fbe9;background:linear-gradient(180deg,#2f5c43,#244a35);
  box-shadow:0 12px 24px -14px rgba(23,68,47,.7);transition:filter .2s ease,transform .2s ease}
html:root body div.batch-final.ag241-dl .ag241-dl-all svg{width:18px;height:18px}
html:root body div.batch-final.ag241-dl .ag241-dl-all[hidden]{display:none}
html:root body div.batch-final.ag241-dl .ag241-dl-all:hover:enabled{filter:brightness(1.08)}
html:root body div.batch-final.ag241-dl .ag241-dl-all:active:enabled{transform:scale(.98)}
html:root body div.batch-final.ag241-dl .ag241-dl-all:disabled{opacity:.5;cursor:default}
html:root body div.batch-final.ag241-dl .ag241-dl-all.is-busy{cursor:progress}
html:root body:not(#lx) #root section.batch-page > div.batch-final.ag241-dl > a.button:not(#ag241-x){order:2;height:44px;box-sizing:border-box;display:inline-flex;align-items:center;padding:0 16px;border-radius:14px;
  background:#fff!important;color:#26432f!important;border:1px solid rgba(29,97,65,.16)!important;box-shadow:none!important;font-weight:600}
html:root body:not(#lx) #root section.batch-page > div.batch-final.ag241-dl > a.button:not(#ag241-x):hover{background:#f2f8ec!important}
html:root body section.batch-page > div.batch-final.ag241-dl > .google-drive-control{order:3}
html:root body div.batch-final.ag241-dl .ag241-dl-opt{order:4;display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 6px;border:0;background:none;cursor:pointer;
  font:600 13px/1 "Hellix",ui-sans-serif,system-ui,sans-serif;color:#5f7864}
html:root body div.batch-final.ag241-dl .ag241-dl-opt svg{width:15px;height:15px;transition:transform .3s cubic-bezier(.22,.8,.24,1)}
html:root body div.batch-final.ag241-dl.ag241-opts .ag241-dl-opt svg{transform:rotate(90deg)}
html:root body div.batch-final.ag241-dl .ag241-dl-opt:hover{color:#26432f}
html:root body div.batch-final.ag241-dl .ag241-dl-note{order:5;flex:1 1 100%;margin:2px 0 0;font-size:12.5px;color:#6a7f6b}
html:root body div.batch-final.ag241-dl .ag241-dl-note[hidden]{display:none}
html:root body section.batch-page > div.batch-final.ag241-dl > :is(label,p.small,button.button.secondary){order:6}
html:root body section.batch-page > div.batch-final.ag241-dl > :is(label,p.small){flex:1 1 100%}
html:root body section.batch-page > div.batch-final.ag241-dl:not(.ag241-opts) > :is(label,p.small,button.button.secondary){display:none!important}
html:root body section.batch-page > div.batch-final.ag241-dl.ag241-opts > :is(label,p.small,button.button.secondary){animation:ag241-in .38s cubic-bezier(.22,.8,.24,1) both}

@media (prefers-reduced-motion:reduce){
  html:root body :is(.ag241-grp,.ag241-ql,.ag241-ql *,.ag241-pop,.batch-list > article.batch-item){animation-duration:.01s!important;transition-duration:.01s!important}
}
