/* Shared ITPortal menu prototype. This stylesheet is loaded by Git DEV only. */
body.app-shell > .site-header {
  background: linear-gradient(90deg,
    rgb(46 120 233 / 0) 0%,
    rgb(46 120 233 / .28) 42%,
    rgb(46 120 233 / .7) 72%,
    #2e78e9 100%) !important;
  border-bottom-color: rgb(22 77 160 / .22);
}
body.app-shell > .site-header .site-header__inner {
  min-height: 44px !important;
  justify-content: flex-end;
  padding-block: 4px !important;
}
body.app-shell > .site-header .brand { display: none !important; }
@media (min-width: 801px) {
  body.app-shell > .site-header .site-account .user-chip {
    box-sizing: border-box;
    height: 36px !important;
    min-height: 36px !important;
    padding-block: 2px !important;
  }
}
body.app-shell > .site-header .public-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 36px !important;
  padding: 7px 16px !important;
  font-size: .92rem !important;
}
body.app-shell .guest-dashboard > .service-sidebar,
body.app-shell.is-admin-context .admin-navigation__compact--desktop,
body.app-shell.is-admin-context .admin-navigation__mobile-menu {
  display: none !important;
}

body.app-shell .dev-shared-menu {
  --menu-ink: #163d64;
  --menu-muted: #557395;
  position: fixed;
  top: 0;
  left: max(12px, env(safe-area-inset-left));
  z-index: 80;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 64px;
  max-height: calc(100dvh - 12px);
  overflow: hidden;
  border: 1px solid #b8d6f9;
  border-radius: 20px;
  background: linear-gradient(155deg, #f7fbff, #e8f2ff);
  box-shadow: 7px 12px 28px rgba(31, 86, 153, .18), inset 1px 1px 0 #fff;
  color: var(--menu-ink);
  transition: width .24s cubic-bezier(.2,.75,.2,1), box-shadow .24s ease;
}
body.app-shell .dev-shared-menu.is-expanded {
  width: min(286px, calc(100vw - 24px));
  box-shadow: 12px 18px 38px rgba(31, 86, 153, .23), inset 1px 1px 0 #fff;
}
body.app-shell .dev-shared-menu__head {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 24px;
  min-height: 44px;
  padding: 0 9px;
  border-bottom: 1px solid #d6e6fa;
  background: linear-gradient(125deg, #f4f9ff, #e7f2ff);
}
body.app-shell .dev-shared-menu__toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #2d72dd;
  border-radius: 15px;
  background: linear-gradient(140deg, #57a1ff, #276ee6);
  box-shadow: 3px 5px 11px rgba(36, 102, 210, .25), inset 0 1px 0 rgba(255,255,255,.45);
  color: #fff;
  cursor: pointer;
}
body.app-shell .dev-shared-menu__toggle svg { width: 24px; height: 24px; }
body.app-shell .dev-shared-menu__toggle:hover { background: linear-gradient(140deg, #348af6, #1558c9); }
body.app-shell .dev-shared-menu__toggle:focus-visible { outline: 3px solid #1558c9; outline-offset: 3px; }
body.app-shell .dev-shared-menu__expand { display: none; }
@media (max-width: 800px), (hover: none) {
  body.app-shell .dev-shared-menu__expand {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #b8d6f9;
    border-radius: 13px;
    background: #e7f2ff;
    color: #2163b8;
  }
  body.app-shell .dev-shared-menu__expand svg { width: 22px; height: 22px; }
  body.app-shell .dev-shared-menu__expand:focus-visible { outline: 3px solid #1558c9; outline-offset: 2px; }
}
body.app-shell .dev-shared-menu__heading,
body.app-shell .dev-shared-menu__label,
body.app-shell .dev-shared-menu__foot {
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease;
}
body.app-shell .dev-shared-menu.is-expanded :is(.dev-shared-menu__heading,.dev-shared-menu__label,.dev-shared-menu__foot) {
  opacity: 1;
  visibility: visible;
  transition-delay: .08s;
}
body.app-shell .dev-shared-menu__heading { display: grid; gap: 1px; min-width: 0; white-space: nowrap; }
body.app-shell .dev-shared-menu__heading strong { font-size: 15px; line-height: 1.25; }
body.app-shell .dev-shared-menu__heading small { color: var(--menu-muted); font-size: 12px; }
body.app-shell .dev-shared-menu__items {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 0;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.app-shell .dev-shared-menu:not(.is-expanded) .dev-shared-menu__label { display: none; }
body.app-shell .dev-shared-menu:not(.is-expanded) .dev-shared-menu__external { display: none; }
body.app-shell .dev-shared-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #315887;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
body.app-shell .dev-shared-menu__item:hover {
  transform: translateX(2px);
  border-color: #a6c9f9;
  background: linear-gradient(110deg, #e5f1ff, #d4e7ff);
  color: #104baf;
}
body.app-shell .dev-shared-menu__item.is-current {
  border-color: #8ab8fa;
  background: linear-gradient(110deg, #dcecff, #c5ddff);
  color: #104baf;
}
body.app-shell .dev-shared-menu__item:focus-visible {
  outline: 3px solid #1558c9;
  outline-offset: -2px;
}
body.app-shell .dev-shared-menu__icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 2px 3px 7px rgba(58, 105, 174, .12);
  color: #3476d0;
}
body.app-shell .dev-shared-menu__icon svg { width: 20px; height: 20px; }
body.app-shell .dev-shared-menu__item:hover .dev-shared-menu__icon { background: #2e78e9; color: #fff; }
body.app-shell .dev-shared-menu__label { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
body.app-shell .dev-shared-menu__external { flex: 0 0 15px; width: 15px; height: 15px; margin-left: auto; }
body.app-shell .dev-shared-menu__foot {
  flex: 0 0 auto;
  padding: 10px 17px;
  border-top: 1px solid #d6e6fa;
  color: var(--menu-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* The User's compact menu keeps a readable slice of each single-line label. */
@media (min-width: 801px) {
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) {
    width: 143px;
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__head {
    gap: 10px;
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__heading {
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__heading strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__items {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__item {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__label {
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
  }
}
body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu__foot {
  display: none;
}
body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu.is-expanded .dev-shared-menu__items {
  padding-bottom: 30px;
}
@media (max-width: 800px) {
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) .dev-shared-menu:not(.is-expanded) .dev-shared-menu__heading {
    display: none;
  }
}

/* Keep the page title above its module menu while the shared topbar fades. */
body.app-shell main [data-module-sticky-heading] {
  position: sticky;
  top: var(--module-page-heading-sticky-top, 52px);
  z-index: 46;
  align-self: stretch;
}
body.app-shell main .page-heading.premium-spotlight[data-module-sticky-heading].is-docked {
  padding-block: 10px !important;
  background: linear-gradient(90deg, #dcecfb, #e7f3ff);
  box-shadow: 0 6px 16px rgba(31, 86, 153, .12);
}

/* ewFund uses the same page title and module menu geometry as Zoom on DEV. */
body.app-shell.is-ewfund-reference-page main .page-heading.premium-spotlight h1 {
  font-size: 20px !important;
  line-height: 1.3 !important;
}
body.app-shell.is-ewfund-reference-page main .ewfund-submenu {
  /* app.css gives every nav order: 2 below 900px; keep this module menu before report content. */
  order: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 18px;
}
body.app-shell.is-ewfund-reference-page main .ewfund-submenu .admin-navigation__submenu-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
body.app-shell.is-ewfund-reference-page main .ewfund-submenu .admin-navigation__submenu-link {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 13px;
  font-size: 17px !important;
  line-height: 1.5;
  white-space: nowrap;
}
body.app-shell.is-ewfund-reference-page main.company-report-full-width > .page-heading.premium-spotlight {
  margin-bottom: 14px !important;
}
body.app-shell.is-ewfund-reference-page main.company-report-full-width > .ewfund-submenu {
  margin-bottom: 14px !important;
}
/* The first report block shares HelpDesk's grid wrapper and content-column gap. */
body.app-shell.is-ewfund-reference-page main .ewfund-report-content {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  min-width: 0;
}
body.app-shell.is-ewfund-reference-page.user-layout-reference main .ewfund-report-content {
  margin-top: 14px;
}
body.app-shell.is-ewfund-reference-page main .ewfund-report-content > .cr-shell {
  min-width: 0;
}
@media (min-width: 1025px) {
  /* Match the HelpDesk title and menu rows; use the shared 14px gap below the menu. */
  body.app-shell.is-ewfund-reference-page main.company-report-full-width {
    padding-top: 0 !important;
  }
  body.app-shell.is-ewfund-reference-page:not(.user-layout-reference) main.company-report-full-width > .page-heading.premium-spotlight {
    padding-top: 0 !important;
  }
}
@media (max-width: 620px) {
  body.app-shell.is-ewfund-reference-page.user-layout-reference main.company-report-full-width > .ewfund-submenu {
    margin-bottom: 0 !important;
  }
  body.app-shell.is-ewfund-reference-page.user-layout-reference main .ewfund-report-content {
    margin-top: 10px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body.app-shell.is-ewfund-reference-page main .ewfund-submenu { padding: 4px !important; }
  body.app-shell.is-ewfund-reference-page main .ewfund-submenu .admin-navigation__submenu-items { gap: 4px; }
  body.app-shell.is-ewfund-reference-page main .ewfund-submenu .admin-navigation__submenu-link {
    min-height: 34px;
    padding: 4px 8px;
  }
}
@media print {
  body.app-shell.is-ewfund-reference-page .dev-shared-menu,
  body.app-shell.is-ewfund-reference-page main .ewfund-submenu,
  body.app-shell.is-ewfund-reference-page main .page-heading.premium-spotlight { display: none !important; }
  body.app-shell.is-ewfund-reference-page main .ewfund-report-content { display: block; margin-top: 0; }
}

/* HelpDesk follows the Zoom page shell on DEV for Guest, User, and Admin. */
body.app-shell.is-helpdesk-module main .page-heading.premium-spotlight h1 {
  font-size: 20px !important;
  line-height: 1.3 !important;
}
body.app-shell.is-helpdesk-module main [data-module-sticky-navigation].helpdesk-navigator {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
body.app-shell.is-helpdesk-module main [data-module-sticky-navigation].helpdesk-navigator > .button {
  flex: 0 0 auto;
  min-height: 42px !important;
  padding: 8px 13px !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  white-space: nowrap;
}
@media (max-width: 600px) and (orientation: portrait) {
  body.app-shell.is-helpdesk-module main [data-module-sticky-navigation].helpdesk-navigator > .button {
    min-height: 34px !important;
    padding: 4px 8px !important;
  }
}

@media (min-width: 801px) {
  body.app-shell > main.container,
  body.app-shell.user-layout-reference.is-member-shell > main.container,
  body.app-shell.user-layout-reference.is-member-shell > main.container.wide,
  body.app-shell.admin-layout-reference > main.container,
  body.app-shell.admin-layout-reference.is-admin-module-shell > main.container {
    padding-left: max(88px, env(safe-area-inset-left)) !important;
  }
  /* Align User content 10px after the 143px compact menu on every route. */
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) > main.container,
  body.app-shell:is(.is-member-shell:not(.is-admin-context),.is-download-module.route-home) > main.container.wide {
    padding-left: max(165px, calc(153px + env(safe-area-inset-left))) !important;
  }
}
@media (min-width: 1025px) {
  body.app-shell.is-admin-module-shell .admin-navigation__submenus { margin-left: 88px !important; }
}
@media (min-width: 801px) and (max-width: 1024px) {
  body.app-shell.is-admin-module-shell .admin-navigation__submenus {
    width: calc(100% - 100px) !important;
    margin-left: 88px !important;
  }
}
@media (max-width: 800px) {
  body.app-shell > .site-header .site-header__inner { min-height: 52px !important; }
  body.app-shell > .site-header .public-login-link { min-height: 44px !important; }
  body.app-shell .dev-shared-menu {
    top: max(4px, env(safe-area-inset-top));
    bottom: auto;
    max-height: calc(100dvh - 8px - env(safe-area-inset-top));
  }
  body.app-shell .dev-shared-menu:not(.is-expanded) { width: 112px; }
  body.app-shell .dev-shared-menu__head { gap: 4px; padding-inline: 6px; }
  body.app-shell .dev-shared-menu:not(.is-expanded) .dev-shared-menu__heading { display: none; }
  body.app-shell .dev-shared-menu.is-expanded .dev-shared-menu__heading { flex: 1 1 auto; overflow: hidden; }
  body.app-shell .dev-shared-menu:not(.is-expanded) .dev-shared-menu__items,
  body.app-shell .dev-shared-menu:not(.is-expanded) .dev-shared-menu__foot { display: none; }
  body.app-shell .dev-shared-menu.is-expanded { max-height: min(640px, calc(100dvh - 8px - env(safe-area-inset-top))); }
}
@media (prefers-reduced-motion: reduce) {
  body.app-shell .dev-shared-menu,
  body.app-shell .dev-shared-menu :is(.dev-shared-menu__item,.dev-shared-menu__heading,.dev-shared-menu__label,.dev-shared-menu__foot) {
    transition: none;
  }
}

/* Report processing uses the same blue as the shared Home button on DEV. */
body.app-shell.context-selfreport.route-report-run #report-run-submit {
  border-color: #2d72dd;
  background: linear-gradient(140deg, #57a1ff, #276ee6);
  box-shadow: 3px 5px 11px rgba(36, 102, 210, .25), inset 0 1px 0 rgba(255,255,255,.45);
  color: #fff;
}
body.app-shell.context-selfreport.route-report-run #report-run-submit:hover:not(:disabled) {
  background: linear-gradient(140deg, #348af6, #1558c9);
}

/* Guest navigation stays open; reserve its width in the page layout. */
body.app-shell.is-public.is-service-shell .dev-shared-menu.is-static .dev-shared-menu__expand { display: none; }
@media (min-width: 701px) {
  body.app-shell.is-public.is-service-shell > main.container,
  body.app-shell.is-public.is-service-shell > main.container.wide {
    width: calc(100% - 314px) !important;
    max-width: none !important;
    margin-left: 314px !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
  }
}
@media (max-width: 700px) {
  body.app-shell.is-public.is-service-shell .dev-shared-menu.is-static {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 24px);
    max-height: none;
    margin: 8px 12px 0;
  }
  body.app-shell.is-public.is-service-shell > main.container,
  body.app-shell.is-public.is-service-shell > main.container.wide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 12px !important;
  }
}
