.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    contain: content;
}

.modal .modal-content .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .modal-content .fieldName {
    float: left;
    font-weight: bold;
    width: 100%;
    margin-top: 0.5em;
}

.modal .modal-content .fieldValue {
    padding-bottom: .5em;
}

.modal .modal-content div:has(.fieldName) {
    min-height: 90px;
}

.modal .modal-content .fieldValue img {
    max-width: 1em;
}

.modal .modal-content hr {
    float: left;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
}

.modal .modal-content input,
.modal .modal-content textarea,
.modal .modal-content button,
.modal .modal-content select {
    border-radius: 10px;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal button.left {
    float: left;
    margin-right: 8px;
}
.modal button.right {
    float: right;
    margin-left: 8px;
}

@media screen and (max-width: 780px) {
    .modal .modal-content {
        width: 95%;
    }
}