﻿.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24.5px;
    margin-bottom: 0px;
}

.status_switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 25px;
    margin-bottom: 0px;
}

.switch input,
.status_switch input{
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e6e6e6;
    border: 2px solid #d5d7d8;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 14px;
    left: 0px;   
    top: 1;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
 }

input:checked + .slider {
    background-color: #3c8dbc;
}

input:checked + .slider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
}

input:checked + #status_slider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
    left: 40px;
}

.on,
.yes,
.status_active {
    display: none;
}

.on, .off,
.yes, .no,
.status_active, .status_inactive {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 25%;
    left: 25%;
    font-size: 10px;
    font-family: Verdana, sans-serif;
}

.on {
    top: 10px;
    color: white;
    left: 21px;
    padding: 5px 20px 5px 5px;
}

.yes {
    top: 10px;
    color: white;
    left: 21px;
    padding: 5px 20px 5px 5px;
}

.status_active {
    top: 10px;
    color: white;
    left: 42px;
    padding: 5px 30px 5px 12px;
}

.off {
    left: auto;
    right: -33px;
    top: 10px;
    color: #333;
    padding: 5px 10px 5px 20px;
}

.no {
    left: auto;
    right: -28px;
    top: 10px;
    color: #333;
    padding: 5px 10px 5px 20px;
}

.status_inactive {
    left: auto;
    right: -42px;
    top: 10px;
    color: #333;
    padding: 7px 5px 7px 18px;
}

input:checked + .slider .on,
input:checked + .slider .yes,
input:checked + .slider .status_active {
    display: block;
}

input:checked + .slider .off,
input:checked + .slider .no,
input:checked + .slider .status_inactive {
    display: none;
}

.slider.round {
    border-radius: 10%;
    top: 0px;
}

.slider.round:before {
    border-radius: 5%;
}

input:disabled + .slider {
    cursor: default;
}