{% if show %}
<div class="quality-indicator position-absolute top-0 end-0 m-2"
     title="{{ tooltip }}"
     data-bs-toggle="tooltip"
     data-bs-placement="left">
    {% if has_warning %}
    <span class="badge bg-danger fs-5">⚠️</span>
    {% else %}
    <span class="badge bg-{{ color }} fs-6" style="opacity: 0.9;">
        {{ symbol }}
    </span>
    {% endif %}
    {% if size_text %}
    <small class="d-block text-muted mt-1" style="font-size: 0.7rem;">{{ size_text }}</small>
    {% endif %}
</div>
{% endif %}
