<style type="text/css" media="all">
    @media print {
        @page {
            margin: 0 !important;
            padding: 0;
        }

        .stitek {
            float: none !important;
            border: none !important;
        }
    }

    body {
        margin: 0;
        padding: 0;
        color: black;
    }

    .stitek {
        width: 68mm;
        height: 38mm;
        box-sizing: border-box;
        page-break-after: always;
        border: dimgrey dashed 1px;
        overflow: hidden;
        position: relative;
        background-color: white;
    }

    .title {
        padding: 2px 2px 2px 4px;
        font-weight: bold;
    }
    .variation_title {
        padding: 2px 2px 2px 4px;
        font-size: 12px;
    }

    .price {
        position: absolute;
        right: 2mm;
        bottom: 2mm;
    }
    .price td {
        padding: 0px 3px;
        vertical-align: baseline;
    }
    .price td:first-child {
        text-align: right;
        font-weight: bold;
    }
    .price td.price_sDPH {
        font-size: 24px;
    }
    .price td.price_bezDPH {
        font-size: 18px;
    }
</style>

{foreach $products as $key => $position}
{block stitek}
<div class="stitek">
    <div class="title">
        {$position.product_title}
    </div>
    <div class="variation_title">
        {$position.variation_title}
    </div>
    <div class="price">
        <table>
            <tr><td class="price_sDPH">{($position.price*(100+$position.vat)/100)|format_price}</td><td>s DPH</td></tr>
            <tr><td class="price_bezDPH">{$position.price|format_price}</td><td>bez DPH</td></tr>
        </table>
    </div>
</div>
{/block}
{/foreach}

<script>
    //window.print();
</script>
