

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
    overflow-y: scroll;
}

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal .modal-content {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 28px rgba(21, 31, 40, 0.16);
    width: 100%;
    max-width: 700px;
    padding: 1.5rem 2rem;
}

.close-button {
    font-size: larger;
    border: rgba(0, 0, 0, 0.4);
    background: transparent;
}

.modal td,
.modal input,
.modal select,
.modal textarea {
    width: 450px;
}

#accounts_table td[data-long-text] {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

