{# Pill-uri de filtrare a starii, randate in bara de filtre (_coada.html) si re-randate
   prin OOB la fiecare reincarcare a tabelului (_submissions.html). Stare activa =
   status_filtru. "Toate" reseteaza filtrul; categoriile apar doar cand au n>0. #}
<button type="button" class="pill-cat pill-cat-reset" data-status=""
        aria-pressed="{{ 'true' if not status_filtru else 'false' }}"
        onclick="filtreazaStare(this, '')">Toate</button>
{% for pill in pills_categorii %}
<button type="button" class="pill-cat" data-status="{{ pill.status }}"
        aria-pressed="{{ 'true' if status_filtru == pill.status else 'false' }}"
        style="color:var({{ pill.color_var }}); border-color:var({{ pill.color_var }});"
        onclick="filtreazaStare(this, '{{ pill.status }}')">
  {{ pill.label }}
  <span class="pill-cat-n" style="background:var({{ pill.color_var }});">{{ pill.n }}</span>
</button>
{% endfor %}
