@page { margin: 0 }
.sheet {
  margin: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  /*page-break-after: always;*/
}

/** Paper sizes **/
body.A3               .sheet { width: 297mm; height: 419mm }
body.A3.landscape     .sheet { width: 420mm; height: 297mm }
body.A4               .sheet { width: 210mm; height: 297mm }
body.A4.maks          .sheet { width: 210mm; height: 100% }
body.A4.landscape     .sheet { width: 297mm; height: 209mm }
body.A5               .sheet { width: 148mm; height: 209mm }
body.A5.landscape     .sheet { width: 210mm; height: 147mm }
body.A6               .sheet { width: 147mm; height: 105mm }

/** Padding area **/
.sheet.padding-0mm { padding: 0mm }
.sheet.padding-5mm { padding: 5mm }
.sheet.padding-10mm { padding: 10mm }
.sheet.padding-15mm { padding: 15mm}
.sheet.padding-20mm { padding: 10mm 20mm 10mm 20mm }
.sheet.padding-25mm { padding: 10mm 25mm 10mm 25mm }

/** For screen preview **/
@media screen {
  body { background: #e0e0e0 }
  .sheet {
    background: white;
    box-shadow: 0 .5mm 2mm rgba(0,0,0,.3);
    margin: 5mm auto;
  }
}

/** Fix for Chrome issue #273306 **/
@media print {
  body.A3.landscape { width: 420mm }
  body.A3, body.A4.landscape { width: 297mm }
  body.A4, body.A4.maks, body.A5.landscape { width: 210mm }
  body.A5 { width: 148mm }
  body.A6 { width: 148mm }
  textarea {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-image: none !important;
    resize: none;
  }
  /*.table-bordered > tbody > tr > td, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > td, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > thead > tr > th {
            border: 1px solid black;
        }
        */
}

.no-print {
  visibility:hidden;
}

.no-break {
	page-break-inside: avoid; /* Old syntax */
	break-inside: avoid;      /* Modern syntax */
}

/* Prevent starting a new page before this element */
.no-new-page {
	page-break-before: auto;
	break-before: auto;
}