/*
 * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>
 * Copyright (c) 2014 Tiancheng "Timothy" Gu <timothygu99@gmail.com>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

.recent  { font-weight: bold; }
.ancient { color: #888; }

.fail {
    background: #d9534f !important;
    color: white;
}
.pass {
    background: #5cb85c !important;
    color: white;
}
.warn {
    background: #ecd046 !important;
    color: black;
}

.fate-alert { color: #911; }
.rejoice { color: #191; }

#failometer {
    padding: 0;
}

#failometer .progress {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    margin-bottom: inherit;
}

/* index and history listings */

.replist {
    width: 100%;
}

.replist a {
    color: inherit;
    text-decoration: none;
}

th a:link, th a:visited {
    color: inherit;
    text-decoration: none;
}

th a:hover {
    text-decoration: underline;
}

#index .comment     { max-width: 13em; }

#index .toggle {
    cursor: pointer;
}

tr.slotfail {
    display: none;
}

table.minirep {
    width: 100%;
}

.minirep th {
    padding: 0 0.5em;
    text-align: left;
}

/* config summary */

#config td:first-child {
    font-weight: bold;
    padding-right: 3em;
    vertical-align: top;
}

/* test listing */

#tests {
    margin-top: 2em;
    width: 100%;
}

#tests .fail th {
    background: #d9534f;
    border-bottom: 2px solid #fcc;
}

#tests .pass th {
    background: #5cb85c;
    border-bottom: 2px solid #9f9;
    border-top: 0;
}

#tests .toggle {
    width: 5em;
    cursor: pointer;
    text-align: center;
}

.errcode {
    width: 3em;
    text-align: center;
}

#tests .lastpass {
    width: 12em;
}

.diff {
    display: none;
}

.diff-new, .diff-old, .diff-hnk {
    font-weight: bold;
}

.diff-new, .diff-add {
    color: #4cae4c;
}

.diff-old, .diff-del {
    color: #d9534f;
}

.diff-hnk {
    color: #226;
}

code, pre {
    white-space: pre-wrap;
}