
/* Popup */
.overlay, .overlay * {
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483001;
    backdrop-filter: blur(2px);
}

.overlay-stacked {
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(0.8px);
}

.overlay-ui-blocker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483001;
}

.popup {
    background: rgba(var(--bg-secondary),1);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    z-index: 50;
    margin: 10px 10px;
    max-width: 80%;
    max-height: 94%;
    min-width: 340px;
    transition: max-width 0.5s linear;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.popup-side-bar {
    position: fixed;
    right: 0;
    height: 100%;
    top: 0;
    transform: translateX(100%);
    margin: 0;
    border-radius: 0;
    /*transition: transform 0.3s ease-in-out;*/
    /*animation: slide 0.5s forwards; */
    transition: all 0.5s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 30px 0 rgba(0, 0, 0, 0.19);
    visibility: hidden;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    max-height: 100%;
    max-width: 500px;
    min-width: 200px;
    width: 100%;
}

.popup-dialog {
    animation-duration: 0.2s;
    animation-name: slidein;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.popup-open {
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.popup-title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 5px 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
    /*background: rgba(var(--highlight-color),1);*/
    /*background-image: linear-gradient(160deg,#ed7325 0%,#b40096 100%) !important;*/
    background-color: rgb(var(--agency-highlight-color),1);
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.popup-buttons-main {
    padding: 12px;
    background-color: rgba(0,0,0,0.05);
}

.popup-content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.popup-busy-message {
    display: block;
    text-align: center;
    padding: 2px 10px;
    position: relative;
    font-size: 17px;
    font-weight: bold;
    z-index: 5;
}

.popup-icon-box {
    text-align: center;
    padding: 20px;
}

.popup-message {
    display: flex;
}

.popup-icon {
    width: 54px;
    padding: 20px;
    --icon-color: var(--agency-highlight-color);
}

.popup-icon svg {
    max-height: 34px;
    max-width: 34px;
}

.popup-plain-text {
    padding: 20px;
    align-items: center;
    flex-grow: 1;
}

.popup-plain-text > * {
    margin: 0 3px;
}

.content-scrollable {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.popup .table-overflow {
    max-height: none;
}

.popup .box-padding {
    padding: 20px;
}

.popup .fixed-table {
    width: 100%;
    padding: 0;
    margin: 0;
    table-layout: fixed;
}

.popup label {
    display: flex;
    margin: 3px;
    color: #6f6f6f;
    font-weight: 500;
    align-items: center;
    width: auto;
}

@keyframes slidein {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }
}
