﻿/* Toggle switch control */

.msl-switch {
    position: relative;
    display: inline-block;
    height: 22px;
    font-size: 1rem;
    padding-left: 22px;
    vertical-align: middle;
    margin: 3px;
}

* + .msl-switch {
    margin-left: 0.5rem;
}

.msl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.msl-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border: 1px solid transparent;
}


    .msl-switch-slider:hover,
    .msl-switch-slider:focus, input:focus + .msl-switch-slider {
        border-color: #000;
    }

    .msl-switch-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.msl-switch .msl-switch-label {
    line-height: 26px;
    display: inline-block;
    cursor: pointer;
}
.dropdown-item .msl-switch .msl-switch-label {
    line-height: 22px;
}

input:checked + .msl-switch-slider {
    background-color: #2196F3;
}

input:focus + .msl-switch-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:disabled + .msl-switch-slider:before {
    background: transparent;
    border: 1px solid #fff;
}

input:checked + .msl-switch-slider:before {
    -webkit-transform: translateX(12px);
    -ms-transform: translateX(12px);
    transform: translateX(12px);
}

/* Rounded sliders */
.msl-switch-slider {
    border-radius: 26px;
    width: 34px;
}

    .msl-switch-slider:before {
        border-radius: 50%;
    }

/* Small Switch */

.switch-sm .msl-switch {
    height: 18px;
    font-size: .9rem;
    padding-left: 32px;
    vertical-align: middle;
    margin: 3px;
}

.switch-sm .msl-switch-slider:before {
        height: 14px;
        width: 14px;
        bottom:1px;
    }

.switch-sm .msl-switch .msl-switch-label {
    line-height: 18px;
    display: inline-block;
    cursor: pointer;
}

.switch-sm input:checked + .msl-switch-slider:before {
    -webkit-transform: translateX(10px);
    -ms-transform: translateX(10px);
    transform: translateX(10px);
}

.switch-sm .msl-switch-slider {
    border-radius: 20px;
    width: 30px;
}

/* Switch on dark background */

.switch-light label {
    color:white;
    font-weight:bold;
}