.modal-overlay{
    @extend %overlay;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    &.open{
        .modal-container{
            animation: slidemodal-top-in-transition 0.4s forwards;
            animation-delay: 0.3s;
            animation-fill-mode: forwards;
        }
    }
}

.modal-container{
    width: auto;
    height: auto;
    min-width: 5rem;
    min-height: 5rem;
    background: #fff;
    box-shadow: 0 0 1rem -0.4rem #000;
    padding-bottom: 5.2rem;
    overflow: hidden;
    border: 0.1rem solid $colorNeutralBd;
    position: relative;
    z-index: 2;
    border-radius: .6rem;
    animation: slidemodal-top-out-transition 0.4s;
    transform: translate3d(0, -100%, 0);
}

.modal-header{
    width: 100%;
    height: 4rem;
    padding: 0 2rem;
    background: $colorMainDarken;
    text-align: center;
    color: #fff;
    position: relative;

    .title{
        margin: 0;
        font-size: 1.4rem;
        line-height: 4rem;
        height: 100%;
        white-space: nowrap;
        text-transform: uppercase;
        display: inline-block;
        font-family: $fontTitlesB;
    }

    .icon-plus-cross{
        font-size: 1.4rem;
        float: right;
        line-height: 3.9rem;
        position: absolute;
        right: 1rem;
        cursor: pointer;
        display: inline-block;
        transform: rotate(45deg);
    }
}

.modal-content{
    width: 100%;
    height: auto;
    padding: 2rem;
    @extend .form;

    .floatThead-wrapper{
        overflow: auto;
    }

    .floatThead-container{
        width: 100% !important;
        z-index: 1 !important;
    }

    .txt-default{
        font-family: $fontDefault;
        color: $colorFont;
        font-size: 1.4rem;
        line-height: 1.8rem;
        margin: 0 0 2rem;
        text-align:center;
        min-height: 5rem;
    }
}

.modal-footer{
    height: 5.2rem;
    width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    padding: 1rem 2rem;
    background: $colorNeutralBg;

    .link-cancel{
        @extend %link-button;
        @extend %neutral;
        line-height: 3.4rem;
        height: 100%;
        display: inline-block;

        i {
            font-size: 0.7rem;
            margin-right: 0.2rem;
        }
    }

    .btn-blue-small{
        float: right;
    }
}
