@page {
  size: A4 portrait;
  margin: 1mm;
}

@media print {
  nav,
  .controlArea,
  .pdf-controls,
  .no-pdf,
  .actionBtns {
    display: none !important;
  }

  .headerArea {
    display: block !important;
  }

  #resultArea,
  #resultArea .overflow-x-auto,
  .report-pdf-export,
  .report-pdf-export .overflow-x-auto {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #resultArea table,
  .report-pdf-export table {
    width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
  }

  #resultArea th,
  #resultArea td,
  .report-pdf-export th,
  .report-pdf-export td {
    white-space: normal !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    word-break: break-word;
  }

  tr {
    page-break-inside: avoid;
  }
}

.report-pdf-export {
  background: #fff;
  color: #111;
}

.report-pdf-export .controlArea,
.report-pdf-export .no-pdf {
  display: none !important;
}

.report-pdf-export .overflow-x-auto {
  overflow: visible !important;
  width: 100% !important;
}

.report-pdf-export table {
  width: 100% !important;
}

.report-pdf-export th,
.report-pdf-export td {
  white-space: normal !important;
  padding: 4px 6px !important;
  font-size: 10px !important;
  word-break: break-word;
}

body.pdf-capturing {
  overflow: visible !important;
}

body.pdf-capturing .controlArea,
body.pdf-capturing .no-pdf,
body.pdf-capturing .pdf-controls,
body.pdf-capturing .actionBtns {
  display: none !important;
}

body.pdf-capturing .headerArea,
body.pdf-capturing .report-pdf-extras,
body.pdf-capturing .report-pdf-extras .headerArea {
  display: block !important;
}

body.pdf-capturing #resultArea,
body.pdf-capturing #resultArea .overflow-x-auto {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.pdf-capturing #resultArea,
body.pdf-capturing #resultArea * {
  font-size: 10px !important;
}

body.pdf-capturing #resultArea th,
body.pdf-capturing #resultArea td {
  white-space: normal !important;
  color: #111 !important;
  padding: 4px 6px !important;
  font-size: 10px !important;
}
