﻿.switch {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin: 3px 0;
}

    .switch .ios-switch {
        height: 35px;
        width: 65px;
    }

        .switch .ios-switch .handle {
            height: 31px;
            width: 31px;
        }

    .switch.switch-primary .ios-switch .on-background {
        background: #cccccc;
    }

    .switch.switch-success .ios-switch .on-background {
        background: #47a447;
    }

    .switch.switch-warning .ios-switch .on-background {
        background: #ed9c28;
    }

    .switch.switch-danger .ios-switch .on-background {
        background: #d2322d;
    }

    .switch.switch-info .ios-switch .on-background {
        background: #5bc0de;
    }

    .switch.switch-dark .ios-switch .on-background {
        background: #171717;
    }

    .switch.switch-lg .ios-switch {
        height: 45px;
        width: 75px;
    }

        .switch.switch-lg .ios-switch .handle {
            height: 41px;
            width: 41px;
        }

    .switch.switch-sm .ios-switch {
        height: 25px;
        width: 55px;
    }

        .switch.switch-sm .ios-switch .handle {
            height: 21px;
            width: 21px;
        }

.ios-switch {
    height: 45px;
    width: 75px;
    position: relative;
    background-color: #E5E5E5;
    border-radius: 100px;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

    .ios-switch .background-fill {
        width: 100%;
        height: 100%;
        border-radius: 100px;
        position: absolute;
        left: 0;
        top: 0;
    }

    .ios-switch .on-background {
        background-image: -o-linear-gradient(#00e459, #00e158);
        background-image: -ms-linear-gradient(#00e459, #00e158);
        background-image: -moz-linear-gradient(#00e459, #00e158);
        background-image: -webkit-linear-gradient(#00e459, #00e158);
        background-image: linear-gradient(#00e459, #00e158);
        opacity: 0;
        -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
        filter: alpha(opacity=0);
        z-index: 1;
        -o-transition: .3s 0.2s;
        -ms-transition: .3s 0.2s;
        -moz-transition: .3s 0.2s;
        -webkit-transition: .3s 0.2s;
        transition: .3s 0.2s;
    }

    .ios-switch .state-background {
        border-radius: 100px;
        z-index: 2;
        background-image: -o-linear-gradient(white, #fdfdfd);
        background-image: -ms-linear-gradient(white, #fdfdfd);
        background-image: -moz-linear-gradient(white, #fdfdfd);
        background-image: -webkit-linear-gradient(white, #fdfdfd);
        background-image: linear-gradient(white, #fdfdfd);
        border: 2px solid #E5E5E5;
        -o-box-sizing: border-box;
        -ms-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
        -o-transition: .4s;
        -ms-transition: .4s;
        -moz-transition: .4s;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .ios-switch .handle {
        width: 41px;
        height: 41px;
        background-color: white;
        top: 2px;
        left: 2px;
        position: absolute;
        border-radius: 20px;
        box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.075), 0 3px 5px rgba(0, 0, 0, 0.15), 1px 2px 2px rgba(0, 0, 0, 0.05);
        z-index: 3;
        -o-transition: -o-transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -ms-transition: -ms-transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -moz-transition: -moz-transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -webkit-transition: -webkit-transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -o-transition: transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -ms-transition: transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -moz-transition: transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -webkit-transition: transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        transition: transform 0.3s 0.25s cubic-bezier(0.455, 0.03, 0.215, 1.33);
        -o-box-sizing: content-box;
        -ms-box-sizing: content-box;
        -moz-box-sizing: content-box;
        -webkit-box-sizing: content-box;
        box-sizing: content-box;
    }

    .ios-switch.off .handle {
        -o-animation: expand-off .3s 0.2s;
        -ms-animation: expand-off .3s 0.2s;
        -moz-animation: expand-off .3s 0.2s;
        -webkit-animation: expand-off .3s 0.2s;
        animation: expand-off .3s 0.2s;
        -o-transform: translate(0px, 0);
        -ms-transform: translate(0px, 0);
        -moz-transform: translate(0px, 0);
        -webkit-transform: translate(0px, 0);
        transform: translate(0px, 0);
        -o-transform: translate3d(0px, 0, 0);
        -ms-transform: translate3d(0px, 0, 0);
        -moz-transform: translate3d(0px, 0, 0);
        -webkit-transform: translate3d(0px, 0, 0);
        transform: translate3d(0px, 0, 0);
    }

    .ios-switch.off .on-background {
        -o-transition: .3s 0s;
        -ms-transition: .3s 0s;
        -moz-transition: .3s 0s;
        -webkit-transition: .3s 0s;
        transition: .3s 0s;
    }

    .ios-switch.off .state-background {
        -o-transition: .4s 0.25s;
        -ms-transition: .4s 0.25s;
        -moz-transition: .4s 0.25s;
        -webkit-transition: .4s 0.25s;
        transition: .4s 0.25s;
    }

    .ios-switch.on .handle {
        -o-animation: expand-on .3s 0.2s;
        -ms-animation: expand-on .3s 0.2s;
        -moz-animation: expand-on .3s 0.2s;
        -webkit-animation: expand-on .3s 0.2s;
        animation: expand-on .3s 0.2s;
        -o-transform: translate(30px, 0);
        -ms-transform: translate(30px, 0);
        -moz-transform: translate(30px, 0);
        -webkit-transform: translate(30px, 0);
        transform: translate(30px, 0);
        -o-transform: translate3d(30px, 0, 0);
        -ms-transform: translate3d(30px, 0, 0);
        -moz-transform: translate3d(30px, 0, 0);
        -webkit-transform: translate3d(30px, 0, 0);
        transform: translate3d(30px, 0, 0);
    }

    .ios-switch.on .on-background {
        opacity: 1;
        -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
        filter: alpha(opacity=100);
    }

    .ios-switch.on .state-background {
        -o-transform: scale(0);
        -ms-transform: scale(0);
        -moz-transform: scale(0);
        -webkit-transform: scale(0);
        transform: scale(0);
    }

input[name="daterange"] {
    position: relative;
    z-index: 10000;
}

.daterangepicker.dropdown-menu {
    z-index: 30000;
}

@media only screen and (max-width: 750px) {
    .modal-dialog {
        width: 100vw !important;
        margin-left: 0px !important;
        height: auto;
    }
}

@media only screen and (max-width: 750px) {
    .margin-xs {
        margin-top: 10px;
    }
}

select, option {
    max-width: 100%;
}

/* DEMO Menu */
#sidebar-flat-dark .menu-section ul li label,
#sidebar-flat-dark .menu-section ul li a.demo {
    color: #92AAC1;
    font-weight: 400;
    font-size: 14px;
    padding: 6px 10px;
    padding-left: 25px;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    width: 99%;
    -webkit-transition: all 0.13s linear;
    -moz-transition: all 0.13s linear;
    -ms-transition: all 0.13s linear;
    -o-transition: all 0.13s linear;
    transition: all 0.13s linear;
}

    #sidebar-flat-dark .menu-section ul li label i {
        font-size: 18px;
        margin-right: 9px;
        min-width: 17px;
        text-align: center;
        position: relative;
        top: 1px;
    }

@media (min-width: 768px) and (max-width: 991px) {
    #sidebar-flat-dark .menu-section ul li label,
    #sidebar-flat-dark .menu-section ul li a.demo {
        position: relative;
        padding-left: 10px;
        text-align: center;
    }

        #sidebar-flat-dark .menu-section ul li label:hover + .submenu,
        #sidebar-flat-dark .menu-section ul li a.demo:hover + .submenu {
            visibility: visible;
            opacity: 1;
            -moz-transform: translateX(0px);
            -o-transform: translateX(0px);
            -ms-transform: translateX(0px);
            -webkit-transform: translateX(0px);
            transform: translateX(0px);
        }

        #sidebar-flat-dark .menu-section ul li label i,
        #sidebar-flat-dark .menu-section ul li a.demo i {
            font-size: 23px;
            margin: 0;
        }
}

/* DEMO - submenu */
#sidebar-flat-dark .menu-section ul li > .submenu li label {
    padding-left: 54px;
}

@media screen and (max-width: 992px) {
    label.control-label {
        text-align: left !important;
    }
}

/* 
    switch: begin 
*/
.switch {
    position: relative;
    display: inline-block;
    width: 27px;
    height: 17px;
    margin-bottom: -7px;
}

    .switch input {
        display: none;
    }

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

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

input:checked + .slider {
    background-color: #5cb85c;
}

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

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

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }
/* 
    switch: end 
*/
