* {
  box-sizing: border-box;
}

:root {
  -webkit-print-color-adjust: exact;
}

body {
  margin: 0;
}

body, table {
  font: 13px arial;
}

table {
  border: 1px solid black;
  border-spacing: 0;
}

td, th {
  padding: 0.2em 0.5em;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #bbb;
}

xmp {
  display: none;
}

u {
  color: darkblue;
}

u:hover {
  color: green;
  cursor: pointer;
}

#Table * {
  font: 9pt arial;
}

.heading {
  background: #333;
  color: #eee;
  font-size: 140%;
  border: 1px solid black;
  padding: 0.5em;
}

tr.red td, td.red {
  background: red;
  color: #eee;
  font-weight: bold;
}

tr.orange td, td.orange {
  background: orange;
}
 
tr.yellow td, td.yellow {
  background: yellow;
}
 
tr.green td, td.green {
  background: lightgreen;
}

th {
  background: #def;
  font-weight: normal;
}

.category td {
  background: #333;
  color: #eee;
  border: 1px solid black;
  font: bold 14px arial;
}

td, th {
  white-space: nowrap;
  font: 12px arial;
}

.RFQ {
  font-size: 110%;
  font-weight: bold;
  border-left: 0.5pt solid black;
}

#Data tr:nth-child(n+4) td:nth-child(4),     /* Lab */
#Data tr:nth-child(n+4) td:nth-child(n+17) { /* Number columns */
  text-align: right;
}

.borderLeft {
  border-left: 0.5pt solid black;
}

#Data tr:nth-child(n+4) > td:nth-child(26) { /* Hay Preservative */
  text-align: center;
}

#Data tr:nth-child(2) td { /* Key */
  cursor: pointer;
  text-align: center;
  border-bottom: 1px solid black;
}

#Data tr:nth-child(3) {
  background: #eee;
}

#Data td:nth-child(6) div {
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.unfilter {
  display: none;
}

#Data input  {
  width: 3em;
}

#Data {
  display: none;
}

#Data tr:nth-child(3) > * {
  position: sticky;
  top: 0;
  background: #def;
}

#Data tr:nth-child(4) > * {
  position: sticky;
  top: 2.5em;
  background: #def;
}

tr td {
  vertical-align: top;
}

.hidden, #Data .ADFNDF {
  display: none;
}

#Data.ADFNDF .ADFNDF {
  display: table-cell;
}

.selected {
  background: #cfc;
}

#Query [colspan] {
  background: #333;
  color: #eee;
}

#Query {
  display: none;
}

tr.average {
  font-weight: bold;
}

button.showAll {
  display: none;
}