.switch-container {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.switch {
    position: absolute;
    right: 12px;
    display: inline-block;
    width: 136px;
    height: 40px;
    margin-top: 5px;
}

.switchAb {
    position: absolute;
    right: 12px;
    display: inline-block;
    width: 136px;
    height: 40px;
    margin-top: 5px;
}

.switchlabel {
    font-size: 18px;
    text-align: right;
    height: 100%;
    color: #000000;
    padding: 6px 12px 6px 12px !important;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0px;
    right: 0px;
    bottom: 0;
    background-color: #fff;
    border: 1px solid #929497;
    -webkit-transition: .4s;
    transition: .4s;
}

.small .switch {
    width: 92px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 34px;
    width: 34px;
    left: 2px;
    bottom: 2px;
    background-color: #000000;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider .switchlabel {
    text-align: left;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(96px);
    -ms-transform: translateX(96px);
    transform: translateX(96px);
}

.small input:checked + .slider:before {
    -webkit-transform: translateX(52px);
    -ms-transform: translateX(52px);
    transform: translateX(52px);
}

.slider .switchlabel:before {
    content: attr(data-switch-off);
}

input:checked + .slider .switchlabel:before {
    content: attr(data-switch-on);
}

input:disabled + .slider {
    background-color: #dedede;
    border-color: #dedede;
}

input:disabled + .slider.round:before {
    background-color: #aaaaaa;
}

input:disabled + .slider .switchlabel {
    color: #aaaaaa;
}

.input-label {
    text-align: left;
}

.right .input-label {
    white-space: nowrap;
}

.right .input-label span {
    position: absolute;
    top: 52%;
    height: auto;
}

.font-weight-medium .input-label span {
    font-weight: 500;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.compact .switch {
    width: 100px;
    height: 30px;
}

.compact.small .switch {
    width: 89px;
}

.compact .switchlabel {
    font-size: 12px;
    padding: 6px 8px 6px 8px !important;
}

.compact .slider::before {
    height: 24px;
    width: 24px;
}

.compact input:checked + .slider:before {
    -webkit-transform: translateX(70px);
    -ms-transform: translateX(70px);
    transform: translateX(70px);
}

.compact.small input:checked + .slider:before {
    -webkit-transform: translateX(59px);
    -ms-transform: translateX(59px);
    transform: translateX(59px);
}

.compact .input-label {
    height: 30px;
    margin-bottom: 10px;
}

.compact .switch {
    margin-top: 10px;
}

.compact .switch .dropdown {
    margin-top: -5px;
}

.compact .switch .dropdown button {
    height: 40px;
    padding-top: 1px;
}

.compact .input-label {
    line-height: 1.2;
}

.switch-container {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .switch {
        width: 110px;
    }

    .switchlabel {
        font-size: 14px;
        padding: 9px 7px 6px 12px !important;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(70px);
        -ms-transform: translateX(70px);
        transform: translateX(70px);
    }
}
