<data priority="50">
    <xpath expr="//table[hasclass('o_main_table')]" position="replace">
        <div style="margin: 0 20px;">
            <table class="o_has_total_table table o_main_table table-borderless table-bordered" style="border-collapse: collapse; border: none; width: 100%;">
                <thead>
                    <tr>
                        <th class="text-start fw-bold" style="width: 50%; border-right: 1px solid #dee2e6; border-bottom: 2px solid #dee2e6;">GRAVITY package <span t-out="doc.plan_id.name or ''"/></th>
                        <th class="text-start fw-bold" style="width: 50%; border-bottom: 2px solid #dee2e6;">Offered Price</th>
                    </tr>
                </thead>
                <tbody>
                    <t t-foreach="doc.order_line" t-as="line">
                        <t t-if="line.display_type not in ['line_section', 'line_note', 'line_subsection']">
                            <tr>
                                <td class="text-start" style="width: 50%; border-right: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6;">
                                    <span t-field="line.name"/>
                                </td>
                                <td class="text-center" style="width: 50%; border-bottom: 1px solid #dee2e6;">
                                    <span t-field="line.price_subtotal" t-options="{'widget': 'monetary', 'display_currency': doc.currency_id}"/>
                                </td>
                            </tr>
                        </t>
                    </t>
                    <tr class="fw-bold">
                        <td class="text-start" style="width: 50%; border-right: 1px solid #dee2e6; border-top: 2px solid #dee2e6;">
                            Total costs
                        </td>
                        <td class="text-center" style="width: 50%; border-top: 2px solid #dee2e6;">
                            <span t-esc="sum(line.price_subtotal for line in doc.order_line if line.display_type not in ['line_section', 'line_note', 'line_subsection'])" t-options="{'widget': 'monetary', 'display_currency': doc.currency_id}"/>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </xpath>
    <div name="so_total_summary" position="replace">
        <div class="clearfix"/>
    </div>
</data>