.filter {
    left: 35%;
    position: relative;
    width: fit-content;
}

/* The container */
.container {
    display: inline;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
/* Hide the browser's default checkbox */
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

/* Create a custom checkbox */
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: rgb(145, 144, 144);
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}




#search_name {
    background-image: url('https://www.w3schools.com/css/searchicon.png');
    background-position: 10px 12px;
    background-repeat: no-repeat;
    width: 120px;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #dddddd;
    margin-bottom: 12px;
  }

.devices-container {
    width: 65%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}

.devices-datepicker-bar {
    width: 100%;
    display: flex;
    justify-content: center;
}

.spinner-container {
    margin: 100px auto;
    width: 50px;
    color: #404040;
}

.device-card {
    padding: 1%;
    width: 29%;
    margin: 1%;
    background-color: #fff;
    position: relative;
}

.device-card-row {
    width: 100%;
    display: flex;
}

.device-card-header {
    justify-content: space-between;
    margin-bottom: 20px;
}

.device-type {
    margin: 0;
    width: 90%;
    font-size: 18px;
}

.device-status {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    margin-top: 5px;
    margin: 0 auto;
}

.device-rssi {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    margin-right: 40px;
}

.status-color-ok {
    background-color: #2ebc00;
}

.status-color-mediocre {
    background-color: #d87001;
}

.status-color-bad {
    background-color: #d81702;
}

.no-status {
    border: 2px solid rgb(158, 158, 158);
    border-radius: 12px;
}

.device-card-row {
    width: 100%;
}

.device-room-container {
    justify-content: center;
    margin-bottom: 20px;
}

.room-label {
    font-size: 16px;
}

.room-input-field {
    outline: none;
}

.edit-room-value-btn {
    background-color: #EF7100;
    border: 0;
    margin-left: 10px;
    color: #fff;
    cursor: pointer;
}

.edit-icon {
    color: #EF7100;
    margin-left: 10px;
    cursor: pointer;
    margin-top: 5px;
}

.device-values-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.values-label {
    width: 100%;
    font-weight: 700;
}

.device-average-values {
    width: 100%;
    display: flex;
    list-style: none;
    margin: 10px;
    padding: 0;
    justify-content: space-around;
}

.device-total-values {
    width: 100%;
    display: flex;
    list-style: none;
    margin: 10px;
    padding: 0;
}

.device-values {
    font-size: 22px;
    width: 100%;
}

.device-value {
    flex-basis: 1;
    display: inline;
    text-align: center;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.fw-device-value {
    width: 50%;
    display: inline;
    text-align: center;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.oxygen-color {
    color: rgb(202, 212, 0);
}

.humidity-color {
    color: rgb(0, 119, 198);
}

.dust-color {
   color: rgb(117, 92, 53);
}

.t1-color {
    color: #EF7100;
}

.t2-color {
    color: purple;
}

.flow-color {
    color: #1EAF00;
}

.device-link {
    color: #fff;
    background-color: #EF7100;
    display: block;
    width: 70%;
    padding: 5px 0;
    border-radius: 15px;
    bottom: 20px;
    text-decoration: none;
    left:0;
    right:0;
    margin: 0 auto;
    text-align: center;
}

.device-link {
    margin-right: 10px;
}

.failure-card {
    width: 29%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 1%;
}

.failure-card h3 {
    text-align: center;
}

.login-redirect-btn {
    background-color: #EF7100;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    padding: 5px 0;
    font-size: 18px;
    width: 150px;
    display: block;
    text-align: center;
}

@media only screen and (max-width: 1440px) {  

    .devices-container {
        width: 100%;
        padding: 0;
    }
}

@media only screen and (max-width: 1024px) {  

    .devices-container {
        width: 90%;
        padding: 1%;
    }

    .device-card {
        width: 46%;
    }
}

@media only screen and (max-width: 768px) {  

    .devices-container {
        width: 90%;
    }

    .device-card {
        width: 96%;
        margin-top: 5%;
    }
}