:root {
    --color-green: #00bf18;
    --color-grey: #d5d5d5;
    --color-blue: #0a1045;

    --block-radius: 2px;
    --block-margin: 0.5em;
}

.entry-header {
    display: none;
}

.row {
    float: left;
    width: 100%;
}
.col-md-1 {
    width: 8.33333333%;
    float: left;
}
.col-md-2 {
    width: 16.66666667%;
    float: left;
}
.col-md-3 {
    width: 25%;
    float: left;
}

.col-md-4 {
    width: 33.33333333%;
    float: left;
}

.col-md-6 {
    width: 50%;
    float: left;
}
.col-md-7 {
    width: 58.33333333%;
    float: left;
}
.col-md-8 {
    width: 66.66666667%;
    float: left;
}
.col-md-9 {
    width: 75%;
    float: left;
}
.col-md-10 {
    width: 83.33333333%;
    float: left;
}
.col-md-11 {
    width: 91.66666667%;
    float: left;
}
.col-md-12 {
    width: 100%;
    float: left;
}

@media (max-width: 764px) {
    .col-sm-2 {
        width: 16.66666667%;
        float: left;
    }

    .col-sm-4 {
        width: 33.33333333%;
        float: left;
    }

    .col-sm-6 {
        width: 50%;
        float: left;
    }

    .col-sm-8 {
        width: 66.66666667%;
        float: left;
    }

    .col-sm-12 {
        width: 100%;
        float: left;
    }
}

.devices {
    margin-bottom: 30px;
}

.device-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: black;
    text-align: center;
    cursor: pointer;

    background-color: var(--color-grey);
    padding: 8px;
    border-radius: var(--block-radius);
    margin: 8px;
}

.devices-container .active {
    background-color: var(--color-green);
    color: white;
}

.devices-container .inactive {
    background-color: var(--color-grey);
    color: black;
}

.devices-container .disabled {
    opacity: 0.5;
    color: black;
}

.device-data {
    background-color: white;
    padding: 10px;
    border-radius: var(--block-radius);
    margin: var(--block-margin);
    height: 7em;
    overflow: hidden;
}

.device-data .title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    padding-left: 5px;
    margin-bottom: 0;
}

.device-data .title small {
    font-size: x-small;
}

.device-data .value {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5em;
}

.device-data ul {
    margin-left: 1.3em;
}

.device-data ul li {
    padding-left: 0.5em;
}

.graph-buttons {
    display: flex;
    justify-content: center;
}

.range-button {
    width: 10em;
    height: 2em;
    padding: 3px;
    margin: 3px;
    text-align: center;
    border-radius: 3px;
    background-color: var(--color-grey);
    cursor: pointer;
}

.device-graph,
.device-maintenance{
    height: 23em;
    border-radius: 10px;
    overflow: hidden;
}

.device-control-switch {
    height: auto;
    min-height: 15em;
    display: grid;
    border-radius: 10px;
}

.device-alarms,
.device-activity {
    height: 39em;
    border-radius: 10px;

}

.device-maintenance .row {
    margin-top: 1em;
    text-align: center;
}

.alarm-switch {
    display: flex;
    float: right;
}

.switch {
    /*width: 60px !important;*/
    transform: scale(.7) !important;
}

.ball-icon {
    width: 30px;
}

.minus-button, .plus-button {
    font-size: 30px;
    color: white;
    background-color: #00bf18;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
}

.current-value {
    margin-top: 0;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    width: 3em;
}

.current-value-time {
    margin-top: 0;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    width: 3em;
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.col-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-bold {
    font-weight: bold;
}

.control-buttons-row {
    margin-top: 1em;
}

.control-buttons-main {
    margin-top: 3em;
}

.control-info-row {
    margin-top: 1em;
}

.edit-button-block {
    margin-top: 1em;
    margin-bottom: 1em;
}
