:root {
    --col-toggle-color: #6c6c6c; /* same as in sort icon */
}

@media (prefers-color-scheme: dark) {
    :root {
        --col-toggle-color: #adadad;
    }
}
/* Generic table styles */
table {
    margin: 0 1px;
    background: white; /* Fallback value */
    background: var(--background-color);
}
tr {
    background: white; /* Fallback value */
    background: var(--background-color);
}
th {
    background: #ddd; /* Fallback value */
    background: var(--primary-color);
    color: black; /* Fallback value */
    color: var(--text-color);
}
/* Summary and total/tag/suite details */
.details {
    border-color: #ccc; /* Fallback value */
    border-color: var(--secondary-color);
    border-width: 1px;
    border-style: solid;
    border-spacing: 0.2em;
    clear: both;
    width: 65em;
    margin-bottom: 1em;
}
.details th {
    background: white; /* Fallback value */
    background: var(--background-color);
    width: 11em;
    text-align: left;
    vertical-align: top;
}
.details td {
    vertical-align: top;
}
.selector th, .selector td {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    white-space: normal;
}
.first-selector th, .first-selector td{
    padding-bottom: 0.2em;
}
.middle-selector th, .middle-selector td {
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}
.last-selector th, .last-selector td{
    padding-top: 0.2em;
}
#print-selector {
    display: none;
}
/* Search */
input[type='submit'], input[type='button'] {
    background-color: #ddd; /* Fallback value */
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 0;
    padding: 4px 6px 4px 6px;
    color: black; /* Fallback value */
    color: var(--text-color);
}
input[type='submit']:hover, input[type='button']:hover {
    background-color: #ccc; /* Fallback value */
    background-color: var(--secondary-color);
}
#search-suite, #search-test, #search-include, #search-exclude {
    width: 25em;
    background-color: white; /* Fallback value */
    background-color: var(--background-color);
    border-color: #ccc; /* Fallback value */
    border-color: var(--secondary-color);
    border-width: 2px;
    border-style: solid;
    border-radius: 2px;
    color: black; /* Fallback value */
    color: var(--text-color);
}
#search a:hover {
    text-decoration: none;
}
#search-help div {
    margin: 0.5em 0.5em 0.7em 0;
    padding: 0.7em;
    background: #eee; /* Fallback value */
    background: var(--highlight-color);
    border-color: #ccc; /* Fallback value */
    border-color: var(--secondary-color);
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
}
#search-help h3, #search-help p {
    margin: 0 0 0.7em 0;
}
.search-help-examples {
    table-layout: auto;
    width: 100%;
}
.search-help-examples, .search-help-examples tr,
.search-help-examples th, .search-help-examples td {
    background: transparent;
    margin: 0;
}
.search-help-examples th, .search-help-examples td {
    padding: 0.2em 0.7em 0.2em 0;
}
.help-item {
    width: 10%;
}
.help-explanation {
    width: 65%;
}
.help-examples {
    width: 25%;
}
/* Tabs - adapted from http://www.htmldog.com/articles/tabs */
#detail-tabs {
    list-style: none;
    padding: 0;
    margin: 0 1em;
}
.detail-tab {
    float: left;
    background: #ddd; /* Fallback value */
    background: var(--primary-color);
    border-color: #ccc; /* Fallback value */
    border-color: var(--secondary-color);
    border-width: 1px;
    border-style: solid;
    border-bottom-width: 0;
    margin: 0 0.5em 0 0;
    padding-top: 0.1em;
    border-radius: 3px 3px 0 0;
}
.detail-tab:hover {
    background: #ccc; /* Fallback value */
    background: var(--secondary-color);
}
.detail-tab a {
    color: black; /* Fallback value */
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 1em;
}
.detail-tab-selected {
    position: relative;
    top: 1px;
    background: white; /* Fallback value */
    background: var(--background-color);
}
.detail-tab-selected:hover {
    background: white; /* Fallback value */
    background: var(--background-color);
}
/* Test details table */
#test-details {
    width: 100%;
    border-spacing: 1px;
    background-color: #ccc; /* Fallback value */
    background-color: var(--secondary-color);
}
#test-details > tbody > tr:hover {
    background: #eee; /* Fallback value */
    background: var(--highlight-color);
    cursor: pointer;
}
#test-details th, #test-details td {
    padding: 0.2em;
}
.details-limited {
    max-height: 20em;
    overflow: auto;
}
.details-col-header {
    padding-right: 1em;
}
.details-col-toggle {
    float: left;
    color: #6c6c6c; /* Fallback value */
    color: var(--col-toggle-color);
    cursor: pointer;
}
.details-col-toggle:hover {
    color: black; /* Fallback value */
    color: var(--text-color);
}
.details-col-name {
    min-width: 20em;
    font-weight: bold;
}
.details-col-doc {
    min-width: 10em;
}
.details-col-tags {
    min-width: 10em;
}
.details-col-crit {
    width: 3.5em;
    text-align: center;
}
.details-col-status {
    width: 4.5em;
    text-align: center;
}
.details-col-msg {
    min-width: 20em;
}
.details-col-elapsed {
    width: 7em;
    text-align: center;
}
.details-col-times {
    width: 11em;
    white-space: nowrap;
    text-align: center;
}
.hidden .details-col-header, td.hidden > div {
    display: none;
}
.hidden {
    width: 13px;
    min-width: 0;
    background-image: none;
}
th.hidden:hover {
    background-color: #ddd; /* Fallback value */
    background-color: var(--primary-color);
}

#status-bar {
    height: 100%;
    width: 10px;
    position: fixed;
    top: 0;
    left: 0;
}
