/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--vz-body-bg);
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 1rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    min-height: 100vh;
}

[data-layout-mode="light"] .is-dark {
    display: none !important;
}

[data-layout-mode="dark"] .is-light {
    display: none !important;
}

[data-layout-mode="dark"] input {
    color-scheme: dark;
}

/* TABLE */
.ag-table-slim .ag-root-wrapper {
    /* border: 0px solid; */
    /* border-radius: .5rem; */
    border-color: transparent !important;
    /* -webkit-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important */
}

/* .ag-table-slim .ag-header-cell {
    background-color: #f3f6f9 !important;
}

.ag-table-slim .ag-header {
    border-color: #e9ecef !important;
} */

.ag-table-slim .ag-header-cell-text {
    font-size: 0.8125rem;
}

.ag-body {
    overflow: hidden;
    display: flex;
}

.ag-body-vertical-scroll {
    width: auto !important;
    min-width: 0px !important;
}

/*.ag-body-horizontal-scroll,
.ag-body-vertical-scroll-viewport {
    display: none;
}*/

/* VALIDATION */
input.has-error,
select.has-error {
    border: 1px solid red;
}

label.has-error {
    color: red;
}

/* widget counter */
.jquery-count-box {
    display: block;
    border: 5px #555555 solid;
    font-size: 4em;
    border-radius: 50%;
    padding-top: 120px;
    height: 300px;
    width: 300px;
    text-align: center;
    margin: auto;
    box-shadow: 0px 0px 50px 5px lightgrey;
    -webkit-box-shadow: 0px 0px 50px 5px lightgrey;
    -moz-box-shadow: 0px 0px 50px 5px lightgrey;
}

.inner-count-div {
    margin-top: 5px;
    line-height: 30px;
}

.language_selector {
    float: right;
    margin-top: 17px;
    width: 100px;
}

/*
    Interactive trees
*/

.hvisionnode {
    background-color: lightgray;
}

.tooltipTree {
    position: relative;
}

    .tooltipTree .tooltiptextTreeRight {
        visibility: hidden;
        width: 250px;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        top: -5px;
        right: 110%;
    }

        .tooltipTree .tooltiptextTreeRight::after {
            content: " ";
            position: absolute;
            top: 50%;
            left: 100%;
            /* To the right of the tooltip */
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent black;
        }

    .tooltipTree .tooltiptextTree {
        visibility: hidden;
        width: 120px;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: 150%;
        left: 50%;
        margin-left: -60px;
    }

        .tooltipTree .tooltiptextTree::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: black transparent transparent transparent;
        }

    .tooltipTree:hover .tooltiptextTree {
        visibility: visible;
    }

    .tooltipTree:hover .tooltiptextTreeRight {
        visibility: visible;
    }

.algorithmPopup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .algorithmPopup .algorithmPopupText {
        visibility: hidden;
        width: 120px;
        background-color: #299cdb;
        color: #fff !important;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        top: -5px;
        right: 110%;
    }

        .algorithmPopup .algorithmPopupText::after {
            content: " ";
            position: absolute;
            top: 50%;
            left: 100%;
            /* To the right of the tooltip */
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent #299cdb;
        }

    /* Toggle this class - hide and show the popup */
    .algorithmPopup .show {
        visibility: visible;
        -webkit-animation: fadeIn 1s;
        animation: fadeIn 1s;
    }

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.ball-container {
    margin: 0;
    display: grid;
    place-content: center;
    align-items: center;
    grid-auto-flow: column;
    gap: 20px;
}

.ball {
    --s: 300px;
    /* control the size */
    --c: red;
    /* the color */

    width: var(--s);
    aspect-ratio: 1;
    border-radius: 100%;
    display: grid;
    overflow: hidden;
    background: radial-gradient(at 36% 45%, #ffffffcc, 40%, #4e4e4e);
    box-shadow: calc(var(--s)/8) calc(var(--s)/8) calc(var(--s)/8) calc(var(--s)/-8) #0009;
    grid-area: 1 / 1;
}

.ball-container .label {
    margin: 0;
    padding: 0;
    align-items: center;
    text-align: center;
    display: inline;
    grid-area: 1 / 1;
    z-index: 2;
    white-space: nowrap;
    /*animation: fadeIn 3s;*/
}

.ball:before,
.ball:after {
    content: "";
    grid-area: 1/1;
}

.ball:before {
    background: radial-gradient(circle at top, var(--c), #4e4e4e);
    mix-blend-mode: multiply;
    -webkit-mask: linear-gradient(#000 0 0) bottom no-repeat;
    animation: sizeGrowth 2s linear 1;
}

.ball:after {
    border-radius: 50%;
    z-index: 1;
    width: 0%;
    aspect-ratio: 1;
    margin: auto;
    background-image: linear-gradient(var(--c) 0 0);
    background-blend-mode: multiply;
    animation: fillCircleColor 2s linear 1, lightWidthGrowth 2s cubic-bezier(0.06, 1334, .93, 1334) 1;
}

@keyframes lightWidthGrowth {

    0%, 5% {
        width: 0%
    }

    95%, 100% {
        width: 0.1%
    }
}

@keyframes fillCircleColor {

    0%, 5% {
        transform: translateY(calc(var(--s)/2)) rotateX(78deg);
        background-color: #333;
    }

    95%, 100% {
        transform: translateY(calc(var(--s)/-2)) rotateX(78deg);
        background-color: #ccc;
    }
}

@keyframes sizeGrowth {

    0%, 5% {
        -webkit-mask-size: 100% 0%;
    }

    95%, 100% {
        -webkit-mask-size: 100% 100%;
    }
}

/*html {
    min-height: unset !important;
}*/

.page-title-box {
    margin: -23px -0.75rem 1.5rem -0.75rem !important;
}

.remove-before::before {
    content: none !important;
}

[v-cloak] {
    display: none !important;
}

.min-vh-97 {
    min-height: 97vh;
}

.pm-textarea {
    padding: 1px !important;
    text-align: center;
}

/* Velzon fix */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size=sm] {
    min-height: unset !important;
}

.color-block {
    background-color: #E5EAED !important;
    cursor: grab;
}


[data-layout-mode="dark"] .color-block {
    background-color: #2e3235 !important;
    cursor: grab;
}

.select2-container--classic .select2-dropdown {
    background-color: #f1f1f1;
    border: none;
    
}

[data-layout-mode="dark"] .select2-container--classic .select2-dropdown {
    background-color: #262a2f;
}
.select2-container .select2-selection--single .select2-selection__rendered{

}
.select2-container--classic .select2-selection--single {
    background-color: #f1f1f1;
    border: 0px solid #262a2f;
    border-radius: 4px;
    outline: 0;
    background-image: unset !important;
    background-repeat: repeat-x;
}
[data-layout-mode="dark"] .select2-container--classic .select2-selection--single {
    background-color: #262a2f;
    border: 0px solid #f1f1f1;
    border-radius: 4px;
    outline: 0;
    background-image: unset !important;
    background-repeat: repeat-x;
}
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #f1f1f1;
    border: none;
    border-left-width: unset;
    border-left-style: none;
    border-left-color: unset;
    border-left: 0px solid #ecf0fa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-image: unset !important;
}
[data-layout-mode="dark"] .select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #262a2f;
    border: none;
    border-left-width: unset;
    border-left-style: none;
    border-left-color: unset;
    border-left: 0px solid #ecf0fa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-image: unset !important;
}
.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #7b8895 transparent;
    border-width: 5px 4px 0 4px;
}
[data-layout-mode="dark"].select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #D3DDE7 transparent;
    border-width: 5px 5px 0 5px;
}

.select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #f1f1f1;
}
[data-layout-mode="dark"] .select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #262a2f;
}
.select2-container .select2-selection--single .select2-selection__rendered {
   
    padding-left: 12px;
    border: 0px solid #f1f1f1;
}
[data-layout-mode="dark"] .select2-container .select2-selection--single .select2-selection__rendered {

    padding-left: 12px;
    border: 0px solid #262a2f;
}
[data-layout-mode="dark"] .select2-container--classic .select2-search--dropdown .select2-search__field {
    background-color: #212529
}

.full-loader-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(256, 256, 256, 0.4);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

[data-layout-mode="dark"] .full-loader-overlay {
    background: rgba(33, 37, 41, 0.7);
}

.form-select, .form-control, .form-check, .select2-selection {
    transition: opacity 1s, filter 0.5s;
}

.form-select:disabled, .form-control:disabled, .form-check:disabled {
    filter: grayscale(100%) opacity(65%) brightness(80%);
}

[data-layout-mode="dark"] .form-select:disabled,
[data-layout-mode="dark"] .form-control:disabled,
[data-layout-mode="dark"] .form-check:disabled {
    filter: contrast(80%) opacity(65%) brightness(90%);
}

.form-select:not(:disabled):hover, .form-select:not(:disabled):focus,
.form-control:not(:disabled):hover, .form-control:not(:disabled):focus,
.form-check:not(:disabled):hover, .form-check:not(:disabled):focus,
.select2-selection:not(:disabled):hover, .select2-selection:not(:disabled):focus {
    filter: brightness(105%) contrast(110%) saturate(150%) drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

[data-layout-mode="dark"] .form-select:not(:disabled):hover, [data-layout-mode="dark"] .form-select:not(:disabled):focus,
[data-layout-mode="dark"] .form-control:not(:disabled):hover, [data-layout-mode="dark"] .form-control:not(:disabled):focus,
[data-layout-mode="dark"] .form-check:not(:disabled):hover, [data-layout-mode="dark"] .form-check:not(:disabled):focus,
[data-layout-mode="dark"] .select2-selection:not(:disabled):hover, [data-layout-mode="dark"] .select2-selection:not(:disabled):focus {
    filter: brightness(110%) contrast(95%) saturate(150%) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.form-color-select:disabled {
    filter: grayscale(0%) opacity(90%) brightness(100%);
}

[data-layout-mode="dark"] #full_loader_overlay div {
    background-color: rgb(33 37 41);
}

[data-layout-mode="dark"] .select2-selection {
    background-color: var(--vz-input-bg)!important;
    border: 1px solid var(--vz-input-border)!important;
}

[data-layout-mode="dark"] .select2-selection span {
    color: var(--vz-body-color) !important;
}

[data-layout-mode="dark"] .select2-dropdown, [data-layout-mode="dark"] .select2-search__field {
    background-color: var(--vz-input-bg) !important;
    color: var(--vz-body-color) !important;
    border-color: var(--vz-input-border) !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field,
.select2-container--bootstrap-5 .select2-selection {
    font-size: .7rem !important;
}
.highcharts-table-caption {
    display: none;
}