.btn.document-modal__trigger {
    cursor: pointer;
    font-family: inherit;
    justify-content: flex-start;
}

.document-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.document-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.document-row__title {
    color: var(--black);
}

.document-row__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-row__actions .btn {
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

._3d-flip-book.fb3d-link-lightbox-mode {
    width: fit-content;
    height: fit-content;
    padding: 12px 16px;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

._3d-flip-book.fb3d-link-lightbox-mode:hover {
    background: var(--black);
    color: var(--white);
}

.document-row__actions ._3d-flip-book.fb3d-link-lightbox-mode {
    width: 100%;
}

.fb3d .cmdSave {
    display: none !important;
}

.document-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
}

.document-modal--open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.document-modal__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 40px;
    background: var(--offwhite);
    z-index: 1;
}

.document-modal__dialog h2 {
    margin-bottom: 10px;
}

.document-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-family: inherit;
    font-size: 34px;
    line-height: 1;
}

@media (max-width: 768px) {
    .document-modal {
        padding: 16px;
    }

    .document-modal__dialog {
        padding: 32px 20px 24px;
    }

    .package-modal .document-modal__dialog {
        max-height: 85vh;
    }

    .document-row__actions {
        grid-template-columns: 1fr;
    }
}
