{#
  _bulk_held_banner.html — banner bulk "Trimite toate (N)" (PRD 5.19 US-005).

  N = randuri tinute ale contului (queued AND held=1). Randat:
    - initial in _coada.html (banner_oob nesetat -> fara OOB);
    - RE-RANDAT prin OOB (banner_oob=true) din _submissions.html la FIECARE reincarcare a
      listei, ca sa nu ramana stale dupa eliberari (fix /code-review #3).

  Wrapper cu id STABIL #bulk-held-banner-wrap: OOB outerHTML il inlocuieste mereu (chiar si
  gol la N=0), ca id-ul sa ramana tinta pentru urmatorul OOB. Confirmare tipata prin modal
  (count + mediu RAR), NU hx-confirm.
#}
<div id="bulk-held-banner-wrap"{% if banner_oob %} hx-swap-oob="outerHTML"{% endif %}>
  {% if held_manual_count|default(0) %}
  <div style="display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px;
              padding:8px 10px; border-left:3px solid var(--warn);
              background:color-mix(in srgb, var(--warn) 10%, var(--card)); border-radius:6px;">
    <span style="font-size:var(--fs-sm);">
      <strong>{{ held_manual_count }}</strong>
      {{ 'prezentare tinuta' if held_manual_count == 1 else 'prezentari tinute' }} manual.
    </span>
    <button type="button"
            onclick="var m=document.getElementById('modal-trimite-toate'); if(m){m.hidden=false;}"
            style="margin-left:auto; padding:4px 12px; font-size:13px; border-radius:6px;
                   border:1px solid var(--accent); background:var(--accent); color:#fff;
                   font-weight:600; cursor:pointer;">
      Trimite toate ({{ held_manual_count }})
    </button>
  </div>
  {% set cf_id = 'modal-trimite-toate' %}
  {% set cf_titlu = 'Trimiti toate prezentarile tinute?' %}
  {% set cf_count = held_manual_count %}
  {% set cf_env = env_bulk | default('prod') %}
  {% set cf_url = '/trimite-toate' %}
  {% set cf_vals = '{}' %}
  {% set cf_target = '#submissions-wrap' %}
  {% set cf_swap = 'innerHTML' %}
  {% set cf_confirm_label = 'Trimite toate (' ~ held_manual_count ~ ')' %}
  {% set cf_deschis = false %}
  {% include '_modal_confirma_trimitere.html' %}
  {% endif %}
</div>
