/* WARNINGS POPUP */

:root {
    --warning_overview_table_color: rgb(218, 232, 247); /* Lightblue */
}

@property --warning_popup_scale {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

#popup_warnings {
    width: calc(100% - 40px);
    max-width: 1000px;
    display: block;
    transform: translate(-50%, -50%) scale(calc(var(--warning_popup_scale) / 100));
    animation: show_popup_warnings 0.4s forwards 0s;
}

@keyframes show_popup_warnings {
    0% {
        --warning_popup_scale: 0;
    }
    100% {
        --warning_popup_scale: 100;
    }
}

.popup_warnings_header {
    margin: 2.5px 0 20px 0;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
}

.popup_warning_icon {
    width: 100%;
}

.popup_warnings_title {
    text-align: center;
    text-wrap: balance;
}

.popup_warnings_intro_text {
    margin-bottom: 20px;
}

#warnings_div {
    font-size: 0.9em;
    max-height: calc(100vh - 250px);
    overflow-y: scroll;
    padding-right: 5px;
}

#warnings_div::-webkit-scrollbar {
    width: 7.5px;
}

#warnings_div::-webkit-scrollbar-thumb {
    background-color: var(--grey_scrollbar_color);
    border-radius: 50px;
}

#warnings_div::-webkit-scrollbar-thumb:hover {
    background-color: var(--darker_grey_scrollbar_color);
}

#warnings_div hr {
    background: var(--border_color);
    height: 1.5px;
    outline: none;
    border: none;
    margin: 20px 0;
}

.warning_title {
    margin-bottom: 5px;
}

.warning_description {
    color: var(--grey_text_color);
    margin-bottom: 5px;
}

.warning_overview_table_fixed_dimensions_window {
    overflow-x: scroll;
    overflow-y: scroll;
    max-height: 200px;
}

.warning_overview_table_fixed_dimensions_window::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.warning_overview_table_fixed_dimensions_window::-webkit-scrollbar-thumb {
    background-color: var(--grey_scrollbar_color);
    border-radius: 50px;
}

.warning_overview_table_fixed_dimensions_window::-webkit-scrollbar-thumb:hover {
    background-color: var(--darker_grey_scrollbar_color);
}

.warning_overview_table {
    margin-top: 5px;
    border-collapse: collapse;
    font-size: 0.9em;
}

.warning_overview_table th {
    background-color: var(--warning_overview_table_color);
}

.warning_overview_table th, .warning_overview_table td {
    border: 1px solid var(--border_color);
    padding: 5px;
    white-space: nowrap;
}

#button_show_warnings_popup {
    background-color: white;
    color: var(--button_color);
    text-wrap: nowrap;
}

.button_hide_popup {
    color: var(--button_color) !important;
    background-color: white !important;
    float: right;
    text-wrap: nowrap;
    align-items: center;
    display: flex;
    margin-bottom: 5px !important;
}

.button_hide_popup .fa-arrow-right {
    font-size: 1.2em;
    margin-left: 7.5px;
}