<?xml version="1.0"?>
<t t-name="account_reports.pdf_export_main_table_header">
        <thead id="table_header">
            <t t-foreach="options['column_headers']" t-as="column_header">
                <tr>
                    <!-- First empty column -->
                    <th/>

                    <!-- Other columns -->
                    <t t-foreach="column_header * column_headers_render_data['level_repetitions'][column_header_index]" t-as="header">
                        <t t-set="no_subheader_division" t-value="header.get('forced_options', {}).get('no_subheader_division')"/>
                        <th t-att-colspan="header.get('colspan', column_headers_render_data['level_colspan'][column_header_index]) + (1 if options.get('show_horizontal_group_total') and column_header_first else 0)" t-att-rowspan="len(options['column_headers']) - 1 if no_subheader_division else 1" class="o_overflow_name">
                            <t t-out="header.get('name')"/>
                        </th>
                    </t>

                    <th t-if="options.get('show_horizontal_group_total') and not column_header_first">
                        <t t-out="[group['name'] for group in options['available_horizontal_groups'] if group['id'] == options['selected_horizontal_group_id']][0]"/>
                    </th>

                    <th t-if="options.get('column_percent_comparison') == 'growth'">%</th>
                </tr>
            </t>
            <!-- Custom subheaders -->
            <t t-if="column_headers_render_data['custom_subheaders']">
                <tr>
                    <!-- First empty column -->
                    <th/>

                    <!-- Other columns -->
                    <t t-foreach="column_headers_render_data['custom_subheaders']" t-as="subheader">
                        <th t-att-colspan="subheader.get('colspan', 1)">
                            <t t-out="subheader.get('name')"/>
                        </th>
                    </t>
                </tr>
            </t>
            <tr>
                <!-- First empty column -->
                <th/>

                <t t-foreach="options['columns']" t-as="subheader">
                    <th>
                        <t t-out="subheader.get('name')"/>
                    </th>
                </t>
                <th t-if="options.get('show_horizontal_group_total')">
                    <t t-out="options['columns'][0].get('name')"/>
                </th>
                <th t-if="options.get('column_percent_comparison') == 'growth'"/>
            </tr>
        </thead>
    </t>

    