<div class="alert alert-success">
    <strong>Truncate complete.</strong>
    <div class="small mt-2">
        <div>Removed {{ images_removed|length }} images from series {{ series.pk }}.</div>
        {% if images_downsampled %}
            <div class="mt-1">Downsampled {{ images_downsampled|length }} images (pixel data reduced by 50%).</div>
        {% endif %}
        {% if remove_empty_dicoms %}
            <div class="mt-1">✓ Empty DICOM removal applied</div>
        {% endif %}
        {% if downsample_pixels %}
            <div class="mt-1">✓ Pixel downsampling applied (original hash preserved)</div>
        {% endif %}
    </div>
</div>
{% if images_removed %}
    <details class="mt-2">
        <summary class="small">Show removed image IDs</summary>
        <div class="small mt-1">{{ images_removed|join:", " }}</div>
    </details>
{% endif %}
{% if images_downsampled %}
    <details class="mt-2">
        <summary class="small">Show downsampled image IDs</summary>
        <div class="small mt-1">{{ images_downsampled|join:", " }}</div>
    </details>
{% endif %}
