﻿/*Switch for Actif/Inactif user*/

.kle-switch-actif.switch-button-xs {
    height: 21px;
    line-height: 14px;
    width: 60px;
    margin-top: 2px;
}

.kle-switch-actif {
    display: inline-block;
    border-radius: 50px;
    background-color: #ef172c;
    width: 60px;
    height: 27px;
    padding: 4px;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

    .kle-switch-actif input[type=checkbox] {
        display: none;
    }

        .kle-switch-actif input[type=checkbox]:checked + span label {
            float: right;
            border-color: #2a75f3;
        }

    .kle-switch-actif.switch-button-xs label {
        height: 12px;
        width: 12px;
    }

    .kle-switch-actif input[type=checkbox]:checked + span label:before {
        position: absolute;
        font-size: 12px;
        font-weight: 600;
        z-index: 0;
        content: "Actif";
        color: #FFF;
        left: 0;
        text-align: left;
        padding-left: 10px;
    }

    .kle-switch-actif.switch-button-xs label:before {
        line-height: 22px;
    }

    .kle-switch-actif label:before {
        position: absolute;
        font-size: 12px;
        font-weight: 600;
        z-index: 0;
        content: "Inactif";
        right: 0;
        display: block;
        width: 100%;
        height: 100%;
        line-height: 27px;
        top: 0;
        text-align: right;
        padding-right: 5px;
        color: #FFF;
    }

    .kle-switch-actif input[type=checkbox]:checked + span {
        background-color: #2ec551;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 4px;
    }

    .kle-switch-actif.switch-button-sm label {
        height: 16px;
        width: 16px;
    }

    .kle-switch-actif label {
        border-radius: 50%;
        box-shadow: 0 0 1px 1px #FFF inset;
        background-color: #FFF;
        margin: 0;
        height: 19px;
        width: 19px;
        z-index: 1;
        display: inline-block;
        cursor: pointer;
        background-clip: padding-box;
    }

    .kle-switch-actif.switch-button-sm {
        height: 24px;
        width: 57px;
        line-height: 20px;
    }

    .kle-switch-actif.switch-button-lg {
        height: 30px;
        line-height: 32px;
        width: 64px;
    }

    .kle-switch-actif.switch-button-success input[type=checkbox]:checked + span {
        background-color: #2ec551;
    }

    .kle-switch-actif.switch-button-warning input[type=checkbox]:checked + span {
        background-color: #ffc750;
    }

    .kle-switch-actif.switch-button-danger input[type=checkbox]:checked + span {
        background-color: #ef172c;
    }
