{% if not r.legible %}Ilegível — revise{% endif %}
{% if r.legible and (not r.supplier_name or r.total_paid is none or not r.mes or not r.ano) %}Incompleto — preencha{% endif %}
{{ r.confidence }}
{{ 'IA' if r.extractor == 'openai' else 'OCR local' }}
{% if r.uncertain_fields and r.uncertain_fields != '[]' %}
incertos: {{ r.uncertain_fields | replace('[','') | replace(']','') | replace('"','') }}
{% endif %}
{{ r.source_file_name }}