
/* Only works in some browsers like Opera */
@page {
 size: portrait;
 margin-top: 0.8cm;
 margin-left: 2.3cm;
}

/* Set margin at bottom for the footer...*/
html {
 margin: 0;
 padding-bottom:0.5cm;
 padding: 0;
}

body {
 margin: 0;
 padding: 0;
}

* {
 /* background-color: white !important; */
 background-image: none !important;
}


/* Things that shall not be printed */
.printfunctions,.noprint {
 display: none !important;
 height: 0;
}

/* Header, repeat on every page */
/* ATTENTION: The header must be kept small, otherwise firefox won't reprint it... */
.printhead {
 display: table-header-group;
 top: 0;
 margin-left: auto;
 margin-right: auto;
}
.printhead_chrome {
 display: table-row-group; /* Chrome still has problems with table-header-group... */
}

/* Body area */
.printbody {
 display: table-row-group;
}

/* Dummy footer, to have a spacing at the bottom of the page... */
.printfootdummy {
 display: table-footer-group;
 color: white;
}

/* Real footer, repeat on every page */
.printfoot {
 /* display: table-footer-group; */
 display: block;
 position: fixed;
 bottom: 0;
 page-break-after:always;
}

.printfoot_chrome {
 height:30px;
 padding-bottom:0;
 margin-bottom:0;
 position: absolute;
}

.printfoot_safari {
 position:absolute;
 left:0;
 width:640px;
 height:0;
}

.printfoot_edge {
 min-height:20px;
}


/* Hack for Opera 9 and later */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
.invoice_logo { height: 80px; }
.printfoot { position: absolute; }
}
