/* LTE sidebar footer 1.0.4 */
.main-sidebar.lte-main-sidebar--has-footer {
    --lte-sidebar-footer-height: 126px;
    --lte-sidebar-footer-space: 126px;
    --lte-sidebar-brand-space: 57px;
    overflow: hidden;
}

.main-sidebar.lte-main-sidebar--has-footer.lte-main-sidebar--app-hidden {
    --lte-sidebar-footer-height: 58px;
    --lte-sidebar-footer-space: 58px;
}

.main-sidebar.lte-main-sidebar--has-footer > .sidebar.lte-sidebar-scroll--has-footer {
    position: absolute !important;
    top: var(--lte-sidebar-brand-space);
    right: 0;
    bottom: var(--lte-sidebar-footer-space);
    left: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 12px;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* A secondary menu stays above the footer while there is free space. */
.main-sidebar.lte-main-sidebar--has-footer > .sidebar.lte-sidebar-scroll--has-footer.lte-sidebar--has-secondary {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
}

.lte-sidebar-scroll--has-footer > .lte-sidebar-primary-block,
.lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-block {
    flex: 0 0 auto;
    width: 100%;
}

.lte-sidebar-scroll--has-footer > .lte-sidebar-primary-block {
    position: relative;
    z-index: 2;
}

.lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-block {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    margin-top: auto !important;
}

.lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-block ~ .lte-sidebar-secondary-block {
    margin-top: 0 !important;
}

/* The class may be assigned to a menu inside a widget wrapper. */
.lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-block .menu-mfooter {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    margin-top: 0 !important;
}

.lte-sidebar-footer {
    position: absolute;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    height: var(--lte-sidebar-footer-height);
    min-height: var(--lte-sidebar-footer-height);
    padding: 10px 12px 9px;
    overflow: hidden;
    color: rgba(255, 255, 255, .76);
    background: linear-gradient(180deg, rgba(43, 49, 71, .9), rgba(35, 40, 59, .98) 24%);
    box-shadow: 0 -8px 18px rgba(12, 17, 29, .13);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.sidebar-light-primary .lte-sidebar-footer,
[class*="sidebar-light-"] .lte-sidebar-footer {
    color: #495057;
    background: linear-gradient(180deg, rgba(248, 249, 250, .9), rgba(255, 255, 255, .98) 24%);
    box-shadow: 0 -8px 18px rgba(31, 45, 61, .09);
}

.lte-sidebar-footer__app {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(88, 166, 255, .92), rgba(127, 92, 223, .9));
    box-shadow: 0 7px 18px rgba(8, 18, 35, .18);
    text-decoration: none !important;
    transition: box-shadow .16s ease, filter .16s ease;
}

.lte-sidebar-footer__app:hover,
.lte-sidebar-footer__app:focus-visible {
    color: #fff !important;
    filter: brightness(1.06);
    box-shadow: 0 9px 22px rgba(8, 18, 35, .24);
}

.lte-sidebar-footer__app-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.lte-sidebar-footer__app-icon svg {
    width: 28px;
    height: 28px;
}

.lte-sidebar-footer__app-copy {
    display: flex;
    min-width: 0;
    max-width: 180px;
    margin-left: 10px;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.12;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition: max-width .18s ease, margin-left .18s ease, opacity .12s ease, transform .18s ease, visibility 0s linear;
}

.lte-sidebar-footer__app-copy small {
    overflow: hidden;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    opacity: .8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lte-sidebar-footer__app-copy strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.lte-sidebar-footer__app-arrow {
    max-width: 26px;
    margin-left: 6px;
    overflow: hidden;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    opacity: .75;
    visibility: visible;
    transition: max-width .18s ease, margin-left .18s ease, opacity .12s ease, visibility 0s linear;
}

.lte-sidebar-footer__copyright {
    margin-top: 8px;
}

.lte-sidebar-footer__copyright a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding-left: 10px;
    color: inherit !important;
    text-decoration: none !important;
}

.lte-sidebar-footer__copyright-mark {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    opacity: .78;
}

.lte-sidebar-footer__copyright-copy {
    display: flex;
    min-width: 0;
    max-width: 180px;
    margin-left: 8px;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.15;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition: max-width .18s ease, margin-left .18s ease, opacity .12s ease, transform .18s ease, visibility 0s linear;
}

.lte-sidebar-footer__copyright-copy strong {
    overflow: hidden;
    max-width: 170px;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lte-sidebar-footer__copyright-copy small {
    margin-top: 2px;
    font-size: 10px;
    opacity: .7;
}

.lte-main-sidebar--app-hidden .lte-sidebar-footer__copyright {
    margin-top: 0;
}

@media (min-width: 992px) {
    /* Geometry stays constant while AdminLTE animates the sidebar width. */
    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer {
        padding-right: 9px;
        padding-left: 9px;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer__app {
        box-sizing: border-box;
        width: 50px;
        min-height: 50px;
        margin-right: auto;
        margin-left: 3px;
        padding: 6px;
        border-radius: 11px;
        justify-content: center;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer__app-copy,
    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer__copyright-copy {
        max-width: 0;
        margin-left: 0;
        opacity: 0;
        transform: translateX(-6px);
        visibility: hidden;
        transition-delay: 0s, 0s, 0s, 0s, .18s;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer__app-arrow {
        max-width: 0;
        margin-left: 0;
        opacity: 0;
        visibility: hidden;
        transition-delay: 0s, 0s, 0s, .18s;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar .lte-sidebar-footer__copyright a {
        box-sizing: border-box;
        width: 50px;
        margin-right: auto;
        margin-left: 3px;
        padding-left: 0;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .main-sidebar.lte-main-sidebar--has-footer {
        height: var(--lte-sidebar-visual-height, 100dvh) !important;
        min-height: 0 !important;
        max-height: var(--lte-sidebar-visual-height, 100dvh) !important;
    }

    .lte-sidebar-footer {
        padding-bottom: max(9px, env(safe-area-inset-bottom));
    }

    /* The configured bottom menu stays immediately above the fixed footer.
       Expanded primary branches have the higher layer and can cover it. */
    .lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-mobile-bottom {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100%;
        margin: 0 !important;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        transition: opacity .14s ease, transform .14s ease, visibility 0s linear;
    }

    .lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-mobile-bottom.lte-sidebar-secondary--covered {
        pointer-events: none;
        opacity: 0;
        transform: translateY(8px);
        visibility: hidden;
        transition-delay: 0s, 0s, .14s;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 991.98px) {
        .main-sidebar.lte-main-sidebar--has-footer {
            height: var(--lte-sidebar-visual-height, 100vh) !important;
            max-height: var(--lte-sidebar-visual-height, 100vh) !important;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .lte-sidebar-footer__app,
    .lte-sidebar-footer__app-copy,
    .lte-sidebar-footer__app-arrow,
    .lte-sidebar-footer__copyright-copy {
        transition: none;
    }

    .lte-sidebar-scroll--has-footer > .lte-sidebar-secondary-mobile-bottom {
        transition: none;
    }
}
