﻿.content-page > .content {
    margin-bottom: unset;
    min-height: calc(100vh - 63.5px - 1.5rem);
}

.footer {
    margin-top: 1.5rem;
}

.chart-wrapper {
    height: 40vh;
}

.bg-danger-light,
.bg-success-light {
    color: rgb(var(--text));
    border: 1px solid rgb(var(--background-main-dark));
}

.bg-success-light {
    background-color: rgba(var(--success), 0.5);
}

.bg-danger-light {
    background-color: rgba(var(--danger), 0.5);
}

.success-shadow-border {
    border: 3px solid rgb(var(--success)) !important;
    box-shadow: 0 0 0.5rem 0.5rem rgb(var(--success), 0.8) !important;
}

.font-15 {
    font-size: 15px;
}

.font-20 {
    font-size: 20px;
}

.font-22 {
    font-size: 22px;
}

.font-large {
    font-size: 3rem;
}

.font-xl {
    font-size: 5rem;
}

#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Fixed"]) #new-dashboard-header.font-size-small {
    font-size: 1.2vh !important;
}

#query-element-preview-label.font-size-small,
#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Automatic"]) #new-dashboard-header.font-size-small {
    font-size: 1rem !important;
    overflow: visible;
}

#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Fixed"]) #new-dashboard-header.font-size-medium {
    font-size: 2vh !important;
}

#query-element-preview-label.font-size-medium,
#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Automatic"]) #new-dashboard-header.font-size-medium {
    font-size: calc(1.3rem + 0.6vw) !important;
    overflow: visible;
}

#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Fixed"]) #new-dashboard-header.font-size-large {
    font-size: 3vh !important;
}

#query-element-preview-label.font-size-large,
#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Automatic"]) #new-dashboard-header.font-size-large {
    font-size: 3rem !important;
    overflow: visible;
}

#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Fixed"]) #new-dashboard-header.font-size-xlarge {
    font-size: 4vh !important;
}

#custom-dashboard:has(* .dashboard-pane.active .page-content[page-type="Automatic"]) #new-dashboard-header.font-size-xlarge {
    font-size: 5rem !important;
}

#dashboard-pane-wrapper {
    border: 1px solid rgb(var(--background-main-dark));
    border-top: 0;
}

.m-t-25 {
    margin-top: 25px;
}

.w-min-content {
    max-width: min-content;
}

.w-max-content {
    max-width: max-content !important;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group-nowrap {
    flex-wrap: nowrap;
}

.d-flex-not-important {
    display: flex;
}

.border-bottom-not-last {
    padding-bottom: .5rem;
}

.border-bottom-not-last:not(:last-child) {
    margin-bottom: .5rem;
    border-bottom: 1px solid rgb(var(--background-content-dark));
}

.error-icon {
    font-size: 4rem;
    color: rgb(var(--danger));
}

.icon-only {
    background: none;
    border: none;
    color: rgb(var(--text));
    font-size: 1.25rem;
}

    .icon-only:hover {
        color: rgb(var(--text));
        opacity: .5;
    }

.admin-link {
    position: relative;
}

    .admin-link .mdi-shield,
    .admin-link .mdi-shield-plus,
    .admin-link .mdi-shield-account {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

.text-to-search .highlight {
    background-color: rgba(var(--warning-light), .4);
}

.contains-email .internal-email {
    background-color: rgba(var(--primary-light), .4);
}

.contains-email .external-email {
    background-color: rgba(var(--danger-light), .4);
}

#clear-notifications:hover {
    cursor: pointer;
    color: rgb(var(--text));
}

.notification-description {
    white-space: normal;
}

.text-overflow-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.card .sub-card {
    background-color: rgba(var(--text),.06);
    border: 1px solid rgb(var(--background-content-dark));
}

    .card .sub-card:not(:last-of-type) {
        margin-bottom: 1rem;
    }

.card .list-group .list-group-item {
    background-color: rgba(var(--text),.04);
}

.toast-container {
    z-index: 999999;
}

.checkbox-med {
    height: 15px;
    width: 15px;
}

.checkbox-lg {
    height: 25px;
    width: 25px;
}

.select-incident {
    display: none;
}

.select-mode .select-incident {
    display: block;
}

/* ==== Before page load ==== */
body.pre-load {
    visibility: hidden;
    opacity: 0;
}

/* ==== Sign in ==== */
body.unauth {
    height: 100vh;
}

    body.unauth .content-page, .content, .page-content-wrapper, .aperture-bg {
        height: 100%;
    }

    body.unauth .content-page {
        margin-left: 0;
    }

    body.unauth .content {
        position: relative;
    }

    body.unauth .aperture-bg {
        opacity: 0.2;
        background: url(/assets-public/images/logo_v2_sign_in.png) 93% center / 160% no-repeat fixed, url(/assets-public/images/favicon_v2_upscaled.png) center center / 70% no-repeat fixed;
    }

    body.unauth .centered-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        transition: transform .3s ease-in-out, opacity .2s ease-in-out
    }

    body.unauth .footer {
        right: 0;
        left: 0;
    }

body.modal-open,
.modal.show {
    padding: 0 !important;
}

/* Users */
.cards .card.admin,
.items-wrapper .card.admin{
    box-shadow: 0 0 8px 1px rgb(var(--success))
}

.cards .admin-status,
.items-wrapper .card.admin h5 em.mdi{
    color: rgb(var(--success));
}

.cards .role-icons {
    position: absolute;
    top: 12px;
    right: 20px;
}

.cards .admin-status {
    display: none;
}

.cards .card.admin .admin-status {
    display: inline;
    padding: inherit;
}

.cards .card.admin *:not(.role-icons) > .admin-status {
    position: absolute;
    top: 0;
    right: 0;
}

.initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 38px;
    line-height: normal;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    font-family: Arial, Helvetica, sans-serif;
}

.channel {
    text-transform: capitalize;
}

.vendor {
    text-transform: capitalize;
}

.right-card {
    margin: 10px auto;
}

.card.joiner-activity {
    box-shadow: 0 0 8px 1px #50C878;
}

.card.high-risk-user,
.card.high-risk-group {
    box-shadow: 0 0 8px 1px rgb(var(--danger));
}

/* ==== Tool tips ==== */
    .popper-tooltip {
    background-color: rgb(var(--background-main));
    padding: .25rem;
    border: 1px solid rgb(var(--background-main-dark));
    border-radius: .25rem;
    font-weight: 500;
    display: none;
    z-index: 999;
}

    .popper-tooltip[data-show] {
        display: block;
    }

    .popper-tooltip[data-popper-placement^='top'] > .arrow {
        bottom: -4px;
    }

    .popper-tooltip[data-popper-placement^='bottom'] > .arrow {
        top: -4px;
    }

    .popper-tooltip[data-popper-placement^='left'] > .arrow {
        right: -4px;
    }

    .popper-tooltip[data-popper-placement^='right'] > .arrow {
        left: -4px;
    }

.arrow,
.arrow::before {
    position: absolute;
    width: .5rem;
    height: .5rem;
    background: inherit;
}

.arrow {
    visibility: hidden;
}

    .arrow::before {
        visibility: visible;
        content: '';
        transform: rotate(45deg);
    }

/* ==== Health Icons ==== */
/* Apply to mdi <em> element. Used in Server Health, Clients, Roles, etc. */
.health-icon {
    font-size: 30px;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s ease-in-out
}

    .health-icon.healthy {
        color: rgb(var(--success));
    }

    .health-icon.mixed {
        color: rgb(var(--info-dark));
    }

    .health-icon.warning {
        color: rgb(var(--warning));
    }

    .health-icon.not-healthy {
        color: rgb(var(--danger));
    }

/* === Toggle Button === */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(var(--background-content-dark));
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: rgb(var(--background-content));
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked {
    background-color: rgb(var(--primary)) !important;
    border-color: rgb(var(--primary-dark)) !important;
}

input:focus {
    box-shadow: 0 0 1px rgb(var(--primary-dark)) !important;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.btn-primary:disabled {
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    row-gap: .75rem;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: .25rem;
}

    .pagination::before {
        content: "Page:";
        margin: 0 .5rem 0 0;
        display: flex;
        align-items: center;
    }

    .pagination > li a {
        padding: 0.5rem;
        border: 1px solid rgba(var(--text), 0);
        border-radius: .25rem;
    }

        .pagination > li a.active {
            color: rgb(var(--text));
            background-color: rgba(var(--text),.06);
            border-color: rgba(var(--text), 0.125);
        }

    .pagination > li a {
        text-decoration: none;
        color: rgba(var(--text), .7);
    }

.no-results-card {
    display: none;
}

select ~ .select2-container .select2-selection--single .select2-selection__rendered {
    appearance: none !important;
    background-image: url("../../../assets-public/images/bootstrap/down-arrow.svg");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    background-clip: padding-box;
}

.dark-mode select ~ .select2-container .select2-selection--single .select2-selection__rendered,
.dark-mode .form-select {
    background-image: url("../../../assets-public/images/bootstrap/down-arrow-dark.svg");
}

select ~ .select2-container .select2-selection--single .select2-selection__rendered {
    padding: .25rem .75rem !important;
}

select ~ .select2-container .select2-selection__arrow {
    display: none;
}

select ~ .select2-container .select2-search__field::placeholder,
select ~ .select2-container .select2-selection--single .select2-selection__placeholder {
    color: rgba(var(--text), 0.5) !important;
}

select:disabled ~ .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-left: 1px;
}

.show-runbook-button {
    position: fixed;
    bottom: .5rem;
    right: .5rem;
    z-index: 99;
    opacity: .8;
}

#runbook-pages .table {
    margin-bottom: 0;
}

#runbook-pages th {
    text-align: center;
}

#runbook-pages td {
    overflow-wrap: anywhere;
}

.pre-whitespace-nowrap {
    white-space: pre;
}

.preserve-newlines {
    white-space: pre-line;
}

#runbook-preview {
    --bs-offcanvas-width: 100vw;
}

    #runbook-preview .recommended {
        box-shadow: 0 0 8px 1px rgb(var(--danger));
    }

@media (min-width: 768px) {
    #runbook-preview {
        --bs-offcanvas-width: 50vw;
    }
}

@media (min-width: 1200px) {
    #runbook-preview {
        --bs-offcanvas-width: 33vw;
    }

    .data-content #comments-wrapper img {
        max-height: 60px
    }

    .data-content #comments-wrapper .initials {
        max-height: 60px;
        max-width: 60px;
    }
}

.spin {
    animation-duration: 4s;
    animation-iteration-count: infinite;
    transform-origin: center;
    animation-name: spin;
    animation-timing-function: ease;
}

.bounce {
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: bottom;
    animation-name: bounce;
    animation-timing-function: ease;
}

.phase {
    animation: phase 1s infinite alternate;
}

@keyframes success-pulse {
    0% {
        box-shadow: 0px 0px 2px 2px rgb(var(--success));
    }

    40% {
        box-shadow: 0px 0px 5px 5px rgb(var(--success));
    }

    100% {
        box-shadow: 0px 0px 2px 2px rgb(var(--success));
    }
}

@keyframes primary-pulse {
    0% {
        box-shadow: 0px 0px 2px 2px rgb(var(--primary));
    }

    40% {
        box-shadow: 0px 0px 5px 5px rgb(var(--primary));
    }

    100% {
        box-shadow: 0px 0px 2px 2px rgb(var(--primary));
    }
}

@keyframes bounce {
    0% {
        transform: scale(1,1) translateY(0);
    }

    10% {
        transform: scale(1.1,.9) translateY(0);
    }

    30% {
        transform: scale(.9,1.1) translateY(-20%);
    }

    50% {
        transform: scale(1,1) translateY(0);
    }

    57% {
        transform: scale(1,1) translateY(-5%);
    }

    64% {
        transform: scale(1,1) translateY(0);
    }

    100% {
        transform: scale(1,1) translateY(0);
    }
}

@keyframes phase {
    from {
        opacity: 0;
    }
}

input[maxlength], textarea[maxlength] {
    position: relative;
}

.show-character-limit[data-length] {
    position: relative;
}

.show-character-limit[data-length]::after {
    content: attr(data-length) " / " attr(data-limit);
    display: inline-block;
    position: absolute;
    bottom: 1px;
    right: 1px;
    padding: 0.25ex 1ex;
    pointer-events: none;
    font-size: 0.8rem;
}

/* legacy cardtable styling -- to be refactored */

.cards {
    margin: 10px auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
}

    .cards .card {
        border: 1px solid rgb(var(--background-content-dark));
    }

        .cards .card img {
            object-fit: contain;
            max-height: 100px;
        }

    .cards .card-header:not(.case-card *) {
        color: rgb(var(--dark));
        background-color: rgba(var(--background-main));
    }

        .cards .card-header a {
            color: rgb(var(--dark));
        }

        .cards .card-header.link:hover,
        .cards .card-header.link:hover a {
            color: rgb(var(--text));
            background-color: rgba(var(--background-main), 0.9);
            cursor: pointer;
            transition: all .15s ease-in-out;
        }

    .cards .card-body:not(.anomaly-card *):not(.case-card *) {
        display: grid;
        grid-template-columns: 50% 1fr;
    }

        .cards .card-body .filter-properties {
            display: grid;
            grid-column: 1 / -1;
            grid-template-columns: repeat(2, 50%);
        }
        .cards .card-body h6  {
            grid-column: 1 / 2;
            display: grid;
            grid-template-columns: 50% 50%;
        }

        .aperture-data-card .card-body h6.title {
            display: flex;
        }

        .aperture-data-card .card-body .case-management-button {
            margin-bottom: 0.5rem;
            height: fit-content;
        }

        .cards .card-body .case-management-button {
            grid-column: 2 / 3;
            justify-self: end;
            width: 100px;
        }

        .cards .card-body .column {
            display: flex;
            flex-direction: column;
        }

    .cards .card-footer {
        font-size: 13px;
        font-style: italic;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

cards .card-footer > * {
    width: auto;
}


.text-decoration-underline-dashed {
    border-bottom: 1px dashed;
}

.timeline {
    padding-left: 0;
    position: relative;
    list-style: none;
}

.timeline-item {
    margin-left: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

    .timeline-item:not(:last-child) {
        background-image: linear-gradient(rgb(var(--text)), rgb(var(--text)));
        background-repeat: no-repeat;
        background-size: 2px calc(100% - 1rem);
        background-position: left calc(50% + 1.1rem);
        padding-bottom: 1rem;
    }

    .timeline-item::after {
        position: absolute;
        top: 0;
        left: -0.75rem;
        border-radius: 50%;
        width: 1.6rem;
        height: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font: normal normal normal 1.2rem "Material Design Icons";
        content: "\F0766";
    }

    .timeline-item.initial::after {
        content: "\F05D6";
    }

    .timeline-item.progression::after {
        content: "\F0150";
    }

    .timeline-item.end::after {
        content: "\F05E1";
    }

.user-dropdown-image {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    margin-right: .5rem;
    font-size: 1.2rem;
}

.assigned-to-input-group {
    min-height: 38px;
}

    .assigned-to-input-group > * {
        margin: 0;
    }

    .assigned-to-input-group .input-group-text:not(.label) {
        width: 2.5rem;
        border-left: 0;
    }

    .assigned-to-input-group .select2-container {
        min-height: 100%;
        --input-group-text-width: 2.5rem;
    }

        .assigned-to-input-group .select2-container .select2-selection {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

    .role-card .card-header {
        color: rgb(var(--text));
        background-color: rgba(var(--background-main), 0.9);
        min-height: 91px;
    }

    .role-card ul {
        list-style: none;
        padding-left: .5rem;
    }

    .priv-category, .role-card li {
        display: flex;
        align-items: center;
    }

    .role-card .card {
        background-color: rgb(var(--background-content-dark));
    }

    .role-card.selected {
        box-shadow: 0 0 8px 1px rgb(var(--primary))
    }

.flatpickr-confirm {
    cursor: pointer;
}

    .flatpickr-confirm:hover {
        background-color: rgba(var(--background-content-dark), .5);
    }

.navigation {
    flex-wrap: nowrap;
}

    .navigation > div > .btn {
        width: 100%;
    }

    .navigation > .btn:not(:first-child) {
        border-left: 1px solid rgba(var(--background-content), 0.3);
    }

    .navigation > :not(:first-child) > * {
        margin-left: -1px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .navigation > :not(:last-child) > * {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .navigation .navigation-button-text {
        display: inline-block;
    }

*[data-bs-toggle="collapse"] .mdi-chevron-down::before {
    transition: all 250ms ease-in-out;
}

*[data-bs-toggle="collapse"][aria-expanded="false"] .mdi-chevron-down::before,
*[data-bs-toggle="collapse"]:not([aria-expanded]) .mdi-chevron-down::before {
    transform: rotate(-90deg);
}

*[data-bs-toggle="collapse"][aria-expanded="true"] .mdi-chevron-down::before {
    transform: rotate(0);
}

.tribute-demo-input {
    border: 1px solid rgb(var(--background-content-dark));
    outline: none;
    padding: 3px 5px;
    border-radius: 2px;
    font-size: 15px;
    min-height: 32px;
    cursor: text;
    height: 100px;
}

[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    display: block;
}

.disabled-select2-option {
    opacity: .5;
}

@media (min-width: 992px) {
    .border-lg-left {
        border-left: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-lg-right {
        border-right: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-lg-top {
        border-top: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-lg-bottom {
        border-bottom: 1px solid rgb(var(--background-content-dark)) !important
    }
}

@media (min-width: 1200px) {
    .border-xl-left {
        border-left: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xl-right {
        border-right: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xl-top {
        border-top: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xl-bottom {
        border-bottom: 1px solid rgb(var(--background-content-dark)) !important
    }
}

@media (min-width: 1400px) {
    .border-xxl-left {
        border-left: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xxl-right {
        border-right: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xxl-top {
        border-top: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xxl-bottom {
        border-bottom: 1px solid rgb(var(--background-content-dark)) !important
    }

    .border-xxl-bottom-none {
        border-bottom: none !important
    }
}

.tribute-demo-input {
    overflow-y: auto;
    padding-right: .625rem;
}

.jstree-default .jstree-clicked {
    background-color: rgba(var(--text), .4);
}

.jstree-default .jstree-hovered {
    background-color: rgba(var(--text), .2);
}

.alert-confirm-backdrop {
    background-color: rgba(var(--background-main-dark), .7);
}

.topbar .topbar-text {
    color: rgb(var(--primary-text));
}

.blade-wrapper {
    background-color: rgb(var(--success));
    border-radius: 50%;
    z-index: 99;
    margin-right: -1rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: .4rem;
    display: flex;
}

.blade-img {
    width: 100%;
    height: 100%;
}

.blade-count {
    background-color: rgb(var(--background-content));
    border-radius: 1rem;
    padding: 0 .5rem 0 1.8rem;
    color: rgb(var(--text));
}

.blade-count.border {
    border: 1px solid rgb(var(--background-main-dark)) !important;
    margin: 0 0 0 0.4rem;
}

linearGradient#coin-fill .stop1 {
    stop-color: #D4AF37;
}

linearGradient#coin-fill .stop2 {
    stop-color: var(--bs-white);
}

.hex-coin.coin-inner {
    stroke-width: 0;
    fill: url(#coin-fill);
}

.blade-inner {
    stroke-width: 4;
    fill: #776747;
    stroke-linejoin: round;
    stroke: #776747E0;
    transform: scale(0.3) rotate(-128deg);
}

linearGradient#coin-fill .stop0 {
    stop-color: #754f00;
}

.hex-coin.shadow {
    transform: translate(2px, -0.5px) scale(0.75) rotateY(30deg) rotateX(-15deg) rotate(10deg);
}

.hex-coin {
    transform: scale(0.7) rotateY(30deg) rotateX(-15deg) rotate(10deg);
    fill: #776747;
    stroke: #776747;
    stroke-width: 4;
    stroke-linejoin: round;
}

.coin-wrapper {
    width: 50px;
    height: 50px;
    position: absolute;
    margin: 0 0 0.2rem -0.5rem;
}

.coin-wrapper.coin-pricetag {
    margin: 0;
    left: -8px;
    top: -4px;
}

.blade-count.pricetag {
    background-color: rgb(var(--background-main), 0.7);
}

#user-profile-photo-container {
    margin-right: 50%;
}

.small-profile-photo-container {
    width: 40px;
    height: 40px;
}

    .small-profile-photo-container .initials {
        font-size: 20px;
    }

.profile-photo-container {
    width: 120px;
    height: 120px;
    margin-left: 8%;
    margin-right: 8%;
}

.user-profile-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgb(var(--background-main));
    box-shadow: 0 0 10px rgb(var(--text));
    aspect-ratio: 1 / 1;
}

.img-wrapper {
    width: 85%;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper img,
.img-wrapper .initials {
    width: 100% !important;
    height: 100% !important;
}

.user-border {
    position: absolute;
    z-index: 3;
    bottom: -23%;
    left: -5%;
    width: 110%;
}

.user-border.legendary {
    bottom: -22.5%;
    left: -25%;
    width: 150%;
}

.border-background {
    fill: rgb(var(--background-main));
    stroke: rgb(var(--background-main));
}

.pentagon {
    fill: rgb(var(--text));
    stroke: rgb(var(--text));
}

.triangle {
    fill: rgb(var(--text));
    stroke: rgb(var(--text));
}

.border-logo {
    position: absolute;
    z-index: 4;
    bottom: -15%;
    width: 30%;
}

.border-logo .slice.s1 {
    fill: rgb(var(--background-content));
    stroke: rgb(var(--background-content));
}

.border-logo .slice.s2 {
    fill: rgb(var(--secondary));
    stroke: rgb(var(--secondary));
    transform: rotate(-72deg);
}

.border-logo .slice.s3 {
    fill: rgb(var(--danger));
    stroke: rgb(var(--danger));
    transform: rotate(72deg);
}

.border-logo .slice.s4 {
    fill: rgb(var(--success));
    stroke: rgb(var(--success));
    transform: rotate(144deg);
}

.border-logo .slice.s5 {
    fill: rgb(var(--primary));
    stroke: rgb(var(--primary));
    transform: rotate(-144deg);
}

.user-profile-image {
    position: relative;
    z-index: 2;
}


.proof-points-wrapper svg {
    position: absolute;
    width: 30px;
    bottom: -30%;
}

.unlocked-achievable-icon {
    width: 30%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
}

.unlocked-challenge-icon {
    width: 5rem;
    height: 5rem;
    max-height: 100%;
    aspect-ratio: 1 / 1;
}

.achieved-milestone-icon {
    width: 50%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
}

.progress.challenge-progress {
    background-color: rgb(var(--text));
}

.science-pass-icon,
.major-order-icon {
    width: 80px;
    max-height: 100%;
    aspect-ratio: 1 / 1;
}

.reward-container .coin-wrapper,
.achievable-unlocked .coin-wrapper {
    margin: -1rem 0 0 -0.5rem;
}

.scale-up {
    transform: scale(1.5);
}

.ihex-proofpoints {
    transform: rotate(-90deg);
    transform-origin: 150px 170px;
    pointer-events: all;
}

.ihex-proofpoints.ihex-inner {
    stroke: #66b2ff;
    stroke-width: 4;
    stroke-miterlimit: 10;
    fill: #fff;
    transform: rotate(-90deg) translate(3px, 4.5px);
}

.ihex-proofpoints.ihex-outer {
    stroke: #000;
    stroke-width: 8;
    stroke-miterlimit: 10;
}

linearGradient.proof-point-icon-gradient .stop0 {
    stop-color: rgb(0, 127, 255);
    stop-opacity: 1;
}

linearGradient.proof-point-icon-gradient .stop1 {
    stop-color: rgb(0, 76, 153);
    stop-opacity: 1;
}

path.proofpoints-spike {
    fill: #fff;
    stroke: none;
    pointer-events: all;
    transform: translate(0px, 6px);
}

rect.proofpoints-plus {
    fill: #3399ff;
    stroke: none;
    pointer-events: all;
}

rect.proofpoints-plus.plus-rotated {
    transform: rotate(90deg);
    transform-origin: 212px 219px;
}

 svg foreignObject.proofpoints-object {
     overflow: visible;
     text-align: left;
 }

svg foreignObject .proofpoints-p-container {
    display: flex;
    align-items: unsafe center;
    justify-content: unsafe center;
    width: 108px;
    height: 1px;
    padding-top: 155px;
    margin-left: 76px;
}

svg foreignObject .proofpoints-p-container.shadow-p-container {
    width: 183px;
    height: 1px;
    padding-top: 168px;
    margin-left: 47px;
}

svg foreignObject .proofpoints-p-parent {
    display: inline-block;
    font-size: 16px;
    font-family: Helvetica;
    line-height: 1.2;
    pointer-events: all;
    white-space: normal;
    overflow-wrap: normal;
    text-anchor: middle;
    transform: translate(0px, 6px);
}

svg foreignObject font.proofpoints-p {
    font-size: 225px;
    font-weight: bold;
    color: #3399ff;
}

svg foreignObject font.proofpoints-shadow-p {
    font-size: 225px;
    font-weight: bold;
    color: #004c99;
}

.achievable-reward-border {
    border-top: 1px solid;
    border-color: rgb(var(--text));
}

.achievable-unlocked .theme-logo {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.achievable-unlocked .slice.s1 {
    fill: rgb(var(--background-content));
    stroke: rgb(var(--background-content));
}

.achievable-unlocked .slice.s2 {
    fill: rgb(var(--secondary));
    stroke: rgb(var(--secondary));
    transform: rotate(-72deg);
}

.achievable-unlocked .slice.s3 {
    fill: rgb(var(--danger));
    stroke: rgb(var(--danger));
    transform: rotate(72deg);
}

.achievable-unlocked .slice.s4 {
    fill: rgb(var(--success));
    stroke: rgb(var(--success));
    transform: rotate(144deg);
}

.achievable-unlocked .slice.s5 {
    fill: rgb(var(--primary));
    stroke: rgb(var(--primary));
    transform: rotate(-144deg);
}

.achievable-unlocked .theme-logo-wrapper {
    background-color: rgb(var(--text));
}

.aperture-achievement-card {
    box-shadow: 0 0 15px rgb(var(--text)) !important;
    border: 2px solid rgb(var(--text)) !important;
    height: 100% !important;
}

.reward-card {
    border: 6px inset rgb(var(--text));
    border-radius: 1rem;
    background: linear-gradient(rgb(var(--background-content)), rgb(var(--text)));
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.reward-theme-card-container .theme-card {
    width: 100% !important;
    height: 100% !important;
}

.reward-amount {
    width: 75%;
    margin-left: 20px;
    border: 3px solid rgb(var(--background-main-dark)) !important;
    border-radius: 1rem;
    background-color: rgb(var(--background-content));
    font-size: xx-large;
    display: flex;
    justify-content: end;
}

.reward-amount span {
    margin-right: 10px;
}

.progress-reward-row {
    flex-wrap: nowrap;
    min-width: 80%;
}

@media (max-width: 900px) {
    .progress-reward-row {
        flex-wrap: wrap;
    }
}

.sub-card * dt {
    filter: opacity(0.7);
}

::-webkit-scrollbar, ::-webkit-scrollbar-track {
    width: 12px;
    height: 12px;
    background-color: rgb(var(--background-main-dark));
    background-clip: content-box;
    border: solid transparent;
    border-radius: 10px;
    border-width: 1px 3px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(var(--secondary));
    border-radius: 12px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.nav-pills .nav-link:not(.active) {
    background-color: rgb(var(--primary-dark), 0.15);
    border-radius: 0px;
}

.nav-pills:not([aria-orientation="vertical"]) .nav-item:first-child .nav-link:not(.active) {
    border-top-left-radius: var(--bs-nav-pills-border-radius);
    border-bottom-left-radius: var(--bs-nav-pills-border-radius);
}

.nav-pills:not([aria-orientation="vertical"]) .nav-item:last-child .nav-link:not(.active) {
    border-top-right-radius: var(--bs-nav-pills-border-radius);
    border-bottom-right-radius: var(--bs-nav-pills-border-radius);
}

.nav-pills:not([aria-orientation="vertical"]) .nav-item:not(:last-child) {
    border-right: 1px solid rgb(var(--background-content));
}

.nav-pills:is([aria-orientation="vertical"]) .nav-item:first-child .nav-link:not(.active),
.nav-pills:is([aria-orientation="vertical"]) > .nav-link:first-child:not(.active) {
    border-top-left-radius: var(--bs-nav-pills-border-radius);
    border-top-right-radius: var(--bs-nav-pills-border-radius);
}

.nav-pills:is([aria-orientation="vertical"]) .nav-item:last-child .nav-link:not(.active),
.nav-pills:is([aria-orientation="vertical"]) > .nav-link:last-child:not(.active) {
    border-bottom-left-radius: var(--bs-nav-pills-border-radius);
    border-bottom-right-radius: var(--bs-nav-pills-border-radius);
}

.nav-pills:is([aria-orientation="vertical"]) .nav-item:not(:last-child),
.nav-pills:is([aria-orientation="vertical"]) > .nav-link:not(:last-child) {
    border-bottom: 1px solid rgb(var(--background-content));
}

/*Case Preview*/
.case-card .card-header {
    background-color: rgb(var(--background-content-dark));
    overflow: hidden;
}

.case-card .card-header-link:hover {
    color: rgb(var(--text));
    background-color: rgba(var(--background-main), 0.9) !important;
    cursor: pointer;
    transition: all .15s ease-in-out;
}

.case-card .card-header-link {
    border-bottom: 1px solid rgba(var(--text), .25)
}

.redacted-card {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.disabled-link:active {
    pointer-events: none;
}

.disabled-link {
    cursor: default !important;
}

@media (min-width: 1399.98px) {
    .case-card .card-header-link {
        border-bottom: 0;
        border-right: 1px solid rgba(var(--text), .25);
    }
}

.count-bar {
    height: 1rem;
    display: block;
    border-radius: .25rem;
    margin-top: .5rem;
}

@media (min-width: 992px) {
    .count-value {
        text-align: left;
    }

    .count-bar {
        margin-top: 0;
    }

    #search-data ~ .select2-container {
        width: 67% !important;
    }
}

.focus-collapse-div {
    cursor: pointer;
}

.js-tree-outer-wrapper {
    position: relative;
    padding: 0;
    overflow-x: clip;
    display: flex;
    flex: 1;
}

.js-tree-inner-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.js-tree {
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 100%;
    overflow-y: auto;
}

.close-js-tree {
    position: absolute;
    top: .5rem;
    right: calc(50% + 1.25rem);
    z-index: 1;
    width: 2rem;
    height: 2rem;
}

.js-tree-backdrop {
    display: none;
    background-color: rgba(var(--background-content-dark), 0.5);
    position: relative;
    top: 0;
    left: 50%;
    width: 50%;
    min-height: 100%;
    z-index: 2;
    border-left: 1px solid rgb(var(--background-content-dark));
}

.js-tree-tooltip .tooltip-inner {
    max-width: 400px;
    white-space: pre-line;
    text-align: left;
}

.jstree-node[has-provider="true"]:not([style*="display: none"]) {
    position: relative;
    margin-top: 2.35rem;
}

    .jstree-node[has-provider="true"]:not([style*="display: none"])::before {
        content: attr(data-provider);
        position: absolute;
        top: -1.35rem;
        left: 0;
        font-weight: 500;
    }

.jstree-node[has-provider="true"][provider-int="0"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="0"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="1"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="1"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="2"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="2"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="3"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="3"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="4"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="4"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="5"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="5"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="6"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="6"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="7"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="7"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="8"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="8"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="9"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="9"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="10"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="10"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="11"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="11"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="13"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="13"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][provider-int="14"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][provider-int="14"]:not([style*="display: none"]){
    margin-top: 0;
}


/*TODO: use SCSS for this*/
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="1"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="1"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="2"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="2"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="0"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="0"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="3"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="3"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="4"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="4"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="5"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="5"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="6"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="6"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="7"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="7"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="8"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="8"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="9"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="9"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="10"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="10"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="11"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="11"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="13"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="13"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="14"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="1"][provider-int="14"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="0"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="0"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="1"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="1"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="2"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="2"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="3"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="3"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="4"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="4"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="5"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="5"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="6"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="6"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="7"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="7"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="8"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="8"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="9"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="9"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="10"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="10"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="11"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="11"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="13"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="13"]:not([style*="display: none"])::before,
.jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="14"]:not([style*="display: none"])
    + .jstree-node[has-provider="true"][data-type-category-int="2"][provider-int="14"]:not([style*="display: none"])::before
{
    content: none;
}

.jstree-node[has-provider="true"]:not([style*="display: none"])::after {
    content: attr(data-type-category);
    position: absolute;
    top: -3.35rem;
    left: 0;
    font-weight: 500;
    font-size: 1.2rem;
    width: 100%;
    padding-bottom: .2rem;
    border-bottom: 1px solid rgb(var(--background-main-dark));
    cursor: pointer;
}

.jstree-node[has-provider="true"]:first-child,
.jstree-node[has-provider="true"][data-type-category-int="1"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][data-type-category-int="2"]:not([style*="display: none"]),
.jstree-node[has-provider="true"][data-type-category-int="2"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][data-type-category-int="1"]:not([style*="display: none"]) {
    margin-top: 4rem;
}

    .jstree-node[has-provider="true"][data-type-category-int="1"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][data-type-category-int="1"]:not([style*="display: none"])::after,
    .jstree-node[has-provider="true"][data-type-category-int="2"]:not([style*="display: none"]) + .jstree-node[has-provider="true"][data-type-category-int="2"]:not([style*="display: none"])::after {
        content: none;
    }

.jstree-node.collapsed *,
.jstree-node.collapsed::before,
.jstree-node.collapsed[has-provider="true"][data-type-category-int="1"] ~ .jstree-node[has-provider="true"][data-type-category-int="1"],
.jstree-node.collapsed[has-provider="true"][data-type-category-int="2"] ~ .jstree-node[has-provider="true"][data-type-category-int="2"] {
    display: none;
}

.jstree-node.hovered[has-provider="true"]:not([style*="display: none"])::after {
    opacity: 0.7;
    content: attr(data-type-category-hover);
}

.jstree-node.hovered.collapsed[has-provider="true"]:not([style*="display: none"])::after {
    content: attr(data-type-category-hover-collapsed);
}

.jstree-node.collapsed {
    margin-top: .65rem !important;
    background-image: none;
}

.jstree-node.collapsed::after {
    top: 0 !important;
}

.js-tree-instance[view-mode="shortened"] .jstree-node,
.js-tree-instance[view-mode="flattened"] .jstree-node {
    margin-left: 0;
}

.js-tree-instance[view-mode="shortened"].search-applied .jstree-node:not(:has(> .jstree-search)):not(.jstree-closed) > .jstree-anchor,
.js-tree-instance[view-mode="flattened"].search-applied .jstree-node:not(:has(> .jstree-search)):not(.jstree-closed) > .jstree-anchor,
.js-tree-instance[view-mode="shortened"].search-applied .jstree-node:not(:has(> .jstree-search)):not(.jstree-closed) > .jstree-icon,
.js-tree-instance[view-mode="flattened"].search-applied .jstree-node:not(:has(> .jstree-search)):not(.jstree-closed) > .jstree-icon {
    display: none;
}

.js-tree-instance.searching > .jstree-container-ul,
.js-tree-instance.search-applied:not(:has(.jstree-search)) .jstree-container-ul {
    display: none;
}

.js-tree-instance.search-applied:not(:has(.jstree-search))::before {
    content: "No results found."
}

.js-tree-instance[view-mode="shortened"] .jstree-anchor::before,
.js-tree-instance[view-mode="flattened"] .jstree-anchor::before {
    opacity: .7;
}

.js-tree-instance[view-mode="shortened"] .jstree-anchor::before {
    content: attr(data-shortened-path);
}

.js-tree-instance[view-mode="flattened"] .jstree-anchor::before {
    content: attr(data-flattened-path);
}

input[type="text"]:read-only:not(:disabled) {
    background-color: rgb(var(--background-content));
}

.property-selector.text-overflow-ellipsis:not(:placeholder-shown) {
    direction: rtl;
    text-align: left;
}

.argument-property:not(:disabled),
.email-property:not(:disabled),
.property-name:not(:disabled),
.grouping-property:not(:disabled),
.group-property:not(:disabled),
.data-col-property:not(:disabled),
.sort-property:not(:disabled) {
    cursor: pointer;
}

.flatpickr-input:disabled {
    cursor: default;
}

.argument-property:not(:disabled),
.group-property:not(:disabled),
.data-col-property:not(:disabled),
.date-wrapper .flatpickr-input {
    padding-right: 1.75rem;
}

.argument-property-wrapper,
.data-col-property-wrapper,
.group-property-wrapper,
.date-wrapper {
    position: relative;
}

.flatpickr-wrapper:has(input:disabled) ~ .clear-value,
input:disabled ~ .clear-value {
    display: none;
}

.clear-value {
    position: absolute;
    top: .4rem;
    right: 8rem;
}

.data-col-property-wrapper .clear-value,
.group-property-wrapper .clear-value {
    right: 1rem;
}

.secondary-logic .clear-value {
    right: 5.5rem;
}

.date-wrapper .clear-value {
    right: 1rem;
}

.jstree-default .jstree-search {
    color: inherit;
    background-color: rgba(var(--warning-light), .4);
    font-style: normal;
    font-weight: normal;
}

.outcome-switch-wrapper .form-check-input[mode='view'] {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.include-properties-list {
    display: flex;
    flex-wrap: wrap;
}

.drag-handle {
    display: none;
}

.sort-mode .drag-handle {
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
}

.sort-mode .sort-item {
    pointer-events: none;
}

    .sort-mode .sort-item.hover {
        filter: brightness(120%);
    }

.sort-mode .logic-block.hover,
.sort-mode .logic-group.hover {
    outline: 1px solid rgb(var(--background-content-dark)) !important;
    border-radius: .375rem;
}

.logic-form.ui-resizable > .card {
    height: 100%;
    overflow-y: auto;
}

.logic-filter-body {
    width: 100%;
    background-color: rgb(var(--background-content));
    background-size: 200%;
    position: relative;
    z-index: 1;
}

#incident-filter.js-tree-expanded .logic-filter-body {
    left: 50%;
    transition: left 0.2s;
}

#incident-filter.js-tree-expanded .js-tree-backdrop {
    display: block;
}

.logic-row {
    position: relative;
    margin-left: .5rem;
    padding-left: .5rem;
    border-left: 1px solid rgb(var(--background-main-dark));
    margin-bottom: 0;
    padding-bottom: .5rem;
}

    .logic-row::before {
        display: block;
        position: absolute;
        border-bottom: 1px solid rgb(var(--background-main-dark));
        width: 1.3rem;
        left: 0;
        top: calc(50% - .5rem);
        content: '';
    }

    .logic-row.logic-group-row::before {
        width: 2.5rem;
        bottom: auto;
        top: 2rem;
    }

    .logic-row.logic-group-row:has(> .logic-group > .row > .abstract-logic:empty)::before,
    .logic-row.logic-group-row:has(> .logic-group > .row > .abstract-logic > .logic-row:only-child)::before {
        top: 4.9rem;
    }


    .logic-row:has(> .sub-logic)::before {
        top: 1rem;
    }

.logic-engine[mode="view"] .logic-row {
    margin-left: 0;
}

.logic-engine[mode="edit"] .abstract-logic .logic-row:only-child,
.logic-engine[mode="edit"] :not(.abstract-logic) > .logic-row:last-child,
.logic-engine[mode="view"] .logic-row:last-child,
:not(.abstract-logic) > .logic-row:first-child {
    border-left: none;
}

.logic-group:has(> .row > .abstract-logic:empty) > .logic-row > div > .combinator,
.logic-group:has(> .row > .abstract-logic:empty) > .logic-row:has(.combinator)::before,
.logic-group:has(> .row > .abstract-logic > .logic-row:only-child) > .logic-row > div > .combinator,
.logic-group:has(> .row > .abstract-logic > .logic-row:only-child) > .logic-row:has(.combinator)::before,
.logic-engine[mode="view"] .abstract-logic .logic-row:only-child::before,
.logic-engine[mode="edit"] .logic-group:has(> .row > .abstract-logic:empty) > .logic-row::before,
.secondary-logic .logic-row::before {
    display: none !important;
}

.logic-engine[mode="edit"] :not(.abstract-logic) > .logic-row:last-child::before,
.logic-engine[mode="view"] .logic-row:last-child::before,
:not(.abstract-logic) > .logic-row:first-child::before {
    border-left: 1px solid rgb(var(--background-main-dark));
}

.logic-engine[mode="edit"] :not(.abstract-logic) > .logic-row:last-child::before,
.logic-engine[mode="view"] .logic-row:last-child::before {
    top: 0;
    height: 50%;
    border-bottom-left-radius: .375rem
}

.logic-engine[mode="view"] .logic-row.logic-group-row:last-child::before {
    top: 0;
    height: calc(2rem + 1px);
}

:not(.abstract-logic) > .logic-row:first-child::before,
.logic-engine[mode="edit"] .abstract-logic .logic-row:only-child::before {
    height: 100%;
    border-bottom: none;
    border-top: 1px solid rgb(var(--background-main-dark));
    border-top-left-radius: .375rem;
}

.logic-engine[mode="edit"] .abstract-logic .logic-row:only-child::before {
    border-left: 1px solid rgb(var(--background-main-dark));
}

.group-sort-field-wrapper .card.sub-card {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.argument-value-wrapper .flatpickr-wrapper {
    width: 100%;
}

.aggregate-property {
    border-top-left-radius: 0rem;
    border-bottom-left-radius: 0rem;
}

.aggregate-property-wrapper .clear-value {
    right: 0.5rem;
}

#incident-filter {
    z-index: 1;
}

.input-group:not(.ignore-select2-group-style):has(.select2-container) {
    min-height: 38px;
}

    .input-group:not(.ignore-select2-group-style):has(.select2-container) > * {
        margin: 0;
    }

    .input-group:not(.ignore-select2-group-style):has(.select2-container) .input-group-text:first-child {
        border-right: 0;
    }

    .input-group:not(.ignore-select2-group-style):has(.select2-container) .input-group-text:last-child {
        border-left: 0;
    }

.input-group:not(.ignore-select2-group-style) .select2-container {
    --input-group-text-width: 40px;
    min-height: 100%;
    width: calc(100% - var(--input-group-text-width)) !important;
}

    .input-group:not(.ignore-select2-group-style) > .select2-container:nth-child(2),
    .input-group:not(.ignore-select2-group-style) > .select2-container:nth-child(2) .select2-selection {
        border-top-left-radius: .375rem !important;
        border-bottom-left-radius: .375rem !important;
    }

.pinnable-sortable .pinnable {
    border: 1px solid rgb(var(--primary));
    max-width: 100%;
}

.pinnable-sortable .pinnable-wrapper, .pinnable-sortable .pinnable-wrapper > * {
    max-width: 100%;
}

.incident-list .grid-td {
    padding: 1rem;
}

.incident-list .first-cell {
    min-width: 15rem;
    place-items: center start !important;
}


.dashboard-tab-nav .page-name {
    min-height: 1em;
    min-width: 1em;
}


.dashboard-tab-item:has(.active) {
    background-color: rgb(var(--background-content));
}

.dashboard-tab-nav::before {
    min-height: 20px;
}

.dashboard-tab-nav[contenteditable="true"] {
    color: rgb(var(--text));
}

#dashboard-tabs {
    overflow-y: hidden;
    overflow-x: auto;
    scrollbar-width: none;
    width: calc(100% - 9rem);
}

#dashboard-tab-navigation-wrapper {
    background-color: transparent;
    border-bottom: 1px solid rgb(var(--background-main-dark));
}

#dashboard-tab-navigation-wrapper.scrollable {
    background-color: rgb(var(--background-content-dark));
}

#dashboard-tab-navigation-wrapper .nav-link.active {
    background-color: rgb(var(--background-content));
}

#dashboard-tabs-scroll-left,
#dashboard-tabs-scroll-right,
#dashboard-tabs-navigation-select,
#dashboard-tabs-navigation-select-wrapper {
    width: 3rem;
    cursor: pointer;
}

#dashboard-tabs-scroll-left {
    border-right: 1.5px solid rgb(var(--background-main-dark));
}

#dashboard-tabs-scroll-right {
    border-left: 1.5px solid rgb(var(--background-main-dark));
}

#dashboard-tabs-scroll-left[disabled],
#dashboard-tabs-scroll-right[disabled] {
    color: rgb(var(--dark), 0.5) !important;
}

.dashboard-tab-item {
    flex-shrink: 0;
    min-width: 100px;
}

.dashboard-tab-item a {
    width: 100%;
}

#dashboard-tab-navigation-wrapper.scrollable .nav-item:not(.active) {
    background-color: transparent;
}

#dashboard-tab-navigation-wrapper .nav-item:not(.active) {
    background-color: rgb(var(--background-content-dark));
}

.page-name {
    font-size: medium;
    white-space: nowrap;
}

.dashboard-pane .pinnable {
    display: flex;
    flex-direction: column;
}

    .dashboard-pane .pinnable > * {
        flex-grow: 1;
        flex-shrink: 1;
        margin: 0 !important;
    }

#dashboard-pane-wrapper .tab-pane {
    min-height: 50vh !important;
}

.nav-tabs .nav-item {
    background-color: rgb(var(--background-content), 0.5);
    border-top-right-radius: var(--bs-nav-tabs-border-radius) !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius) !important;
    z-index: 2;
}

#dashboard-tab-navigation-wrapper .nav-link {
    border-top: none;
    border-bottom: none;
}

#dashboard-tab-navigation-wrapper.scrollable .nav-link {
    border-radius: 0;
}

#dashboard-tab-navigation-wrapper.scrollable .nav-link.active {
    border-left: 1px solid rgb(var(--background-main-dark));
    border-right: 1px solid rgb(var(--background-main-dark));
}

.page-content[page-type="Automatic"] .dashboard-pane-components-container {
    justify-content: center !important;
}

    .page-content[page-type="Fixed"] .dashboard-pane-components-container:has(.ui-draggable-dragging) {
        overflow: visible;
    }

.page-content[page-type="Automatic"] .dashboard-component {
    min-width: min(200px, 100%);
    max-width: 100%;
}

#dashboard-pane-wrapper .tab-pane {
    min-height: 50vh !important;
}

.dashboard-tab-item:not(.editing):hover .edit-page-buttons {
    visibility: visible;
}

.argument-value-select.select2-container--open .select2-dropdown--below {
    position: relative;
}

.argument-value ~ .select2-container--open .select2-selection--single .select2-selection__rendered {
    color: rgba(0, 0, 0, 0) !important;
}

.argument-value ~ .select2-container--open .select2-selection--single .select2-selection__placeholder {
    visibility: hidden;
}

.argument-value-select.select2-container--default .select2-search--dropdown .select2-search__field {
    position: absolute;
    top: -35px;
    border: 0px !important;
    width: 90%;
    background: none;
}

.argument-value-select .select2-results:has(.select2-results__option--selectable)::before {
    content: "Suggestions";
    display: block;
    padding: 6px;
    opacity: .5;
    font-weight: 500;
}

.argument-value-select .select2-results__message:empty::before {
    content: "";
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.25em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;
    display: block;
    margin: 0 auto;
    border: var(--bs-spinner-border-width) solid rgb(var(--primary));
    border-right-color: transparent;
    width: var(--bs-spinner-width);
    height: var(--bs-spinner-height);
    vertical-align: var(--bs-spinner-vertical-align);
    border-radius: 50%;
    -webkit-animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
    animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
}

html.simplify-scroll {
    scroll-behavior: auto !important;
}


.item-group .group-name {
    width: 200px;
}

.online-users-popover .popover-body {
    padding: 0;
}

.online-user:not(:last-child) {
    border-bottom: 1px solid rgb(var(--background-main-dark));
}

.blur {
    filter: blur(4px);
}

.overflow-wrap-anywhere {
    overflow-wrap: anywhere;
}

.shiny {
    overflow: hidden;
    position: relative;
}

.shiny::after {
    content: '';
    top: 0;
    transform: translateX(-100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    animation: shine 4s infinite;
    background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%);
}

@keyframes shine {
    0% {
        transform: translateX(-200%);
    }

    50% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(100%);
    }
}

#data-column-options-container,
#group-by-options-container {
    overflow-y: auto;
    overflow-x: hidden;
}

#pages-select {
    max-height: 10rem;
    overflow-y: auto;
}

.agentic-outcome-card {
    border: 2px solid rgb(var(--text), 0.2);
}