/* GENERAL */

@font-face {
    font-family: 'Orbitron';
    src: url('../f/orbitron.ttf')  format('truetype')
}

* {
    font-family: 'Orbitron';
}

html {
    background: #F2F2F2;
    height: 100%;
    overflow: hidden;
    text-transform: uppercase;
}

html.dark-mode {
    background: #121212;
}

html.dark-mode body {
    filter: invert();
}

body {
    background: #F2F2F2;
    font-family: 'Orbitron';
    height: 100%;
    overflow: hidden;
    padding-bottom: 100px;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

#app {
    background: #F2F2F2;
    height: 100%;
    padding-top: 4px;
    overflow: hidden;
}
  
/* CONTAINERS */

.container {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

.container .footer {
    bottom: 120px;
    left: 0;
    right: 0;
    position: fixed;
    opacity: 0.5;
}

.container.no-groups .panel {
    border: none;
}

.container.no-groups .panel-heading {
    display: none;
}

.container.no-groups .panel-body {
    display: block;
}

/* NAVIGATION */

#navigation {
    background-color: #F9F9F9;
    bottom: 0;
    height: 100px;
    left: 0;
    padding: 12px;
    position: absolute;
    right: 0;
}

#navigation .row div {
    padding: 0;
}

#navigation .col-xs-2 {
    width: 20%;
}

#navigation a {
    color: #999999;
    display: inline-block;
    font-size: 0.6em;
    padding-top: 8px;
    text-decoration: none;
}

#navigation a.active {
    color: #000000;
}

#navigation a i {
    font-size: 3em;
    padding-bottom: 12px;
}

/* PANELS */

body .panel:first-child {
    margin-top: 12px;
}

.panel {
    background-color: #F5F5F5;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 12px;
}

.panel-heading {
    border-bottom-width: 0px;
    cursor: pointer;
}

.panel-heading.expanded {
    border-bottom-width: 0;
}

.panel-heading i {
    float: right;
    font-size: 22px;
    line-height: 32px;
}

.panel-heading .fa-chevron-up {
    display: none;
}

.panel-heading.expanded .fa-chevron-up {
    display: inline-block;
}

.panel-heading.expanded .fa-chevron-down {
    display: none;
}

.panel-heading h3 {
    display: inline-block;
    margin: 0;
}

.panel-body {
    display: none;
}

.panel-heading.expanded + .panel-body {
    display: block;
}

.panel-body table {
    width: 100%;
}

.panel-body > table {
    margin-bottom: 24px;
}

.panel-body > table:last-child {
    margin-bottom: 0;
}

table td {
    height: 46px;
}

table tr td h3,
table tr td h4 {
    margin: 0;
}

table tr td:nth-child(1) {
    white-space: nowrap;
}

table tr td:nth-child(2) {
    text-align: right;
    width: 50%;
    transition: background-color 0.5s ease;
}

table tr td[colspan="2"]:not(.master) {
    border-left: 1px solid #666;
    padding-left: 12px;
}

table tr:last-child td[colspan="2"]:not(.master) {
    border-bottom: 1px solid #666;
}

table tr.disabled td[colspan="2"]:not(.master) {
    border-color: #EEE;
}

/* BUTTONS */

button.btn {
    border-radius: 0;
    padding: 10px 0px;
}

button.btn[disabled] {
    opacity: .4;
}

button.btn:active,
button.btn:active:focus,
button.btn:focus {
    outline: none;
}

button.btn.sc-btn,
button.btn.sc-btn-enable,
button.btn.sc-btn-on,
button.btn.sc-btn-off {
    font-size: 12px;
    text-transform: uppercase;
    width: 60px;
}

button.btn.sc-btn-enable {
    width: 80px;
}

button.btn.sc-btn-enable {
    width: 110px;
}

button.btn.sc-btn-more {
    width: 144px;
}

button.btn[disabled].sc-btn-active, 
button.btn.sc-btn-active {
    border-color: black;
}

.btn-default.focus,
.btn-default:focus {
    color: #000000;
    background-color: #F2F2F2;
    border-color: #000;
}

button.sc-btn.sc-btn-colour {
    border-color: #333333;
    filter: invert();
    width: 55px;
    height: 46px;
    margin-left: 4px;
    min-width: 0;
}

.sc-btn-colour.white {
    background: #F2F2F2;
}

.sc-btn-colour.red {
    background: #A00;
}

.sc-btn-colour.green {
    background: #0A0;
}

.sc-btn-colour.blue {
    background: #00A;
}

.sc-btn-colour.blue {
    background: #00A;
}

.sc-btn-colour.pink {
    background: #CA2C92;
}

.sc-btn-colour.orange {
    background: #FF8C00;
}

button.btn.sc-btn-colour.sc-btn-active {
    border-color: #FFFFFF;
}

button.sc-btn-expand {
    background: #F5F5F5;
    border: none;
    height: 46px;
    padding-right: 24px;
    text-align: right;
    width: 100%;
}

button.sc-btn-expand[disabled] i {
    opacity: 0.5;
}

button.sc-btn-expand:focus,
button.sc-btn-expand:focus-within,
button.sc-btn-expand:active,
button.sc-btn-expand:active:focus {
    background: #F5F5F5;
    box-shadow: none;
}

/* BINS */

table.bin-collection tr td {
    width: 14%;
}

table.bin-collection tr td span.active {
    border-bottom: solid 1px black;
    padding-bottom: 6px;
}

.fa-trash {
    -webkit-filter: invert(1);
    filter: invert(1);
    font-size: 2em;
    color: #333;
    opacity: 0.5;
    display: block;
}

.fa-trash:nth-child(2) {
    margin-top: 10px;
}

.fa-trash.active {
    opacity: 1;
}

.fa-trash.active.blue {
    color: #2222AA;
}

.fa-trash.active.green {
    color: #44AA44;
}

.fa-trash.active.brown {
    color: #964B00;
}

/* GENERICS */

.text-center {
    text-align: center !important;
}

.margin-top {
    margin-top: 12px;
}

.margin-left {
    margin-left: 12px;
}

.padding-none {
    padding: 0 !important;
}

.hide {
    display: none;
}

.filter-invert {
    -webkit-filter: invert(1);
    filter: invert(1);
}

.width-30 {
    width: 33.33% !important;
}

.width-100 {
    width: 100% !important;
}

/* DESKTOP */

@media only screen and (min-width: 1012px) {
    html {
        padding-top: 12px;
    }
}

@media only screen and (min-width: 600px) {
    html {
        max-width: 1000px;
        max-height: 1000px;
        margin: auto;
    }

    body {
        border: 1px solid #F5F5F5;
        margin-top: 0;
        padding-bottom: 0;
    }

    #app {
        padding-left: 100px;
        padding-top: 0;
        position: relative;
        width: 100%;
    }

    #navigation {
        height: 100%;
        left: 0;
        top: 0;
        width: 100px;
    }

    #navigation .col-xs-12 .row,
    #navigation .col-xs-12 {
        height: 100%;
    }

    #navigation .col-xs-12 .row > :last-child {
        position: absolute;
        bottom: 0;
    }

    #navigation .col-xs-2 {
        margin-bottom: 12px;
        width: 100%;
    }

    #cameras .panel {
        float: left;
        margin: 12px 12px 0 0;
        width: calc(50% - 12px);
    }
}