﻿.switch {
    display: inline-block;
    width: 40px;
    height: 26px;
}

.switch-input {
    display: none;
}

.switch-slider {
    position: relative;
    display: block;
    height: inherit;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #c8ced3;
    transition: .15s ease-out;
    border-radius: 0.25rem;
}

    .switch-slider::before {
        position: absolute;
        top: 2px;
        left: 2px;
        box-sizing: border-box;
        width: 20px;
        height: 20px;
        content: "";
        background-color: #fff;
        border: 1px solid #c8ced3;
        transition: .15s ease-out;
        border-radius: 0.125rem;
    }

.switch-input:checked ~ .switch-slider::before {
    -webkit-transform: translateX(14px);
    transform: translateX(14px);
}

.switch-input:disabled ~ .switch-slider {
    cursor: not-allowed;
    opacity: .5;
}

.switch-lg {
    width: 48px;
    height: 30px;
}

    .switch-lg .switch-slider {
        font-size: 12px;
    }

        .switch-lg .switch-slider::before {
            width: 24px;
            height: 24px;
        }

        .switch-lg .switch-slider::after {
            font-size: 12px;
        }

    .switch-lg .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(18px);
        transform: translateX(18px);
    }

.switch-sm {
    width: 32px;
    height: 22px;
}

    .switch-sm .switch-slider {
        font-size: 8px;
    }

        .switch-sm .switch-slider::before {
            width: 16px;
            height: 16px;
        }

        .switch-sm .switch-slider::after {
            font-size: 8px;
        }

    .switch-sm .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(10px);
        transform: translateX(10px);
    }

.switch-label {
    width: 48px;
}

div.form-group .switch-label {
    padding-top: 12px;
    margin-left: 12px;
}

.switch-label .switch-slider::before {
    z-index: 2;
}

.switch-label .switch-slider::after {
    position: absolute;
    top: 50%;
    right: 1px;
    z-index: 1;
    width: 50%;
    margin-top: -.5em;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #c8ced3;
    text-align: center;
    text-transform: uppercase;
    content: attr(data-unchecked);
    transition: inherit;
}

.switch-label .switch-input:checked ~ .switch-slider::before {
    -webkit-transform: translateX(22px);
    transform: translateX(22px);
}

.switch-label .switch-input:checked ~ .switch-slider::after {
    left: 1px;
    color: #fff;
    content: attr(data-checked);
}

.switch-label.switch-lg {
    width: 56px;
    height: 30px;
}

    .switch-label.switch-lg .switch-slider {
        font-size: 12px;
    }

        .switch-label.switch-lg .switch-slider::before {
            width: 24px;
            height: 24px;
        }

        .switch-label.switch-lg .switch-slider::after {
            font-size: 12px;
        }

    .switch-label.switch-lg .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(26px);
        transform: translateX(26px);
    }

.switch-label.switch-sm {
    width: 40px;
    height: 22px;
}

    .switch-label.switch-sm .switch-slider {
        font-size: 8px;
    }

        .switch-label.switch-sm .switch-slider::before {
            width: 16px;
            height: 16px;
        }

        .switch-label.switch-sm .switch-slider::after {
            font-size: 8px;
        }

    .switch-label.switch-sm .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(18px);
        transform: translateX(18px);
    }


.switch-3d .switch-slider {
    background-color: #f0f3f5;
    border-radius: 50em;
}

    .switch-3d .switch-slider::before {
        top: -1px;
        left: -1px;
        width: 26px;
        height: 26px;
        border: 0;
        border-radius: 50em;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

.switch-3d.switch-lg {
    width: 48px;
    height: 30px;
}

    .switch-3d.switch-lg .switch-slider::before {
        width: 30px;
        height: 30px;
    }

    .switch-3d.switch-lg .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(18px);
        transform: translateX(18px);
    }

.switch-3d.switch-sm {
    width: 32px;
    height: 22px;
}

    .switch-3d.switch-sm .switch-slider::before {
        width: 22px;
        height: 22px;
    }

    .switch-3d.switch-sm .switch-input:checked ~ .switch-slider::before {
        -webkit-transform: translateX(10px);
        transform: translateX(10px);
    }

.switch-primary .switch-input:checked + .switch-slider {
    background-color: #20a8d8;
    border-color: #1985ac;
}

    .switch-primary .switch-input:checked + .switch-slider::before {
        border-color: #1985ac;
    }

.switch-outline-primary .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #20a8d8;
}

    .switch-outline-primary .switch-input:checked + .switch-slider::before {
        border-color: #20a8d8;
    }

    .switch-outline-primary .switch-input:checked + .switch-slider::after {
        color: #20a8d8;
    }

.switch-outline-primary-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #20a8d8;
}

    .switch-outline-primary-alt .switch-input:checked + .switch-slider::before {
        background-color: #20a8d8;
        border-color: #20a8d8;
    }

    .switch-outline-primary-alt .switch-input:checked + .switch-slider::after {
        color: #20a8d8;
    }

.switch-secondary .switch-input:checked + .switch-slider {
    background-color: #c8ced3;
    border-color: #acb5bc;
}

    .switch-secondary .switch-input:checked + .switch-slider::before {
        border-color: #acb5bc;
    }

.switch-outline-secondary .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #c8ced3;
}

    .switch-outline-secondary .switch-input:checked + .switch-slider::before {
        border-color: #c8ced3;
    }

    .switch-outline-secondary .switch-input:checked + .switch-slider::after {
        color: #c8ced3;
    }

.switch-outline-secondary-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #c8ced3;
}

    .switch-outline-secondary-alt .switch-input:checked + .switch-slider::before {
        background-color: #c8ced3;
        border-color: #c8ced3;
    }

    .switch-outline-secondary-alt .switch-input:checked + .switch-slider::after {
        color: #c8ced3;
    }

.switch-success .switch-input:checked + .switch-slider {
    background-color: #4dbd74;
    border-color: #3a9d5d;
}

    .switch-success .switch-input:checked + .switch-slider::before {
        border-color: #3a9d5d;
    }

.switch-outline-success .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #4dbd74;
}

    .switch-outline-success .switch-input:checked + .switch-slider::before {
        border-color: #4dbd74;
    }

    .switch-outline-success .switch-input:checked + .switch-slider::after {
        color: #4dbd74;
    }

.switch-outline-success-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #4dbd74;
}

    .switch-outline-success-alt .switch-input:checked + .switch-slider::before {
        background-color: #4dbd74;
        border-color: #4dbd74;
    }

    .switch-outline-success-alt .switch-input:checked + .switch-slider::after {
        color: #4dbd74;
    }

.switch-info .switch-input:checked + .switch-slider {
    background-color: #63c2de;
    border-color: #39b2d5;
}

    .switch-info .switch-input:checked + .switch-slider::before {
        border-color: #39b2d5;
    }

.switch-outline-info .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #63c2de;
}

    .switch-outline-info .switch-input:checked + .switch-slider::before {
        border-color: #63c2de;
    }

    .switch-outline-info .switch-input:checked + .switch-slider::after {
        color: #63c2de;
    }

.switch-outline-info-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #63c2de;
}

    .switch-outline-info-alt .switch-input:checked + .switch-slider::before {
        background-color: #63c2de;
        border-color: #63c2de;
    }

    .switch-outline-info-alt .switch-input:checked + .switch-slider::after {
        color: #63c2de;
    }

.switch-warning .switch-input:checked + .switch-slider {
    background-color: #ffc107;
    border-color: #d39e00;
}

    .switch-warning .switch-input:checked + .switch-slider::before {
        border-color: #d39e00;
    }

.switch-outline-warning .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #ffc107;
}

    .switch-outline-warning .switch-input:checked + .switch-slider::before {
        border-color: #ffc107;
    }

    .switch-outline-warning .switch-input:checked + .switch-slider::after {
        color: #ffc107;
    }

.switch-outline-warning-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #ffc107;
}

    .switch-outline-warning-alt .switch-input:checked + .switch-slider::before {
        background-color: #ffc107;
        border-color: #ffc107;
    }

    .switch-outline-warning-alt .switch-input:checked + .switch-slider::after {
        color: #ffc107;
    }

.switch-danger .switch-input:checked + .switch-slider {
    background-color: #f86c6b;
    border-color: #f63c3a;
}

    .switch-danger .switch-input:checked + .switch-slider::before {
        border-color: #f63c3a;
    }

.switch-outline-danger .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #f86c6b;
}

    .switch-outline-danger .switch-input:checked + .switch-slider::before {
        border-color: #f86c6b;
    }

    .switch-outline-danger .switch-input:checked + .switch-slider::after {
        color: #f86c6b;
    }

.switch-outline-danger-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #f86c6b;
}

    .switch-outline-danger-alt .switch-input:checked + .switch-slider::before {
        background-color: #f86c6b;
        border-color: #f86c6b;
    }

    .switch-outline-danger-alt .switch-input:checked + .switch-slider::after {
        color: #f86c6b;
    }

.switch-light .switch-input:checked + .switch-slider {
    background-color: #f0f3f5;
    border-color: #d1dbe1;
}

    .switch-light .switch-input:checked + .switch-slider::before {
        border-color: #d1dbe1;
    }

.switch-outline-light .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #f0f3f5;
}

    .switch-outline-light .switch-input:checked + .switch-slider::before {
        border-color: #f0f3f5;
    }

    .switch-outline-light .switch-input:checked + .switch-slider::after {
        color: #f0f3f5;
    }

.switch-outline-light-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #f0f3f5;
}

    .switch-outline-light-alt .switch-input:checked + .switch-slider::before {
        background-color: #f0f3f5;
        border-color: #f0f3f5;
    }

    .switch-outline-light-alt .switch-input:checked + .switch-slider::after {
        color: #f0f3f5;
    }

.switch-dark .switch-input:checked + .switch-slider {
    background-color: #2f353a;
    border-color: #181b1e;
}

    .switch-dark .switch-input:checked + .switch-slider::before {
        border-color: #181b1e;
    }

.switch-outline-dark .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #2f353a;
}

    .switch-outline-dark .switch-input:checked + .switch-slider::before {
        border-color: #2f353a;
    }

    .switch-outline-dark .switch-input:checked + .switch-slider::after {
        color: #2f353a;
    }

.switch-outline-dark-alt .switch-input:checked + .switch-slider {
    background-color: #fff;
    border-color: #2f353a;
}

    .switch-outline-dark-alt .switch-input:checked + .switch-slider::before {
        background-color: #2f353a;
        border-color: #2f353a;
    }

    .switch-outline-dark-alt .switch-input:checked + .switch-slider::after {
        color: #2f353a;
    }

.switch-pill .switch-slider {
    border-radius: 50em;
}

    .switch-pill .switch-slider::before {
        border-radius: 50em;
    }
