body {
    background-color: #000;
    color: #eee;
    overflow-y: hidden;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

header.navbar-inverse {
    width: 100%;
    height: 100px;
    border-bottom: 1px solid #ccc;
    background-color: #000;
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
}

header > a {
    width: 218px;
    height: 60px;
    line-height: 60px;
    border: none;
    margin-top: 20px;
    margin-left: 20px;
    display: block;
    overflow: hidden;
}

header > a:before {
    content: url("../img/logo-gloss-218-60.png");
    display: inline-block;
    font-size: 0;
    line-height: 0;
}

header > div#alert-messages {
    width: auto;
    height: 99px;
    background-color: #c00;
    text-align: center;
    margin-left: 10px;
    padding: 5px;
    flex: 2;
    display: none;
}

header > div#alert-messages.header-message {
    background-color: #000;
}

header > div#alert-messages.header-message h2 {
    font-size: 2.5em;
    line-height: 89px;
}

header > div#alert-messages h2 {
    width: auto;
    font-size: 1.2em;
    margin: 0;
    padding: 0;
}

header > div#alert-messages p {
    /*font-size: 0.9em;*/
    font-size: 1em;
}

footer {
    width: 100%;
    height: 80px;
    background-color: #ddd;
    border-top: 1px solid #aaa;
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
}

footer > div {
    width: auto;
    height: 60px;
    background-color: #333;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin: 10px;
    flex: 1;
}

footer > div > h6 {
    font-weight: bold;
    margin: 0;
}

footer > div > p {
    margin: 0;
    margin-top: 5px;
}

div.wrap {
    margin-bottom: 80px;
}

div.wrap > div.container {
    width: 100%;
    padding: 100px 15px 20px;
}

div#content-wrapper {
    display: flex;
    flex-wrap: wrap;
}

div#view-content {
    flex: 1;
    float: none;
}

div#view-content > h2,
div#view-content > h3 {
    margin-top: 0;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 5px;
}

.table > thead > tr > th {
    background-color: #eee;
    text-align: center;
}

.table > tbody > tr.subtotal {
    background-color: #f0f0f0;
    font-weight: bold;
}

.table > tfoot > tr {
    background-color: #ccc;
}

.table > tbody > tr.odd-green {
    background-color: #63ff63;
}

.table > tbody > tr.even-green {
    background-color: #aaffaa;
}

.table > tbody > tr.odd-red {
    background-color: #ff6363;
}

.table > tbody > tr.even-red {
    background-color: #ffaaaa;
}

.table > tbody > tr.odd-yellow {
    background-color: #ffff63;
}

.table > tbody > tr.even-yellow {
    background-color: #ffeeaa;
}

.table > tfoot > tr > td {
    border: 1px solid #ddd;
    text-align: center;
    font-weight: bold;
}

.table > tbody > tr.odd-red > td,
.table > tbody > tr.odd-red > td > a,
.table > tbody > tr.even-red > td,
.table > tbody > tr.even-red > td > a {
    color: #fff;
    font-weight: bold;
}

.table > tfoot > tr > td > button[type=submit] {
    font-weight: normal;
}

option:nth-child(even) {
    background-color: #fff;
}

a.btn-machine {
    width: 80px;
    height: 50px;
    color: #fff;
    font-size: 1.5em;
    line-height: 26px;
    text-decoration: none;
    margin: 0;
    padding: 10px;
    display: none;
    overflow: hidden;
}

a.btn-machine-up {
    border: 2px solid #257225;
    background-color: #369e36;
}

a.btn-machine-up:hover {
    border: 2px solid #29ad29;
    background-color: #32cd32;
}

a.btn-machine-down {
    border: 2px solid #951111;
    background-color: #c22222;
}

a.btn-machine-down:hover {
    border: 2px solid #d11;
    background-color: #ff0000;
}

@media screen and (max-width: 414px) {
    header.navbar-inverse {
        height: 50px;
    }

    header > a {
        width: 109px;
        height: 30px;
        line-height: 30px;
        margin-top: 10px;
        margin-left: 10px;
    }

    header > a:before {
        content: url("../img/logo-gloss-109-30.png");
    }

    header > div#alert-messages {
        height: 49px;
        font-size: 0.9em;
    }

    header > div#alert-messages.header-message h2 {
        font-size: 1.5em;
        line-height: 40px;
    }

    footer {
        height: 40px;
    }

    footer > div {
        height: 30px;
        padding: 5px;
        margin: 5px;
    }

    footer > div > h6 {
        font-size: 0.7em;
        font-weight: bold;
        margin: 0;
    }

    footer > div > p {
        font-size: 0.6em;
        margin: 0;
    }

    div.wrap {
        margin-bottom: 0;
    }

    div.wrap > div.container {
        padding: 50px 15px 20px;
    }
}
