@import "shared/defaults.css";
@import "shared/card.css";
@import "shared/form.css";
@import "shared/buttons.css";
@import "shared/checkbox.css";
@import "components/header.css";
@import "components/modal.css";
@import "components/loader.css";
@import "components/custom-select.css";
@import "components/side-menu.css";
@import "components/user-profile.css";
@import "components/login.css";
@import "components/device-type-settings.css";
@import "components/device-updates.css";
@import "components/tabs.css";
@import "components/tables.css";
@import "components/filter-switch.css";
@import "components/accardion.css";
@import "components/role.css";
@import "components/icons.css";
@import "media-query/media-query-768px.css";
@import "components/filter-dashboard.css";
@import "components/cookiesConfirmation.css";
@import "components/radio-button.css";
@import "components/user-friendly-errors.css";
@import "components/tag-box.css";
@import "components/updates-details.css";
@import "components/scenarios.css";
@import "components/help-page.css";
@import "components/project.css";
@import "components/device-types.css";
@import "components/users.css";
@import "components/devices.css";
@import "components/updates-versions.css";

*{
    font-family: 'Commissioner', serif!important;
}
body, app{
    height: 100vh;
    overflow: hidden;
    background-color: var(--layout-background);
}

main{
    height: calc(100vh - 72px);
    overflow: hidden;
    display: flex;
    position: relative;
}

aside{
    width: 72px;
    z-index: 3;
    position: absolute;
    left: 0;
    top: 0;
}
.content{
    width: 100%;
    z-index: 1;
    height: 100%;
    padding: 2rem 3rem 1rem 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-bold{
    font-weight: 800;
}
a{
    color: var(--component-active-color) !important;
    transition: var(--defualt-animation) !important;
    cursor: pointer;
}
a:hover{
    text-decoration: none!important;
    opacity: 0.8!important;
}
#blazor-error-ui {
   /* background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;*/

   display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
.tooltip {
    position: relative;
    opacity: 1;
    height: 100%;
    top:0;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    display: flex;
    flex-wrap: wrap;
    background: white;
    color: #333;
    box-shadow: 0 3px 14px rgb(0 0 0 / 40%);
    border-radius: var(--component-border-radius);
    text-align: left;
    font-size: 12px;
    padding: 1rem;
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 50%;
    margin-left: -18px;
    height: max-content;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 14px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgb(255, 255, 255) transparent;
}

.tooltip.right .tooltiptext {
    right: 50%;
    left: unset;
    margin-left: unset;
    margin-right: -18px;
}

.tooltip.right .tooltiptext::after {
    right: 14px;
    left: unset;
}
.with-tooltip:hover .tooltip .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}
::-webkit-scrollbar-corner {
    background: transparent;
}
.c-pointer{
    cursor: pointer;
}

.va-middle{
    vertical-align: middle
}

.mobileMask {
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    transition: 10s all;
}

.text-ellipsis{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

li::marker {
    color: var(--component-active-color);
}

@media (max-width: 1100px) {
    .content{
        padding: 2rem 2rem 2rem 6rem;
        overflow: auto;
    }
    .cookies-confirm {
        height: 20rem;
        flex-direction: column;
        margin: 0;
        padding: 8%;
        width: 100%;
        opacity: 0.9;
    }
        
    .cookies-confirm-data {
        opacity: 1;
        margin-bottom: 20px;
    }
    .show-mobile {
        display: block;
    }
    .add-link.show-mobile{
        display: flex;
        height: unset;   
        font-size: 18px;
        align-items: center;
    }
    .hide-mobile {
        display: none !important;
    }
    
}

@media screen and  (max-width: 1100px) {
    /*main {
        height: auto;
    }*/
    /* custom scrollbar */
    ::-webkit-scrollbar-thumb {
        border: 7px solid transparent;
    }
    body, app{
        /*height: 100vh;*/
        height: auto;
        overflow: auto !important;
        background-color: var(--layout-background);
    }

    html, body {
        overflow: auto !important;
        font-size: 16px;
        touch-action: none;
    }
    
    .content{
        /*padding: 2rem 2rem 2rem 6rem !important;*/
        padding: 0 0 0 0 !important;
        overflow: unset;
        /*height: auto;*/
    }
    
    .mobileMask.active {
        display: block;
    }

    aside {
        left: -300px;
    }

    .activeMobileMenu aside {
        left: 0;
        transition: .3s;
        position: fixed;
        min-width: 250px;
        height: 100%;
    }
}

@media screen and (min-width: 1101px) {
    .show-mobile {
        display: none;
    }
    
    .hide-mobile {
        display: block;
    }
}
