div.environmental {
    padding: 1rem;
}

div.ev-singlephase {
    margin-bottom: 2rem;
    color: #302448;
}

    div.ev-singlephase h2 {
        padding: 0 0 .5rem 0;
        margin: 0 0 1rem 0;
        border-bottom: 1px solid #D4D4D4;
        text-transform: uppercase;
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    div.ev-singlephase h3 {
        padding: 0 0 .5rem 0;
        margin: 1rem 0 1rem 0;
        border-bottom: 1px solid #D4D4D4;
        text-transform: uppercase;
        font-size: .8rem;
        display: block;
        width: 100%;
        color: #707070;
    }

    div.ev-singlephase .phase {
        /*display: flex;*/
        /*flex-direction: column;*/
        width: 100%;
        color: #707070;
    }

svg.progress-ring {
    /*display: flex;
    justify-content: center;*/
}


/* HEATPUMP TILE STYLES --------------------------- */


div.service-required {
    color: #209CF7;
    position: absolute;
    top: -2.2rem;
    left: 1rem;
    font-size: 2.5rem;
}

span.device-icon {
    color: #707070;
    display: inline-block;
    font-size: 1.5rem;
    margin-right: .5rem;
    position: relative;
    width: 2rem;
    height: 1rem;
}

    span.device-icon i {
        position: absolute;
        top: 0;
        left: 0;
    }

.mould-risk-high {
    color: #FF0000;
}

.mould-risk-medium {
    color: #3B3B3B;
}

.mould-risk-low {
    color: #2AAD0B;
}



div.ev-singlephase .ev-sensibo-tile {
    background-image: linear-gradient(#ffffff, #E8E8E8);
    padding: 1.2rem;
    font-weight: 500;
    /*margin: 1rem -1.3rem 1rem -1.3rem;*/
    -moz-box-shadow: inset 0 0 5px #f0f0f0;
    -webkit-box-shadow: inset 0 0 5px #f0f0f0;
    box-shadow: inset 0 0 5px #f0f0f0;
    position: relative;
    white-space: nowrap;
    min-height: 9.9rem;
    border-radius: .6rem;
    border: 1px solid #CCCCCC;
}

    div.ev-singlephase .ev-sensibo-tile .power-button .power-icon {
        color: #209cf7;
        padding: 0.6rem;
        padding-top:1.1rem;
    }

    div.ev-singlephase .ev-sensibo-tile .controls .dropdown .btn {
        padding: 0.4rem;
    }

    div.ev-singlephase .ev-sensibo-tile .controls a.dropdown-item {
        color: #209CF7;
    }

div.ev-singlephase .heat .power-button .power-icon.active,
div.ev-singlephase .cool .power-button .power-icon.active,
div.ev-singlephase .devicepower1 .power-icon.active {
    color: #00b51c;
}

div.ev-singlephase .ev-sensibo-tile.devicepower1 {
    /*background-image: linear-gradient(#ffffff, #DEEEE1);*/
    background-image: linear-gradient(#ffffff, #FFEFD6);
}

div.ev-singlephase .ev-sensibo-tile.heat {
    background-image: linear-gradient(#ffffff, #FFEFD6);
    background-image: url('icon-device-heating.png') center no-repeat;
    color: #209cf7;
    position: relative;
}


div.ev-singlephase .heat .bgicon {
    display: inline-block;
    position: absolute;
    bottom: 0px;
    right: 8rem;
    background: url('/img/icon-device-heating.png') 0px 0px no-repeat;
    color: #209cf7;
    border: 0px solid red;
    width: 8rem;
    height: 8rem;
}

div.ev-singlephase .cool .bgicon {
    display: inline-block;
    position: absolute;
    top: 0px;
    right: 8rem;
    background: url('/img/icon-device-cooling.png') 0px 0px no-repeat;
    color: #209cf7;
    border: 0px solid red;
    width: 8rem;
    height: 8rem;
}

div.ev-singlephase .ev-sensibo-tile.cool {
    background-image: linear-gradient(#ffffff, #D6E7FF);
    background-image: url('icon-device-cooling.png') center no-repeat;
    color: #209cf7;
    position: relative;
}

div.ev-singlephase .ev-sensibo-tile .device-brand,
div.ev-singlephase .heat .device-brand,
div.ev-singlephase .cool .device-brand {
    display: inline-block;
    padding: .4rem .8rem .3rem .8rem;
    margin-right: 1rem;
    color: #ffffff;
    background-color: #209cf7;
    text-transform: uppercase;
    font-weight: bold;
    font-size: .8rem;
    border-radius: .4rem;
}

div.ev-singlephase .heat .target-temp,
div.ev-singlephase .cool .target-temp {
    color: #302448;
    font-size: .8rem;
    font-weight: bold;
}

    div.ev-singlephase .heat .target-temp sup,
    div.ev-singlephase .cool .target-temp sup {
        font-size: .6rem;
    }

div.ev-singlephase .ev-sensibo-tile .current-temp,
div.ev-singlephase .heat .current-temp,
div.ev-singlephase .cool .current-temp,
div.ev-singlephase .current-humidity {
    color: #302448;
    font-weight: bold;
    font-size: 2.2rem;
    line-height: 2rem;
}

div.ev-singlephase .current-humidity {
    font-size: 1.2rem;
    opacity: 0.8;
}

    div.ev-singlephase .ev-sensibo-tile .current-temp span,
    div.ev-singlephase .heat .current-temp span,
    div.ev-singlephase .cool .current-temp span,
    div.ev-singlephase .current-humidity span {
        font-size: .8rem;
        color: #209cf7;
        line-height: 1.4rem;
    }

        div.ev-singlephase .ev-sensibo-tile .current-temp span .off,
        div.ev-singlephase .heat .current-temp span .off,
        div.ev-singlephase .cool .current-temp span .off {
            font-size: .8rem;
            color: #707070;
            display: block;
            line-height: 1.4rem;
            text-transform: uppercase;
        }

div.ev-singlephase .ev-sensibo-tile .on-standby {
    display: block;
    color: #302448;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 1rem 0 0 0;
}

div.ev-singlephase .heat .on-standby {
    display: none;
}

div.ev-singlephase .cool .on-standby {
    display: none;
}

div.ev-singlephase .ev-sensibo-tile .system-message {
    display: inline-block;
    color: #209cf7;
    overflow-x: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

div.ev-singlephase .heat .system-message {
    display: inline-block;
}

div.ev-singlephase .cool .system-message {
    display: inline-block;
}

span.current-temp-label {
    font-size: .8rem;
    font-weight: normal;
}

div.device-status {
    padding: .4rem 0 1rem 0;
    margin: .4rem 0 0 0;
    font-size: .8rem !important;
    color: #209cf7;
}


/* ROOM PERFORMANCE STYLES --------------------------- */

div.ev-singlephase .room-performance {
    /*display: flex;
    flex-direction: column;*/
}

    div.ev-singlephase .room-performance .sublocation-container {
        border-bottom: 1px solid #D4D4D4;
        /*flex: 1;*/
    }


    div.ev-singlephase .room-performance .sublocation-heading {
        border: none;
        border-top: 0px solid #D4D4D4;
        border-bottom: 1px solid #D4D4D4;
        padding-bottom: 1rem;
        text-transform: uppercase;
        font-size: .6rem;
        font-weight: bold;
        /*display: flex;*/
        /*flex-direction: row;
        justify-content: space-evenly;*/
    }

        div.ev-singlephase .room-performance .sublocation-heading div {
            border: 0px solid red;
            text-align: center;
        }

    div.ev-singlephase .room-performance a.sublocation-info {
        text-decoration: none;
        color: #302448;
    }

    div.ev-singlephase .room-performance .sublocation-name {
        border: none;
        padding: 1rem 0 .2rem 0;
        text-transform: uppercase;
        font-size: .8rem;
        font-weight: bold;
    }

    div.ev-singlephase .room-performance .sublocation-list {
        /*        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
*/ padding-bottom: .8rem;
        border-bottom: 1px dashed #D4D4D4;
    }

        div.ev-singlephase .room-performance .sublocation-list div {
            font-weight: bold;
            padding: 0 0 0 0;
            margin-right: .5rem;
            margin-left: 1rem;
        }






            div.ev-singlephase .room-performance .sublocation-list div .acceptable,
            div.ev-singlephase .room-performance .table-sublocation-list td .acceptable {
                color: #209CF7 !important;
                padding: 0 0 0 0;
            }

            div.ev-singlephase .room-performance .sublocation-list div .alert,
            div.ev-singlephase .room-performance .table-sublocation-list td .alert {
                color: #D30000;
                padding: 0 0 0 0;
                margin: 0 0 0 0;
            }

            div.ev-singlephase .room-performance .sublocation-list div sup,
            div.ev-singlephase .room-performance .table-sublocation-list td sup {
                font-size: .6rem;
                font-weight: normal;
            }

.enviro-alt-row {
    background-color: #EFEFEF !important;
}


div.ev-singlephase .room-performance table {
    /*    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
*/
}

    div.ev-singlephase .room-performance table thead {
        border-bottom: 1px solid #D4D4D4;
        padding: 0 0 1rem 0;
        margin: 0 0 1rem 0;
        /*        display: flex;
        justify-content: space-evenly;
*/
    }

        div.ev-singlephase .room-performance table thead tr {
            /*        display: flex;
        justify-content: space-evenly;
*/
        }

            div.ev-singlephase .room-performance table thead tr th {
                text-transform: uppercase;
                font-size: .6rem;
                font-weight: bold;
                text-align: center;
                border: 1px solid red;
            }

div.ev-singlephase .room-performance tr.table-sublocation-name {
    text-transform: uppercase;
}

div.ev-singlephase .room-performance tr.table-sublocation-list {
    /* margin:0 -1rem 0 -1rem; */
    /* overflow-y: scroll; */
    border-bottom: 1px dashed #D4D4D4;
    /*    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
*/
}


.last-read {
    float: right;
}



/* DETAIL PAGE STAT TABS - BOOTSTRAP OVERRIDE---------- */


.bc-content .stat-tabs {
    /*    display: flex;
    justify-content: space-around;
*/ margin-bottom: 20px;
    overflow: visible;
}

    .bc-content .stat-tabs .nav-tabs {
        background-color: none;
        border: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom: 1px solid #c4c4c4;
    }

    .bc-content .stat-tabs .nav-link {
        font-weight: bold;
        font-size: .9rem;
        color: #302448;
        text-transform: uppercase;
        background-color: none;
        border: 1px solid transparent;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border: 0px solid red;
        padding: 0rem 0 1.4rem 0;
        text-align: center;
    }


        .bc-content .stat-tabs .nav-link span {
            font-weight: bold;
            font-size: 1.8rem;
            color: #302448;
            text-transform: uppercase;
            background-color: none;
            border: none;
            border-bottom: 1px solid #BCBCBC;
            padding: 0 0 .4rem 0;
            margin-bottom: .4rem;
            display: block;
            text-align: center;
        }


            .bc-content .stat-tabs .nav-link span sup {
                font-size: 1rem;
            }

            .bc-content .stat-tabs .nav-link span .alert {
                color: #d30000;
                padding: 0 0 0 0;
                margin: 0 0 0 0;
            }

            .bc-content .stat-tabs .nav-link span .acceptable {
                color: #209cf7;
            }


    .bc-content .stat-tabs button.nav-link,
    .bc-content .stat-tabs button.nav-link:hover {
        background-color: #ffffff;
        border-color: none;
        border-top: 0px;
        border-left: 0px;
        border-right: 0px;
        border-bottom: 4px solid transparent;
    }

    .bc-content .stat-tabs .nav-link.active,
    .bc-content .stat-tabs .nav-link.active:hover {
        color: #302448;
        background-color: #fff;
        border-color: none;
        border-top: 0px;
        border-left: 0px;
        border-right: 0px;
        border-bottom: 4px solid #209cf7;
        position: relative;
    }

        .bc-content .stat-tabs .nav-link.active:after {
            content: '';
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 20px solid #209cf7;
            position: absolute;
            bottom: -20px;
            left: 50%;
            display: block;
            margin-left: -20px;
        }



/* CONSUMPTION MONITORING DETAILS PAGE */

.graph-container .currentZone {
    width: 170px;
}

.graph-container .currentZone {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    margin: .5rem;
    margin-right: 0;
    width: 250px;
}

@media (max-width: 1900px) {
    .graph-container .currentUsage {
        width: calc(100% - 170px);
    }
}

.graph-container .currentUsage {
    margin: .5rem;
    margin-left: 0;
    width: calc(100% - 250px);
    /*    flex-grow: 1;
*/ border: 0px solid red;
}

.graph-container {
    /*    display: flex;
    flex-direction: row;
*/ width: 100%;
    border: 0px solid green;
}


@media (max-width:1999px) {

    div.ev-singlephase .room-performance .sublocation-list div {
        font-weight: bold;
        padding: 0 0 0 0;
        margin-left: 1rem;
        margin-right: .5rem;
        text-align: center;
    }
}


/* New grouping styles */
@media (min-width:768px) {
    div.environmental {
        padding: 0;
    }
}


    div.environmental .header {
        color: rgba(0,0,0,0.8);
        padding-bottom: 5px;
        border-bottom: 1px solid #A9A9A9;
        margin-bottom: 20px;
        margin-top: 20px;
        padding-left: 0;
        font-weight: 900;
    }

    div.environmental h2 {
        font-size: 1.2rem;
        font-weight: 900;
    }

    div.environmental .group {
        border-radius: 10px;
        border: 1px solid #ccc;
    }

        div.environmental .group .actions {
            background: white;
            padding: 10px 15px;
            border-start-start-radius: 10px;
            border-start-end-radius: 10px;
            font-weight: 900;
            font-size: 1.2rem;
            border-bottom: 1px solid #ccc;
            line-height: 2.5rem;
        }

        div.environmental .group .devices {
            padding: 20px 20px;
        }

i[class^="fa"].blue {
    color: #209CF7;
}

i[class^="fa"].red {
    color: #FF0000;
}

i[class^="fa"].green {
    color: #5dcd2c;
}

i[class^="fa"].purple {
    color: #a87bc9;
}

div.environmental .actions .btn {
    background: rgb(235,235,235);
    background: linear-gradient(0deg, rgba(235,235,235,1) 0%, rgba(255,255,255,1) 100%);
    color: #333;
    font-weight: 900;
}

.modalform {
    background-color: #eee;
}

#groupmodal h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 1rem;
}

.error {
    color: red;
}

.form-control.error {
    border: 1px solid red;
}

div.environmental .DeviceOnlineFalse .current-temp,
div.environmental .DeviceOnlineFalse .current-humidity,
div.environmental .DeviceOnlineFalse .current-co2 {
    opacity: 0.2;
}

div.ev-singlephase .ev-sensibo-tile.DeviceOnlineFalse .current-temp span,
div.ev-singlephase .ev-sensibo-tile.DeviceOnlineFalse .current-humidity span,
div.ev-singlephase .DeviceOnlineFalse .heat .current-temp span,
div.ev-singlephase .DeviceOnlineFalse .cool .current-temp span,
div.ev-singlephase .DeviceOnlineFalse .current-humidity span {
    color: #302448;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
}

#groupmodal .device-list-scroller {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

#groupmodal .nav-tabs .nav-link {
    border-left: none;
    border-top: none;
    border-right: none;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.ev-singlephase {
    position: relative;
}

.co2-bg {
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: 116px;
    left: 15px;
    z-index: 190;
}

.co2-bg2 {
    background: var(--bg-primary);
    display: block;
    width: 60px;
    height: 33px;
    border-radius: 100px 100px 0 0;
    position: absolute;
    top: 106px;
    left: 20px;
    z-index: 190;
    border: 1px solid #ccc;
    border-bottom: 0;
}

    .co2-bg2 span {
        font-size: 1.5rem;
        width: 60px;
        display: block;
        line-height: 50px;
        text-align: center;
    }

.current-co2 {
    left: 70px;
    position: relative;
    top: 20px;
    font-size: 1.3rem;
    font-weight: 900;
}

    .current-co2 sub {
        font-size: 0.6rem;
    }

.co2-bg2.acceptable {
    color: #00bc35;
}

.co2-bg2.warning {
    color: #fa972f;
}

.co2-bg2.danger {
    color: #fb0222;
}

.co2-bg2.DeviceOnlineFalse {
    color: #aaa !important;
}

.max-schedulename {
    max-width: 200px;
}

table.schedule-table td,
table.schedule-table th {
    font-size: 0.8rem;
}


.scheduledetails {
    font-size: 0.8rem;
    font-weight: normal;
}


.scheduledetailstitle {
    cursor: pointer;
}

.actionitems {
    font-size: 1rem;
}

.scheduledetails .days {
    color: #ccc;
}

    .scheduledetails .days strong {
        color: #209CF7;
    }

.scheduledetails .schedulecontainer {
    border-left-width: 0.5rem;
    border-left-style: solid;
    padding-left: 0.5rem;
}

@media (max-width:768px) {
    .tempandhumidity {
        margin-top: -20px;
    }

    .co2-bg2 {
        top: 119px;
    }
}

.DeviceOnlineFalse .controls a i {
    color: #aaa !important;
}


/* Change btn-grey to btn-action */
.btn.btn-grey [class^="fa"] {
    color: #a87bc9;
}

.btn.btn-grey {
    background: rgb(255,255,255);
    background: linear-gradient(0deg, #eaeaea 0%, white 100%);
    border: 1px solid #aaa;
    padding: 0.2rem 0.7rem;
}
