
page {
  position: relative;
  background: white;
  display: block;
 display:middle;
 /* margin: 1cm ;
  margin-bottom: 0.5cm;*/
  
 box-shadow: 0 0 0.1cm rgba(0,0,0,0.2);
}
page[size="A4"] {  
 width: 21cm;
  height: 29.3cm;
  /*padding: 1cm ;*/

}
page[size="A4"][layout="portrait"] {
 width: 29.7cm;
  height: 20.5cm;  
}
page[size="A3"] {
  width: 29.7cm;
  height: 42cm;
}
page[size="A3"][layout="portrait"] {
	
  width: 42cm;
  height: 29.3cm;  
}
page[size="A5"] {
  width: 14.8cm;
  height: 20.8cm;
}
page[size="A5"][layout="portrait"] {
  width: 21cm;
  height: 14.5cm;  
}





.headerp{
  
 background-image: url("img/headerA4.jpg");


  margin: 0px ;
  /*padding:0px;
  text-align: center;*/
  border-radius: 0px;
  width:auto;
  height:100px;
  
 
 
}

/*header:after{
  content: "Header";
}
footer:after{
  content: "Footer";
}*/

/*headerp {
	top: 0;
  padding-top: 5mm;
  padding-bottom: 3mm;
  
}*/
footer {
   bottom: 0;
  color: #000;
  padding-top: 3mm;
  padding-bottom: 5mm;
  
 /*  padding-right: 1.5cm;
  padding-left: 1.5cm;
  */
 
}

@media print {
  body, page {
	  
	  -webkit-print-color-adjust: exact;
    margin: 0;
     box-shadow: 0 ;
	page-break-after: always;
	
  }
   @page { margin: 0; }
  
   
  
  
  footer {
    position: fixed;
    left: 0;
    right: 0;
   /*	background-image: url("img/footerA4.jpg");
    padding-right: 1.5cm;
    padding-left: 1.5cm;
	*/
  }
  
   headerp {
    position: fixed;
    left: 0;
    right: 0;
	top:0;
   	background-image: url("img/headerA4.jpg");
	padding-top:0cm;
    padding-right: 0cm;
    padding-left: 0cm;
	height:100px;
  }
  
}







