body {
    background: #444C67;
    color: #fff;
}

.opacity-fade {
    opacity: .5;
}

header {
    background: #3A4057;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card {
    background: #3A4057;
    color: #fff;
}

.table-hover tbody tr:hover {
    color: #fff;
}

.sensor {
    font-size: 20px;
}

.sensor .temps div {
    padding: 10px;
    float: left;
    text-align: center;
}

.sensor .temps div:nth-child(2) {
    border-left: 1px solid rgba(0,0,0,.125);
    border-right: 1px solid rgba(0,0,0,.125);
}

.sensor .temps .temp-date {
    font-size: small;
    float: none;
    padding: 0;
}

.sensor .card-body .name {
    cursor: pointer;
}

.sensor .card-body .name i {
    transition: transform 400ms ease;
}

.sensor .name.collapsed i {
    transform: rotate(180deg);
}

.btn-primary {
    background: #4680FF;
}

.text-primary {
    color: #4680FF;
}
.text-danger {
    color: #FC6180;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: var(--success);
    background-color: var(--success);
}

.modal-content {
    background-color: #3e455d;
}
.modal-content .modal-header {
    border-bottom: 1px solid #303548;
}
.modal-content .modal-footer {
    border-top: 1px solid #303548;
}

.page-link {
    background-color: #444c67 !important;
    border-color: #222533 !important;
}

.table {
    color: #fff;
}
.table-bordered {
    border: 1px solid #444c67;
}
.table-bordered td, .table-bordered th {
    border: 1px solid #444c67;
}
.table thead th {
    border-bottom: 2px solid #444c67;
}

.datepicker-panel>ul>li,
.datepicker-panel>ul[data-view=week]>li,
.datepicker-panel>ul[data-view=week]>li:hover,
.datepicker-panel>ul>li.disabled,
.datepicker-panel>ul>li.disabled:hover {
    background-color: #3E455D;
}
.datepicker-panel>ul>li:hover {
    background-color: #3A4057;
}
.datepicker-top-left:after, .datepicker-top-right:after {
    border-bottom-color: #3E455D;
}
.datepicker-dropdown {
    border: 1px solid #363c51;
    border-top-color: #39f;
    box-shadow: 0 3px 6px #222634;
}
.datepicker-panel>ul>li.picked, .datepicker-panel>ul>li.picked:hover {
    color: #fff;
}
.datepicker-panel>ul>li.highlighted, .datepicker-panel>ul>li.highlighted:hover,
.datepicker-panel>ul>li.disabled.highlighted, .datepicker-panel>ul>li.disabled:hover.highlighted{
    background-color: #1B8BF9;
}

.form-control, .form-control:focus, .input-group-text {
    background-color: #444c67;
    color: #fff;
    border: 1px solid #33384C;
}

.tempmeter {
    width: 184px;
    height: 184px;
    margin: auto;
    display: inline-block;
}

#historymeter {
    margin: 1rem 0;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
}

.datepicker-dropdown {
    z-index: 10000 !important;
}

.loader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 2;
}

.filterBtns {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.filterBtns .btn {
    padding: 0 5px;
    height: 25px;
}

.codeBox {
    background: #e6e6e6;
    color: #dc3545;
    border: 1px solid #dc3545;
    float: left;
    font-size: large;
    padding: .4rem;
    pointer-events: none;
}

.tempmeterChange {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 20px;
}

.tempmeterChange input {
    width: 50px;
}

.adminSettings .tempmeter {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 112%;
    margin-left: -6%;
    background: #fff;
    box-shadow: 0 3px 4px -5px #000;
    margin-bottom: 1rem;
}

#alterTemp .wrapper {
    position: relative;
    margin: 1rem 0;
    min-height: 10rem;
}

#alterTemp .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    border: 1px solid rgba(0,0,0,.125);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    color: #777;
}

.adminSubMenu {
    background: #007bff;
    border-radius: 0 0 2rem 2rem;
}
.adminSubMenu a {
    color: #fff;
}
.adminSubMenu .nav-item.active {
    font-weight: bold;
}

div.disabled {
    opacity: .5;
    pointer-events: none;
}

.navbar-actions li {
    padding: 0 1rem;
    position: relative;
}

.navbar-actions li:not(:last-child):after {
    content: '';
    width: 1px;
    height: 35px;
    position: absolute;
    background: #444c67;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
}

.addSensor {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@media screen and (max-width: 576px) {
    #historytable_wrapper #historytable_info {
        font-size: small;
    }

    #historytable_wrapper li.paginate_button.previous {
        display: inline;
    }

    #historytable_wrapper li.paginate_button.next {
        display: inline;
    }

    #historytable_wrapper li.paginate_button {
        display: none;
    }
}

@media print{
    @page {
        size: A4 landscape;
        margin: 0;
        padding: 0;
    }
    body {
        margin: 2cm 0 0 0!important;
        padding: 0 !important;
        zoom: 2;
    }
    #minmaxmeter {
        overflow: visible !important;
        width: 29.7cm !important;
        height: 21cm !important;
    }
    #minmaxmeter .highcharts-container {
        overflow: visible !important;
        width: 29.7cm !important;
        height: 21cm !important;
    }
    svg {
        width: 100% !important;
        height: 100% !important;
    }
}
