.modal_wrapper {
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.6);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease-in-out;
}

.modal_container {
    background: #fff;
    width: 560px;
    max-width: 95%;
    padding: 24px;
    border-radius: 4px;
    position: relative;
    transition: all .3s ease-in-out;
    max-height: 80%; /* Ensure the modal doesn't exceed the viewport height */
    display: flex;
    flex-direction: column;
}

.modal_container h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.modalBody {
    flex: 1; /* Allows the body to take up available space */
    overflow-y: auto; /* Enables scrolling within the body */
    margin-top: 16px;
    margin-bottom: 16px;
}

.action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn_modal {
    background: #0672C4;
    padding: 10px 40px;
    color: #fff;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.modal_container button.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.modal_container button.close:hover {
    color: #0672C4;
}

.modalActive {
    opacity: 1;
    pointer-events: auto;
}

.modal_wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.modal_wrapper.active .modal_container {
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
}

body.modal_open {
    overflow: hidden;
}

.modalBody table {
    width: 100%;
    border-collapse: collapse;
}
.modalBody table th,
.modalBody table td {
    padding: 8px;
    font-family: 'Raleway', sans-serif;
    border: 1px solid #ddd;
}
.modalBody table th:first-child,
.modalBody table td:first-child {
    background-color: #F1F1F1; /* Light background */
    font-family: 'Raleway', sans-serif;
    font-weight: bold; /* Bold text */
}
.modalBody table th[colspan],
.modalBody table td[colspan] {
    background-color: #eaf6ff; /* Slightly darker background for colspan cells */
    color: #044D84;
    font-weight: bold; /* Bold text */
    text-align: center; /* Center-align text for readability */
}

.modal_wrapper a {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: blue;
    color: blue; /* Changes the link text color to blue */
}
