/*
    Main Configuration
*/

html {
    height: 100%;
}

body {
    font-family: 'Lato';
    height: 100%;
}

.row {
    --bs-gutter-x: 0.75rem;
}

a {
    text-decoration: none;
}

a:hover {
    font-weight: 600;
}

div.wrapper {
    display: flex;
    align-items: stretch;
    background: var(--sidebar-background-color);
    min-height: calc(100% - var(--navbartop-height));
    margin-top: var(--navbartop-height);
}

#content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s;
    padding-left: 1rem;
    padding-right: 1rem;
    background: var(--bs-body-bg);
}

#content div.fillcomplete {
    position: absolute;
    padding: 1rem 1rem;
    top: var(--navbartop-height);
    z-index: 1018;
}

@media (min-width: 992px) {
    #content div.fillcomplete {
        height: calc(100% - var(--navbartop-height));
        width: calc(100% - var(--sidebar-width-expanded));
        left: var(--sidebar-width-expanded);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #content div.fillcomplete {
        height: calc(100% - var(--navbartop-height));
        width: calc(100% - var(--sidebar-width-collapsed));
        left: var(--sidebar-width-collapsed);
    }
}

@media (max-width: 767.98px) {
    body {
        height: calc(100% - var(--sidebar-height-bottom));
    }

    div.wrapper {
        height: calc(100% - var(--navbartop-height));
    }

    #content {
        overflow: auto;
    }

    #content div.fillcomplete {
        width: 100%;
        height: calc(100% - var(--navbartop-height) - var(--sidebar-height-bottom));
        left: 0;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/*
    SCROLLBAR
*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: var(--bs-secondary);
}

::-webkit-scrollbar {
    width: 0.5em;
    height: 0.5em;
    background-color: var(--bs-secondary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    border-radius: 4px;
}

.loader {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--bs-secondary);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1019;
    opacity: 0.6;
    filter: alpha(opacity=60);
    display: none;
}

.loader.loader-inner{
    top: var(--navbartop-height);
    height: calc(100% - var(--navbartop-height));
}
@media (min-width: 992px) {
    .loader.loader-inner{
        width: calc(100% - var(--sidebar-width-expanded));
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .loader.loader-inner{
        width: calc(100% - var(--sidebar-width-collapsed));
    }
}
@media (max-width: 767.98px) {
    .loader.loader-inner{
        height: calc(100% - var(--navbartop-height) - var(--sidebar-height-bottom));
        width: 100%;
    }
}

.loader .spinner-border {
    left: 50%;
    top: 50%;
    position: relative;
}
