@page {
  margin: 10mm;
  overflow: hidden;
}

html, body {
  font-size: 9pt !important;
}

html.landscape, body.landscape {
  height: 210mm;
  width: 297mm;
}

/** {
  text-shadow: none  !important;
  box-shadow: none  !important;
}*/


/*fix strange line patterns caused by gradients in some elements*/
:not(.ui-btn) {
  background-image: none !important;
}

.ui-page {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: block;
  height: auto;
  position: unset !important;
}

.printable {
  min-height: 0 !important;
}


.printable,
.printonly {
  display: initial !important;
  margin: 0px;
  background: initial;
}

tr.printonly {
  display: table-row !important;
}

/*** keep background color of all elements **/
.ui-header,
.ui-footer,
.ui-collapsible-heading-toggle,
.ui-li-count,
.ui-li-divider,
.listHeader {
  -webkit-print-color-adjust:exact;
}

.ui-collapsible-heading-toggle:after {
  display: none;
}

/*** remove border of some elements since they look washed out */
.ui-collapsible-heading-toggle,
.ui-collapsible-heading-toggle *,
.ui-li-count,
.ui-li-count *,
.ui-bar-a, .ui-bar-b, .ui-bar-c, .ui-bar-d, .ui-bar-e, .ui-bar-f, .ui-bar-g{
  border: none;
}


.teamTable {
  font-size: 9px !important;
}

.teamTable th[data-column="3"] {
  min-width: 15em;
}

/*** remove buttons */
#publishBadge,
#publishBadge *,
.ui-header .ui-btn,
.ui-header a,
.ui-table-columntoggle-btn,
.no-print * ,
.ui-li .ui-btn,
.removeLink,
.ui-footer .ui-btn,
.ui-btn-inner > .ui-icon,
a > .ui-icon,
.moveButtons,
.tableListSwitchContainer,
.tableListSwitchContainer *,
.tablesorter-filter-row,
.breakButtons,
.ui-header,
.ui-footer 
{
  display: none !important;
}

/*** remove form fields */
form.ui-listview-filter {
  display: none;
}

/*** adjust page breaks */
.page-break {
  page-break-after: always;
  height: 0;
  display: block;  // optional. must be sure it is block item in document flow
  clear: both;   // optional. use only if you are using float
}

li,
.ui-li,
.ui-btn-inner,
.ui-btn-text,
td,
tr,
.judgesPanel.ui-responsive,
.listHeader,
.ui-collapsible-heading {;
  page-break-inside: avoid !important;
}

.ui-header {
  page-break-inside: avoid;
  page-break-after: avoid;
}

/******/

/*** set header image sizes */
.ui-header {
  height: 90px;
}
.ui-header img.ui-btn-left{
  height: 65pt;
  margin: 0px 0px 0px 0px;
}
.ui-header img.ui-btn-right {
  height: 30pt;
}
table.main-content thead img,
.print-header img {
  height: .8cm;
  width: auto;
  margin-top: 5pt;
}
.aerochimpFooter img {
  height: .5cm;
  width: auto;
}
/****************************/


/*** reposition header and footer ***/
.ui-header, .ui-footer {
  position: relative;
}

.ui-header {
  top: 0;
}

.ui-footer {
  bottom: 0;
}

.print-header,
.aerochimpFooter {
  position: fixed;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  padding-right: 2em;
}
.print-header {
  top: 1em;
}
.aerochimpFooter {
  bottom: 1em; 
}

.aerochimpFooter .date {
  margin-top: 2em;
}

.ui-content,
.listHeader {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ui-collapsible-content {
  padding: 0 !important;
}

.resultTable th,
.resultTable td
 {
  display: table-cell !important;
}
