<style>
    p {
        width: 100%;
        display: block;
    }

    p.title {
        font-size: 1em;
        font-weight: bold;
    }
    .wrap {
        border: 1px solid blue;
        max-width: 90%;
    }
</style>


{% if page_break %}

    <table style="border-spacing:0;padding:0 0.5cm 0 0;">
        <tr>
            <td>
                {% if label_total is defined and label_total > 1 %}
                    <p style="text-align:right;font-size:0.8em;">{{ label_position }} of {{ label_total }}</p>
                {% endif %}

                <p class="title">{{ label_title }}</p>

                {% if dosage %}
                    <p>{{ dosage | striptags | raw }}</p>
                {% endif %}

                <br pagebreak="true"/>

                <p class="title">{{ label_title }}</p>

                {% if warnings %}
                    <p>{{ warnings | striptags | raw }}</p>
                {% endif %}
            </td>
        </tr>
    </table>

{% else %}

<table class="first" style="border-spacing:0;padding:0 0.5cm 0 0;">
    <tr>
        <td>
            {% if label_total is defined and label_total > 1 %}
                <p style="text-align:right;font-size:0.8em;">{{ label_position }} of {{ label_total }}</p>
            {% endif %}

            <p class="title">{{ label_title }}</p>

            {% if dosage %}
                <p>{{ dosage | striptags | raw }}</p>
            {% endif %}

            {% if warnings %}
                <p>{{ warnings | striptags | raw }}</p>
            {% endif %}
        </td>
    </tr>
</table>

{% endif %}
