.fd-navigation {
  --fdNavigation_Border_Radius: 0.5rem 0.5rem 0 0;
}

.lui-backdrop.svelte-az6f9h {
  background-color: var(--sapBlockLayer_Background, rgba(0, 0, 0, 0.6));
  background-color: #00000033;
}

body .fd-side-nav--condensed .fd-side-nav__utility {
  display: block;
}

.fd-side-nav--condensed .fd-nested-list__title {
  display: none;
}

.footer-ul {
  padding: 0.25rem 0.5rem;
}

body .fd-navigation-list__content {
  text-decoration: none;
}

.footer-ul .fd-navigation-list__content:focus-visible {
  outline: var(--sapContent_FocusStyle, solid)
    var(--sapContent_FocusWidth, 0.125rem) var(--sapContent_FocusColor, #0032a5);
  outline-offset: var(--fdNavigationList_Content_Outline_Offset, -0.125rem);
}

/* F6 region focus indicators */
.fd-side-nav:focus {
  outline: var(--sapContent_FocusStyle, solid)
    var(--sapContent_FocusWidth, 0.125rem) var(--sapContent_FocusColor, #0032a5);
  outline-offset: -0.125rem;
}

div.iframeContainer:focus,
.fd-shellbar:focus {
  outline: var(--sapContent_FocusStyle, solid)
    var(--sapContent_FocusWidth, 0.125rem) var(--sapContent_FocusColor, #0032a5) !important;
  outline-offset: -0.125rem !important;
}

.lui-username,
.lui-username.fd-has-type-1,
span[data-testid='luigi-topnav-profile-username'],
#username.lui-username {
  max-width: 100%;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* Profile dropdown custom styling to match Figma - needs !important to override Luigi inline styles */
body .fd-popover__body.fd-popover__body--right {
  min-width: 320px;
  max-width: 320px;
}

/* Custom profile menu container */
body .fd-user-menu.custom-profile-styled {
  padding: 0;
  background: #ffffff;
}

/* Custom injected avatar circle with initials */
.custom-profile-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem 1rem;
  background: #ffffff;
}

.custom-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #e5d7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-avatar-initials {
  font-size: 2rem;
  font-weight: 500;
  color: #6c3fb5;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* User name styling - larger, centered, better spacing */
body .fd-user-menu.custom-profile-styled #username.lui-username {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: block;
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.4;
  color: #32363a;
}

/* Menu items list - Settings and Sign Out */
body .fd-user-menu.custom-profile-styled .fd-menu__list {
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
}

/* Individual menu items */
body .fd-user-menu.custom-profile-styled .fd-menu__item {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Menu links (Settings and Sign Out buttons) */
body .fd-user-menu.custom-profile-styled .fd-menu__link,
body .fd-user-menu.custom-profile-styled .fd-menu__item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #32363a;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

body .fd-user-menu.custom-profile-styled .fd-menu__link:hover,
body .fd-user-menu.custom-profile-styled .fd-menu__item a:hover {
  background-color: #f5f5f5;
}

/* Icons in menu items */
body .fd-user-menu.custom-profile-styled .fd-menu__link::before,
body .fd-user-menu.custom-profile-styled .sap-icon {
  font-size: 1rem;
  color: #5b5b5b;
  flex-shrink: 0;
}

/* Sign Out specific styling - separator line and right-aligned */
body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child {
  border-top: 1px solid #e5e5e5;
  text-align: right;
  display: block;
}

body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .fd-menu__link {
  color: #0070f2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  width: auto;
}

body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .fd-menu__link span,
body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .fd-menu__link::before,
body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .sap-icon {
  color: #0070f2;
}

body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .sap-icon {
  margin-left: 0;
}

/* Ensure Sign Out text itself is also blue */
body .fd-user-menu.custom-profile-styled .fd-menu__item:last-child .fd-menu__link * {
  color: #0070f2;
}

