/*
    Main Configuration
*/

:root{
    --vh: 100vh;
}

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);
    overflow: auto
}

#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 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: rgba(var(--bs-secondary-rgb), 0.6);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1019;
    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;
}

.pageNotificationModal{
    z-index: 1056;
}

.toast-success {
    box-shadow: 0 0 0.75rem 0.125rem rgba(var(--bs-success-rgb), 0.3);
    border-color: rgba(var(--bs-success-rgb), 0.35);
}

.toast-danger {
    /* Du kannst hier auch einfach --bs-danger-rgb nutzen */
    box-shadow: 0 0 0.75rem 0.125rem rgba(var(--bs-danger-rgb), 0.3);
    border-color: rgba(var(--bs-danger-rgb), 0.35);
}

.toast-warning {
    box-shadow: 0 0 0.75rem 0.125rem rgba(var(--bs-warning-rgb), 0.3);
    border-color: rgba(var(--bs-warning-rgb), 0.35);
}

.toast-info {
    box-shadow: 0 0 0.75rem 0.125rem rgba(var(--bs-primary-rgb), 0.3);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

#toastContainer .toast-header::before {
    content: "";
    display: inline-block;
    width: .75rem;
    height: .75rem;
    border-radius: .125rem;
    margin-right: .5rem;
    margin-bottom: .125rem;
}

#toastContainer .toast-success .toast-header::before {
    background-color: var(--bs-success);
}

#toastContainer .toast-danger .toast-header::before {
    background-color: var(--bs-danger);
}

#toastContainer .toast-warning .toast-header::before {
    background-color: var(--bs-warning);
}

#toastContainer .toast-info .toast-header::before {
    background-color: var(--bs-primary);
}

.image-list-element-mh-100px {
    max-height: 100px;
}
.image-list-element-mh-100px:last-child {
    margin-right: 0.5rem;
}

.datability-custom-link-image {
    height: calc(100% - 1.2rem);
}
.datability-custom-link-text {
    font-size: 0.8rem;
}