/* Shared application chrome for the Material system theme. */
.system-material-only {
    display: none !important;
}

html[data-system-theme="material"] .system-material-only {
    display: inline-flex !important;
}

html[data-system-theme="material"] .system-current-only {
    display: none !important;
}

/* Top application header */
html[data-system-theme="material"] #header_Menu {
    position: sticky;
    top: 0;
    z-index: 10001;
    width: 100%;
}

html[data-system-theme="material"] #header_Menu .system-app-header {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0;
    padding: 7px 22px !important;
    border-radius: 0 !important;
    background: linear-gradient(112deg, #247ee8 0%, #4438db 48%, #247ee8 100%) !important;
    box-shadow: 0 3px 14px rgba(31, 48, 121, .22);
}

html[data-system-theme="material"] #header_Menu .system-header-menu {
    display: flex;
    align-items: center;
}

html[data-system-theme="material"] #header_Menu .hamburger {
    display: inline-flex;
    width: 42px;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
}

html[data-system-theme="material"] #header_Menu .hamburger-box {
    width: 21px;
    height: 16px;
}

html[data-system-theme="material"] #header_Menu .hamburger-inner,
html[data-system-theme="material"] #header_Menu .hamburger-inner::before,
html[data-system-theme="material"] #header_Menu .hamburger-inner::after {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #fff !important;
}

html[data-system-theme="material"] #header_Menu .hamburger-inner::before {
    top: -7px;
}

html[data-system-theme="material"] #header_Menu .hamburger-inner::after {
    bottom: -7px;
}

html[data-system-theme="material"] #header_Menu .system-header-divider {
    width: 1px;
    height: 28px;
    margin: 0 16px;
    background: rgba(255, 255, 255, .28);
}

html[data-system-theme="material"] #header_Menu .system-header-brand {
    width: 39px;
    min-width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, #4035dd, #263bd0);
    color: #fff;
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(25, 32, 137, .22);
}

html[data-system-theme="material"] #header_Menu .system-page-title {
    display: flex;
    min-width: 0;
    align-items: center;
}

html[data-system-theme="material"] #header_Menu #currentformname {
    overflow: hidden;
    color: #fff !important;
    font-size: 1.08rem !important;
    font-style: normal;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-system-theme="material"] #header_Menu .system-header-spacer {
    flex: 1 1 auto;
}

html[data-system-theme="material"] #header_Menu .system-notification-icon {
    position: relative;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.18rem;
}

html[data-system-theme="material"] #header_Menu .system-notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: #ff684e;
}

html[data-system-theme="material"] #header_Menu .system-header-notification {
    display: flex;
    align-items: center;
}

html[data-system-theme="material"] #header_Menu .system-user-area {
    display: flex !important;
    min-width: 0;
    align-items: center !important;
    gap: 8px;
    margin-left: 9px;
    padding: 0 !important;
}

html[data-system-theme="material"] #header_Menu .system-user-avatar {
    width: 38px;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: #fff;
    color: #4851aa;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
}

html[data-system-theme="material"] #header_Menu .system-user-name {
    max-width: 180px;
    margin: 0 !important;
    overflow: hidden;
    color: #fff !important;
    font-size: .82rem !important;
    font-style: normal;
    font-weight: 650 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-system-theme="material"] #header_Menu .system-user-chevron {
    color: rgba(255, 255, 255, .88);
    font-size: .7rem;
}

html[data-system-theme="material"] #header_Menu .system-user-divider {
    margin: 0 8px 0 4px;
}

html[data-system-theme="material"] #header_Menu .system-logout {
    display: inline-flex;
    width: 37px;
    min-width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-system-theme="material"] #header_Menu .system-logout i {
    color: #fff !important;
    font-size: 1.25rem !important;
}

/* Fixed bottom navigation */
html[data-system-theme="material"] .system-bottom-nav {
    z-index: 9997;
    height: 78px;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #dddfea !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -3px 16px rgba(34, 39, 76, .1) !important;
    backdrop-filter: blur(12px);
}

html[data-system-theme="material"] .system-bottom-nav .system-bottom-nav-inner {
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    align-items: stretch;
    justify-content: space-around !important;
    margin: 0;
    padding: 0 18px;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link {
    position: relative;
    display: flex;
    min-width: 84px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    padding: 7px 8px 5px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66708b !important;
    line-height: 1.1;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link::before {
    position: absolute;
    top: 0;
    left: 24%;
    width: 52%;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: transparent;
    content: "";
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link .mx-auto {
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link i {
    color: inherit !important;
    font-style: normal;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link .mx-auto > i {
    font-size: 1.28rem !important;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link > div > div:last-child {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: .68rem !important;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link.active {
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(83, 72, 231, .08), rgba(83, 72, 231, .14)) !important;
    color: #4438db !important;
}

html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link.active::before {
    background: #4b3fe4;
}

/* Material side drawer and backdrop */
html[data-system-theme="material"] .hc-offcanvas-nav {
    top: 64px !important;
    height: calc(100dvh - 64px) !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

html[data-system-theme="material"] .hc-offcanvas-nav::after {
    background: rgba(38, 50, 76, .48) !important;
    backdrop-filter: blur(1px);
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-container {
    top: 64px !important;
    width: min(340px, 88vw) !important;
    height: calc(100dvh - 64px) !important;
    border-right: 1px solid #e2e5ed;
    background: #fff !important;
    box-shadow: 8px 0 28px rgba(31, 39, 67, .18) !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav :is(.nav-wrapper, .nav-content, ul) {
    background: #fff !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-content {
    position: relative;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content {
    padding-bottom: 116px;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-title {
    position: relative;
    display: flex;
    height: 112px;
    align-items: center;
    margin: 0 !important;
    padding: 25px 52px 25px 90px !important;
    border-bottom: 1px solid #eceef3 !important;
    background: #fff !important;
    color: #171b37 !important;
    font-size: 1.02rem !important;
    font-weight: 750 !important;
    line-height: 1.1;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-title::before {
    position: absolute;
    top: 29px;
    left: 28px;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #5142ec, #3138d5);
    color: #fff;
    content: "M";
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 5px 13px rgba(57, 54, 205, .22);
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-title::after {
    position: absolute;
    top: 58px;
    left: 90px;
    color: #6f7489;
    content: "Management Console";
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 0;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-title + .nav-close a:not(.has-label) {
    top: -112px !important;
    width: 48px;
    height: 112px !important;
    border: 0 !important;
    background: transparent !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-close-button span::before,
html[data-system-theme="material"] .hc-offcanvas-nav .nav-close-button span::after {
    width: 8px;
    height: 8px;
    border-color: #697086 !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li > .nav-item-wrapper {
    margin: 0;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li > .nav-item-wrapper > .nav-item-link {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 16px;
    margin: 0 !important;
    padding: 12px 48px 12px 28px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f1f5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #252c50 !important;
    font-size: .82rem;
    font-weight: 600;
}

html[data-system-theme="material"] .hc-offcanvas-nav .system-section-icon {
    width: 25px;
    min-width: 25px;
    align-items: center;
    justify-content: center;
    color: #3f4b75;
    font-size: 1.13rem;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-next {
    width: 45px;
    border: 0 !important;
    background: transparent !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-next span::before,
html[data-system-theme="material"] .hc-offcanvas-nav .nav-back span::before {
    width: 7px;
    height: 7px;
    border-width: 2px;
    border-color: #737b93 !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li > .nav-item-wrapper > .nav-item-link:hover,
html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li.system-current-section > .nav-item-wrapper > .nav-item-link {
    background: linear-gradient(90deg, #eef0ff, #f8f8ff) !important;
    color: #3e3bd2 !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li.system-current-section > .nav-item-wrapper > .nav-item-link::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #493ee7;
    content: "";
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li.system-current-section .system-section-icon {
    color: #493ee7;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-title,
html[data-system-theme="material"] .hc-offcanvas-nav .level-title {
    height: 58px;
    padding: 17px 48px !important;
    background: #f5f5fb !important;
    font-size: .84rem !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-title::before,
html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-title::after,
html[data-system-theme="material"] .hc-offcanvas-nav .level-title::before,
html[data-system-theme="material"] .hc-offcanvas-nav .level-title::after {
    display: none;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-item-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    margin: 2px 8px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #414760 !important;
    font-size: .76rem;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-item-link:hover,
html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .nav-item-link.system-active-link {
    background: #eeecff !important;
    color: #4438dc !important;
}

html[data-system-theme="material"] .hc-offcanvas-nav .nav-wrapper:not(.nav-wrapper-0) .metismenu-icon {
    position: static;
    width: 26px;
    margin-right: 9px !important;
    color: inherit;
    font-size: .94rem;
    text-align: center;
}

html[data-system-theme="material"] .hc-offcanvas-nav .system-support-item {
    position: absolute;
    right: 0;
    bottom: 55px;
    left: 0;
    width: 100%;
    border-top: 1px solid #e8eaf0;
    background: #fff;
}

html[data-system-theme="material"] .hc-offcanvas-nav .system-support-item > .nav-item-wrapper > .nav-item-link,
html[data-system-theme="material"] .hc-offcanvas-nav .system-support-item > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 15px;
    padding: 12px 28px !important;
    border: 0 !important;
    background: #fff !important;
    color: #36405e !important;
    font-size: .78rem;
    font-weight: 600;
}

html[data-system-theme="material"] .hc-offcanvas-nav .system-support-item i {
    font-size: 1rem;
}

html[data-system-theme="material"] .hc-offcanvas-nav .version-info {
    position: absolute !important;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    gap: 15px;
    padding: 12px 28px !important;
    border-top: 1px solid #eef0f4;
    background: #fff !important;
    color: #5f667d !important;
    font-size: .73rem;
    font-style: normal;
}

html[data-system-theme="material"] .hc-offcanvas-nav .version-info i {
    position: static;
    width: auto;
    margin: 0 !important;
    color: inherit;
    font-size: 1rem;
}

/* Keep page content clear of the fixed Material footer. */
html[data-system-theme="material"] .app-main__outer {
    padding-bottom: 78px;
}

@media (max-width: 700px) {
    html[data-system-theme="material"] #header_Menu .system-app-header {
        min-height: 54px;
        padding: 5px 8px !important;
    }

    html[data-system-theme="material"] #header_Menu .hamburger {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    html[data-system-theme="material"] #header_Menu .system-header-divider {
        height: 23px;
        margin: 0 8px;
    }

    html[data-system-theme="material"] #header_Menu .system-header-brand {
        width: 34px;
        min-width: 34px;
        height: 34px;
        margin-right: 8px;
        font-size: .95rem;
    }

    html[data-system-theme="material"] #header_Menu #currentformname {
        max-width: 116px;
        font-size: .83rem !important;
    }

    html[data-system-theme="material"] #header_Menu .system-notification-icon {
        width: 31px;
        height: 34px;
        font-size: 1rem;
    }

    html[data-system-theme="material"] #header_Menu .system-header-notification {
        display: none;
    }

    html[data-system-theme="material"] #header_Menu .system-user-area {
        gap: 4px;
        margin-left: 2px;
    }

    html[data-system-theme="material"] #header_Menu .system-user-avatar {
        width: 32px;
        min-width: 32px;
        height: 32px;
        font-size: .66rem;
    }

    html[data-system-theme="material"] #header_Menu .system-user-name,
    html[data-system-theme="material"] #header_Menu .system-user-chevron,
    html[data-system-theme="material"] #header_Menu .system-user-divider {
        display: none !important;
    }

    html[data-system-theme="material"] #header_Menu .system-logout {
        width: 31px;
        min-width: 31px;
        height: 34px;
    }

    html[data-system-theme="material"] #header_Menu .system-logout i {
        font-size: 1.05rem !important;
    }

    html[data-system-theme="material"] .system-bottom-nav {
        height: 64px;
    }

    html[data-system-theme="material"] .system-bottom-nav .system-bottom-nav-inner {
        padding: 0 2px;
    }

    html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link {
        min-width: 0;
        margin: 0 1px;
        padding: 5px 2px 3px !important;
    }

    html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link .mx-auto > i {
        font-size: 1rem !important;
    }

    html[data-system-theme="material"] .system-bottom-nav .footerMenu > .nav-link > div > div:last-child {
        font-size: .52rem !important;
    }

    html[data-system-theme="material"] .hc-offcanvas-nav {
        top: 54px !important;
        height: calc(100dvh - 54px) !important;
    }

    html[data-system-theme="material"] .hc-offcanvas-nav .nav-container {
        top: 54px !important;
        height: calc(100dvh - 54px) !important;
    }

    html[data-system-theme="material"] .app-main__outer {
        padding-bottom: 64px;
    }
}

