            <td>{{ month }}</td>
                                    <td>{{ base_currency.symbol }}{{ "%.2f"|format(data.total) }}</td>
                                    <td>
                                        {% set sorted_categories = data.by_category.items()|sort(attribute='1.amount', reverse=true) %}
                                        {% for category_name, category_data in sorted_categories[:3] %}
                                            <div class="pill" style="background-color: {{ categ