/* Prevent theme flash by setting initial state based on server-side theme */
html:not([data-bs-theme]) {
    /* Default to dark theme to match server default */
    --bs-body-color: #ffffff;
    --bs-body-bg: #222230;
    --bs-inverse-rgb: 255, 255, 255;
}

.tietonotification {
    margin-bottom: 0;
    z-index: 10000;
    border-radius: 5px;
    position: relative;
}

.tietonotification-success {
    background-color: #02a91e;
}

.tietonotification-danger {
    background-color: #ff0000;
}

.tietonotification-warning {
    background-color: #ffd800;
}

.note-editing-area {
    background-color: rgba(var(--bs-inverse-rgb),.1);
}

#cookieConsent {
    position: fixed;
    left: auto;
    bottom: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    z-index: 99999;
}

.portal-version {
    align-items:center;
    text-align:left;
    display: flex;
}

.text-multiline {
    white-space: pre-wrap;
}

a.table-link-no-decoration {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75)
}

    a.table-link-no-decoration:hover {
        text-decoration: underline;
        color: #9ac6ff;
    }

a.link-no-decoration {
    text-decoration: none;
}

    a.link-no-decoration:hover {
        text-decoration: underline !important;
        color: #9ac6ff !important;
    }

.severity-critical {
    color: #ff6060 !important;
}
.severity-high {
    color: #ff7f60 !important;
}
.severity-medium {
    color: #ff9f0c !important;
}
.severity-low {
    color: #3cd2a5 !important;
}
.severity-info {
    color: #30beff !important;
}


.border-critical {
    border-color: #ff6060 !important;
}
.border-high {
    border-color: #ff7f60 !important;
}
.border-medium {
    border-color: #ff9f0c !important;
}
.border-low {
    border-color: #3cd2a5 !important;
}
.border-info {
    border-color: #30beff !important;
}

div.dt-processing > div {
    display: none;
}

.tooltip-container {
    cursor: pointer;
}

body .daterangepicker .drp-calendar .calendar-table table thead tr th.month .monthselect {
    background-color: rgba(var(--bs-body-bg-rgb), .98);
}

body .daterangepicker .drp-calendar .calendar-table table thead tr th.month .yearselect {
    background-color: rgba(var(--bs-body-bg-rgb), .98);
}

.select2-container--default .select2-selection--multiple {
    background-color: transparent;
    color: #ffffff;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    display: block;
    align-items: center;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(var(--bs-inverse-rgb),.5);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-inverse-rgb),.25);
    color: var(--bs-body-color);
}

.select2-container--default .select2-results > .select2-results__options {
    background-color: transparent;
    color: black;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #595959;
    color: #ffffff;
}

.select2-container--default .select2-dropdown {
    border-radius: 6px;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    color: var(--bs-body-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered:empty:before {
    content: attr(data-placeholder);
    color: blue;
    font-style: italic;
}