/* device container - start*/

#devices ul li {
    width: 100%;
    height: 60px;
    cursor: pointer;
    color: #fff;
    border-bottom: 2px solid #000;
}

#devices ul li div {
    float: left;
}

#devices .edit_btns {
    top: 0;
    height: 100%;
    width: 120px;
    border-left: 2px solid #000;
}

#devices .edit .edit_btns {
    display: flex;
}

#devices .edit_btns button {
    height: 100%;
}

#devices ul li .icon_headline_holder {
    width: 50%;
    height: 100%;
    display: flex;
}

#devices ul li .icon {
    width: 60px;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5) inset;
}

#devices ul li.no_image_false .icon {
    background-size: 50%;
    cursor: pointer;
}

#devices ul li .overlay_title_icons {
    z-index: 2;
    width: 100%;
    height: 70px;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

#devices ul li .device_icons {
    width: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
}

#devices ul.device_icons li {
    float: left;
    display: none;
    height: 20px;
    width: 20px;
    background-repeat: no-repeat;
    background-size: 19px;
    background-position: 50% 44%;
    border: 0;
    margin-bottom: 1px;
    padding: 0 1px;
}

#devices .has_update_true li.update_icon,
#devices .has_action_true li.action_set_icon {
    display: block;
}

#devices ul li .device_icons .update_icon {
    background-image: url('../img/room_view/update_icon.svg');
}

#devices ul li .device_icons .action_set_icon {
    background-image: url('../img/room_view/lincked_icon.svg');
}

#devices ul li:not(.cloud_control) .device_icons .device_control {
    background-image: url('../img/room_view/local_icon.svg');
    display: block;
}

#devices ul li:not(.local_control) .device_icons .device_control {
    background-image: url('../img/room_view/cloud_active_icon.svg');
    display: block;
}

#devices ul li.device_shared_true .device_icons .shared_device {
    background-image: url('../img/room_view/shared.svg');
    display: block;
}

#devices ul li .name_container {
    width: 65%;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#devices ul li h3 {
    max-height: 100%;
    font-size: 16px;
    overflow: hidden;
    word-break: break-word;
}

#group_page #devices ul li h3 {
    max-height: 65%;
}

#devices ul li .name_container span {
    display: flex;
    align-items: center;
    color: lightslategray;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 35%;
}

#devices ul li .stats_container {
    float: none !important;
    height: 100%;
}

#devices ul li .prop_holder {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #27516c;
    /* padding: 0px 4%; */
    box-sizing: border-box;
}

#devices ul li .prop_holder div {
    width: 100%;
    height: 50%;
    font-size: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#devices ul li .prop_holder.empty_holder,
#devices ul li .prop_holder.sensor_main_holder,
#devices ul li .prop_holder.main_temp,
#devices ul li .prop_holder.flood_prop_holder,
#devices ul li .prop_holder .cons_light_combo,
#devices ul li .prop_holder .device_consumption,
#devices ul li .prop_holder .device_light,
#devices ul li .prop_holder .ir_rem_type,
#devices ul li .prop_holder .gas_alarm_holder {
    height: 100%;
}

#devices ul li .prop_holder .cons_light_combo .light_preview_room {
    width: 20px;
    height: 20px;
    background-image: url(../img/bulb_rev.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #000;
    margin-left: 5px;
}

#devices ul li .prop_holder .device_light .light_preview_room  {
    width: 30%;
    height: 16px;
    background-color: #fff;
    border-radius: 5px;
}

#devices ul li .prop_holder.main_temp div {
    align-items: baseline;
    justify-content: center;
    margin-top: 14px;
}

#devices ul li .prop_holder.flood_prop_holder div {
    align-items: center;
    justify-content: center;
    height: 100%;
}

#devices ul li .prop_holder.main_temp div .battery_value {
    font-size: 26px;
}

#devices ul li .prop_holder.gas_alarm_holder div .alarm_value.none {
    color: green;
}

#devices ul li .prop_holder.gas_alarm_holder div .alarm_value.mild {
    color: yellow;
}

#devices ul li .prop_holder.gas_alarm_holder div .alarm_value.heavy {
    color: red;
}

#devices ul li .prop_holder.ppm_holder div .ppm_value {
    font-size: 18px;
}

#devices ul li .prop_holder.main_temp div .tmp_unit {
    margin-top: 7px;
    font-size: 20px;
}

#devices ul li .prop_holder .light_perc .light_preview_room,
#devices ul li .prop_holder div .prop_icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 3px;
    text-align: center;
    font-weight: bold;
}

#devices ul li .control_icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background-size: 60px;
    background-position: 50%;
    background-repeat: no-repeat;
    background-image: url(../img/big_off_icon.png);
    transition: background .2s;
    z-index: 1;
}

#devices li.offline_control .offline_overlay,
#devices li.forced_offline_control .offline_overlay,
#devices ul li.not_prepared .prepare_overlay,
#devices ul li.prepare_failed .prepare_failed_overlay,
#devices ul li .status_overlay,
#devices ul li.cloud_disabled_true .cloud_overlay,
#devices ul li.updating .updating_overlay,
#devices ul li.calibrating .calibrating_overlay {
    display: block;
    background: rgba(0,0,0,0.9);
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.reordering #devices li.offline_control .offline_overlay,
.reordering #devices li.forced_offline_control .offline_overlay,
/* .reordering #devices ul li.not_prepared .prepare_overlay, */
.reordering #devices ul li.prepare_failed .prepare_failed_overlay,
/* .reordering #devices ul li .status_overlay, */
.reordering #devices ul li.cloud_disabled_true .cloud_overlay,
.reordering #devices ul li.updating .updating_overlay,
.reordering #devices ul li.calibrating .calibrating_overlay {
    display: none;
}

#devices .sortable .drag_overlay {
    width: 50%;
    height: 100%;
    right: 0;
    left: auto;
}

#devices ul li .prop_holder.empty_holder {
    background-color: transparent;
}
