﻿:root {
    --wrap-height: 28px;
    --wrap-base-width: 78px;
    --wrap-small-width: 38px;
    --wrap-large-width: 128px;
    --wrap-fit-width: fit-content;
    --wrap-big-font-size: 14px;
    --wrap-medium-font-size: 13px;
    --wrap-dropdown-icon-size: 20px;
}

.wrap{
    height: fit-content;
    width: fit-content;
}

.state-disabled {
    opacity: 0.3 !important;
    pointer-events: none;
}

.grid-container {
    height: 100%;
    width: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: var(--color-background-controls);
    border: 0.25px solid lightgray;
    margin-bottom: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-05);
}

.card {
    background: var(--color-background-controls);
    box-shadow: var(--shadow-05);
    border-radius: 4px;
}

.toolbar {
    width: 100%;
    min-height: 38px;
    max-height: 38px;
    padding: 4px 4px 4px 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
}

.hidden-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.toolbar.hidden-scroll {
    height: 100%;
}

    .hidden-scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.overflown {
}

.toolbar .dropdown {
    height: 100%;
    min-height: 26px;
    min-width: fit-content;
    padding-right: 2px;
    padding-left: 2px;
}


.toolbar div:not(.material-icons, .material-icons-outlined) {
    font-size: var(--top-row-font-size);
}

.toolbar .button-base {
    min-width: fit-content;
    max-width: fit-content;
    font-size: var(--top-row-font-size);
}

.toolbar>.material-icons {
    font-size: 24px;
}

.toolbar>.material-icons-outlined {
    font-size: 24px;
}

.toolbar>.sys-icons {
    font-size: 24px;
}

.toolbar .separator {
    min-height: 30px;
    min-width: 1px;
    margin-left: 4px;
    margin-right: 4px;
    background: var(--color-base-400);
}

.toolbar>.section-label{
    margin-left: 3px;
    margin-right: 3px;
}

.toolbar .toggle{
    min-width: 36px;
    --thumb-size: 16px;
}

.toolbar-entry {
    max-width: 500px !important;
    min-width: 100px !important;
}


.hidden-scroll-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-foreground-white);
    background: var(--color-primary);
    box-shadow: var(--shadow-2);
    border: none;
    outline: none;
    border-radius: 4px;
    height: 24px;
    width: 24px;
    min-width: unset !important;
    line-height: 1rem;
    overflow: hidden;
    white-space: nowrap;
    transition: box-shadow 0.25s ease-in-out, opacity 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
}

    .hidden-scroll-button.disabled {
        pointer-events: none;
    }

    .hidden-scroll-button:hover:not(.disabled) {
        box-shadow: var(--shadow-4);
        opacity: 1 !important;
        transition: opacity 0.2s ease;
    }



.spinner-loader {
    display: inline-block;
    min-height: 14px;
    min-width: 14px;
    width: 14px;
    height: 14px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spin 0.75s linear infinite;
    animation: spin 0.75s linear infinite;
}

.loading-wave{
    mask-image: linear-gradient(75deg, #000000 75%, rgba(0, 0, 0, 0.6) 80%, #000000 90%);
    mask-size: 200% 100%;
    animation: placeholder-wave 2s linear infinite;
}

@keyframes placeholder-wave {
    100% {
        mask-position: -200% 0%;
    }
}


@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
