/* One mobile navigation identity across ERP routes; desktop and storefront stay unchanged. */
.app-shell .erp-home-mobile-logo { display: none; }
.app-shell:not(.home-shell) .erp-home-account { display: none; }
@media (max-width: 800px) {
    .app-shell { --eliseo-home-blue: #041534; }
    /* Route styles can remain loaded after navigation. They must never inset
       the shared navigation shell (including their !important work-area padding). */
    .shell.app-shell { margin: 0 !important; padding: 0 !important; width: 100%; }
    body .shell.app-shell > main.content { padding: 0 !important; margin: 0 !important; box-sizing: border-box; }
    .app-shell .erp-shell-header {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
        gap: 12px; padding: 14px 16px 0; background: #041534; color: #fff;
        margin: 0; width: 100%; max-width: none; box-sizing: border-box;
    }
    .app-shell .erp-shell-header .erp-home-mobile-logo { display: block; grid-column: 1; min-width: 0; }
    .app-shell .erp-home-mobile-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
    .app-shell .erp-shell-header .erp-mobile-menu-toggle {
        grid-column: 2; position: static; margin: 0; min-height: 44px; padding: 0 12px;
        border: 1px solid #6b7c99; border-radius: 6px; background: transparent; color: #fff;
        box-shadow: none;
    }
    .app-shell .erp-shell-header .erp-mobile-menu-toggle[aria-expanded="true"] { background: #193661; }
    .app-shell .erp-shell-header .erp-topline {
        grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center;
        justify-content: space-between; gap: 16px; margin: 0 0 12px; min-width: 0;
    }
    .app-shell .erp-shell-header .erp-company-switcher { flex: 1; min-width: 0; flex-wrap: wrap; gap: 6px; }
    .app-shell .erp-shell-header .erp-company-switcher label { color: #c4d0e3; }
    .app-shell .erp-shell-header .erp-active-company-name { color: #fff; overflow-wrap: anywhere; }
    .app-shell .erp-shell-header .erp-company-switcher select { max-width: 100%; background: #193661; color: #fff; border-color: #6b7c99; }
    .app-shell .erp-shell-header .user-chip { display: none; }
    .app-shell:not(.home-shell) .erp-shell-header .erp-home-account,
    .app-shell.home-shell .erp-shell-header .erp-home-account { display: block; position: relative; flex: none; margin-left: auto; }
    .app-shell .erp-shell-header .erp-home-account summary {
        display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
        border: 1px solid #b9c4d6; border-radius: 50%; background: #041534; color: #fff;
        list-style: none; cursor: pointer;
    }
    .app-shell .erp-home-account summary::-webkit-details-marker { display: none; }
    .app-shell .erp-home-account summary .erp-icon { width: 22px; height: 22px; }
    .app-shell .erp-home-account-menu {
        position: absolute; right: 0; top: calc(100% + 8px); z-index: 1102;
        display: grid; gap: 6px; min-width: 180px; padding: 12px; border: 1px solid #cbd5e1;
        border-radius: 6px; background: #fff; color: #041534; box-shadow: 0 6px 18px #04153426;
    }
    .app-shell .erp-home-account-menu span { padding: 4px 8px; }
    .app-shell .erp-home-account-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px; color: #041534; text-decoration: none; background: #eef4ff; }
    .app-shell .erp-shell-header .erp-workspace-tabs {
        grid-column: 1 / -1; margin: 0 -16px; padding: 8px 16px 0;
        background: #eef2f7; border-top: 3px solid #e86118; border-bottom: 1px solid #d8dee8;
        overflow-x: auto; min-width: 0; gap: 6px;
    }
    .app-shell .erp-shell-header .erp-workspace-tab { flex: none; max-width: 260px; }
    .app-shell .erp-shell-header .erp-workspace-tab-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-shell .erp-shell-header .erp-workspace-tab-close { flex: 0 0 44px; }
    .app-shell .erp-shell-header .erp-workspace-tab button { height: 44px; line-height: 44px; }
    .app-shell:not(.home-shell) > .content > .erp-page { --erp-pro-bg: #f6f8fb; padding: 16px 14px !important; box-sizing: border-box; background: #f6f8fb; }
    .app-shell:not(.home-shell) .erp-shell-header:not(:has(.erp-workspace-tabs)) { border-bottom: 3px solid #e86118; }
    .app-shell.home-shell .erp-shell-header .erp-workspace-tabs { display: none; }
    .app-shell .erp-shell-header :is(summary, button, a):focus-visible { outline: 2px solid #84b4ff; outline-offset: 3px; }
}
