﻿.n-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity .15s linear;
}

.n-modal h4 {
    font-size: 20px;
}

.n-modal .n-modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
    height: calc(100% - 3.5rem);
}

.n-modal.show .n-modal-dialog {
    transform: none;
}

.n-modal.n-modal-static .n-modal-dialog {
    transform: scale(1.02);
}

.n-modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.n-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: 0;
    border-radius: 7px;
    max-height: 100%;
    overflow: hidden;
}

.n-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

    .n-modal-backdrop.fade {
        opacity: 0;
    }

    .n-modal-backdrop.show {
        opacity: 0.5;
    }

.n-modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.n-modal .n-modal-header .n-btn-close-modal {
    background: none;
    border: none;
    width: unset;
    height: 30px;
    padding: 0;
    color: white;
}

    .n-modal .n-modal-header .n-btn-close-modal i {
        font-size: 20px;
    }

.n-modal-title {
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.5;
    color: white;
    font-size: 22px;
}

.n-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.n-modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

    .n-modal-footer > * {
        margin: 0.25rem;
    }

.n-modal-buttons-container {
    display: flex;
    justify-content: right;
    gap: 20px;
}

.n-modal-buttons-container button.n-modal-button {
    width: 100%;
    height: 50px;
}

@media (min-width: 768px) {
    .n-modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .n-modal-dialog-scrollable {
        height: calc(100% - 3.5rem);
    }

    .n-modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }

    .n-modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .n-modal .modal-lg {
        max-width: 800px;
    }

    .n-modal-buttons-container button.n-modal-button {
        width: auto;
        min-width: 250px;
    }
}

@media (min-width: 1200px) {
    .n-modal-xl {
        max-width: 1140px;
    }
}


@media (max-width: 767px) {
    .n-modal .n-modal-dialog {
        height: 100%;
    }

    .n-modal .n-modal-dialog .n-modal-content {
        height: 100%;
        border: none;
        border-radius: 0;
    }

    .n-modal .n-modal-header {
        justify-content: center;
        border-radius: 0;
    }

    .n-modal .n-modal-footer {
        justify-content: center;
        border-radius: 0;
    }

    .n-modal .n-modal-header .n-btn-close-modal {
        position: absolute;
        left: 1rem;
        top: 1rem;
    }
}