/* === Alert === */
div.message_cover {
    flex-flow: column; 
    justify-content: flex-start; 
    align-items: center; 
    position: fixed; 
    height: 100%; 
    width: 100%; 
    padding-top: 40px; 
    z-index: 2000; 
    pointer-events: none; 
}
div.message_cover section.message_section {
    display: none; 
    align-items: center; 
    justify-content: center; 
    flex-flow: row; 
    max-width: 500px; 
    border-width: 2px; 
    z-index: 2000; 
    box-shadow: var(--soft-shadow-high); 
    margin-top: 10px; 
    padding: 10px; 
    pointer-events: none; 
    overflow: visible;
}
div.message_cover section.message_section i.message_icon{
    font-size: 24px; 
    margin: 0px 10px 0px 5px; 
}
div.message_cover section.message_section span.message_text{
    font-weight: bold;
}
div.message_cover section.message_section .button{
    min-width: 40px;
    margin: 10px 0px 0px 10px;
}
div.message_cover section.message_section div.clipboard_message{
    display: none; 
    position: absolute; 
    justify-content: right; 
    align-items: center; 
    background-color: #00000094; 
    border-radius: 5px; 
    padding: 5px; 
    pointer-events: none; 
}
div.message_cover section.message_section div.clipboard_message i{
    display: flex; 
    color: white; 
    font-size: 24px; 
}
div.message_cover section.message_section div.clipboard_message span{
    color: white; 
    font-weight: bold; 
    white-space: nowrap; 
    margin-left: 5px; 
}

/* === Navigation === */
div.top_layout_grid {
    display: grid; 
    grid-template-columns: 26px 1fr; 
    grid-template-rows: 1fr;
    position: fixed; 
    height: 100%; 
    width: 100%; 
}
div.top_layout_grid #portal_color_bar {
    grid-column-start: 2; 
    height: 8px; 
    flex: 1; 
    background-color: #ffffff; 
    border-bottom: 1px solid var(--clr-border-standard);
}
div.top_layout_grid .sub_nav {
    grid-column-start: 2; 
    height: 30px; 
    min-width: fit-content;
    align-items: center; 
    background-color: var(--clr-bg-section); 
    border-bottom: 1px solid var(--clr-border-standard);
    grid-gap: 1px;
    box-shadow: 0px -3px 10px 0px rgb(0 0 0 / 50%);
    z-index: 400;
    overflow: hidden;
}
div.top_layout_grid .sub_nav:nth-child(odd) {
    z-index: 350;
}
div.top_layout_grid .sub_nav .dropdown_box .button {
    justify-content: flex-start;
    margin-bottom: -1px;
    border: 1px solid var(--clr-border-standard);
    box-shadow: none;
    min-width: 100%;
}
div.top_layout_grid .sub_nav .button {
    background-color: var(--clr-bg-section);
    height: 100%;
    min-width: 60px;
    max-height: unset;
    border: none;
    box-shadow: 6px 0px 0px -5px var(--clr-border-standard);
    padding: 0px 10px;
    margin: 0px;
    border-radius: 0px;
}
div.top_layout_grid .sub_nav .action_button {
    border-top: 2px solid var(--clr-opusworks-blue);
    background: #dff0ff;
    margin: 0px 0px 0px 5px;
    padding-bottom: 2px;
    box-shadow: none;
    min-width: 80;
}
.sub_nav .dropdown_container:hover .dropdown_box {
    display: flex !important;
}

/* === Popup === */
.popup_cover {
    background-color: rgba(0,0,0,0.5); 
    flex-flow: column; 
    justify-content: center; 
    align-items: center; 
    position: fixed; 
    height: 100%; 
    width: 100%; 
    pointer-events: none; 
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.popup_cover.popup_active {
    opacity: 1;
    pointer-events: auto;
}

.popup_wrapper {
    flex-flow: column; 
    justify-content: center; 
    align-items: center; 
    position: fixed; 
    height: 100%; 
    width: 100%; 
    z-index: 1500;
}

@keyframes fadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateY(-50%);
        opacity: 0;
    }
}

.full_popup {
    z-index: 1600;
    animation-fill-mode: forwards !important;
}
/* Full popup that is not contained. This ensures the popup stays in the center of the screen even when other popups exist */
.popup_cover .full_popup {
    position: absolute;
}
/* Full popup that is active*/
.full_popup.popup_active {
    animation: fadeIn 0.5s ease-in-out;
    transform: translateY(-50%);
    opacity: 0;
}
.full_popup:not(.popup_active) {
    animation: fadeOut 0.5s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    pointer-events: none;
}

.popup_section {
    z-index: 1600;
}

.popup_cover .ui-effects-wrapper {
    justify-content: center !important; 
    align-items: center !important; 
    height: 100% !important;
    width: 100% !important;
}

.disable_animation {
    animation-duration: 0s !important;
}