/* Linked portal identities dropdown (Client marketing header + Partner/Admin dashboards).
   All row/menu styles are self-contained (no Tailwind) so Partner/Admin match Client. */

/* Positioning context: shrink-wrap to trigger so the panel aligns under the avatar */
.partner-portal-profile-root {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	width: max-content;
	max-width: 100%;
	flex: 0 0 auto;
	overflow: visible;
}

.header-profile-panel {
	position: absolute;
	top: calc(100% + 0.25rem);
	inset-inline-start: 0;
	min-width: max(100%, 14rem);
	max-width: min(22rem, 92vw);
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
	border: 1px solid rgb(229, 231, 235);
	z-index: 100000;
	overflow: hidden;
	box-sizing: border-box;
}

/* Client home: the profile trigger sits at the toolbar's outer edge, so anchor the panel to that
   edge and open it INWARD (else it spills off the right edge in EN / left edge in AR). */
#mainHeader[dir="ltr"] #headerProfileDropdownRoot .header-profile-panel {
	inset-inline-start: auto;
	inset-inline-end: auto;
	left: auto;
	right: 0;
}

#mainHeader[dir="rtl"] #headerProfileDropdownRoot .header-profile-panel {
	inset-inline-start: auto;
	inset-inline-end: auto;
	left: 0;
	right: auto;
}

.header-profile-panel__body {
	max-height: 16rem;
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
}

/* Partner mobile drawer: panel is fixed under “Linked accounts”; column layout for scroll + footer */
.header-profile-panel.header-profile-panel--drawer-mode {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.header-profile-panel.header-profile-panel--drawer-mode .header-profile-panel__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

/* Client marketing header: fixed panel matches full drawer action width — long labels wrap; calmer focus than default ring */
.header-profile-panel.header-profile-panel--marketing-mobile {
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(24, 28, 45, 0.18);
	background-color: #ffffff !important;
	background-image: none !important;
	opacity: 1 !important;
	isolation: isolate;
	mix-blend-mode: normal;
}

.header-profile-panel.header-profile-panel--marketing-mobile .header-profile-panel__body {
	background-color: #ffffff !important;
	background-image: none !important;
	mix-blend-mode: normal;
}

.header-profile-panel.header-profile-panel--marketing-mobile button.header-profile-panel__row,
.header-profile-panel.header-profile-panel--marketing-mobile button.header-profile-panel__footer-btn {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	text-align: start;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	background-color: #ffffff !important;
	background-image: none !important;
}

.header-profile-panel.header-profile-panel--marketing-mobile button.header-profile-panel__row:focus {
	outline: none;
}

.header-profile-panel.header-profile-panel--marketing-mobile button.header-profile-panel__row:focus-visible {
	outline: 2px solid #6b5b95;
	outline-offset: 2px;
}

/* Menu rows: explicit reset — overrides global typography `button { … !important }` + theme */
.header-profile-panel button.header-profile-panel__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.625rem;
	width: 100%;
	text-align: start;
	box-sizing: border-box;
	margin: 0;
	padding: 0.625rem 0.875rem;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	color: #111111 !important;
	background-color: #ffffff !important;
	border: none;
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.header-profile-panel__avatar-wrap {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.625rem;
	overflow: hidden;
	background: #6a5d8b;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Default user silhouette (no photo): light tile — overrides purple wrap */
.header-profile-panel__avatar-wrap.header-profile-panel__avatar-wrap--default-photo {
	background: #f3f4f6;
	color: #111;
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
}

/* Inset the graphic inside the tile (padding *within* the icon), not extra row spacing */
.header-profile-panel__avatar-wrap--default-photo .header-profile-panel__avatar-img--placeholder {
	width: 72%;
	height: 72%;
	max-width: 72%;
	max-height: 72%;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
	display: block;
}

.header-profile-panel__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Full-width Aqar360 marks: cover crops sides in a square; match header / client brand tile */
.header-profile-panel__avatar-wrap--brand-contain {
	background: #fff;
	border: 1px solid rgb(229, 231, 235);
}

/* #5 — a real uploaded partner logo (frequently a transparent PNG) sits on a WHITE tile and
   CONTAINS (fits fully). Without this the logo rendered on the purple #6a5d8b fallback bg
   (bleeding through transparency) and COVER-cropped it. Purple stays only for the initial fallback. */
.header-profile-panel__avatar-wrap--logo {
	background: #fff;
	border: 1px solid rgb(229, 231, 235);
}

.header-profile-panel__avatar-img.header-profile-panel__avatar-img--contain {
	object-fit: contain;
	object-position: center;
	padding: 0.125rem;
	box-sizing: border-box;
}

/* Match partner header fallback: purple tile + single white initial (override global h1/button typography). */
.header-profile-panel__avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: 'Rubik', 'IBM Plex Sans Arabic', Helvetica, sans-serif !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	color: #fff !important;
}

.header-profile-panel__row-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
}

.header-profile-panel__row-primary {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #111111 !important;
}

.header-profile-panel__row-type {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.5rem;
	border-radius: 9999px;
	background: #f1edf9;
	color: #6a5d8b;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Post Listing / profile picker: Nafath logo + verified check or unverified X */
.header-profile-panel__row-nafath {
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: auto;
	padding-inline-start: 0.35rem;
	flex-shrink: 0;
}

.header-profile-panel__row-nafath-logo {
	width: 1.75rem;
	height: 1.75rem;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.header-profile-panel__row-nafath-mark {
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
	font-family: system-ui, 'Segoe UI', sans-serif !important;
}

.header-profile-panel__row-nafath-mark--verified {
	color: #15803d;
}

.header-profile-panel__row-nafath-mark--unverified {
	color: #b91c1c;
}

/* "Verify now" call-to-action shown in the mark slot when the account is not yet verified (note 2) */
.header-profile-panel__row-nafath-mark--cta {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #b91c1c;
	white-space: nowrap;
}

.header-profile-panel__body .header-profile-panel__row + .header-profile-panel__row {
	border-top: 1px solid rgb(229, 231, 235);
}

.header-profile-panel button.header-profile-panel__row:hover,
.header-profile-panel button.header-profile-panel__footer-btn:hover {
	background-color: rgb(245, 243, 255) !important;
}

.header-profile-panel__loading,
.header-profile-panel__error {
	margin: 0;
	padding: 0.75rem 0.875rem;
	font-size: 0.875rem;
	line-height: 1.4;
	font-family: inherit;
	box-sizing: border-box;
}

.header-profile-panel__loading {
	color: #6b7280;
	background: #fff;
}

.header-profile-panel__error {
	color: #b91c1c;
	background: #fff;
}

/* “New partner” action — no Tailwind */
.header-profile-panel button.header-profile-panel__footer-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.625rem 0.875rem;
	text-align: start;
	font-family: inherit !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	color: #6a5d8b !important;
	background-color: #ffffff !important;
	border: none;
	border-top: 1px solid rgb(229, 231, 235);
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.header-profile-panel__footer-logout {
	background: #fff;
	border-top: 1px solid rgb(229, 231, 235);
}

/* Avoid double rule when “New partner” row already has a top border */
.header-profile-panel__footer-btn + .header-profile-panel__footer-logout {
	border-top: none;
}

/* Logout row: override admin/partner layout CSS (.profile-dropdown-logout-btn uses row-reverse + flex-end in LTR, which clips text). */
.header-profile-panel__footer-logout > a,
.header-profile-panel__footer-logout a.profile-dropdown-logout-btn {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.5rem;
	padding: 0.75rem 0.875rem !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.header-profile-panel__footer-logout .profile-dropdown-type {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
}

/* Icon before label (DOM is text then icon) */
.header-profile-panel__footer-logout .profile-dropdown-logout-icon {
	float: none !important;
	flex-shrink: 0;
	order: -1;
}

.header-profile-panel__footer-logout .profile-dropdown-logout-text {
	flex: 1 1 auto !important;
	min-width: 0;
	text-align: start !important;
	text-overflow: clip;
	overflow: visible;
	white-space: nowrap;
	color: #db3a34;
	font-size: 0.875rem;
	font-weight: 500;
}

[dir="rtl"] .header-profile-panel__footer-logout > a,
[dir="rtl"] .header-profile-panel__footer-logout a.profile-dropdown-logout-btn {
	flex-direction: row-reverse !important;
	justify-content: flex-end !important;
}

[dir="rtl"] .header-profile-panel__footer-logout .profile-dropdown-type {
	flex-direction: row-reverse !important;
}

[dir="rtl"] .header-profile-panel__footer-logout .profile-dropdown-logout-icon {
	order: 1;
}

[dir="rtl"] .header-profile-panel__footer-logout .profile-dropdown-logout-text {
	text-align: start !important;
}

.header-profile-panel__footer-logout > a:hover {
	background-color: rgb(245, 243, 255);
}

/* Partner header: allow dropdown to paint outside toolbar row */
.DashboardHeader-toolbar .partner-portal-profile-root {
	overflow: visible;
}

/* Admin dashboard: same portal menu host — LTR positioning context (panel dir handles text bidi). */
#adminPortalProfileDropdownRoot.profile {
	position: relative;
	overflow: visible;
	flex: 0 0 auto;
	direction: ltr;
}

.Verification #partnerPortalProfileDropdownRoot {
	direction: ltr;
}

/* ── Admin/Partner panel anchoring — mirror the CLIENT approach (anchor to the
   trigger edge, open INWARD), but map each portal to its REAL trigger side.

   The dropdown trigger's physical side is set by the dashboard-header GRID
   (no @media — applies at ALL widths). Admin now uses the STANDARD toolbar
   (bell+profile on the TRAILING edge), so its trigger sides MATCH partner per
   locale — both are anchored together below:
     · Admin   EN  → profile cluster grid-column 3 → trigger physical RIGHT
                     (_clientlayout.css `--end { grid-column: 3; justify-self: end }`)
     · Admin   AR  → profile cluster grid-column 1 → trigger physical LEFT
                     (_clientlayout.css `[dir=rtl] --end { grid-column: 1; justify-self: start }`)
     · Partner EN  → profile cluster grid-column 3 (mobile) / margin-inline-start:auto (desktop)
                     → trigger physical RIGHT
     · Partner AR  → profile cluster grid-column 1 → trigger physical LEFT
                     (_partnerlayout.css `[lang=ar] --end { grid-column: 1; justify-self: start }`)

   The root host is forced `direction: ltr`, so physical left/right are stable
   regardless of the panel's own `dir` — use physical left/right, not logical
   inset, and DON'T gate on the panel `[dir]`. Anchor + open inward = contained at
   every width (no fixed-position hack), so mobile and desktop share ONE rule. ── */

/* Trigger on physical RIGHT (Admin EN · Partner EN): anchor panel right, opens left/inward. */
.clients[dir="ltr"] #adminPortalProfileDropdownRoot .header-profile-panel,
.Verification[lang="en"] #partnerPortalProfileDropdownRoot .header-profile-panel {
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	left: auto !important;
	right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Trigger on physical LEFT (Admin AR · Partner AR): anchor panel left, opens right/inward. */
.clients[dir="rtl"] #adminPortalProfileDropdownRoot .header-profile-panel,
.Verification[lang="ar"] #partnerPortalProfileDropdownRoot .header-profile-panel {
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	left: 0 !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Never exceed the viewport on small screens (panel min-width is max(100%, 14rem)). */
.clients #adminPortalProfileDropdownRoot .header-profile-panel,
.Verification #partnerPortalProfileDropdownRoot .header-profile-panel {
	max-width: min(22rem, calc(100vw - 1rem)) !important;
}

/* Dashboard language flyout — open INLINE (in normal flow), pushing the rows below
   it down, instead of an absolutely-positioned overlay.

   Why inline, not a positioned drop: the panel is `overflow: hidden` and its body
   scrolls (`max-height: 16rem`). An absolute flyout positioned against the lang
   picker is clipped by that overflow whenever the picker sits low in a scrolled
   body — which is exactly the admin-EN mobile symptom (chevron toggles `is-open`,
   but the absolutely-dropped menu is clipped → "no list appears"). The base
   `.user-profile-dropdown__lang-menu` side-anchor (`inset-inline-end: calc(100%+…)`)
   also pushes it OUTSIDE the panel — off-screen left in EN, off-screen right in AR.
   `position: static` keeps the menu in flow, full panel width, always visible and
   contained in every {mobile,desktop}×{AR,EN} combo. (JS still toggles `hidden`.) */
.clients #adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu,
.Verification #partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu {
	position: static !important;
	inset: auto !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	margin-top: 0.375rem !important;
	margin-bottom: 0 !important;
	margin-inline: 0 !important;
}

/* (Removed the old @media max-width:1023px FIXED-position fallback. The
   trigger-edge anchoring above is contained at every width — anchor + open
   inward — so mobile and desktop no longer need a separate fixed-pin hack,
   which previously pinned the panel to the WRONG edge for admin and could be
   beaten by the side-anchor rules, leaving AR-admin cropping off the right.) */

/* Logout stays on the physical trailing edge in both locales. */
.clients #adminPortalProfileDropdownRoot .user-profile-dropdown__footer-actions,
.Verification #partnerPortalProfileDropdownRoot .user-profile-dropdown__footer-actions {
	direction: ltr;
	justify-content: stretch;
}

/* Partner notification panel: English trigger on right — anchor panel on the right. */
.Verification[lang="en"] .partner-notification-bell-wrap .notification-bell-panel {
	right: 0;
	left: auto;
	inset-inline-start: auto;
	inset-inline-end: auto;
}

/* Arabic: bell on the left — anchor panel on the physical left. */
.Verification[lang="ar"] .partner-notification-bell-wrap .notification-bell-panel,
.clients[dir="rtl"] .admin-notification-bell-wrap .notification-bell-panel {
	left: 0;
	right: auto;
	inset-inline-start: auto;
	inset-inline-end: auto;
}

/* Admin English: bell on the right — anchor panel on the physical right. */
.clients[dir="ltr"] .admin-notification-bell-wrap .notification-bell-panel {
	right: 0;
	left: auto;
	inset-inline-start: auto;
	inset-inline-end: auto;
}

/* ── User profile dropdown (reference-style menu + switch-account modal) ── */

.user-profile-dropdown {
	min-width: 18.5rem;
	max-width: min(22rem, 92vw);
	padding: 0.5rem;
	background: #fff;
	border: none;
	box-shadow: 0 18px 48px rgba(24, 28, 45, 0.16);
	border-radius: 1rem;
}

.user-profile-dropdown__shell {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.user-profile-dropdown__identity-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	background: #fff;
	border-radius: 0.875rem;
	border: 1px solid rgb(235, 237, 240);
	box-sizing: border-box;
}

.user-profile-dropdown__avatar-wrap {
	position: relative;
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	overflow: visible;
	background: #f3f4f6;
	border: 1px solid rgb(229, 231, 235);
}

.user-profile-dropdown__avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 9999px;
	object-fit: cover;
	display: block;
}

.user-profile-dropdown__avatar-img--placeholder {
	object-fit: contain;
	padding: 0.35rem;
	box-sizing: border-box;
}

.user-profile-dropdown__avatar-img--brand {
	object-fit: contain;
	padding: 0.3rem;
	box-sizing: border-box;
	background: #fff;
}

.login-trigger-avatar__img--brand {
	object-fit: contain;
	padding: 0.15rem;
	box-sizing: border-box;
	background: #fff;
}

.user-profile-dropdown__verified-badge {
	position: absolute;
	inset-inline-end: -2px;
	bottom: -2px;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 9999px;
	background: #3b82f6;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-sizing: border-box;
}

.user-profile-dropdown__identity-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	/* Hug the avatar: content-width children at the card's logical start (right in RTL, left in LTR) so an
	   English name sits next to the avatar instead of drifting to the far edge of a stretched text block. */
	align-items: flex-start;
	gap: 0.125rem;
}

.user-profile-dropdown__name {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111 !important;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	unicode-bidi: plaintext;
	text-align: start;
}

.user-profile-dropdown__subline {
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	unicode-bidi: plaintext;
	text-align: start;
}

.user-profile-dropdown__portal-badge {
	align-self: flex-start;
	flex: 0 0 auto;
	max-width: 100%;
	margin-top: 0.15rem;
	padding: 0.2rem 0.55rem;
	border-radius: 9999px;
	background: #dcfce7;
	color: #166534;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.user-profile-dropdown__section {
	background: #fff;
	border-radius: 0.875rem;
	border: 1px solid rgb(235, 237, 240);
	overflow: hidden;
}

.user-profile-dropdown__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.75rem 1rem;
	text-align: start;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #111 !important;
	background: #fff !important;
	border: none;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

.user-profile-dropdown__item + .user-profile-dropdown__item {
	border-top: 1px solid rgb(243, 244, 246);
}

.user-profile-dropdown__item {
	transition: background 0.15s ease, transform 0.15s ease;
}

.user-profile-dropdown__item:hover,
.user-profile-dropdown__item:focus-visible {
	background: #f5f3ff !important;
	transform: translateX(3px);
	outline: none;
}

[dir="rtl"] .user-profile-dropdown__item:hover,
[dir="rtl"] .user-profile-dropdown__item:focus-visible {
	transform: translateX(-3px);
}

.user-profile-dropdown__item:focus-visible {
	box-shadow: inset 0 0 0 2px #6b5b95;
}

.user-profile-dropdown__item-icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	color: #4b5563;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.user-profile-dropdown__item-label {
	flex: 1 1 auto;
	min-width: 0;
}

.user-profile-dropdown__item-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	margin-inline-start: auto;
	transition: transform 0.15s;
}

[dir="rtl"] .user-profile-dropdown__item-chevron svg {
	transform: scaleX(-1);
}

/* Switch account = primary action: brand-tinted icon + clearer affordance */
.user-profile-dropdown__item--switch {
	font-weight: 600 !important;
}

.user-profile-dropdown__item--switch .user-profile-dropdown__item-icon {
	color: #6a5d8b;
}

.user-profile-dropdown__item--switch:hover {
	background: #f5f3ff !important;
}

.user-profile-dropdown__item--switch:hover .user-profile-dropdown__item-chevron {
	color: #6a5d8b;
}

.user-profile-dropdown__item--register-partner .user-profile-dropdown__item-icon {
	color: #6a5d8b;
}

.user-profile-dropdown__item--register-partner:hover {
	background: #f5f3ff !important;
}

.header-profile-panel.user-profile-dropdown {
	overflow: visible;
}

.user-profile-dropdown__lang-form {
	display: none;
}

/* Language picker — reference-style summary row + flyout submenu */
.user-profile-dropdown__lang-block {
	padding: 0.625rem 0.75rem 0.75rem;
	border-top: 1px solid rgb(243, 244, 246);
	box-sizing: border-box;
}

.user-profile-dropdown__lang-picker {
	position: relative;
}

.user-profile-dropdown__lang-trigger {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.625rem 0.875rem;
	border: none;
	border-radius: 0.625rem;
	background: #eef3fb !important;
	cursor: pointer;
	font-family: inherit !important;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.user-profile-dropdown__lang-trigger:hover,
.user-profile-dropdown__lang-picker.is-open .user-profile-dropdown__lang-trigger {
	background: #e4ecf9 !important;
}

.user-profile-dropdown__lang-trigger:focus-visible {
	outline: 2px solid #5b8def;
	outline-offset: 2px;
}

.user-profile-dropdown__lang-trigger-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4a7fd4;
	transition: transform 0.15s ease;
}

.user-profile-dropdown__lang-picker.is-open .user-profile-dropdown__lang-trigger-chevron {
	transform: rotate(180deg);
}

.user-profile-dropdown__lang-trigger-label {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #4a7fd4 !important;
	flex: 0 0 auto;
}

.user-profile-dropdown__lang-trigger-value {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.user-profile-dropdown__lang-trigger-name {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #4a7fd4 !important;
	white-space: nowrap;
}

.user-profile-dropdown__lang-trigger-flag-wrap,
.user-profile-dropdown__lang-menu-flag-wrap {
	flex: 0 0 auto;
	width: 1.625rem;
	height: 1.625rem;
	border-radius: 9999px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.user-profile-dropdown__lang-trigger-flag,
.user-profile-dropdown__lang-menu-flag {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.user-profile-dropdown__lang-menu {
	position: absolute;
	top: 0;
	inset-inline-end: calc(100% + 0.5rem);
	inset-inline-start: auto;
	z-index: 100010;
	min-width: 11.5rem;
	padding: 0.375rem;
	border-radius: 0.75rem;
	background: #fff;
	border: 1px solid rgb(235, 237, 240);
	box-shadow: 0 14px 40px rgba(24, 28, 45, 0.14);
	box-sizing: border-box;
}

[dir="rtl"] .user-profile-dropdown__lang-menu {
	inset-inline-start: calc(100% + 0.5rem);
	inset-inline-end: auto;
}

/* Dashboard panels: the INLINE flyout rule lives once near the top (see "Dashboard
   language flyout — open INLINE"). Re-assert static + full-width here so this
   later-in-file rule and the `[dir="rtl"]` side-anchor above can't reintroduce a
   positioned/side-anchored menu (equal specificity, later source order). */
.clients #adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu,
.Verification #partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu {
	position: static !important;
	inset: auto !important;
	left: auto !important;
	right: auto !important;
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	width: 100% !important;
}

.user-profile-dropdown__lang-menu-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border: none;
	border-radius: 0.5rem;
	background: transparent !important;
	cursor: pointer;
	text-align: start;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #374151 !important;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	transition: background 0.12s ease, color 0.12s ease;
}

.user-profile-dropdown__lang-menu-item + .user-profile-dropdown__lang-menu-item {
	margin-top: 0.125rem;
}

.user-profile-dropdown__lang-menu-item:hover {
	background: #f3f4f6 !important;
}

.user-profile-dropdown__lang-menu-item.is-active {
	background: #f0f2f5 !important;
}

.user-profile-dropdown__lang-menu-item.is-active .user-profile-dropdown__lang-menu-label {
	color: #4a7fd4 !important;
	font-weight: 600 !important;
}

.user-profile-dropdown__lang-menu-label {
	flex: 1 1 auto;
	min-width: 0;
}

.user-profile-dropdown__section:has(.user-profile-dropdown__lang-block) {
	overflow: visible;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger,
#adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	display: flex !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	text-align: start !important;
	border-radius: 0.625rem !important;
	cursor: pointer;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	border-radius: 0.5rem !important;
	padding: 0.625rem 0.75rem !important;
	justify-content: flex-start !important;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger {
	padding: 0.625rem 0.875rem !important;
	justify-content: space-between !important;
	flex-direction: row !important;
	align-items: center !important;
}

[dir="rtl"] #adminPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger,
[dir="rtl"] #adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	flex-direction: row !important;
	text-align: start !important;
}

@media (max-width: 520px) {
	.user-profile-dropdown__lang-menu,
	.clients #adminPortalProfileDropdownRoot .user-profile-dropdown__lang-menu,
	.Verification #partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu {
		position: static !important;
		inset: auto !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		inset-inline-start: auto !important;
		inset-inline-end: auto !important;
		width: 100% !important;
		margin-top: 0.375rem !important;
	}
}


/* Login/profile trigger avatar (navbar) — small rounded user image */
.login-trigger-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 9999px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.login-trigger-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 9999px;
}

.login-trigger-avatar__img--placeholder {
	object-fit: contain;
	padding: 0.2rem;
	box-sizing: border-box;
}

.user-profile-dropdown__footer {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.user-profile-dropdown__new-partner {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.625rem 1rem;
	text-align: start;
	font-family: inherit !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #6a5d8b !important;
	background: #fff !important;
	border: 1px solid rgb(235, 237, 240);
	border-radius: 0.875rem;
	cursor: pointer;
}

.user-profile-dropdown__new-partner:hover {
	background: rgb(249, 250, 251) !important;
}

.user-profile-dropdown__footer-actions {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: stretch;
	padding: 0.25rem 0;
}

.user-profile-dropdown__logout-btn {
	flex: 1 1 auto;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.4rem 1rem;
	border-radius: 0.625rem;
	border: 1px solid #db3a34;
	background: #db3a34;
	color: #fff !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.user-profile-dropdown__logout-btn:hover {
	background: #c42f29;
	border-color: #c42f29;
}

.user-profile-dropdown__logout-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.switch-account-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.switch-account-modal:not([hidden]) {
	display: flex;
}

.switch-account-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.switch-account-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 42rem;
	min-height: 18rem;
	background: #fff;
	border-radius: 1.25rem;
	border: 1.5px solid rgb(232, 235, 237);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	box-sizing: border-box;
}

.switch-account-modal__header {
	position: relative;
	padding: 1.25rem 3rem 1rem 1.25rem;
	border-bottom: 1.5px solid rgb(232, 235, 237);
}

[dir="rtl"] .switch-account-modal__header {
	padding: 1.25rem 1.25rem 1rem 3rem;
}

.switch-account-modal__title {
	margin: 0;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #22262a !important;
	line-height: 1.3 !important;
}

.switch-account-modal__subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	color: #818c98 !important;
	line-height: 1.45 !important;
}

.switch-account-modal__close {
	position: absolute;
	top: 0.85rem;
	inset-inline-end: 0.85rem;
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 9999px;
	background: rgba(0, 0, 0, 0.05);
	color: #333;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.switch-account-modal__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	max-height: 30rem;
	min-height: 10rem;
	overflow-y: auto;
	box-sizing: border-box;
}

/* Modal rows: avatar pinned LEFT, name/role pinned RIGHT (all locales) */
.switch-account-modal__list .switch-account-modal__row,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	/* Inherit the panel's locale direction (RTL → avatar + text on the right; LTR → on the left) so the row
	   reads naturally per locale, instead of the old forced-LTR that detached Arabic names from their avatar. */
	width: 100%;
	border: 1.5px solid rgb(232, 235, 237);
	border-radius: 1rem;
	padding: 1rem 1.125rem;
	gap: 1rem;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.switch-account-modal__list .switch-account-modal__row + .switch-account-modal__row,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row + .header-profile-panel__row.switch-account-modal__row {
	border-top: 1.5px solid rgb(232, 235, 237);
}

.switch-account-modal__list .switch-account-modal__row:hover,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row:hover {
	border-color: #b9b0d6;
	background: #faf9fc !important;
	box-shadow: 0 8px 22px rgba(106, 93, 139, 0.14);
	transform: translateY(-1px);
}

.switch-account-modal__list .switch-account-modal__row .header-profile-panel__avatar-wrap,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__avatar-wrap {
	order: 1;
	flex: 0 0 auto;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	margin: 0 !important;
}

.switch-account-modal__list .switch-account-modal__row .header-profile-panel__row-text,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__row-text {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	display: flex !important;
	flex-direction: column !important;
	/* #4 — use LOGICAL alignment (start) so EN rows align left and AR rows align right,
	   instead of the old baked-in flex-end/text-align:right/direction:rtl that forced RTL
	   alignment for every culture (the "awkward in English" switcher rows). */
	align-items: flex-start !important;
	justify-content: center !important;
	text-align: start !important;
	gap: 0.2rem;
}

.switch-account-modal__list .switch-account-modal__row .header-profile-panel__row-primary,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__row-primary {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: start !important;
	/* Names/emails: render each string in its own natural direction (Latin LTR, Arabic RTL) so an EN name
	   isn't mangled, and hug the avatar (content-width, no full-width float that pushed AR names away). */
	unicode-bidi: plaintext;
}

/* email / secondary line in the switch-account rows — same plaintext bidi so EN mail aligns right */
.switch-account-modal__list .switch-account-modal__row .header-profile-panel__row-secondary,
.switch-account-modal__list .switch-account-modal__row .header-profile-panel__row-email,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__row-secondary,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__row-email {
	width: 100%;
	text-align: start !important;
	unicode-bidi: plaintext;
}

.switch-account-modal__list .switch-account-modal__row .header-profile-panel__row-type,
.switch-account-modal__list .header-profile-panel__row.switch-account-modal__row .header-profile-panel__row-type {
	align-self: flex-start;
	width: auto;
	font-size: 0.75rem !important;
}

/* Switch-account rows: status pill + owner/employee Nafath chip + current-account marker. */
.switch-account-modal__list .header-profile-panel__row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.35rem;
}
.switch-account-modal__list .header-profile-panel__row-status,
.switch-account-modal__list .header-profile-panel__row-nafath {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	white-space: nowrap;
	unicode-bidi: plaintext;
}
/* Status pill — color only the states that need attention; Active is calm green. */
.switch-account-modal__list .header-profile-panel__row-status.status-active { background: #ECFDF3; color: #067647; }
.switch-account-modal__list .header-profile-panel__row-status.status-pending,
.switch-account-modal__list .header-profile-panel__row-status.status-submitted { background: #FEF6E7; color: #B54708; }
.switch-account-modal__list .header-profile-panel__row-status.status-waitlisted { background: #F4F3FF; color: #5925DC; }
.switch-account-modal__list .header-profile-panel__row-status.status-new { background: #EFF4FF; color: #3538CD; }
.switch-account-modal__list .header-profile-panel__row-status.status-rejected,
.switch-account-modal__list .header-profile-panel__row-status.status-suspended { background: #FEF3F2; color: #B42318; }
/* Nafath chip: actionable (owner/client) vs read-only org (employee → muted, no action cue). */
.switch-account-modal__list .header-profile-panel__row-nafath.nafath-ok { background: #ECFDF3; color: #067647; }
.switch-account-modal__list .header-profile-panel__row-nafath.nafath-cta { background: #F4F1FB; color: #6A5D8B; }
.switch-account-modal__list .header-profile-panel__row-nafath.nafath-org { background: #F2F4F7; color: #475467; }
/* Nafath logo inside the chip — sized to sit inline with the status text. */
.switch-account-modal__list .header-profile-panel__row-nafath .header-profile-panel__row-nafath-logo { width: 1rem; height: 1rem; }
/* Current account marker. */
.switch-account-modal__list .switch-account-modal__row.is-current {
	border-color: #6A5D8B !important;
	background: #F7F5FC !important;
}
.switch-account-modal__list .switch-account-modal__row.is-current::after {
	content: "";
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #6A5D8B;
	margin-inline-start: auto;
}

.switch-account-modal__close:hover {
	background: rgba(0, 0, 0, 0.1);
}

.switch-account-modal__btn--secondary:hover {
	border-color: rgb(190, 196, 202);
	background: rgb(249, 250, 251);
}

/* Entry animations */
@keyframes aqProfileDropdownIn {
	from { opacity: 0; transform: translateY(-6px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aqModalBackdropIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes aqModalPanelIn {
	from { opacity: 0; transform: translateY(12px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-profile-dropdown:not([hidden]) {
	animation: aqProfileDropdownIn 0.16s ease-out;
}

.switch-account-modal:not([hidden]) .switch-account-modal__backdrop {
	animation: aqModalBackdropIn 0.18s ease-out;
}

.switch-account-modal:not([hidden]) .switch-account-modal__panel {
	animation: aqModalPanelIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
	.user-profile-dropdown:not([hidden]),
	.switch-account-modal:not([hidden]) .switch-account-modal__backdrop,
	.switch-account-modal:not([hidden]) .switch-account-modal__panel {
		animation: none;
	}
}

.switch-account-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.85rem 1.25rem 1.1rem;
	border-top: 1.5px solid rgb(232, 235, 237);
}

.switch-account-modal__btn {
	padding: 0.625rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	cursor: pointer;
	border: 1.5px solid transparent;
}

.switch-account-modal__btn--secondary {
	border-color: rgb(223, 227, 231);
	color: rgb(92, 102, 112);
	background: #fff;
}

.switch-account-modal__loading,
.switch-account-modal__error {
	margin: 0;
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #6b7280;
}

.switch-account-modal__error {
	color: #b91c1c;
}

.header-profile-panel.user-profile-dropdown.header-profile-panel--marketing-mobile {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.875rem !important;
	box-shadow: 0 10px 28px rgba(24, 28, 45, 0.12) !important;
	overflow: hidden !important;
}

@media (max-width: 1399px) {
	#mainHeader .nav-actions.active #headerProfileDropdownRoot {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile {
		position: absolute !important;
		top: calc(100% + 0.5rem) !important;
		bottom: auto !important;
		left: 0 !important;
		right: 0 !important;
		inset-inline: 0 !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		margin-top: 0 !important;
		transform: none !important;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__shell {
		max-height: inherit;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		gap: 0.25rem;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__identity-card {
		padding: 0.625rem 0.75rem;
		border-radius: 0.75rem;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__avatar-wrap {
		width: 2.5rem;
		height: 2.5rem;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__name {
		font-size: 0.9rem !important;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__portal-badge {
		font-size: 0.64rem !important;
		padding: 0.15rem 0.5rem;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__section {
		border-radius: 0.75rem;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__item {
		min-height: 2.5rem;
		padding: 0.55rem 0.75rem;
		font-size: 0.9rem !important;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__footer-actions {
		padding: 0.15rem 0 0;
	}

	#mainHeader .nav-actions.active #headerProfileDropdownRoot .header-profile-panel--marketing-mobile .user-profile-dropdown__logout-btn {
		min-height: 2.55rem;
		padding: 0.45rem 0.75rem;
		font-size: 0.85rem !important;
	}
}

/* Admin dashboard: profile dropdown + switch-accounts item (override global button typography) */
#adminPortalProfileDropdownRoot .user-profile-dropdown {
	min-width: 19rem;
	z-index: 100001;
}

/* clientList.css zeros padding on .clients .profile button — restore menu row layout */
#adminPortalProfileDropdownRoot .user-profile-dropdown button.user-profile-dropdown__item,
#adminPortalProfileDropdownRoot .user-profile-dropdown a.user-profile-dropdown__item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0.75rem 1rem !important;
	text-align: start !important;
	gap: 0.75rem !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #111 !important;
	background: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item-icon {
	flex: 0 0 auto !important;
	width: 1.25rem;
	height: 1.25rem;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item-label {
	flex: 1 1 auto !important;
	min-width: 0;
	text-align: start !important;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item--switch {
	font-weight: 600 !important;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item--switch .user-profile-dropdown__item-icon {
	color: #6a5d8b;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item:hover,
#adminPortalProfileDropdownRoot .user-profile-dropdown__item--switch:hover {
	background: #f5f3ff !important;
}

#adminPortalProfileDropdownRoot .user-profile-dropdown__item--switch:hover {
	background: #f5f3ff !important;
}

[dir="rtl"] #adminPortalProfileDropdownRoot .user-profile-dropdown button.user-profile-dropdown__item,
[dir="rtl"] #adminPortalProfileDropdownRoot .user-profile-dropdown a.user-profile-dropdown__item {
	flex-direction: row !important;
	text-align: start !important;
}

/* Partner dashboard: same menu row layout + typography resets as admin */
#partnerPortalProfileDropdownRoot .user-profile-dropdown {
	min-width: 19rem;
	z-index: 100001;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown button.user-profile-dropdown__item,
#partnerPortalProfileDropdownRoot .user-profile-dropdown a.user-profile-dropdown__item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0.75rem 1rem !important;
	text-align: start !important;
	gap: 0.75rem !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #111 !important;
	background: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item-icon {
	flex: 0 0 auto !important;
	width: 1.25rem;
	height: 1.25rem;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item-label {
	flex: 1 1 auto !important;
	min-width: 0;
	text-align: start !important;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item--switch {
	font-weight: 600 !important;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item--switch .user-profile-dropdown__item-icon {
	color: #6a5d8b;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item:hover,
#partnerPortalProfileDropdownRoot .user-profile-dropdown__item--switch:hover {
	background: #f5f3ff !important;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__item--switch:hover {
	background: #f5f3ff !important;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger,
#partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	display: flex !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	text-align: start !important;
	border-radius: 0.625rem !important;
	cursor: pointer;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	border-radius: 0.5rem !important;
	padding: 0.625rem 0.75rem !important;
	justify-content: flex-start !important;
	flex-direction: row !important;
	align-items: center !important;
}

#partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger {
	padding: 0.625rem 0.875rem !important;
	justify-content: space-between !important;
	flex-direction: row !important;
	align-items: center !important;
}

[dir="rtl"] #partnerPortalProfileDropdownRoot .user-profile-dropdown button.user-profile-dropdown__item,
[dir="rtl"] #partnerPortalProfileDropdownRoot .user-profile-dropdown a.user-profile-dropdown__item,
[dir="rtl"] #partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-trigger,
[dir="rtl"] #partnerPortalProfileDropdownRoot .user-profile-dropdown__lang-menu-item {
	flex-direction: row !important;
	text-align: start !important;
}


/* Admin/Partner avatar profile trigger — subtle hover affordance (shape-agnostic). */
.profile-photo-btn {
	transition: opacity 0.15s ease;
}

.profile-photo-btn:hover {
	opacity: 0.82;
}
