body {
    background-color: #333;
    color: #eee;
    font-family: 'Quicksand', sans-serif;
}

hr {
    border: 1px dashed #aaa;
}

#loader-backdrop {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 998;
    background-color: #000;
    filter: opacity(.7);
}

#loader-container {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
}

#loader {
    top: 50%;
    left: 50%;
    display: block;
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

#loader-text {
    font-size: 1rem;
}

#dev-view-backdrop {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 255;
    background-color: #000;
    filter: opacity(.7);
}

#dev-view-container {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 256;
    overflow-y: auto;
}

#fatal-err {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.fatal-err-txt {
    color: #e44;
    font-size: 1.25rem;
}

.fatal-err-btn {
    width: 100%;
}

#master-dash {
    display: none;
    padding: .75rem .75rem .75rem .75rem;
}

#dash-area-name {
    font-size: 2rem;
}

#dash-area-desc {
    color: #aaa;
}

#dash-exit {
    float: right;
}

#logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#product-logo-wide {
    width: 256px;
}

.tooltip-text {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: .5rem;
}

.temp-chart-avg {
    font-size: 1.15rem;
    text-align: center;
}

.infopanel {
    background-color: #454545;
    padding-left: .25rem;
    padding-right: .25rem;
    --bs-gutter-x: 0 !important;
}

.dash-label-green {
    color: #3a1;
}

.dash-label-yellow {
    color: #dd4;
}

.dash-label-red {
    color: #d43;
}

.dash-label {
    color: #aaa;
    text-transform: uppercase;
}

.dash-label-nocaps {
    color: #aaa;
}

#dash-area-devs-on {
    color: #3a1;
}

#dash-price-ranking {
    font-size: .85rem;
}

#dash-delay-disclaimer {
    color: #bb4;
}

#dash-device-card-container {
    margin-top: 1rem;
}

#dash-diag-style-sel {
    display: none;
    float: right;
}


.preview-card {
    cursor: pointer;
    transition: transform .1s linear;
}

.preview-card:hover {
    transform: scale(1.05);
}

.card-preview-mode-box {
    text-align: center;
    border: none;
    border-radius: .5rem;
    margin-top: 1rem;
}

.card-preview-temp-container {
    display: none;
    float: right;
    text-align: center;
}

.card-preview-temp-number {
    font-size: 18px;
}

.card-preview-temp-label {
    font-size: 14px;
    font-weight: bold;
}

.preview-mode-manual {
    background-color: #666;
}

.preview-mode-auto {
    background-color: #267;
}

.preview-mode-thermostat {
    background-color: #721;
}

.text-small {
    font-size: .6rem;
}

.issue-tr-bg-notice > td {
    background-color: #323f53;
}
.issue-tr-bg-warning > td {
    background-color: #454022;
}
.issue-tr-bg-alert > td {
    background-color: #771c1c;
}

#dev-view-close-btn {
    position: absolute;
    top: 0;
    right: 1rem;
    font-size: 6rem;
    color: #eee;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

#dev-view-close-btn:hover {
    color: #aaa;
}

.indv-dev-view-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30rem;
    max-width: 95vw;
    max-height: 95vh;
}

.indv-dev-content {
    width: 100%;
    background-color: #222;
    border-radius: .5rem;
    padding: 1rem 1rem 1rem 1rem;
}


.card-name-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-name {
    font-size: 1.5rem;
}

.card-type {
    color: #aaa;
    font-size: .9rem;
}

.card-expected {
    color: #aaa;
    font-size: .9rem;
}

.card-ts-space::before {
    content: "\00a0";
}

.card-ts {
    font-size: .9rem;
}

.card-ts-ok {
    color: #2c2;
}

.card-ts-warn {
    color: #cc3;
}

.card-ts-prob {
    color: #f77;
}

.card-ts-err {
    color: #e11;
}

.card-sel {
    float: right;
}

.card-switch-auto {
    color: #ccc;
    font-weight: bold;
    float: right;
    font-size: 3rem;
}

.card-switch {
    position: relative;
    display: inline-block;
    width: 3.75rem;
    height: 2.125rem;
}

.card-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 2.125rem;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: #28e;
}

input:focus+.switch-slider {
    box-shadow: 0 0 1px #28e;
}

input:checked+.switch-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.range-slider-container {
    width: 100%;
    margin-top: .25rem;
}

.range-slider {
    -webkit-appearance: none;
    /* Override default CSS styles */
    appearance: none;
    width: 100%;
    height: .75rem;
    border-radius: 1rem;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.range-slider:hover {
    opacity: 1;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 1rem;
    background: #28e;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 1rem;
    background: #28e;
    cursor: pointer;
}

.card-status {
    font-size: 1.5rem;
}

.card-status-on {
    color: #3a1;
    font-weight: bold;
}

.card-status-off {
    color: #c81;
    font-weight: bold;
}

.card-status-prob {
    text-decoration: line-through;
    color: #aaa;
}

.card-temp-container {
    text-align: center;
}

.card-temp-large {
    font-size: 3rem;
    font-weight: bold;
    transition: color 1.5s;
}

.temp-hot {
    color: #934949;
}

.temp-cold {
    color: #497b93;
}

.temp-ok {
    color: #4b9349;
}

.temp-bg-hot {
    background-color: #934949;
}

.temp-bg-cold {
    background-color: #497b93;
}

.temp-bg-ok {
    background-color: #4b9349;
}

.accordion-expand-content {
    height: 12rem;
    overflow-y: scroll;
}

.consumption-disclaimer {
    font-size: .75rem;
    color: #aaa;
}

.negative-price-notice {
    font-size: .75rem;
    color: #7c7;
}

.negative-price-cost {
    color: #7c7;
}


.selhours-addit {
    font-size: 12px;
    color: #aaa;
}

.selhours-empty-label {
    color: #e88;
}

.selhours-hourly-block {
    display: inline-block;
    color: #eaeaea;
    background-color: #484848;
    width: 50%;
}

.selhours-qtrly-block {
    display: inline-block;
    text-align: center;
    width: 25%;
    padding: .15rem;
    color: #111;
}

.selhours-block-info-row {
    padding-left: .5rem;
    padding-right: .5rem;
}

.selhours-block-info-col {
    display: inline-block;
    width: 33.333%;
}

.selhours-block-info-left {
    text-align: left;
}

.selhours-block-info-center {
    text-align: center;
}

.selhours-block-info-right {
    text-align: right;
}

.selhours-block-elem-hidden {
    visibility: hidden;
}

.selhours-block-weekday {
    font-size: 1.1rem;
}

.selhours-block-hour {
    font-weight: bold;
    font-size: 1.2rem;
}

.selhours-block-ranking {
    font-size: 1rem;
}

.selhours-block-avgprice {
    font-size: .8rem;
}

.selhours-block-qtr {
    font-weight: bold;
}

.selhours-block-qtr-now {
    /*text-shadow: #2e2e2e 1px 0px 9px;*/
}

.selhours-block-price {
    font-size: .725rem;
}

.selhours-past-nosel {
    background-color: #888;
    cursor: default;
}

.selhours-past-sel {
    background-color: #575;
    cursor: default;
}

.selhours-cur-nosel {
    background-color: #858585;
    cursor: pointer;
    box-shadow: inset 0px 0px 0px 3px #fff;
}

.selhours-cur-sel {
    background-color: #4a4;
    cursor: pointer;
    box-shadow: inset 0px 0px 0px 3px #2f1;
}

.selhours-up-nosel {
    background-color: #555;
    cursor: pointer;
}

.selhours-up-sel {
    background-color: #5c5;
    cursor: pointer;
}

.selhours-cur-nosel:hover {
    filter: opacity(0.75);
}

.selhours-cur-sel:hover {
    filter: opacity(0.75);
}

.selhours-up-nosel:hover {
    filter: opacity(0.75);
}

.selhours-up-sel:hover {
    filter: opacity(0.75);
}

.temp-chart-container {
    display: block;
    width: 100%;
    /*height: 100%;
    max-height: 8rem;*/
}

.athr-carousel-row {
    width: 80%;
}

.carousel-item-prev,
.carousel-item-next,
.carousel-item.active {
    display: flex;
}

.carousel-inner>.carousel-item.next.left,
.carousel-inner>.carousel-item.prev.right {
    transition: all 1s ease;
}


.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.tl-icon-pos {
    background-color: #123112;
}
.tl-icon-neg {
    background-color: #451c1c;
}
.tl-dt {
    font-size: 1.25rem;
}
.tl-ts {
    font-size: 1.75rem;
}

.timeline {
    position: relative;
    overflow: hidden;
}
.timeline:after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -2px;
    border-right: 2px dashed #4b546f;
    height: 100%;
    display: block;
}

.timeline-row {
    padding-left: 50%;
    position: relative;
    margin-bottom: 30px;
}
.timeline-row .timeline-time {
    position: absolute;
    right: 50%;
    top: 15px;
    text-align: right;
    margin-right: 20px;
    color: #bcd0f7;
    font-size: 1.5rem;
}
.timeline-row .timeline-time small {
    display: block;
    font-size: 0.8rem;
}
.timeline-row .timeline-content {
    position: relative;
    padding: .75rem;
    background: #335;
    color: #eee;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.timeline-row .timeline-content h4 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 150%;
}
.timeline-row .timeline-content p {
    line-height: 150%;
}
.timeline-row .timeline-content i {
    font-size: 1.2rem;
    line-height: 100%;
    padding: 15px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    margin-bottom: 10px;
    display: inline-block;
}
.timeline-row .timeline-content .thumbs {
    margin-bottom: 20px;
    display: flex;
}
.timeline-row .timeline-content .thumbs img {
    margin: 5px;
    max-width: 60px;
}
.timeline-row .timeline-content .badge {
    color: #ffffff;
    background: linear-gradient(120deg, #00b5fd 0%, #0047b1 100%);
}
.timeline-row:nth-child(even) .timeline-content {
    margin-left: 40px;
    text-align: left;
}
.timeline-row:nth-child(even) .timeline-content:after {
    left: -8px;
    right: initial;
    border-bottom: 0;
    border-left: 0;
    transform: rotate(-135deg);
}
.timeline-row:nth-child(even) .timeline-content:before {
    left: -52px;
    right: initial;
}
.timeline-row:nth-child(odd) {
    padding-left: 0;
    padding-right: 50%;
}
.timeline-row:nth-child(odd) .timeline-time {
    right: auto;
    left: 50%;
    text-align: left;
    margin-right: 0;
    margin-left: 20px;
}
.timeline-row:nth-child(odd) .timeline-content {
    margin-right: 40px;
}
.timeline-row:nth-child(odd) .timeline-content:after {
    right: -8px;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .timeline {
        padding: 15px;
    }
    .timeline:after {
        border: 0;
    }
    .timeline .timeline-row:nth-child(odd) {
        padding: 0;
    }
    .timeline .timeline-row:nth-child(odd) .timeline-time {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 0 10px 0;
    }
    .timeline .timeline-row:nth-child(odd) .timeline-content {
        margin: 0;
    }
    .timeline .timeline-row:nth-child(odd) .timeline-content:before {
        display: none;
    }
    .timeline .timeline-row:nth-child(odd) .timeline-content:after {
        display: none;
    }
    .timeline .timeline-row:nth-child(even) {
        padding: 0;
    }
    .timeline .timeline-row:nth-child(even) .timeline-time {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 0 10px 0;
        text-align: left;
    }
    .timeline .timeline-row:nth-child(even) .timeline-content {
        margin: 0;
    }
    .timeline .timeline-row:nth-child(even) .timeline-content:before {
        display: none;
    }
    .timeline .timeline-row:nth-child(even) .timeline-content:after {
        display: none;
    }
}


.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}