@charset "utf-8";
/* CSS Document */

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ CSS print styles go here */
  @page {
    size: auto;   /* auto is the initial value */
    size: A4 portrait;
    margin: 0;  /* this affects the margin in the printer settings */
    border: 1px solid red;  /* set a border for all printed pages */
  }
}





 html, body {
 /*  align:middle; */
	width: 210mm;
  /*   height: 297mm; */
  }





@media print {
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
}
@media screen {
    thead { display: table-header-group; }
    tfoot { display: table-header-group; }
}
/*@media screen {
    thead { display: table-header-group; }
    tfoot { display: block; }
}*/
@page {
    size: A4 portrait; /* can use also 'landscape' for orientation */
    margin-top: 0.40in;
    margin-bottom: 0.40in;

    @bottom-center {
        content: element(footer);
    }

    @top-center {
        content: element(header);
    }


}

#page-header {
    display: block;
    position: running(header);
}

#page-footer {
    display: block;
    position: running(footer);
}


/*
.page-number:before {
    content: counter(page);
}

.page-count:before {
    content: counter(pages);
}
*/



#page-footer:after {
    counter-increment: page;
    content: counter(page);
}
