@page { margin: 0; size: a4}

.sheet {
  margin: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  page-break-after: always;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
  border:0;
  border-radius: .25rem;
  background: #fff;
}

.filter-block .sheet{padding: 15px; max-width: 100%; overflow: unset}
.sheet-content{position: relative; height: 100%; z-index: 10}

.sheet-main{position: relative; z-index: 2}
.sheet-main-header{height: 80px;}
/*.sheet>table{margin: 0; padding: 0; border: 0; width: 100%; position: relative; z-index: 1;}*/

/** Paper sizes **/
.A3               .sheet { width: 297mm; height: 419mm }
.A3.landscape     .sheet { width: 420mm; height: 296mm }
.A4               .sheet { width: 210mm; height: 296mm }
.A4.landscape     .sheet { width: 297mm; height: 209mm }
.A5               .sheet { width: 148mm; height: 209mm }
.A5.landscape     .sheet { width: 210mm; height: 147mm }
.letter           .sheet { width: 216mm; height: 279mm }
.letter.landscape .sheet { width: 280mm; height: 215mm }
.legal            .sheet { width: 216mm; height: 356mm }
.legal.landscape  .sheet { width: 357mm; height: 215mm }

.min-A3               .sheet { width: 297mm; min-height: 419mm }
.min-A3.landscape     .sheet { width: 420mm; min-height: 296mm }
.min-A4               .sheet { width: 210mm; min-height: 296mm }
.min-A4.landscape     .sheet { width: 297mm; min-height: 209mm }
.min-A5               .sheet { width: 148mm; min-height: 209mm }
.min-A5.landscape     .sheet { width: 210mm; min-height: 147mm }
.min-letter           .sheet { width: 216mm; min-height: 279mm }
.min-letter.landscape .sheet { width: 280mm; min-height: 215mm }
.min-legal            .sheet { width: 216mm; min-height: 356mm }
.min-legal.landscape  .sheet { width: 357mm; min-height: 215mm }

.h-A4{height: 296mm}
.h-A4.landscape{height: 209mm}

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

.sheet-header>tr>td,.sheet-body>tr>td,.sheet-footer>tr>td{padding: 0;}

.padding-10mm .sheet-header>tr>td,.padding-10mm .sheet-footer>tr>td{height: 10mm}
.padding-10mm .sheet-body>tr>td{padding: 0 10mm}

.padding-12mm .sheet-header>tr>td,.padding-12mm .sheet-footer>tr>td{height: 12mm}
.padding-12mm .sheet-body>tr>td{padding: 0 12mm}

.padding-15mm .sheet-header>tr>td,.padding-15mm .sheet-footer>tr>td{height: 15mm}
.padding-15mm .sheet-body>tr>td{padding: 0 15mm}

.padding-20mm .sheet-header>tr>td,.padding-20mm .sheet-footer>tr>td{height: 20mm}
.padding-20mm .sheet-body>tr>td{padding: 0 20mm}

.padding-25mm .sheet-header>tr>td,.padding-25mm .sheet-footer>tr>td{height: 25mm}
.padding-25mm .sheet-body>tr>td{padding: 0 25mm}

.padding-halfInch .sheet-header>tr>td{padding: 0.5in 0.5in 0}
.padding-halfInch .sheet-body>tr>td{padding:0 0.5in}
.padding-halfInch .sheet-footer>tr>td{padding: 0 0.5in 0.5in}

.padding-quarterInch .sheet-header>tr>td{padding: 0.25in 0.25in 0}
.padding-quarterInch .sheet-body>tr>td{padding:0 0.25in}
.padding-quarterInch .sheet-footer>tr>td{padding: 0 0.25in 0.25in}


/*.sheet table, .sheet .table-bordered td, .sheet .table-bordered th{border-color: #000}*/
table.table thead td, table.table thead th{border-bottom-width: 1px; vertical-align: middle;}

.sheet-main table, .sheet-main table th, .sheet-main table td{border: 1px solid #555}

/** For screen preview **/
@media screen {
  .sheet.padding-10mm-screen { padding: 10mm }
  .sheet.padding-12mm-screen { padding: 12mm }
  .sheet.padding-15mm-screen { padding: 15mm }
  .sheet.padding-20mm-screen { padding: 20mm }
  .sheet.padding-25mm-screen { padding: 25mm }

  /*.A4{!*margin-bottom: 1rem; *!display: inline-block; max-width: 100%;}*/
  .A4 .sheet:last-child{margin-bottom: 0}

  /*@media(min-width: 148mm){*/
  /*  .A4{max-width: 100%;}*/
  /*}*/

  /*@media(min-width: 297mm){*/
  /*  .A4.landscape{max-width: 100%;}*/
  /*}*/

  /*@media(max-width: 1200px){*/
  /*  .A4, .min-A4{overflow: auto; box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12); border-radius: .25rem; overflow: auto;}*/
  /*}*/
}

.watermarkText{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  color: #ccc;
  text-align: justify;
  font-size: 11px;
  text-transform: uppercase;
}

.table-bordered td.border-tb-0{border-top: none !important; border-bottom: none !important;}

/** Fix for Chrome issue #273306 **/
@media print {
  iframe {
    clip-path: polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);
  }
  * {
    -webkit-print-color-adjust: exact;
  }
  .breadcrumb, .tooltip, .cke_screen_reader_only,.table-scrollbar-container{display: none;}
  body, main{ margin-left: 0!important; margin-right: 0 !important; margin-top: 0!important;; margin-bottom: 0!important}
  table td, table th, .table td, .table th{background-color: transparent !important;}
  .A3.landscape      { width: 420mm }
  .A3, .A4.landscape, .h-A4.landscape { width: 297mm }
  .A4, .A5.landscape, .h-A4 { width: 210mm }
  .A5                { width: 148mm }
  .letter, .legal    { width: 216mm }
  .letter.landscape  { width: 280mm }
  .legal.landscape   { width: 357mm }
  .sheet-main table, .sheet-main table th, .sheet-main table td{border: 1px solid #555 !important;}
  .table-bordered td.border-tb-0{border-top: none !important; border-bottom: none !important;}

  .min-A4 .with-watermarkLogo .sheet-content:before{position: fixed}
}
