/* WIFAQ_TOPBAR_USER_V1 */

.wifaq-topbar-enhanced {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.wifaq-topbar-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.wifaq-topbar-row > .topbar-start,
.wifaq-topbar-row > .topbar-title,
.wifaq-topbar-row > .header-title,
.wifaq-topbar-row > .page-title,
.wifaq-topbar-row > div:first-child:not(.topbar-actions) {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.wifaq-topbar-row h1,
.wifaq-topbar-row h2,
.wifaq-topbar-row p {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wifaq-topbar-row h1,
.wifaq-topbar-row h2 {
  white-space: nowrap;
}

.wifaq-topbar-actions-enhanced {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: max-content !important;
  max-width: 55% !important;
  margin-inline-start: auto !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 5 !important;
}

.wifaq-topbar-actions-enhanced > * {
  flex: 0 0 auto;
}

.wifaq-topbar-user-area {
  order: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-inline-start: 8px;
  border-inline-start: 1px solid #e2e8f0;
  direction: rtl;
}

.wifaq-topbar-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 230px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f2942;
}

.wifaq-topbar-user-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #e9f1f8;
  color: #17466f;
  font-size: 14px;
  font-weight: 800;
}

.wifaq-topbar-user-text {
  min-width: 0;
  line-height: 1.25;
}

.wifaq-topbar-user-name {
  display: block;
  max-width: 165px;
  overflow: hidden;
  color: #0f2942;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wifaq-topbar-user-role {
  display: block;
  max-width: 165px;
  margin-top: 2px;
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wifaq-topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #f1c8c8;
  border-radius: 10px;
  background: #fff7f7;
  color: #b42318;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.wifaq-topbar-logout:hover {
  border-color: #e8a7a7;
  background: #fff0f0;
  transform: translateY(-1px);
}

.wifaq-topbar-logout-icon {
  font-size: 15px;
  line-height: 1;
}

.wifaq-sidebar-auth-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .wifaq-topbar-row {
    gap: 10px !important;
  }

  .wifaq-topbar-actions-enhanced {
    max-width: 64% !important;
    gap: 6px !important;
  }

  .wifaq-topbar-user-card {
    max-width: 180px;
  }

  .wifaq-topbar-user-name,
  .wifaq-topbar-user-role {
    max-width: 118px;
  }
}

@media (max-width: 760px) {
  .wifaq-topbar-enhanced {
    min-height: 64px !important;
    padding: 9px 10px !important;
  }

  .wifaq-topbar-row {
    gap: 7px !important;
  }

  .wifaq-topbar-row p {
    display: none !important;
  }

  .wifaq-topbar-actions-enhanced {
    max-width: none !important;
    min-width: 0 !important;
    gap: 5px !important;
  }

  .wifaq-topbar-user-area {
    gap: 5px;
    padding-inline-start: 5px;
  }

  .wifaq-topbar-user-card {
    width: 38px;
    height: 38px;
    padding: 2px;
    border-radius: 10px;
  }

  .wifaq-topbar-user-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .wifaq-topbar-user-text {
    display: none;
  }

  .wifaq-topbar-logout {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .wifaq-topbar-logout-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .wifaq-topbar-row h1,
  .wifaq-topbar-row h2 {
    max-width: 145px;
    font-size: 16px !important;
  }

  .wifaq-topbar-actions-enhanced .button,
  .wifaq-topbar-actions-enhanced button:not(.wifaq-topbar-logout) {
    max-width: 84px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* WIFAQ_TOPBAR_BELL_INTEGRATION_V2 */

.wifaq-topbar-notification-slot {
  order: 900 !important;
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 20 !important;
}

.wifaq-topbar-notification-host {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
}

.wifaq-topbar-notification-slot >
button,
.wifaq-topbar-notification-slot >
a,
.wifaq-topbar-notification-slot >
[role="button"],
.wifaq-topbar-notification-slot >
.wifaq-topbar-notification-host {
  box-sizing: border-box !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 11px !important;
  transform: none !important;
  translate: none !important;
}

.wifaq-topbar-notification-slot
.wifaq-notification-dropdown,
.wifaq-topbar-notification-slot
[class*="notification-dropdown" i],
.wifaq-topbar-notification-slot
[class*="notifications-panel" i] {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: auto !important;
  left: 0 !important;
  width: min(380px, calc(100vw - 24px)) !important;
  height: auto !important;
  max-width: calc(100vw - 24px) !important;
  max-height: 70vh !important;
  overflow: auto !important;
  z-index: 10000 !important;
}

@media (max-width: 760px) {
  .wifaq-topbar-notification-slot {
    min-width: 38px !important;
    height: 38px !important;
  }

  .wifaq-topbar-notification-slot >
  button,
  .wifaq-topbar-notification-slot >
  a,
  .wifaq-topbar-notification-slot >
  [role="button"],
  .wifaq-topbar-notification-slot >
  .wifaq-topbar-notification-host {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
}
