page[size="A4"] {
  background: white;
  width: 21cm;
  height: 29.7cm;
  display: block;
  margin: 0 auto;
  margin-bottom: 0.5cm;
  box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
}
.body {
    background-image: url(../images/iaaa-mawaqit.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 97%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
.caption {
    direction: rtl;
    font-family: cursive, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: bolder;
    border: hidden;
    color: darkblue;
}
.protect {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
.p {
	font-size: 30px;
	margin-top: 20px;
}
.table1 {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    border: 1.5px solid black;
    margin-left: auto;
    margin-right: auto;
    border: outset;
}
.table1 th {
    padding: 10px;
    border-collapse: collapse;
    text-align: center;
    border: 1px solid black;
    background-color: mediumturquoise;
    border: outset;
    font-family: system-ui;
}
.table1 tr {
    background-color: white;
}
.table1 td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f2f2f2;
    border: 1px solid beige;
    border: outset;
    font-family: system-ui;
} 
.table1 tbody tr:nth-child(odd) {
    background-color: lavender;
    border: outset;
}
.table2 {
    background-color: transparent;
    background: transparent;
    margin-left: auto;
    margin-right: auto;
}
.table2 th {
    background-color: transparent;
    background: transparent;
}
.table2 tr {
    background-color: transparent;
    background: transparent;
}
.table2 td {
    padding: 0 5px 0 5px;
    background-color: transparent;
    background: transparent;
}
.table2 tbody tr:nth-child(odd) {
    background-color: transparent;
    background: transparent;
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0px solid black;
    width: fit-content;
    margin-top: 350px;
}
.footer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
    width: fit-content;
}
.page-break-line{
  /**Make sure you don't give any height,border. Because giving them gives an 
  extra page.
  */
  visibility: hidden;
 }
@media print {
    body, page[size="A4"] {
    margin: 0;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
    }
/*  margin-top, margin-right, margin-bottom, margin-left
    padding-top, padding-right, padding-bottom, padding-left */
    * { margin: 37px auto 0 auto !important;
        padding: 4px 6px 4px 6px !important; }
    #controls, .footer, .footerarea{display: block;}
html, body, #wrapper {
    height: 96vh; 
    margin: 0 !important; 
    padding: 0 !important;
    overflow: hidden;
    font-size: 8.5pt;
    display: block;
    }
    .template { width: auto; top:0; right:0; bottom:0; left:0; }
    img { width:100%; }
    li { margin: 0 0 10px 20px !important;}
    /* style sheet for print goes here */
    .hide-from-printer {display: none; text-align: center;}
    body {visibility: visible; text-align: center;}
    .print {visibility: hidden;}
    .show-at-printer {display: block; text-align: center;}
  @page {
    size: A4 portrait;                      /* auto is the initial value */
    margin: 0;  /* this affects the margin in the printer settings */
    border: 1px solid red;  /* set a border for all printed pages */
    max-height: 90%;
	max-width: fit-content;
	}
   img {
	width: 95%;
	height: 95%;
	display: none;
	}
	.tooLarge {
    width: 50%; 
    height: 50%;
    }
    table { /* Or specify a table class */
    max-height: 90%;
    overflow: hidden;
    page-break-after: always !important;
    }
    /*This is the important to add page break!*/
    .page-break-line {
    page-break-before: always !important;
    }
    .print{
    page-break-after: always;
    }
}
.print:last-child{
    page-break-after: avoid;
    page-break-inside: avoid;
    margin-bottom: 0;
}
/* IE10+ CSS print styles */
    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE10+ CSS print styles go here */
    @page {
    size: A4 portrait;                      /* auto is the initial value */
    margin: 0;  /* this affects the margin in the printer settings */
    border: 1px solid red;  /* set a border for all printed pages */
  }
}