/* ---------------------------------------------------------------------- */
/*  Modals
/* ---------------------------------------------------------------------- */
.modal-backdrop {
    background-color: #000;
    bottom: 0;
    position: fixed;

    &.in {
        opacity: 0.4;
    }
}

.modal-backdrop {
    z-index: 9998 !important;
}

.modal, .modal-dialog {
    z-index: 9999 !important;
}

.modal-content {
    background: #e8e8e8;
    box-shadow: none;
}

.modal-footer, .modal-header {
    border-color: #b5b5b5;
}

.modal-aside.horizontal .modal-dialog {
    min-height: 100% !important;
    bottom: 0;
    height: auto !important;

    .modal-content {
        height: auto !important;
        min-height: 100% !important;
    }
}

@-webkit-keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        -ms-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

.fadeInLeft {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
}

@-webkit-keyframes fadeInRight {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0);
        -ms-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

.fadeInRight {
    -webkit-animation-name: fadeInRight;
    animation-name: fadeInRight;
}

@-webkit-keyframes fadeInTop {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInTop {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        -ms-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

.fadeInTop {
    -webkit-animation-name: fadeInTop;
    animation-name: fadeInTop;
}

@-webkit-keyframes fadeInBottom {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInBottom {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        -ms-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

.fadeInBottom {
    -webkit-animation-name: fadeInBottom;
    animation-name: fadeInBottom;
}

.modal-aside {
    overflow: hidden;
}

.modal-aside.horizontal {
    transition: none;
    -webkit-transition: none;
    transform: none;
    -webkit-transform: none;
    height: 100%;
}

.modal-aside.horizontal.left.in .modal-dialog {
    animation: fadeInLeft 150ms;
    -webkit-animation: fadeInLeft 150ms;
}

.modal-aside.horizontal.right.in .modal-dialog {
    animation: fadeInRight 150ms;
    -webkit-animation: fadeInRight 150ms;
}

.modal-aside.horizontal .modal-dialog {
    position: absolute;
    top: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    transition: none;
    -webkit-transition: none;
    transform: none;
    -webkit-transform: none;
}

.modal-aside.horizontal.left .modal-dialog {
    left: 0;
}

.modal-aside.horizontal.right .modal-dialog {
    right: 0;
}

.modal-aside.horizontal .modal-dialog .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
}

.modal-aside.vertical {
    transition: none;
    -webkit-transition: none;
    transform: none;
    -webkit-transform: none;
    width: 100% !important;
    overflow: hidden;
}

.modal-aside.vertical .modal-dialog {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100% !important;
    transition: none;
    -webkit-transition: none;
    transform: none;
    -webkit-transform: none;
}

.modal-aside.vertical.top.in .modal-dialog {
    animation: fadeInTop 150ms;
    -webkit-animation: fadeInTop 150ms;
}

.modal-aside.vertical.bottom.in .modal-dialog {
    animation: fadeInBottom 150ms;
    -webkit-animation: fadeInBottom 150ms;
}

.modal-aside.vertical.bottom .modal-dialog {
    bottom: 0;
}

.modal-aside.vertical.top .modal-dialog {
    top: 0;
}

.modal-aside.vertical .modal-dialog .modal-content {
    border: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
