﻿:root {
    --loading-gif: url("/assets/images/loading.gif");
    /* number */
    --border-radius-xs: 0.125rem;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.625rem;
    --border-radius-2xl: 0.75rem;
    --border-radius-3xl: 1rem;
    --border-radius-pill: 624.9375rem;
    --border-width-xs: 0.0625rem;
    --border-width-sm: 0.0938rem;
    --border-width-md: 0.1094rem;
    --border-width-lg: 0.125rem;
    --border-width-xl: 0.1562rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --v8-icon-size: 24px;
    --NodeOpacity: 0.4;
    --button-scale-on-focus: 1;
    /* Text-size styles */
    /* Headings */
    --heading-desktop-h1: 600 64px/120% Lato, sans-serif;
    --heading-desktop-h2: 600 52px/120% Lato, sans-serif;
    --heading-desktop-h3: 600 40px/120% Lato, sans-serif;
    --heading-desktop-h4: 600 32px/120% Lato, sans-serif;
    --heading-desktop-h5: 600 24px/120% Lato, sans-serif;
    --heading-desktop-h6: 600 20px/120% Lato, sans-serif;
    /* Subtitles */
    --subtitle-large: 600 16px/150% Lato, sans-serif;
    --subtitle-small: 600 14px/150% Lato, sans-serif;
    /* Body Large */
    --body-large-light: 300 16px/150% Lato, sans-serif;
    --body-large-regular: 400 16px/150% Lato, sans-serif;
    --body-large-medium: 500 16px/150% Lato, sans-serif;
    --body-large-semibold: 600 16px/150% Lato, sans-serif;
    --body-large-bold: 700 16px/150% Lato, sans-serif;
    /* Body Small */
    --body-small-light: 300 14px/150% Lato, sans-serif;
    --body-small-regular: 400 14px/150% Lato, sans-serif;
    --body-small-medium: 500 14px/150% Lato, sans-serif;
    --body-small-semibold: 600 14px/150% Lato, sans-serif;
    --body-small-bold: 700 14px/150% Lato, sans-serif;
    /* Body Smaller */
    --body-smaller-light: 300 12px/150% Lato, sans-serif;
    --body-smaller-regular: 400 10px/150% Lato, sans-serif;
    --body-smaller-medium: 500 12px/150% Lato, sans-serif;
    --body-smaller-semibold: 600 12px/150% Lato, sans-serif;
    --body-smaller-bold: 700 12px/150% Lato, sans-serif;
    /* Caption Large */
    --caption-large-regular: 400 12px/150% Lato, sans-serif;
    --caption-large-medium: 500 12px/150% Lato, sans-serif;
    --caption-large-semibold: 600 12px/150% Lato, sans-serif;
    --caption-large-bold: 700 12px/150% Lato, sans-serif;
    /* Caption Small */
    --caption-small-regular: 400 10px/150% Lato, sans-serif;
    --caption-small-medium: 500 10px/150% Lato, sans-serif;
    --caption-small-semibold: 600 10px/150% Lato, sans-serif;
    --caption-small-bold: 700 10px/150% Lato, sans-serif;
    /* Buttons */
    --button-1: 500 12px/100% Lato, sans-serif;
    --button-2: 500 14px/100% Lato, sans-serif;
    --button-3: 500 16px/100% Lato, sans-serif;
    --button-4: 500 18px/100% Lato, sans-serif;
    /* Effect styles */
    --shadowxl: 0px 8px 8px rgba(16, 24, 40, 0.03), 0px 20px 24px rgba(16, 24, 40, 0.08);
    --shadowlg: 0px 4px 6px rgba(16, 24, 40, 0.03), 0px 12px 16px rgba(16, 24, 40, 0.08);
    --shadowmd: 0px 2px 4px rgba(16, 24, 40, 0.06), 0px 4px 8px rgba(16, 24, 40, 0.1);
    --shadowsm: 0px 1px 2px rgba(16, 24, 40, 0.06), 0px 1px 3px rgba(16, 24, 40, 0.1);
    --shadowxs: 0px 1px 2px rgba(16, 24, 40, 0.05);
    --shadow2xl: 0px 24px 48px rgba(16, 24, 40, 0.18);
    --shadow3xl: 0px 32px 64px rgba(16, 24, 40, 0.14);
    --focus-default: 0px 0px 0px rgba(41, 116, 213, 1), 0px 0px 0px rgba(255, 254, 254, 1);
    --focus-input-warning: 0px 0px 0px rgba(233, 184, 26, 0.3);
    --focus-input-error: 0px 0px 0px rgba(249, 113, 100, 0.3);
    --focus-input-success: 0px 0px 0px rgba(98, 204, 132, 0.3);
    /* Colors  primitives that are used in both light and dark-mode */

    --color-brand-2: #cde2ff;
    --color-brand-1: #eff6ff;
    --color-neutral-0: #f7f7f8;
    --color-neutral-1: #efeff1;
    --color-neutral-2: #dee0e2;
    --color-neutral-3: #b4b6bb;
    --color-neutral-4: #9ea0a4;
    --color-neutral-5: #8e8e95;
    --color-neutral-6: #83868a;
    --color-neutral-7: #707177;
    --color-neutral-8: #5e6064;
    --color-neutral-9: #393a3c;
    --color-neutral-10: #2f3032;
    --color-neutral-11: #343537;
    --color-neutral-12: #e6e8ea;
    --color-brand-3: #abceff;
    --color-brand-4: #88baff;
    --color-brand-5: #69a5f8;
    --color-brand-6: #5491e5;
    --color-brand-7: #2974d5;
    --color-brand-8: #0050a8;
    --color-brand-9: #00306b;
    --color-brand-10: #001739;
    --color-blue-0: #eaf2ff;
    --color-blue-1: #cee0ff;
    --color-blue-2: #88b8ff;
    --color-blue-3: #5d9cff;
    --color-blue-4: #418aff;
    --color-blue-5: #2879fe;
    --color-blue-6: #1b65e6;
    --color-blue-7: #1154ce;
    --color-blue-8: #0d316e;
    --color-blue-9: #0b2959;
    --color-green-1: #e4fcee;
    --color-green-2: #c3f3d6;
    --color-green-3: #8ee1ac;
    --color-green-4: #65cd86;
    --color-green-5: #50b96e;
    --color-green-6: #3f9c58;
    --color-green-7: #347f4a;
    --color-green-8: #306e44;
    --color-green-9: #1f4c2e;
    --color-green-10: #1a3d26;
    --color-red-1: #ffe8e5;
    --color-red-2: #ffcbc7;
    --color-red-3: #ff938a;
    --color-red-4: #f96b5d;
    --color-red-5: #f0584c;
    --color-red-6: #e34135;
    --color-red-7: #c62f25;
    --color-red-8: #ab241c;
    --color-red-9: #5f1a16;
    --color-red-10: #4c1815;
    --color-yellow-1: #fff7d1;
    --color-yellow-2: #fae594;
    --color-yellow-3: #feda6c;
    --color-yellow-4: #e9b716;
    --color-yellow-5: #c99d03;
    --color-yellow-6: #ad8400;
    --color-yellow-7: #8f6d00;
    --color-yellow-8: #795d01;
    --color-yellow-9: #4e3c04;
    --color-yellow-10: #3b2f02;
    --color-neutral-black: #222325;
    --color-neutral-white: #ffffff;
}


body {
    background: var(--color-bg-neutral);
    scrollbar-width: auto;
}


.small-header {
    font: var(--body-small-bold);
    justify-content: space-between;
    line-height: 3rem;
}

.icon-close {
    background: var(--icon-x);
    background-repeat: no-repeat;
    width: 20px;
}

/*Styles the default blazored modal
*/
.main-blazored-modal {
    background: var( --color-bg-default);
    border-radius: var(--border-radius-3xl);
    padding: var(--space-4);
}

.main-blazored-modal:has(.setting-popup) {
    background-color: transparent;
}

/*Hide blazored modals default header
*/
.bm-header {
    display: none !important;
}

/*use on divs that should be centered in parent divs
*/
.main-centered-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*use on elements that require a small margin from abive elements
*/
.main-small-top-margin {
    margin-top: 20px;
}
/*Animates the clipboard tab*/
.shake-clipboard {
    animation: shake 0.5s ease forwards;
}

@keyframes shake {
    0% {
        transform: translateX(0);
         font-weight:1200;
    }

    25% {
        transform: translateX(-7px);
    }

    50% {
        transform: translateX(7px);
    }

    75% {
        transform: translateX(-7px);
    }

    100% {
        transform: translateX(0);
        font-weight: normal;
    }
}
.heart-icon {
    position: relative;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.animated-heart {
    position: absolute;
    animation: moveToFavorites 0.5s forwards;
    opacity: 1;
    z-index: 100;
    width: 24px !important;
    height: 24px !important;
}

@keyframes moveToFavorites {
    to {
        transform: translate(var(--move-x), var(--move-y)) scale(1.6);
        opacity: 0.5;
    }
}

/* optional scroll lock when tour is open */
html.tour-noscroll, body.tour-noscroll {
    overflow: hidden !important;
}

.mud-expand-panel .mud-expand-panel-header {
    padding: 0;
}
.mud-expand-panel-header .mud-expand-panel-text {
    font: var(--body-small-semibold);
}
.mud-expand-panel .mud-expand-panel-content {
    font: var(--body-small-medium);
    padding: 0 0 16px 0px;
}
.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    color: var(--color-fg-default) !important;
}


/* Button-themes: neutral, brand,brand-subtle, tertiary, transparent */

.button-neutral {
color: var(--color-fg-default);
background: var(--color-bg-neutral);
}

.button-neutral:hover {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-hovered);
}

.button-neutral:active, .button-neutral.is-pressed {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-active);
}

.button-neutral:focus {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral);
    border-radius: var(--border-radius-md);
    border-color: var(--color-fg-brand-subtle);
}

.button-neutral.is-disabled {
    color: var(--color-fg-disabled);
    background: var(--color-bg-disabled);
}

.button-brand {
color: var(--color-fg-brand-inverse);
background: var(--color-bg-brand-bold);
}

.button-brand:hover {
    color: var(--color-fg-brand-inverse);
    background: var(--color-bg-brand-bold-hovered);
}

.button-brand:active {
    color: var(--color-fg-brand-inverse);
    background: var(--color-bg-brand-bold-active);
}

.button-brand.is-pressed {
    color: var(--color-fg-brand-inverse);
    background: var(--color-bg-brand-bold-pressed);
}

.button-brand:focus {
    color: var(--color-fg-brand-inverse);
    background: var(--color-bg-brand-bold);
    border-radius: var(--border-radius-md);
    border-color: var(--color-fg-brand-subtle);
}

.button-brand.is-disabled {
    color: var(--color-fg-disabled);
    background: var(--color-bg-disabled);
}

.button-brand-subtle {
color: var(--color-fg-brand-subtle);
background: var(--color-bg-brand);
}

.button-brand-subtle:hover {
    color: var(--color-fg-brand-subtle);
    background: var(--color-bg-brand-hovered);

}

.button-brand-subtle:active {
    color: var(--color-fg-brand-subtle);
    background: var(--color-bg-brand-active);
}

.button-brand-subtle.is-pressed {
    color: var(--color-fg-brand-subtle);
    background: var(--color-bg-brand-pressed);
}

.button-brand-subtle:focus {
    color: var(--color-fg-brand-subtle);
    background: var(--color-bg-brand);
    border-radius: var(--border-radius-md);
    border-color: var(--color-fg-brand-subtle);
}

.button-brand-subtle.is-disabled {
    color: var(--color-fg-disabled);
    background: var(--color-bg-disabled);
}

.button-tertiary {
color: var(--color-fg-default);
}

.button-tertiary:hover {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-subtle-hovered);
}

.button-tertiary:active {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-subtle-active);
}

.button-tertiary.is-pressed {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-subtle-pressed);
}

.button-tertiary:focus {
    color: var(--color-fg-default);
    background: var(--color-bg-neutral-subtle-pressed);
    border-radius: var(--border-radius-md);
    border-color: var(--color-fg-brand-subtle);
}

.button-tertiary.is-disabled {
    color: var(--color-fg-default);
    background: var(--color-bg-default);
}

.button-transparent {
    background-color: transparent;
    color: var(--color-fg-default);
    border: 1px solid var(--color-border-default);
}
    .button-transparent:hover {
        background: var(--color-bg-neutral-subtle-hovered);
    }

    /* input styles - for the moment we have one style called outlined */
    .outlined {
        border: 1px solid var(--color-border-input);
        font: 100% var(--body-small-regular);
        border-radius: var(--border-radius-md);
        transition: border-color .18s ease-out, box-shadow .18s ease-out, color .18s ease-out;
        color: var(--color-fg-subtle);
    }

.outlined input, select.outlined {
    background: var(--color-bg-input);
    outline: none;
    font: inherit;
    color: inherit;
    padding: 2px 0;
}

.outlined input::placeholder {
    color: var(--color-fg-placeholder);
    opacity: 1;
}

.outlined:hover {
    border-color: var(--color-border-brand-bold);
}

.outlined:focus-within {
    border-color: var(--color-border-brand-bold);
    color: var(--color-fg-default); 
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-border-brand-bold) 35%, transparent);
}

.outlined.disabled {
    border-color: var(--color-border-disabled);
    color: var(--color-fg-disabled);
}

.outlined.disabled input {
    cursor: not-allowed;
}

/*  select style, keep it here cause css-isolation doesnt support it   */
select,
::picker(select) {
    appearance: base-select;
}


select {
    flex: 1;
    background: var(--color-bg-input);
    transition: 0.4s;
    border-radius: var(--space-2);
    border: var(--border-width-xs) solid var(--color-border-input);
    cursor: pointer;
    color: var(--color-fg-placeholder);
    font: var(--body-small-regular);
    padding: 10px;
    line-height: 1.2;
    padding-block: 7px;
    padding-inline-end: 1rem;
}


/*select:hover {
border-color: var(--color-border-brand-bold);
}
select:focus-within {
border-color: var(--color-border-brand-bold);
color: var(--color-fg-default);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-border-brand-bold) 35%, transparent);
}*/
select:focus-within {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select.disabled {
    border-color: var(--color-border-disabled);
    color: var(--color-fg-disabled);
}

.select.filled {
border-color: var(-color-border-input);
color: var(--color-fg-default);
}

select::picker-icon {
content: "";
width: 12px;
height: 13px;
background-image: var(--icon-arrow-03);
background-repeat: no-repeat;
background-position: center center;
background-size: 12px 7px;
transition: rotate 0.2s ease-out;
align-self:center;
}

select:open::picker-icon {
rotate: 180deg;
}
::picker(select) {
    border: 2px solid var(--color-border-subtle);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


option {
    padding: 10px;
    line-height: 1.1;
    background-color: var(--color-bg-default);
    border-color: var(--color-border-subtle);
    color: var(--color-fg-default);
    cursor: pointer;
    transition-property: color, background;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    position: relative;
    padding-inline-end: 1.75em;
}

    option:hover,
    option:focus {
        background: var(--color-bg-brand-hovered);
    }

    option:checked {
        background: var(--color-bg-brand);
        color: var(--color-fg-default);
        border-color: var(--color-border-subtle)
    }


option::checkmark {
    content: "";
    position: absolute;
    inset-inline-end: 0.5em;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 1em;
    height: 1em;
    background-image: var(--icon-checked);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) scale(0.8);
}


::picker(select) {
    opacity: 0;
    transition: all 0.4s allow-discrete;
    top: calc(anchor(bottom) + 0px);
    left: anchor(0%);
}

    ::picker(select):popover-open {
        opacity: 1;
    }

@starting-style {
    ::picker(select):popover-open {
        opacity: 0;
    }
}


select.neutral {
    background: var(--color-bg-neutral);
}

select.neutral option {
background: var(--color-bg-neutral);
border-top: 1px solid var(--color-border-default);
}

select.neutral option:hover,
select.neutral option:focus {
    background: var(--color-bg-brand-hovered);
}

select.neutral option:checked {
    background: var(--color-bg-brand);
    color: var(--color-fg-default);
    border-color: var(--color-border-subtle)
}

select.brand {
    color: var(--color-fg-brand-subtle);
    background-color: var(--color-bg-brand);
}


select.brand option {
    background-color: var(--color-bg-brand);
    border-top: 1px solid var(--color-border-default);
}

select.brand option:hover,
select.brand option:focus {
    background: var(--color-bg-brand-hovered);
}

select.brand option:checked {
    background: var(--color-bg-brand-active);
    color: var(--color-fg-default);
    border-color: var(--color-border-subtle)
}



.v8-text-search select {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
select.neutral option:checked {
    background: var(--color-bg-brand);
    color: var(--color-fg-default);
    border-color: var(--color-border-subtle)
}



select {
    appearance: base-select;
}


select::picker(select) {
inline-size: anchor-size(inline);  
background: var(--color-bg-default);
border: 2px solid var(--color-border-subtle);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}


select::picker(select)::part(listbox) {
    inline-size: 100%;
    background: var(--color-bg-default);
}

option {
    display: block;
}


select::picker(select) {
    inline-size: anchor-size(inline);
    overflow-x: hidden;
}

    select::picker(select)::part(listbox),
    select::picker(select)::part(listbox-scroll-container) {
        min-inline-size: 100%;
        background: var(--color-bg-default);
        box-sizing: border-box;
        overflow-x: hidden;
    }

option {
    display: block;
    inline-size: 100%;
    box-sizing: border-box;
}


    option:hover,
    option:focus {
        background: var(--color-bg-brand-hovered);
    }

    option:checked {
        background: var(--color-bg-brand);
        color: var(--color-fg-default);
    }


/*  V8MultiSelectDropdown*/
.v8-ms-root {
    position: relative;
    display: inline-block;
    isolation: isolate;
    z-index:10;
}

.v8-ms-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: var(--color-bg-input);
    padding: 7px;
    border-radius: var(--space-2);
    border: var(--border-width-xs) solid var(--color-border-input);
    cursor: pointer;
    color: var(--color-fg-placeholder);
    font: var(--body-small-regular);
    line-height: 1.2;
    min-width: 275px;
    max-width: 275px;
    box-sizing: border-box;
}

.v8-ms-root.select-large .v8-ms-control {
    width: 100%;
    max-width: 100%;
}

.v8-ms-root.select-normal .v8-ms-control {
    min-width: 275px;
    max-width: 275px;
}

.v8-ms-root.select-small .v8-ms-control {
    min-width: 100px;
    max-width: 275px;
}

.v8-ms-control:hover {
    border-color: var(--color-border-brand-bold);
}

.v8-ms-root:focus-within .v8-ms-control {
    border-color: var(--color-border-brand-bold);
    color: var(--color-fg-default);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-border-brand-bold) 35%, transparent);
}

.v8-ms-root.disabled .v8-ms-control {
    border-color: var(--color-border-disabled);
    color: var(--color-fg-disabled);
    cursor: not-allowed;
}

.v8-ms-root.filled .v8-ms-control {
    color: var(--color-fg-default);
}

.v8-ms-root.neutral .v8-ms-control {
    background: var(--color-bg-neutral);
}

.v8-ms-icon {
    width: 12px;
    height: 13px;
    background-image: var(--icon-arrow-03);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 12px 7px;
}

.v8-ms-panel {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-default, #fff);
    border: 2px solid var(--color-border-subtle, #d0d7de);
    border-radius: var(--space-2, 6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 4px 0;
    max-height: 280px;
    overflow: auto;
}

.v8-ms-root.neutral .v8-ms-panel {
    background: var(--color-bg-neutral, #f6f8fa);
    border-color: var(--color-border-default, #d0d7de);
}

.v8-ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0 !important;
    background: var(--color-bg-default, #fff);
    color: var(--color-fg-default);
    border-top: 1px solid var(--color-border-subtle, #d0d7de);
    transition: background 0.2s ease-out, color 0.2s ease-out;
}

    .v8-ms-option:first-child {
        border-top: 0;
    }

    .v8-ms-option:hover {
        background: var(--color-bg-brand-hovered, #eef6ff);
    }

.v8-ms-root.neutral .v8-ms-option {
    background: var(--color-bg-neutral, #f6f8fa);
}


.v8-ms-placeholder {
    padding: 7px 12px;
    color: var(--color-fg-placeholder);
}

/*#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-retrying,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10001;
        margin: auto;
        max-width: 420px;
        max-height: 300px;
        background: var( --color-bg-default);
        padding: 1rem;
        border-radius: .75rem;
        box-shadow: 0 6px 20px rgba(0,0,0,.2);
        text-align: center;
    }*/