@media print {
    @page {
        size: A4;
        margin: 1cm;
    }
    @page:right{
        @bottom-right {
            content: counter(page);
        }
    }
    .container {
        border: 0;
        margin: 0;
        width: 100%;
    }  
    @page:left{
        @bottom-left {
            content: counter(page);
        }
    }
    div.reportbreak {
        page-break-after: always;
    }

    .reportbreak {
        break-after: always;
    }

    * { overflow: visible !important; }
}

