.app-shell-topnav {
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    padding: 0 1rem;
}

#layout-wrapper.app-shell {
    --app-shell-topbar-height: 70px;
}

#layout-wrapper.app-shell #page-topbar {
    background: #ffffff;
    border-bottom: 1px solid #dfe5ec;
    box-shadow: 0 1px 8px rgba(31, 45, 61, 0.05);
    min-height: var(--app-shell-topbar-height);
}

body.app-shell[data-topbar=dark] #page-topbar,
body.app-shell[data-topbar=colored] #page-topbar {
    background: #ffffff;
}

body.app-shell[data-topbar=dark] .header-item,
body.app-shell[data-topbar=colored] .header-item,
body.app-shell[data-topbar=dark] .header-item:hover,
body.app-shell[data-topbar=colored] .header-item:hover,
body.app-shell[data-topbar=dark] .noti-icon i,
body.app-shell[data-topbar=colored] .noti-icon i {
    color: #4f5d73;
}

#page-topbar .app-shell-header-right .header-item,
#page-topbar .app-shell-header-right .header-item span,
#page-topbar .app-shell-header-right .header-item i {
    color: #0f89a4 !important;
}

#page-topbar .app-shell-header-right .header-item:hover,
#page-topbar .app-shell-header-right .header-item:focus {
    background: rgba(15, 137, 164, 0.1);
    color: #0e6d87 !important;
}

body.app-shell[data-topbar=dark] .logo-dark,
body.app-shell[data-topbar=colored] .logo-dark {
    display: block;
}

body.app-shell[data-topbar=dark] .logo-light,
body.app-shell[data-topbar=colored] .logo-light {
    display: none;
}

#layout-wrapper.app-shell .vertical-menu {
    height: calc(100vh - var(--app-shell-topbar-height));
    min-height: calc(100vh - var(--app-shell-topbar-height));
    overflow: hidden;
    top: var(--app-shell-topbar-height);
}

#layout-wrapper.app-shell .vertical-menu [data-simplebar] {
    height: 100% !important;
}

#layout-wrapper.app-shell .vertical-menu .simplebar-wrapper,
#layout-wrapper.app-shell .vertical-menu .simplebar-mask,
#layout-wrapper.app-shell .vertical-menu .simplebar-offset,
#layout-wrapper.app-shell .vertical-menu .simplebar-content-wrapper {
    height: 100%;
}

#layout-wrapper.app-shell .vertical-menu .simplebar-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

#layout-wrapper.app-shell .page-content {
    padding-top: calc(var(--app-shell-topbar-height) + 24px);
}

#layout-wrapper.app-shell.app-shell--global .vertical-menu {
    display: none;
}

#layout-wrapper.app-shell.app-shell--global .main-content {
    margin-left: 0;
}

#layout-wrapper.app-shell.app-shell--global .footer {
    left: 0;
}

.app-shell-header-nav {
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    overflow: visible;
    padding: 0;
}

.app-shell-nav-groups {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    height: 100%;
    min-width: 0;
}

.app-shell-nav-group {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    height: 100%;
    min-width: 0;
}

#page-topbar .app-shell-header-nav .app-shell-nav {
    gap: 0;
    height: 100%;
    padding: 0;
    flex-wrap: nowrap;
}

#page-topbar .app-shell-header-nav .nav-link {
    align-items: center;
    border-left: 1px solid #e6ebf0;
    border-radius: 0;
    color: #526176;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.5rem;
    height: 70px;
    padding: 0 1rem;
    white-space: nowrap;
}

#page-topbar .app-shell-header-nav .app-shell-nav-group:last-child .nav-link:last-child {
    border-right: 1px solid #e6ebf0;
}

#page-topbar .app-shell-header-nav .nav-link:hover,
#page-topbar .app-shell-header-nav .nav-link:focus {
    background: #eef6f8;
    color: #117d9b;
}

#page-topbar .app-shell-header-nav .active .nav-link {
    background: #e7f3f6;
    box-shadow: inset 0 -3px 0 #117d9b;
    color: #117d9b;
}

#page-topbar .app-shell-header-nav .nav-item--admin .nav-link {
    background: transparent;
    box-shadow: none;
    color: #805c13;
}

#page-topbar .app-shell-header-nav .nav-item--admin .nav-link:hover,
#page-topbar .app-shell-header-nav .nav-item--admin .nav-link:focus {
    background: #fff7e8;
    color: #7b5303;
}

#page-topbar .app-shell-header-nav .nav-item--admin.active .nav-link {
    background: #fff3d8;
    box-shadow: inset 0 -3px 0 #d99a1e;
    color: #7b5303;
}

#page-topbar .app-shell-header-nav .menu-icon {
    filter: none;
    opacity: 0.78;
}

.app-shell-header {
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-areas: "left right";
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 70px;
    padding-right: 0.75rem;
}

.app-shell-nav-dropdown {
    border: 1px solid #dfe5ec;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px rgba(31, 45, 61, 0.12);
    margin-top: 0;
    min-width: 220px;
    padding: 0.35rem 0;
}

.app-shell-nav-dropdown .dropdown-item {
    color: #526176;
    font-weight: 650;
    padding: 0.55rem 1rem;
}

.app-shell-nav-dropdown .dropdown-item:hover,
.app-shell-nav-dropdown .dropdown-item:focus {
    background: #eef6f8;
    color: #117d9b;
}

.app-shell-nav-dropdown .dropdown-item.active,
.app-shell-nav-dropdown .dropdown-item:active {
    background: #e7f3f6;
    color: #117d9b;
}

.app-shell-header-left {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    grid-area: left;
    min-width: 0;
}

.app-shell-header-center {
    display: none;
}

.app-shell-header-right {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    grid-area: right;
    justify-content: flex-end;
    min-width: 0;
}

.app-shell-page-title {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.app-shell-page-title h2 {
    color: #263241;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
    white-space: nowrap;
}

.app-shell-header-pane {
    flex: 1 1 auto;
    max-width: 780px;
    min-width: 0;
}

.app-shell-context-pane,
.app-shell-context-pane > div,
.app-shell-context-pane .DNNContainer_noTitle,
.app-shell-context-pane .DNNModuleContent {
    min-width: 0;
}

.app-shell-context-pane .DnnModule,
.app-shell-context-pane .DNNContainer_noTitle,
.app-shell-context-pane .DNNModuleContent {
    margin: 0;
}

.app-shell-context-pane .Normal {
    margin: 0;
}

.app-shell-context-pane .Normal > *:last-child {
    margin-bottom: 0;
}

.app-shell-context-pane .card,
.app-shell-context-pane .crosswalk-header-name-info {
    background: #f7f9fb;
    border: 1px solid #e4eaf0;
    border-radius: 14px;
    box-shadow: none;
    color: #344155;
    margin: 0;
    min-height: 0;
    padding: 0.55rem 0.9rem !important;
}

.app-shell-context-pane .card *,
.app-shell-context-pane .crosswalk-header-name-info * {
    color: inherit;
}

.app-shell-context-pane .crosswalk-header-name-info,
.app-shell-context-pane .perspectives-header-name-info {
    font-size: 0.95rem;
    line-height: 1.35;
}

.app-shell-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.65rem 0;
}

.app-shell-nav .nav-link {
    align-items: center;
    border-radius: 0.85rem;
    color: #4f5d73;
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.app-shell-nav .nav-link:hover,
.app-shell-nav .nav-link:focus {
    background: #f3f6f9;
    color: #117d9b;
}

.app-shell-nav .active .nav-link {
    background: rgba(17, 125, 155, 0.12);
    color: #117d9b;
}

.app-shell-nav .menu-icon {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

.app-shell-section-index {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 1.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.7rem;
    justify-content: center;
    line-height: 1;
    width: 1.7rem;
}

#layout-wrapper.app-shell.app-shell--crosswalk-sections {
    --app-shell-topbar-height: 126px;
}

#layout-wrapper.app-shell.app-shell--crosswalk-sections .vertical-menu {
    display: none;
}

#layout-wrapper.app-shell.app-shell--crosswalk-sections .main-content {
    margin-left: 0;
}

#layout-wrapper.app-shell.app-shell--crosswalk-sections .footer {
    left: 0;
}

.app-shell-section-nav {
    background: #ffffff;
    border-top: 1px solid #8a118a;
    box-shadow: 0 8px 18px rgba(69, 0, 74, 0.08);
    padding: 0.55rem 1rem;
}

.app-shell-section-nav__inner {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.app-shell-section-nav__label {
    color: #7a0d88;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.app-shell-section-menu {
    flex: 1 1 auto;
    min-width: 0;
}

#crosswalk-menu.app-shell-section-menu {
    margin-bottom: 0;
}

.app-shell-section-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.app-shell-section-list li {
    flex: 0 0 auto;
}

.app-shell-section-list a {
    align-items: center;
    border-radius: 0.85rem;
    color: #4f4354 !important;
    display: flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.55rem;
    min-height: 2.45rem;
    padding: 0.45rem 0.75rem 0.45rem 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.app-shell-section-list a:hover,
.app-shell-section-list a:focus,
.app-shell-section-list li.mm-active > a,
.app-shell-section-list a.active {
    background: rgba(138, 13, 150, 0.12);
    box-shadow: inset 0 0 0 1px rgba(138, 13, 150, 0.14);
    color: #7a0d88 !important;
}

.app-shell-section-list .app-shell-section-index {
    background: rgba(138, 13, 150, 0.1);
    border-color: rgba(138, 13, 150, 0.18);
    color: #7a0d88;
}

.app-shell-section-list li.mm-active .app-shell-section-index,
.app-shell-section-list a.active .app-shell-section-index,
.app-shell-section-list a:hover .app-shell-section-index,
.app-shell-section-list a:focus .app-shell-section-index {
    background: #7a0d88;
    border-color: #7a0d88;
    color: #ffffff;
}

.app-shell-section-extra {
    flex: 0 1 auto;
    min-width: 0;
}

.app-shell-section-extra:empty {
    display: none;
}

#perspectives-menu,
#crosswalk-menu {
    margin-bottom: 1rem;
}

#perspectives-menu #sidebar-menu,
#crosswalk-menu #sidebar-menu {
    padding: 0;
}

#perspectives-menu .menu-title,
#crosswalk-menu .menu-title {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 1;
    padding: 0.95rem 1.5rem 0.4rem !important;
}

#perspectives-menu #sidebar-menu ul li a,
#crosswalk-menu #sidebar-menu ul li a {
    align-items: center;
    color: rgba(255, 255, 255, 0.92) !important;
    display: flex;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 0.75rem;
    padding: 0.72rem 1.5rem;
}

#perspectives-menu #sidebar-menu ul li a:hover,
#perspectives-menu #sidebar-menu ul li.mm-active > a,
#crosswalk-menu #sidebar-menu ul li a:hover,
#crosswalk-menu #sidebar-menu ul li.mm-active > a {
    color: #ffffff !important;
}

#perspectives-menu #sidebar-menu ul li ul.sub-menu li a,
#crosswalk-menu #sidebar-menu ul li ul.sub-menu li a {
    font-size: 0.9rem;
    padding-left: 3rem;
}

#perspectives-menu .menu-icon,
#crosswalk-menu .menu-icon {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

.app-shell--perspectives #perspectives-menu {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.app-shell--perspectives #perspectives-menu #sidebar-menu ul li a:hover,
.app-shell--perspectives #perspectives-menu #sidebar-menu ul li.mm-active > a {
    background: rgba(6, 51, 65, 0.24);
}

.app-shell--perspectives .vertical-menu {
    background: linear-gradient(180deg, #0f89a4 0%, #0e6d87 100%);
    width: 290px;
}

.app-shell--perspectives .main-content {
    margin-left: 290px;
}

.app-shell--perspectives .footer {
    left: 290px;
}

.app-shell--crosswalk #crosswalk-menu {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.app-shell--crosswalk #crosswalk-menu #sidebar-menu ul li a:hover,
.app-shell--crosswalk #crosswalk-menu #sidebar-menu ul li.mm-active > a {
    background: rgba(69, 0, 74, 0.28);
}

.app-shell--crosswalk .vertical-menu {
    background: linear-gradient(180deg, #a30d96 0%, #7a0d88 100%);
}

.app-shell--crosswalk .app-shell-nav .nav-link:hover,
.app-shell--crosswalk .app-shell-nav .nav-link:focus,
.app-shell--crosswalk .app-shell-nav .active .nav-link {
    color: #8a0d96;
}

.app-shell--crosswalk .app-shell-nav .active .nav-link {
    background: rgba(138, 13, 150, 0.12);
}

#page-topbar .app-shell--crosswalk .app-shell-nav .nav-link:hover,
#page-topbar .app-shell--crosswalk .app-shell-nav .nav-link:focus,
#page-topbar .app-shell--crosswalk .app-shell-nav .active .nav-link,
.app-shell--crosswalk #page-topbar .app-shell-nav .nav-link:hover,
.app-shell--crosswalk #page-topbar .app-shell-nav .nav-link:focus,
.app-shell--crosswalk #page-topbar .app-shell-nav .active .nav-link {
    color: #8a0d96;
}

.app-shell--crosswalk #page-topbar .app-shell-nav .nav-link:hover,
.app-shell--crosswalk #page-topbar .app-shell-nav .nav-link:focus {
    background: #f8ecf9;
}

.app-shell--crosswalk #page-topbar .app-shell-nav .active .nav-link {
    background: #f4e4f6;
    box-shadow: inset 0 -3px 0 #8a0d96;
}

.app-shell--crosswalk .app-shell-nav-dropdown .dropdown-item:hover,
.app-shell--crosswalk .app-shell-nav-dropdown .dropdown-item:focus,
.app-shell--crosswalk .app-shell-nav-dropdown .dropdown-item.active,
.app-shell--crosswalk .app-shell-nav-dropdown .dropdown-item:active {
    background: #f4e4f6;
    color: #8a0d96;
}

.app-shell--perspectives .perspectives-section-definitions-navbar,
.app-shell--crosswalk .cross-walk-section-definitions-navbar {
    display: none !important;
}

@media (max-width: 992px) {
    #layout-wrapper.app-shell {
        --app-shell-topbar-height: 128px;
    }

    #layout-wrapper.app-shell.app-shell--crosswalk-sections {
        --app-shell-topbar-height: 186px;
    }

    .app-shell-header {
        gap: 0.5rem;
        grid-template-areas:
            "left right"
            "nav nav"
            "center center";
        grid-template-columns: minmax(0, 1fr) auto;
        padding-right: 0.5rem;
    }

    .app-shell-header-left {
        display: contents;
    }

    .app-shell-header-left .navbar-brand-box {
        grid-area: left;
    }

    .app-shell-header-left .app-shell-header-nav {
        grid-area: nav;
        padding: 0 0.75rem 0.5rem;
        width: 100%;
    }

    .app-shell-header-center {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0 1rem 0.75rem 1rem;
    }

    .app-shell-page-title {
        width: 100%;
    }

    .app-shell-page-title h2 {
        font-size: 1rem;
    }

    .app-shell-header-pane {
        max-width: none;
        width: 100%;
    }

    .app-shell-topnav {
        padding: 0 0.75rem;
    }

    .app-shell-header-nav {
        padding: 0;
    }

    .app-shell-nav-groups {
        gap: 0.25rem;
    }

    .app-shell-nav-group {
        align-items: flex-start;
        gap: 0.25rem;
        width: auto;
    }

    .app-shell-nav {
        gap: 0.1rem;
        padding: 0.4rem 0;
    }

    .app-shell-nav .nav-link {
        font-size: 0.88rem;
        padding: 0.5rem 0.7rem;
    }

    #perspectives-menu,
    #crosswalk-menu {
        border-radius: 0;
        margin-bottom: 0;
    }

    .app-shell-section-nav {
        padding: 0.55rem 0.75rem;
    }

    .app-shell-section-nav__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .app-shell-section-menu {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .app-shell-section-list {
        flex-wrap: nowrap;
        width: max-content;
    }

    .app-shell-section-list a {
        font-size: 0.86rem;
        min-height: 2.25rem;
        padding-right: 0.65rem;
    }
}
