/* R73: management-only navigation. Do not mutate driver/My nav contracts. */
:where(html.aic-layout-refactor) .management-mobile-nav { display:none; }
@media (max-width:1024px) {
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav {
    --management-mobile-nav-height:64px;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav #appSidebarMobileToggle,
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .app-sidebar__mobile-toggle {
    display:none !important;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav {
    position:fixed; inset-inline:0; bottom:0; display:flex; align-items:stretch;
    justify-content:center; gap:4px; width:auto;
    min-height:calc(var(--management-mobile-nav-height) + env(safe-area-inset-bottom,0px));
    padding:4px calc(8px + env(safe-area-inset-right,0px))
            calc(4px + env(safe-area-inset-bottom,0px))
            calc(8px + env(safe-area-inset-left,0px));
    background:#fff; border-top:1px solid #dce3ed;
    box-shadow:0 -3px 14px rgba(15,23,42,.055); z-index:1050;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav__item {
    flex:1 1 0; min-width:0; min-height:52px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    border:0; border-radius:10px; padding:4px 2px; gap:4px;
    background:transparent; color:#475569; font-size:12px; font-weight:700;
    line-height:1.2; text-align:center; text-decoration:none; cursor:pointer;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav__item i { font-size:19px; }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav__item.is-active,
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav__item[aria-expanded="true"] {
    background:#eff5ff; color:#1c4e94;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav__item:focus-visible {
    outline:2px solid #2563eb; outline-offset:-2px;
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav main.main-content {
    margin-bottom:calc(var(--management-mobile-nav-height) + env(safe-area-inset-bottom,0px) + 20px);
  }
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav #appSidebar,
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav.sidebar-collapsed #appSidebar {
    max-width:min(232px, calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));
  }
  /* Drawer and its full-screen backdrop (1399 / 1398) cover the bottom bar (1050).
     The sidebar's own padding already reserves the device safe area. */
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .app-sidebar__inner {
    padding-bottom:12px;
  }
  /* The bottom Other trigger is inert while open; use the drawer close button. */
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .app-sidebar__toggle {
    display:none !important;
  }
}
@media (min-width:1025px) {
  :where(html.aic-layout-refactor) body.aic-management-mobile-nav .management-mobile-nav { display:none !important; }
}

/* R79: an unavailable account link must not look actionable. */
:where(html.aic-layout-refactor) .management-mobile-nav__item:disabled,
:where(html.aic-layout-refactor) .management-mobile-nav__item[aria-disabled="true"] {
  opacity:.5;
  cursor:default;
}
