<script lang="ts">
    export let bgColor: string | undefined = undefined;
    export let bottomBorder: boolean = true;
</script>

<div style="width: 210mm; height: 297mm;" class="{(bgColor)?bgColor:"bg-white"} overflow-y-auto overflow-x-hidden">
    <div class="flex flex-col h-full">
        <div {...$$restProps}>
            <slot></slot>
        </div>

        {#if bottomBorder}
        <div class="border-b-2 mt-auto mb-0 border-dashed border-slate-600 hide-on-print"></div>
        {/if}
    </div>
</div>