/* R76: My routes show the SAME menu as the mobile mini drawer in a permanent
   PC sidebar. Other routes (including group_dispatches) are not modified. */
html.aic-layout-refactor body.aic-my-pc-sidebar #myDesktopSidebar {
  display: none;
}

@media (min-width: 1025px) {
  html.aic-layout-refactor body.aic-my-pc-sidebar #myDesktopSidebar {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--aic-sidebar-expanded-w, 204px);
    min-width: 0;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: calc(12px + var(--safe-top)) 12px
      calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    z-index: 1000;
    overflow: hidden;
  }

  html.aic-layout-refactor body.aic-my-pc-sidebar #myDesktopSidebar .dashboard-mini-sidebar__inner {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* The original overlay and right-bottom trigger stay in DOM for mobile only. */
  html.aic-layout-refactor body.aic-my-pc-sidebar #dashboardMiniSidebar,
  html.aic-layout-refactor body.aic-my-pc-sidebar #dashboardMiniSidebarBackdrop,
  html.aic-layout-refactor body.aic-my-pc-sidebar #dashboardSidebarMiniToggle {
    display: none !important;
  }

  /* The R74 sidebarless rule explicitly sets --sidebar-w:0, so use the
     expanded physical width here without mutating global layout variables. */
  html.aic-layout-refactor body.aic-my-pc-sidebar.aic-sidebarless-shell main.main-content {
    margin-left: calc(var(--aic-sidebar-expanded-w, 204px) + var(--page-pad-x) + var(--safe-left));
    margin-right: calc(var(--page-pad-x) + var(--safe-right));
    width: calc(100% - var(--aic-sidebar-expanded-w, 204px) - 2 * var(--page-pad-x) - var(--safe-left) - var(--safe-right));
    margin-bottom: var(--page-bottom);
    min-width: 0;
  }
}
