/* shared css styles for all the printable reports we have available */

/* hide things when actually printing, like the 'print' button itself */
@media print {
    .noprint, .noprint * {
        display: none !important;
    }
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 9pt;
    margin: 25pt;
}

/* styles report header tables
   those are used on top of a page and basically look like boxes with
   a two column table with information in it, used in certificates and history sheets
*/

table.header_table {
    display: inline-block;
    border: 1px black solid;
    padding: 8px;
    margin-bottom: 8pt;
    margin-right: 10pt;
}

.header_table tr {
    margin: 0;
    padding: 0;
}

.header_table td {
    margin: 0;
    padding: 2px;
    min-width: 140px;
}

.header_table td:last-child {
    text-align: right;
}

.header_table th {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 8px;

}

/*
    styles panelist and lab history tables, which generally are long tables
    with a couple of rather narrow columns containing mostly floats, those
    are read vertically
*/

table.history_table {
    border-spacing: 0;
    border: 2px solid black;
}

.history_table td {
    width: 140px;
    vertical-align: top;
    text-align: right;
    border-right: solid black 1px;
    padding: 4px 10px 4px 4px;
}

.history_table tr {
}

.history_table th {
    border-bottom: solid black 2px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* certificate table, in contrast to history table, those are read horizontally */

table.report_table {
    width: 100%;
    margin: 0 auto;
    border: 2px solid black;
}

table.report_table th {
    border-bottom: 1pt solid black;
    border-right: none;
    text-align: left;
    padding-bottom: 5pt;
    font-weight: bold;
}

.report_table td {
    padding: 5pt;
    border-left: 1px dashed #000000;
    border-bottom: 1px solid black;
}

/* styles for a single round and matrices (measurement) */

table.round_table {
    display: inline-block;
    margin-right: 20pt;
    border-bottom: 1px black solid;
    border-left: 1px solid black;
    margin-top: 10px;
    border-spacing: 0;
    padding: 0;
}

.round_table tr {
    margin: 0;
    padding: 0;
}

.round_table td {
    border-right: 1px solid black;
    margin: 0;
    padding: 2px;
}

.round_table th {
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding: 2px;
    font-weight: normal;
    text-align: center;
}

/* general overview table for sample level reports */

table.sample_report_table {
    width: 65%;
    margin-bottom: 10pt;
}

table.sample_report_table th {
    border-bottom: 1px solid black;
    border-right: none;
    text-align: left;
    padding-bottom: 5pt;
    font-weight: bold;
}

.sample_report_table td {
    padding-top: 2pt;
}

.sample_report_table td:nth-child(0) {
    width: 30%;
}

.sample_report_table td:nth-child(1) {
    width: 50%;
}

/* utility */

@media print {
    div.footerdiv {
        display: block;
        position: fixed;
        bottom: 0;
    }
}