/* vim: set sts=4 sw=4 ts=4 noet: */
/*
 * Copyright (c) 2013-2017 Bryan Drewery <bdrewery@FreeBSD.org>
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
#loading_overlay {
    background: #fff;
    width: 100%;
    height: 100%;
    z-index: 9003;
    left: 0;
    position: fixed;
}
#loading {
    z-index: 9004;
    top: 50%;
    left: 50%;
    position: absolute;
}

.top-icon {
    display: none;
}

.layout,
.layout th,
.layout td {
    border: 0;
}
.built:not(table), table.built thead {
    background-color: #00cc00 !important;
}
.built .row1 {
    background-color: #00ff00;
}
.failed:not(table), table.failed thead {
    background-color: #e00000 !important;
}
.failed .row1 {
    background-color: #ff0000;
}
.skipped:not(table), table.skipped thead {
    background-color: #cc6633 !important;
}
.skipped .row1 {
    background-color: #aa6734;
}
.ignored:not(table), table.ignored thead {
    background-color: #ff9900 !important;
}
.ignored .row1 {
    background-color: #ff6f00;
}
.fetched:not(table), table.fetched thead {
    background-color: #228b22 !important;
}
.fetched .row1 {
    background-color: #225b22;
}
.remaining:not(table), table.remaining thead {
    background-color: #e3e3e3 !important;
}
.remaining .row1 {
    background-color: #bcbcbc;
}
.queued:not(table), table.queued thead {
    background-color: #aaa !important;
}
.queued .row1 {
    background-color: #bbbbbb;
}
.latest {
    background-color: #f7fe4a;
}
td.highlight {
    background-color: whitesmoke !important;
}
#header {
    border-bottom: 1px solid black;
    min-height: 65px;
}

td.group {
    background-color: #d1cfd0;
    border-bottom: 2px solid #a19b9e;
    border-top: 2px solid #a19b9e;
}

td.subgroup {
    background-color: #d4dfd8;
    border-bottom: medium solid;
}

td.group .title,
td.subgroup .title {
    font-weight: bold;
}

.error {
    color: red;
}

.navbar-toggle {
    margin-right: 0;
}

#header,
footer {
    background-color: #eee;
}

/* Collapse nav at <= sm http://stackoverflow.com/a/22400347/285734 */
@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    .navbar-nav {
        float: none !important;
        margin: 7.5px -15px;
    }
    /* Keep pills horizontal
    .navbar-nav>li {
        float: none;
    }
	 */
    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* This is the minimum width the site should be displayed at
 * so the canvas displays. This value is used by poudriere.js
 * for forcing the viewport to use the minimum width as well to
 * get mobile devices (such as iPhone portrait) to zoom/scale the
 * page appropriately.
 */
@media (max-width: 570px) {
    body,
    #header {
        min-width: 570px;
    }
}

/* Prevent excess padding when zoomed in */
@media (max-width: 979px) {
    .navbar-fixed-top,
    .navbar {
        margin-bottom: 0px;
    }
}

body {
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: normal;
}

/* Avoid loading_overlay shift when scrollbar loads: http://stackoverflow.com/a/3677433/285734 */
html {
    overflow-y: scroll;
    overflow: -moz-scrollbars-vertical;
}

#progress,
#progress td,
#progress span,
#progress canvas {
    padding: 0;
    margin: 0;
    border: 0;
    line-height: 0;
}

#progress {
    margin-left: 1px;
}

.layout table {
    border: 0;
    width: 480px;
    margin: 0;
    margin-bottom: 1px;
    line-height: 1;
    border-collapse: separate;
    border-spacing: 2px;
}
.layout th,
.layout td {
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco,
        "Lucida Console", monospace;
    font-size: 9pt;
    text-align: center;
}

footer {
    bottom: 0;
    /*height: 18px;*/
    max-height: 20px;
    margin-top: 5px;
    border-top: 1px solid black;
}

#logo {
    margin-left: -14px;
}

#logo img {
    height: 55px;
}

.navbar {
    font-size: 1.3em;
}

#stats td,
#stats th {
    width: 16.67%;
}

#snap_loadavg {
    width: 45%;
}
#snap_swapinfo {
    width: 20%;
}
#snap_duration {
    width: 15%;
}
#snap_pkghour {
    width: 10%;
}
#snap_impulse {
    width: 10%;
}

.layout {
    margin-top: 1px;
}
.layout table td {
    background-color: #e3e3e3;
}

h1 {
    font-size: 16pt;
    text-align: center;
}
h2 {
    background-color: #eee;
}

.status td {
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco,
        "Lucida Console", monospace;
}

br.clear {
    clear: both;
    height: 0;
    overflow: hidden;
}

#build_info_div dt,
#build_info_div dd {
    line-height: normal;
    font-size: 13px;
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco,
        "Lucida Console", monospace;
}
#build_info_div dl {
    margin-bottom: 0;
}

dd {
    word-break: break-all;
}

/*
table.dataTable.display td {
	word-break: break-all;
}
*/

.nobreak,
/* Build order */
.ports table tbody tr td:nth-child(1),
/* Job ID */
#builders_tables tbody tr td:nth-child(1),
/* Skipped counts */
.failed table tbody tr td:nth-child(5),
.ignored table tbody tr td:nth-child(4),
/* Stat counts */
#builds_body tr td:nth-child(2),
#builds_body tr td:nth-child(3),
#builds_body tr td:nth-child(4),
#builds_body tr td:nth-child(5),
#builds_body tr td:nth-child(6),
#builds_body tr td:nth-child(7),
#builds_body tr td:nth-child(8),
#latest_builds_body tr td:nth-child(3),
#latest_builds_body tr td:nth-child(4),
#latest_builds_body tr td:nth-child(5),
#latest_builds_body tr td:nth-child(6),
#latest_builds_body tr td:nth-child(7),
#latest_builds_body tr td:nth-child(8),
#latest_builds_body tr td:nth-child(9) {
    word-break: normal !important;
}

.glyphicon {
    font-size: 0.75em;
    text-align: top;
}

table.dataTable.display tbody tr.odd {
    background-color: #e2e4ff;
}

table.dataTable.display tbody tr.odd td.sorting_1 {
    background-color: #c3c6ff;
}

table.dataTable thead th,
table.dataTable tbody td {
    padding-top: 1px;
    padding-bottom: 1px;
}

:target {
    background-color: #ccc;
}
