/* =========================================================
   DTX App Shell v1.3.0
   Enterprise UI Adoption Layer
   ========================================================= */

body.dtx-ui-adoption-active {
    --dtx-shell-bg: #eef3f8;
    --dtx-shell-card: #ffffff;
    --dtx-shell-ink: #122033;
    --dtx-shell-muted: #64748b;
    --dtx-shell-line: #d9e3ee;
    --dtx-shell-primary: #0f4c81;
    --dtx-shell-primary-2: #1f7fc8;
    --dtx-shell-radius: 18px;
    --dtx-shell-shadow: 0 12px 28px rgba(15, 35, 55, .10);
    background: var(--dtx-shell-bg) !important;
}

/* Theme containment: App Shell becomes the page authority on registered routes. */
body.dtx-ui-adoption-active #page,
body.dtx-ui-adoption-active .site,
body.dtx-ui-adoption-active .site-content,
body.dtx-ui-adoption-active .inside-article,
body.dtx-ui-adoption-active .entry-content,
body.dtx-ui-adoption-active .site-main {
    background: transparent !important;
}

body.dtx-ui-adoption-active .site-content,
body.dtx-ui-adoption-active .content_wrap,
body.dtx-ui-adoption-active .content,
body.dtx-ui-adoption-active #primary,
body.dtx-ui-adoption-active .content-area {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.dtx-ui-adoption-active .site-content,
body.dtx-ui-adoption-active .page_content_wrap {
    padding: clamp(12px, 2vw, 28px) clamp(10px, 2vw, 22px) 42px !important;
}

body.dtx-ui-adoption-active .inside-article,
body.dtx-ui-adoption-active .entry-content {
    padding: 0 !important;
}

body.dtx-ui-adoption-active .site-header,
body.dtx-ui-adoption-active .top_panel_wrap,
body.dtx-ui-adoption-active .header_mobile {
    border-bottom: 1px solid var(--dtx-shell-line) !important;
    background: #fff !important;
}

body.dtx-ui-adoption-active .site-branding,
body.dtx-ui-adoption-active .contact_logo,
body.dtx-ui-adoption-active .logo {
    max-width: 1180px;
}

/* Shared DTX components. */
body.dtx-ui-adoption-active .dtx-page,
body.dtx-ui-adoption-active .dtx-card,
body.dtx-ui-adoption-active .dtx-enterprise-panel,
body.dtx-ui-adoption-active .entry-content>form,
body.dtx-ui-adoption-active .entry-content>.wp-block-group,
body.dtx-ui-adoption-active .po-request-form,
body.dtx-ui-adoption-active .purchase-order-request,
body.dtx-ui-adoption-active .pony-racking-ui,
body.dtx-ui-adoption-active .pony-rack-page,
body.dtx-ui-adoption-active .lpgb-dashboard-wrapper,
body.dtx-ui-adoption-active #lpgb-empdash-wrapper {
    background: var(--dtx-shell-card) !important;
    border: 1px solid var(--dtx-shell-line) !important;
    border-radius: var(--dtx-shell-radius) !important;
    box-shadow: var(--dtx-shell-shadow) !important;
}

body.dtx-ui-adoption-active .entry-content>form,
body.dtx-ui-adoption-active .po-request-form,
body.dtx-ui-adoption-active .purchase-order-request,
body.dtx-ui-adoption-active .pony-racking-ui,
body.dtx-ui-adoption-active .pony-rack-page,
body.dtx-ui-adoption-active .lpgb-dashboard-wrapper,
body.dtx-ui-adoption-active #lpgb-empdash-wrapper {
    padding: clamp(16px, 3vw, 30px) !important;
    margin: 0 auto 22px !important;
}

body.dtx-ui-adoption-active h1,
body.dtx-ui-adoption-active h2,
body.dtx-ui-adoption-active h3 {
    color: var(--dtx-shell-ink);
    letter-spacing: -.025em;
}

body.dtx-ui-adoption-active button,
body.dtx-ui-adoption-active input[type="submit"],
body.dtx-ui-adoption-active input[type="button"],
body.dtx-ui-adoption-active .button,
body.dtx-ui-adoption-active .dtx-btn,
body.dtx-ui-adoption-active .pony-dc-btn,
body.dtx-ui-adoption-active .wp-block-button__link {
    min-height: 44px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--dtx-shell-primary) !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 11px 18px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 76, 129, .20) !important;
}

body.dtx-ui-adoption-active input[type="text"],
body.dtx-ui-adoption-active input[type="email"],
body.dtx-ui-adoption-active input[type="number"],
body.dtx-ui-adoption-active input[type="tel"],
body.dtx-ui-adoption-active input[type="date"],
body.dtx-ui-adoption-active input[type="password"],
body.dtx-ui-adoption-active select,
body.dtx-ui-adoption-active textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd8e5 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--dtx-shell-ink) !important;
    padding: 11px 14px !important;
    box-shadow: inset 0 1px 2px rgba(15, 35, 55, .05) !important;
}

body.dtx-ui-adoption-active textarea {
    min-height: 112px;
    border-radius: 18px !important;
}

body.dtx-ui-adoption-active table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    overflow: hidden;
}

body.dtx-ui-adoption-active th {
    background: var(--dtx-shell-primary) !important;
    color: #fff !important;
    font-weight: 850 !important;
}

body.dtx-ui-adoption-active th,
body.dtx-ui-adoption-active td {
    padding: 11px 12px !important;
    border-bottom: 1px solid var(--dtx-shell-line) !important;
}

/* LPGB adapter */
body.dtx-adapter-lpgb .lpgb-dashboard-wrapper {
    max-width: 1100px !important;
}

body.dtx-adapter-lpgb .lpgb-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

body.dtx-adapter-lpgb .lpgb-course,
body.dtx-adapter-lpgb .lpgb-course-card,
body.dtx-adapter-lpgb .lpgb-dashboard-content>.lpgb-dash>.lpgb-course {
    background: #fff !important;
    border: 1px solid var(--dtx-shell-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 35, 55, .06) !important;
    overflow: hidden !important;
}

body.dtx-adapter-lpgb .lpgb-announcement,
body.dtx-adapter-lpgb .lpgb-group-header {
    border-radius: 12px !important;
}

/* Purchase order adapter */
body.dtx-adapter-po .entry-content>form,
body.dtx-adapter-po form[class*="po"],
body.dtx-adapter-po .po-request-form,
body.dtx-adapter-po .purchase-order-request {
    max-width: 980px !important;
}

body.dtx-adapter-po .entry-content>h1,
body.dtx-adapter-po .entry-title {
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Calendar adapter */
body.dtx-adapter-calendar .entry-content>form,
body.dtx-adapter-calendar .pony-calendar-form,
body.dtx-adapter-calendar .calendar-form {
    max-width: 880px !important;
}

/* Racking adapter */
body.dtx-adapter-racking .pony-rack-nav,
body.dtx-adapter-racking .rack-nav,
body.dtx-adapter-racking .pony-racking-tabs {
    border-radius: 14px !important;
    overflow-x: auto;
}

/* Enterprise portal navigation */
.dtx-enterprise-portal {
    position: fixed;
    z-index: 99998;
    top: max(68px, calc(env(safe-area-inset-top, 0px) + 62px));
    right: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.admin-bar .dtx-enterprise-portal {
    top: max(88px, calc(env(safe-area-inset-top, 0px) + 84px));
}

.dtx-enterprise-portal__button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 14px !important;
    background: #09182b !important;
    color: #fff !important;
    padding: 11px 16px !important;
    box-shadow: var(--dtx-shell-shadow) !important;
    min-height: 44px !important;
    width: auto !important;
}

.dtx-enterprise-portal__panel {
    position: absolute;
    top: 54px;
    right: 0;
    width: min(92vw, 420px);
    max-height: min(72vh, 720px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--dtx-shell-line);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(7, 20, 35, .28);
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.dtx-enterprise-portal.is-open .dtx-enterprise-portal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dtx-enterprise-portal__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #09182b;
    color: #fff;
}

.dtx-enterprise-portal__close {
    width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: var(--dtx-shell-primary-2) !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.dtx-enterprise-portal__body {
    padding: 14px;
}

.dtx-enterprise-nav-section+.dtx-enterprise-nav-section {
    margin-top: 18px;
}

.dtx-enterprise-nav-section h3 {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dtx-shell-muted);
}

.dtx-enterprise-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.dtx-enterprise-nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--dtx-shell-line);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--dtx-shell-ink) !important;
    text-decoration: none !important;
    font-weight: 800;
}

.dtx-enterprise-nav-card:hover,
.dtx-enterprise-nav-card.is-active {
    border-color: var(--dtx-shell-primary-2);
    background: #edf7ff;
}

.dtx-enterprise-nav-card__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
}

.dtx-enterprise-portal__scrim {
    display: none;
}

.dtx-enterprise-portal.is-open .dtx-enterprise-portal__scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
}

@media (min-width: 700px) {
    .dtx-enterprise-nav-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    body.dtx-ui-adoption-active .site-content,
    body.dtx-ui-adoption-active .page_content_wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.dtx-adapter-lpgb .lpgb-header-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .dtx-enterprise-portal {
        top: auto;
        right: 12px;
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }

    .admin-bar .dtx-enterprise-portal {
        top: auto;
    }

    .dtx-enterprise-portal__panel {
        position: fixed;
        inset: auto 10px calc(70px + env(safe-area-inset-bottom, 0px)) 10px;
        width: auto;
        max-height: 72vh;
    }
}

/* =========================================================
   DTX App Shell v0.9.1
   Site Shell + Navigation Authority Controls
   ========================================================= */
body.dtx-site-shell-active {
    background: var(--dtx-shell-bg, #eef3f8) !important;
}

body.dtx-site-shell-active #page,
body.dtx-site-shell-active .site,
body.dtx-site-shell-active .site.grid-container,
body.dtx-site-shell-active .site-content {
    max-width: none !important;
    width: 100% !important;
}

body.dtx-site-shell-active .inside-header,
body.dtx-site-shell-active .site-branding,
body.dtx-site-shell-active .contact_logo,
body.dtx-site-shell-active .logo {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.dtx-site-shell-active.dtx-hide-theme-sidebar #secondary,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .widget-area,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .sidebar,
body.dtx-site-shell-active.dtx-hide-theme-sidebar #right-sidebar,
body.dtx-site-shell-active.dtx-hide-theme-sidebar #left-sidebar,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .sidebar_show .sidebar {
    display: none !important;
    visibility: hidden !important;
}

body.dtx-site-shell-active.dtx-hide-theme-sidebar #primary,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .content-area,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .content,
body.dtx-site-shell-active.dtx-hide-theme-sidebar .site-main {
    float: none !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Navigation Authority: DTX App Shell owns navigation, not the theme. */
body.dtx-navigation-authority.dtx-hide-theme-navigation #site-navigation,
body.dtx-navigation-authority.dtx-hide-theme-navigation .main-navigation,
body.dtx-navigation-authority.dtx-hide-theme-navigation .menu_main_wrap,
body.dtx-navigation-authority.dtx-hide-theme-navigation .menu_main_nav_area,
body.dtx-navigation-authority.dtx-hide-theme-navigation .menu_main_nav {
    display: none !important;
    visibility: hidden !important;
}

body.dtx-navigation-authority.dtx-hide-theme-mobile-navigation #mobile-menu-control-wrapper,
body.dtx-navigation-authority.dtx-hide-theme-mobile-navigation .menu-toggle,
body.dtx-navigation-authority.dtx-hide-theme-mobile-navigation .header_mobile,
body.dtx-navigation-authority.dtx-hide-theme-mobile-navigation .header_mobile .side_wrap {
    display: none !important;
    visibility: hidden !important;
}

body.dtx-site-shell-active.dtx-hide-theme-header .site-header,
body.dtx-site-shell-active.dtx-hide-theme-header #masthead,
body.dtx-site-shell-active.dtx-hide-theme-header .top_panel_wrap,
body.dtx-site-shell-active.dtx-hide-theme-header .inside-header {
    display: none !important;
    visibility: hidden !important;
}

/* Pony Navigation Core compatibility suppression. */
body.dtx-navigation-authority.dtx-hide-pnc-navigation .pnc-open-button,
body.dtx-navigation-authority.dtx-hide-pnc-navigation .pnc-panel,
body.dtx-navigation-authority.dtx-hide-pnc-navigation .pnc-shell,
body.dtx-navigation-authority.dtx-hide-pnc-navigation .pnc-drawer,
body.dtx-navigation-authority.dtx-hide-pnc-navigation .pnc-overlay,
body.dtx-navigation-authority.dtx-hide-pnc-navigation [class*="pnc-"][role="dialog"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.dtx-site-shell-active.dtx-hide-theme-footer .footer-widgets,
body.dtx-site-shell-active.dtx-hide-theme-footer .site-info,
body.dtx-site-shell-active.dtx-hide-theme-footer .site-footer,
body.dtx-site-shell-active.dtx-hide-theme-footer .site-footer .footer-bar,
body.dtx-site-shell-active.dtx-hide-theme-footer .footer-bar {
    display: none !important;
    visibility: hidden !important;
}

/* Full-site pages that do not yet have plugin adapters still receive a clean enterprise container. */
body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) .site-content,
body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) .page_content_wrap {
    padding-top: clamp(16px, 3vw, 34px) !important;
}

body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) .inside-article,
body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) article.page,
body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) article.post {
    background: var(--dtx-shell-card, #fff) !important;
    border: 1px solid var(--dtx-shell-line, #d9e3ee) !important;
    border-radius: var(--dtx-shell-radius, 18px) !important;
    box-shadow: var(--dtx-shell-shadow, 0 12px 28px rgba(15, 35, 55, .10)) !important;
    overflow: hidden !important;
}

body.dtx-site-shell-mode-full_site:not(.dtx-route-registered) .inside-article {
    padding: clamp(18px, 3vw, 34px) !important;
}

/* Keep the DTX Enterprise Portal above any surviving theme or legacy navigation. */
.dtx-enterprise-portal {
    z-index: 2147483000 !important;
}

body.dtx-navigation-authority .dtx-enterprise-portal__button {
    background: var(--dtx-shell-primary, #0f4c81) !important;
}


/* DTX App Shell v0.9.1 portal trigger modes */
.dtx-enterprise-portal--off {
    display: none !important;
}

@media (min-width: 783px) {
    .dtx-enterprise-portal--auto {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 52px));
        right: 22px;
        bottom: auto;
    }

    .admin-bar .dtx-enterprise-portal--auto {
        top: max(76px, calc(env(safe-area-inset-top, 0px) + 74px));
    }
}

@media (max-width: 782px) {

    .dtx-enterprise-portal--auto,
    .dtx-enterprise-portal--floating {
        top: auto !important;
        right: 12px !important;
        bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    }

    .dtx-enterprise-portal--auto .dtx-enterprise-portal__panel,
    .dtx-enterprise-portal--floating .dtx-enterprise-portal__panel {
        position: fixed;
        inset: auto 10px calc(70px + env(safe-area-inset-bottom, 0px)) 10px;
        width: auto;
        max-height: 72vh;
    }
}

body.dtx-site-shell-active .dtx-enterprise-nav-section--pages .dtx-enterprise-nav-grid {
    grid-template-columns: 1fr;
}


/* v1.3.0 Theme Authority: optional homepage content container suppression.
   Replaces old Customizer CSS such as .home #page { display:none }. */
body.home.dtx-site-shell-active.dtx-hide-theme-content-container #page,
body.home.dtx-site-shell-active.dtx-hide-theme-content-container .site-content {
    display: none !important;
    visibility: hidden !important;
}

/* Keep horizontal overflow contained without hiding the page container. */
body.home.dtx-site-shell-active {
    overflow-x: hidden !important;
}

/* =========================================================
   Legacy v1.7.0 dtx-home-header-* state rules removed.

   The active public-header renderer now uses:
   - body.dtx-public-shell-header-active
   - body.dtx-public-shell-header-home

   Administrator-managed appearance is emitted by
   DTX_App_Shell_Rendering_Engine::public_header_appearance_css().
   ========================================================= */

body.home .dtx-enterprise-portal {
    z-index: 2147483000 !important;
}

body.dtx-navigation-layer-authority .dtx-enterprise-nav-section h3 {
    color: #25384d;
    font-weight: 900;
}

body.dtx-navigation-layer-authority .dtx-enterprise-portal__panel {
    width: min(92vw, 520px);
}

body.dtx-navigation-layer-authority .dtx-enterprise-nav-card__label {
    line-height: 1.15;
}

body.dtx-layout-secure-login .dtx-public-shell-header {
    background: #fff !important;
}

/* =========================================================
   DTX App Shell v1.8.0
   Public Navigation Authority + Registry Portal Layer
   ========================================================= */
.dtx-public-shell-header {
    position: relative;
    z-index: 2147482500;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.dtx-public-shell-header__inner {
    position: relative;
    display: block;
    width: min(100% - 44px, 1220px);
    margin: 0 auto;
    min-height: 132px;
}

.dtx-public-shell-header__brand {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    text-decoration: none !important;
    z-index: 2;
}

.dtx-public-shell-nav {
    position: absolute;
    left: 50%;
    top: 74px;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(100vw - 280px, 920px);
    z-index: 4;
}

.dtx-public-shell-menu,
.dtx-public-shell-menu ul {
    list-style: none !important;
}

.dtx-public-shell-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 2.1vw, 34px);
    margin: 0 !important;
    padding: 0 !important;
}

.dtx-public-shell-menu>li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.dtx-public-shell-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
    text-decoration: none !important;
    white-space: nowrap;
}

.dtx-public-shell-menu .sub-menu,
.dtx-public-shell-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    display: block !important;
    min-width: 250px;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #ffffff !important;
    border: 1px solid #d7dee7;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(7, 20, 35, .24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.dtx-public-shell-menu li:hover>.sub-menu,
.dtx-public-shell-menu li:focus-within>.sub-menu,
.dtx-public-shell-menu li:hover>.dtx-public-shell-submenu,
.dtx-public-shell-menu li:focus-within>.dtx-public-shell-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dtx-public-shell-menu .sub-menu a,
.dtx-public-shell-submenu a {
    display: block;
    width: 100%;
    padding: 11px 18px;
    min-height: 0;
    color: #182536 !important;
    text-shadow: none !important;
    background: #ffffff !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    white-space: normal;
    text-align: left;
}

.dtx-public-shell-menu .sub-menu a:hover,
.dtx-public-shell-submenu a:hover,
.dtx-public-shell-menu .sub-menu a:focus,
.dtx-public-shell-submenu a:focus {
    color: #0f4c81 !important;
    background: #e8f2fb !important;
    outline: none;
}

body.home.dtx-public-shell-header-home .dtx-public-shell-header__inner {
    width: min(100% - 90px, 1220px);
    min-height: 150px;
}

body.home.dtx-public-shell-header-home .dtx-public-shell-nav {
    top: clamp(82px, 9vw, 128px);
}

body.home.dtx-public-shell-header-home .dtx-public-shell-menu {
    justify-content: center !important;
}

body.home.dtx-public-shell-header-home .dtx-public-shell-nav .dtx-public-shell-menu>li>a {
    color: #fff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .58);
}

body:not(.home) .dtx-public-shell-header {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(15, 35, 55, .08);
    box-shadow: 0 14px 34px rgba(15, 35, 55, .08);
    padding: 22px 0 10px;
}

body:not(.home) .dtx-public-shell-header__title,
body:not(.home) .dtx-public-shell-header__tagline,
body:not(.home) .dtx-public-shell-menu>li>a {
    color: #243447 !important;
    text-shadow: none !important;
}

body:not(.home) .dtx-public-shell-header__title {
    display: block;
    font-size: 27px;
    line-height: 1.05;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: -.015em;
}

body:not(.home) .dtx-public-shell-header__tagline {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .025em;
    text-transform: uppercase;
}

body:not(.home) .dtx-public-shell-nav {
    top: 54px;
}

/* Portal first layer should look like controlled app navigation, not a page dump. */
body.dtx-navigation-layer-authority .dtx-enterprise-portal__panel {
    width: min(92vw, 480px);
}

body.dtx-navigation-layer-authority .dtx-enterprise-nav-card[data-nav-depth="2"] {
    display: none !important;
}

body.dtx-navigation-layer-authority .dtx-enterprise-nav-card[data-nav-layer="classified_navigation"] {
    border-style: dashed;
}

@media (max-width: 900px) {
    .dtx-public-shell-header__inner {
        min-height: auto;
        padding-bottom: 18px;
    }

    .dtx-public-shell-header__brand,
    .dtx-public-shell-nav {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        text-align: center;
    }

    .dtx-public-shell-header__brand {
        display: block;
        margin-bottom: 18px;
    }

    body.home.dtx-public-shell-header-home .dtx-public-shell-header__inner {
        min-height: auto;
    }
}

body.home.dtx-public-shell-header-home .dtx-public-shell-nav {
    margin-top: 0 !important;
}

/* v2.7.0 Portal Usability: favorite hearts and clean portal cards. */
.dtx-enterprise-nav-card-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.dtx-enterprise-nav-card-wrap .dtx-enterprise-nav-card {
    flex: 1 1 auto;
    padding-right: 42px;
}

.dtx-enterprise-nav-card__heart {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    background: #fff;
    border: 1px solid #d9e2ec;
    color: #0b5a94;
    z-index: 2;
}

.dtx-enterprise-nav-card__heart:hover,
.dtx-enterprise-nav-card__heart.is-favorite {
    background: #e0f2fe;
    color: #0b5a94;
}

.dtx-enterprise-nav-card__favorite {
    margin-left: auto;
    font-size: 14px;
    color: #0b5a94;
}

.dtx-enterprise-nav-section--favorites {
    margin-bottom: 18px;
}

.dtx-enterprise-nav-section--favorites h3::before {
    content: '♥ ';
}

/* v2.9.0 Portal Folder Level Rendering */
.dtx-portal-folder {
    margin: 12px 0 14px;
}

.dtx-portal-folder__title {
    margin: 8px 0 8px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dtx-shell-muted);
}

.dtx-enterprise-nav-section--operations {
    order: 10;
}

.dtx-enterprise-nav-section--workforce {
    order: 20;
}

.dtx-enterprise-nav-section--administration {
    order: 30;
}

.dtx-enterprise-nav-section--system {
    order: 40;
}

.dtx-enterprise-nav-section--favorites {
    order: 1;
}

/* v2.10.0 Enterprise System Routes */
.dtx-enterprise-nav-section--system {
    border-top: 1px solid rgba(148, 163, 184, .35);
    margin-top: 18px;
    padding-top: 14px;
}

.dtx-enterprise-nav-card.is-system-route {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dtx-enterprise-nav-card.is-system-action-logout {
    border-color: #fecaca;
    background: #fff7f7;
}

.dtx-enterprise-nav-card.is-system-action-logout .dtx-enterprise-nav-card__label {
    color: #991b1b;
    font-weight: 800;
}

/* v2.10.1 Enterprise Portal Usability */
.dtx-enterprise-nav-section--quick-access .dtx-quick-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.dtx-enterprise-nav-section--quick-access .dtx-quick-access-header h3 {
    margin: 0;
}

.dtx-quick-access-count {
    font-size: 12px;
    font-weight: 700;
    opacity: .75;
}

.dtx-quick-access-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.dtx-quick-access-toggle:hover,
.dtx-quick-access-toggle:focus {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

.dtx-enterprise-nav-section--quick-access.is-collapsed {
    padding-bottom: 4px;
}

.dtx-enterprise-nav-grid--quick-access {
    margin-top: 8px;
}

.dtx-enterprise-nav-section--system {
    border-top: 1px solid rgba(148, 163, 184, .35);
    padding-top: 14px;
    margin-top: 18px;
}

.dtx-enterprise-nav-node--logout .dtx-enterprise-nav-card,
.dtx-enterprise-nav-card.is-system-action-logout {
    border-color: #fecaca;
    background: #fff7f7;
}

.dtx-enterprise-nav-node--logout .dtx-enterprise-nav-card__label,
.dtx-enterprise-nav-card.is-system-action-logout .dtx-enterprise-nav-card__label {
    color: #991b1b;
}

/* v2.11.0 Enterprise Navigation Architecture */
.dtx-enterprise-portal__panel,
.dtx-enterprise-portal__body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.dtx-enterprise-nav-section,
.dtx-enterprise-nav-grid,
.dtx-portal-folder,
.dtx-portal-folder__items,
.dtx-enterprise-nav-node,
.dtx-enterprise-nav-card-wrap,
.dtx-enterprise-nav-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.dtx-enterprise-nav-grid,
.dtx-enterprise-nav-grid--layered,
.dtx-enterprise-nav-grid--quick-access {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.dtx-portal-folder__items {
    padding-left: 0 !important;
    overflow-x: hidden !important;
}

.dtx-enterprise-nav-card {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.15 !important;
    align-items: center !important;
}

.dtx-enterprise-nav-card__label {
    display: block !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.15 !important;
}

/* v3.0.0 Enterprise Portal Experience
 * Compact single-column navigation used by both live portal and admin preview.
 * This intentionally replaces the large two-column tile feel with a scalable
 * enterprise menu that handles long process/document names without horizontal
 * scrolling.
 */
.dtx-enterprise-portal__panel,
.dtx-enterprise-portal__body,
.dtx-enterprise-portal-renderer,
.dtx-nav-preview-card__body {
    overflow-x: hidden !important;
}

.dtx-enterprise-portal-renderer {
    display: block !important;
}

.dtx-enterprise-nav-section {
    margin: 0 0 18px !important;
}

.dtx-enterprise-nav-section h3,
.dtx-enterprise-nav-section--quick-access .dtx-quick-access-header h3 {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

.dtx-enterprise-nav-section__description {
    margin: 2px 0 8px !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.dtx-enterprise-nav-grid,
.dtx-enterprise-nav-grid--layered,
.dtx-enterprise-nav-grid--quick-access,
.dtx-portal-folder__items .dtx-enterprise-nav-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.dtx-enterprise-nav-node,
.dtx-enterprise-nav-card-wrap,
.dtx-enterprise-nav-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.dtx-enterprise-nav-card-wrap {
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
}

.dtx-enterprise-nav-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.dtx-enterprise-nav-card:hover,
.dtx-enterprise-nav-card:focus,
.dtx-enterprise-nav-card.is-active {
    border-color: #93c5fd !important;
    background: #f8fbff !important;
}

.dtx-enterprise-nav-card__icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.dtx-enterprise-nav-card__label {
    display: block !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.dtx-enterprise-nav-card__favorite {
    display: none !important;
}

.dtx-enterprise-nav-card__heart {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #dbe7f3 !important;
    color: #0b5a94 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.dtx-enterprise-nav-card__heart:hover,
.dtx-enterprise-nav-card__heart:focus,
.dtx-enterprise-nav-card__heart.is-favorite {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

.dtx-enterprise-nav-section--quick-access .dtx-quick-access-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

.dtx-quick-access-count {
    font-size: 11px !important;
    font-weight: 800 !important;
    opacity: .65 !important;
}

.dtx-quick-access-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0b5a94 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.dtx-portal-folder {
    margin: 10px 0 12px !important;
}

.dtx-portal-folder__toggle {
    width: 100% !important;
    border: 1px solid #0b5a94 !important;
    background: #0b5a94 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 9px 10px !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.dtx-portal-folder__items {
    margin-top: 8px !important;
    padding-left: 0 !important;
    overflow-x: hidden !important;
}

.dtx-folder-arrow {
    display: inline-block !important;
    width: 14px !important;
    min-width: 14px !important;
    text-align: center !important;
}

.dtx-enterprise-nav-card.is-system-route {
    background: #fff !important;
    border-color: #dbe7f3 !important;
}

.dtx-enterprise-nav-card.is-system-action-logout {
    background: #fff7f7 !important;
    border-color: #fecaca !important;
}

.dtx-enterprise-nav-card.is-system-action-logout .dtx-enterprise-nav-card__label {
    color: #991b1b !important;
}

.dtx-nav-preview--unified .dtx-enterprise-nav-card__heart {
    display: none !important;
}

.dtx-nav-preview--unified .dtx-portal-folder__items[hidden] {
    display: block !important;
}

.dtx-enterprise-portal__body::-webkit-scrollbar,
.dtx-nav-preview-card__body::-webkit-scrollbar {
    width: 10px;
}