html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

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

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\f15d";
}

a.desc:after {
    content: "\f881";
}

.sort-numerical a.asc:after {
    content: "\f162";
}

.sort-numerical a.desc:after {
    content: "\f886";
}

.sort-ordinal a.asc:after {
    content: "\f884";
}

.sort-ordinal a.desc:after {
    content: "\f160";
}

.grid-view td {
    white-space: nowrap;
    vertical-align: middle;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.iti {
    width: 100%;
}

.btn.btn-link:focus {
    outline: none;
    box-shadow: none;
}

.action-column {
    width: 0;
}

.detail-view th {
    width: 20%;
}

.detail-view td {
    word-break: break-word;
}

/* Blank page */
.blank {
    background-color: #f5f5f5;
    padding: 20px;
    display: flex;
}

.blank-container {
    text-align: center;
    width: 100%;
    max-width: 370px;
    padding: 30px 50px;
    margin: auto;
    background-color: #fff;
}

.blank-container h1 {
    font-size: 2rem;
}

/** Dashboard **/

.dashboard {
    padding: 1rem;
}

.dashboard .spinner-border {
    width: 5rem;
    height: 5rem;
    border-width: 0.5em;
}

.dashboard .box {
    padding: 0;
    border-top: 0px;
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 8px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.dashboard .box-body {
    padding: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.dashboard .item {
    width: 120px;
    font-size: 16px;
}

.dashboard .item .badge {
    font-size: 21px;
}

.oxygen, .saturation, .inA1, .inA2, .brightness, .analog-input {
    color: navy;
    font-weight: bold;
}

.temperature, .inT1, .inT2 {
    color: #00a65a;
    font-weight: bold;
}

.dashboard h3 {
    font-size: 21px;
    margin-top: 15px;
}

.dashboard .box-header h4 {
    margin: 0;
    font-size: 23px;
    line-height: 25px;
    text-align: center;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    overflow-wrap: break-word;
}

h1 {
    margin-bottom: 20px;
}

.dashboard .out {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.dashboard .output, .dashboard .input, .dashboard .feed {
    padding: 0 5px;
    text-transform: uppercase;
    border-radius: 0;
    margin-right: 3px;
    font-size: 18px;
    text-align: center;
    margin-top: 5px;
}

.dashboard .output > div,
.dashboard .input > div,
.dashboard .feed > div {
    padding: 0 5px;
    display: inline-block;
    margin-bottom: 3px;
    color: #fff;
    border-radius: 10px;
}

.dashboard .feed > div {
    border-radius: 0;
    padding: 0 6px;
}

.dashboard .input > div {
    padding: 2px 5px;
}

.dashboard .on {
    background-color: #26B99A;
    border: 1px solid #26B99A;
}

.dashboard .off {
    background-color: #d9534f;
    border: 1px solid #d9534f;
}

.dashboard .inactive {
    background-color: #ccc;
}

.dashboard .center {
    margin: 0 auto;
}

.dashboard .nav li.element {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 7px;
    font-size: 21px;
}

.dashboard .box .box-body .nav {
    display: block;
}

.dashboard .box .nav-stacked > li {
    border-bottom: 1px solid #f4f4f4;
    margin: 0;
}

.dashboard #map {
    border: 0;
    margin: 0 auto;
}

.item .box .box-header {
    background-color: #d2d6de;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: block;
    padding: 10px;
    position: relative;
}

.item .box .box-header h4 a, .item .box .box-header h4 a:hover, .item .box .box-header h4 a:focus, .item .box .box-header h4 a:active {
    color: inherit;
    font-size: 23px;
}

.item .box .box-header.bg-black {
    background-color: #111;
}

.item .box .box-header.bg-red {
    background-color: #dd4b39;
}

.item .box .box-header.bg-blue {
    background-color: #0073b7;
}

.item .box .box-header.bg-green {
    background-color: #44Af6E;
}

.item .box.disabled .box-header {
    background-color: #d2d6de;
}

/** Info Box **/

.info-box {
    display: block;
    min-height: 90px;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-bottom: 15px;
}

.info-box-icon {
    border-top-left-radius: 2px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 2px;
    display: block;
    float: left;
    height: 90px;
    width: 90px;
    text-align: center;
    font-size: 45px;
    line-height: 90px;
    background: rgba(0, 0, 0, 0.2);
}

.info-box-content {
    padding: 5px 10px;
    margin-left: 90px;
}

.info-box-text {
    text-transform: uppercase;
}

.progress-description, .info-box-text {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-box-number {
    display: block;
    font-weight: bold;
    font-size: 18px;
}

/** Colors **/

.bg-blue {
    color: #fff !important;
    background-color: #0073b7 !important;
}

.bg-yellow {
    color: #222 !important;
    background-color: #ffeb3b !important;
}

.bg-orange {
    color: #fff !important;
    background-color: #ff851b !important;
}

.bg-purple {
    color: #fff !important;
    background-color: #605ca8 !important;
}

.bg-gray {
    color: #000 !important;
    background-color: #d2d6de !important;
}

.bg-red {
    color: #fff !important;
    background-color: #dd4b39 !important;
}

.bg-black {
    color: #fff !important;
    background-color: #111 !important;
}

.bg-green {
    color: #fff !important;
    background-color: #00a65a !important;
}

.bg-aqua {
    color: #fff !important;
    background-color: #00c0ef !important;
}

.text-red {
    color: #dd4b39 !important;
}