/* Account control for the shared Divi Fullwidth Menu only. */
.sp-company-header-menu { position: relative; z-index: 50; overflow: visible !important; }
.sp-company-header-menu .et_pb_row,
.sp-company-header-menu .et_pb_menu__wrap { overflow: visible !important; }
.sp-company-header-menu .sp-header-profile { position: relative; flex: 0 0 auto; color: #001b7f; }
.sp-company-header-menu .sp-header-profile--mobile { display: none; }
.sp-company-header-menu .sp-header-profile__trigger,
.sp-company-header-menu .sp-header-profile__guest { appearance: none; border: 0; background: transparent; color: #001b7f; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px; text-decoration: none; }
.sp-company-header-menu .sp-header-profile__trigger svg,
.sp-company-header-menu .sp-header-profile__guest svg { display: block; width: 18px; height: 18px; flex: none; }
.sp-company-header-menu .sp-header-profile__avatar,
.sp-company-header-menu .sp-header-profile__guest { width: 40px; height: 40px; border-radius: 50%; background: #eaf0ff; border: 1px solid #c6d2f2; display: inline-flex; align-items: center; justify-content: center; }
.sp-company-header-menu .sp-header-profile__trigger { font-weight: 600; white-space: nowrap; }
.sp-company-header-menu .sp-header-profile__trigger > svg { width: 14px; height: 14px; }
.sp-company-header-menu .sp-header-profile__trigger:hover .sp-header-profile__avatar,
.sp-company-header-menu .sp-header-profile__guest:hover { background: #dce7ff; }
.sp-company-header-menu .sp-header-profile__trigger:focus-visible,
.sp-company-header-menu .sp-header-profile__guest:focus-visible,
.sp-company-header-menu .sp-header-profile__link:focus-visible { outline: 3px solid #245bc7; outline-offset: 2px; }
.sp-company-header-menu .sp-header-profile__panel[hidden] { display: none !important; }
.sp-company-header-menu .sp-header-profile__panel { position: absolute; z-index: 100; top: calc(100% + 6px); right: 0; width: 270px; max-width: calc(100vw - 32px); padding: 8px; background: #fff; color: #142853; border: 1px solid #d9e2f1; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 27, 127, .13); text-align: left; white-space: normal; }
.sp-company-header-menu .sp-header-profile__greeting { margin: 0; padding: 10px 11px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sp-company-header-menu .sp-header-profile__links { display: block; margin: 0; padding: 0; }
.sp-company-header-menu .sp-header-profile__link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; color: #142853 !important; border-radius: 6px; font-size: 14px; line-height: 1.35; text-decoration: none; }
.sp-company-header-menu .sp-header-profile__link:hover { background: #edf3ff; color: #001b7f !important; }
.sp-company-header-menu .sp-header-profile__link svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.sp-company-header-menu .sp-header-profile__link--logout { border-top: 1px solid #d9e2f1; border-radius: 0 0 6px 6px; margin-top: 5px; padding-top: 14px; }
.sp-company-header-menu .et_pb_menu__menu li#menu-item-447 { position: relative; }
.sp-company-header-menu .et_pb_menu__menu li#menu-item-447 > .sp-header-profile { margin: auto 0; }
/* Divi clones the desktop list. Hide the copied entry before JS removes it. */
.sp-company-header-menu .et_mobile_menu > li[id="menu-item-447"] { display: none !important; }

@media (max-width: 980px) {
  .sp-company-header-menu .et_pb_row { display: flex; flex-direction: column; align-items: stretch; }
  .sp-company-header-menu .et_pb_menu__logo-wrap { align-self: flex-start; max-width: 100%; }
  .sp-company-header-menu .et_pb_menu__wrap { display: flex; flex: 0 0 auto; width: 100%; align-items: center; justify-content: space-between; }
  .sp-company-header-menu .et_mobile_nav_menu { order: 1; margin-left: 0; }
  .sp-company-header-menu .sp-header-profile--mobile { display: block; order: 2; margin-left: auto; }
  .sp-company-header-menu .sp-header-profile--mobile .sp-header-profile__trigger { padding: 0; }
  .sp-company-header-menu .sp-header-profile--mobile .sp-header-profile__panel { top: calc(100% + 9px); }
}
