.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%;
    }
}

/* Modal Spinner as UI Blocker */
.modal-spinner .text {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.modal-spinner .spinner-container {
    width: 100%;
    text-align: center;
}

.modal-spinner .spinner {
    animation: rotator 1.4s linear infinite;
}

@keyframes rotator {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(270deg); }
}

.modal-spinner .path {
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation:
    dash 1.4s ease-in-out infinite,
    colors calc(1.4s*4) ease-in-out infinite;
}

@keyframes colors {
    0% { stroke: #475569; } /*initial: #4285F4*/
    25% { stroke: #7B8C9B; } /*initial: #DE3E35*/
    50% { stroke: #9CADBA; } /*initial: #F7C223*/
    75% { stroke: #DD7936; } /*initial: #1B9A59*/
    100% { stroke: #475569; } /*initial: #4285F4*/
}

@keyframes dash {
    0% { stroke-dashoffset: 187; }
    50% {
        stroke-dashoffset: calc(187/4);
        transform:rotate(135deg);
    }
    100% {
        stroke-dashoffset: 187;
        transform:rotate(450deg);
    }
}