/* Hand-rolled Blazor Bootstrap modals: .modal.fade.show.d-block */

.modal.fade.show.d-block {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    overflow-y: auto;
}

.modal.fade.show.d-block .modal-dialog {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: min(90vh, calc(100vh - 2rem));
    max-height: min(90vh, calc(100vh - 2rem));
}

.modal.fade.show.d-block .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.fade.show.d-block .modal-header,
.modal.fade.show.d-block .modal-footer {
    flex-shrink: 0;
}

.modal.fade.show.d-block .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
