/**
 * ========================================================
 * AVATAR & USER META COMPONENT STYLESHEET
 * Single Source of Truth for Avatars, Presence Dots, and User Meta
 * ========================================================
 */

/* 1. Base Avatar Container */
.avatar {
  --bs-avatar-size: 2.375rem;
  position: relative !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  width: var(--bs-avatar-size) !important;
  height: var(--bs-avatar-size) !important;
  min-width: var(--bs-avatar-size) !important;
  max-width: var(--bs-avatar-size) !important;
  min-height: var(--bs-avatar-size) !important;
  max-height: var(--bs-avatar-size) !important;
  inline-size: var(--bs-avatar-size) !important;
  block-size: var(--bs-avatar-size) !important;
  flex: 0 0 var(--bs-avatar-size) !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline-end: 0.5rem;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
  user-select: none;
  vertical-align: middle;
  overflow: hidden !important;
  /* Avatar dekoratif: default cursor, hanya interaktif jika ada action (a/button/role=button) */
  cursor: default;
}

/* Avatar child elements (img, initial span) juga default cursor */
.avatar .avatar-img,
.avatar .avatar-initial,
.avatar img,
.avatar span {
  cursor: inherit;
}

/* Prevent broken image placeholder & alt text flash during page refresh */
.avatar img,
.avatar .avatar-img {
  color: transparent !important;
  font-size: 0 !important;
}


[data-bs-theme="dark"] .avatar,
[data-bs-theme=dark] .avatar {
  --bs-avatar-initial-bg: #2e2e2e !important;
}

/* Preserve responsive display utilities on avatars */
.avatar.d-none {
  display: none !important;
}

@media (min-width: 768px) {
  .avatar.d-md-none {
    display: none !important;
  }
  .avatar.d-md-flex,
  .avatar.d-md-inline-flex {
    display: inline-flex !important;
  }
  .avatar.d-md-block {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .avatar.d-lg-none {
    display: none !important;
  }
  .avatar.d-lg-flex,
  .avatar.d-lg-inline-flex {
    display: inline-flex !important;
  }
  .avatar.d-lg-block {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .avatar.d-xl-none {
    display: none !important;
  }
  .avatar.d-xl-flex,
  .avatar.d-xl-inline-flex {
    display: inline-flex !important;
  }
  .avatar.d-xl-block {
    display: block !important;
  }
}

/* Margin Normalization: Ensure tight me-2 (0.5rem) spacing across all avatar usages */
.avatar.me-2 {
  margin-right: 0.5rem !important;
  margin-inline-end: 0.5rem !important;
}

.avatar.me-3 {
  margin-right: 0.5rem !important;
  margin-inline-end: 0.5rem !important;
}

/* Reset outline & focus borders */
.avatar,
.avatar:focus,
.avatar:active,
.avatar:hover {
  outline: none !important;
  box-shadow: none;
  text-decoration: none !important;
}

/* 2. Avatar Size Variants (Standardized 6-Tier Scale mapped to root.css) */
.avatar-xs {
  --bs-avatar-size: var(--bs-avatar-size-xs, 1.625rem) !important;
  font-size: var(--bs-avatar-font-size-xs, 0.75rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-xs, 1.625rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

.avatar-sm {
  --bs-avatar-size: var(--bs-avatar-size-sm, 2rem) !important;
  font-size: var(--bs-avatar-font-size-sm, 0.875rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-sm, 2rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

.avatar-md {
  --bs-avatar-size: var(--bs-avatar-size-md, 2.375rem) !important;
  font-size: var(--bs-avatar-font-size-md, 1.05rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-md, 2.375rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

.avatar-lg {
  --bs-avatar-size: var(--bs-avatar-size-lg, 3rem) !important;
  font-size: var(--bs-avatar-font-size-lg, 1.25rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-lg, 3rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

.avatar-xl {
  --bs-avatar-size: var(--bs-avatar-size-xl, 5rem) !important;
  font-size: var(--bs-avatar-font-size-xl, 2.15rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-xl, 5rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

.avatar-xxl {
  --bs-avatar-size: var(--bs-avatar-size-xxl, 7.5rem) !important;
  font-size: var(--bs-avatar-font-size-xxl, 3.15rem) !important;
  width: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  height: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  min-width: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  max-width: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  min-height: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  max-height: var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  flex: 0 0 var(--bs-avatar-size, var(--bs-avatar-size-xxl, 7.5rem)) !important;
  aspect-ratio: 1 / 1 !important;
}

/* Profile Form Overview Card Avatar (Big Desktop Avatar XXL) */
.profile-form-card .avatar,
.avatar.profile-update-avatar,
.avatar.avatar-xxl {
  --bs-avatar-size: var(--bs-avatar-size-xxl, 7.5rem) !important;
  width: var(--bs-avatar-size-xxl, 7.5rem) !important;
  height: var(--bs-avatar-size-xxl, 7.5rem) !important;
  min-width: var(--bs-avatar-size-xxl, 7.5rem) !important;
  max-width: var(--bs-avatar-size-xxl, 7.5rem) !important;
  min-height: var(--bs-avatar-size-xxl, 7.5rem) !important;
  max-height: var(--bs-avatar-size-xxl, 7.5rem) !important;
  inline-size: var(--bs-avatar-size-xxl, 7.5rem) !important;
  block-size: var(--bs-avatar-size-xxl, 7.5rem) !important;
  flex: 0 0 var(--bs-avatar-size-xxl, 7.5rem) !important;
  font-size: var(--bs-avatar-font-size-xxl, 3.15rem) !important;
}

.profile-form-card .avatar .avatar-initial,
.avatar.profile-update-avatar .avatar-initial,
.avatar.avatar-xxl .avatar-initial,
#updateProfileAvatarContainerDesktop .updateProfileAvatarInitials {
  font-size: 3.15rem !important;
  line-height: 1 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 3. Image & Initial Fallback Inside Avatar (Offline / Base 100% fill) */
.avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) .avatar-img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.table td .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.table td .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) .avatar-img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.user-meta-info .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.user-meta-info .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) .avatar-img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.user-meta-compact .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]),
.user-meta-compact .avatar:not(.avatar-online):not(.avatar-away):not(.avatar-busy) .avatar-img:not(.avatar-img-error):not([style*="display: none"]):not([style*="display:none"]) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  outline: none !important;
  margin: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

[data-bs-theme="dark"] .avatar img,
[data-bs-theme="dark"] .avatar .avatar-img,
[data-bs-theme="dark"] .table td .avatar img,
[data-bs-theme="dark"] .table td .avatar .avatar-img,
[data-bs-theme="dark"] .user-meta-info .avatar img,
[data-bs-theme="dark"] .user-meta-info .avatar .avatar-img,
[data-bs-theme="dark"] .user-meta-compact .avatar img,
[data-bs-theme="dark"] .user-meta-compact .avatar .avatar-img {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.greeting-section .avatar,
.greeting-section .avatar.avatar-online,
.greeting-section .avatar.avatar-away,
.greeting-section .avatar.avatar-busy,
.greeting-section .avatar.avatar-offline {
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: none !important;
  padding: 0 !important;
}

.greeting-section .avatar img,
.greeting-section .avatar .avatar-img,
.greeting-section .avatar .avatar-initial {
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .greeting-section .avatar img,
[data-bs-theme="dark"] .greeting-section .avatar .avatar-img,
[data-bs-theme="dark"] .greeting-section .avatar .avatar-initial {
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.avatar img[style*="display: none"],
.avatar img[style*="display:none"],
.avatar img:not([src]),
.avatar img[src=""],
.avatar .avatar-img[style*="display: none"],
.avatar .avatar-img[style*="display:none"],
.avatar .avatar-img:not([src]),
.avatar .avatar-img[src=""],
.avatar img.avatar-img-error,
.avatar .avatar-img.avatar-img-error,
.avatar-img-error,
.table td .avatar img.avatar-img-error,
.table td .avatar img[style*="display: none"],
.table td .avatar img[style*="display:none"],
.user-meta-info .avatar img.avatar-img-error,
.user-meta-info .avatar img[style*="display: none"],
.user-meta-info .avatar img[style*="display:none"],
#detail-user-avatar[style*="display: none"],
#detail-user-avatar[style*="display:none"],
#detail-user-avatar:not([src]),
#detail-user-avatar[src=""] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  border: none !important;
  outline: none !important;
  pointer-events: none !important;
}

.avatar .avatar-initial:not([style*="display: none"]):not([style*="display:none"]),
.avatar .avatar-initials:not([style*="display: none"]):not([style*="display:none"]),
.table td .avatar .avatar-initial:not([style*="display: none"]):not([style*="display:none"]),
.user-meta-info .avatar .avatar-initial:not([style*="display: none"]):not([style*="display:none"]),
.user-meta-compact .avatar .avatar-initial:not([style*="display: none"]):not([style*="display:none"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  cursor: inherit;
  user-select: none !important;
  -webkit-user-select: none !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.3px !important;
}

.user-meta-compact .avatar {
  --bs-avatar-size: 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  inline-size: 32px !important;
  block-size: 32px !important;
  flex: 0 0 32px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

/* ==========================================================================
   UNIFORM AVATAR INITIAL COLORING (RSA Brand Orange on Solid Warm Dark / Soft Light)
   ========================================================================== */
/* Dark Mode: Solid Dark Primary Avatar Initial - STRICTLY FOR USER INITIALS ONLY (Text only, not icon badges) */
[data-bs-theme="dark"] .avatar .avatar-initial:not(:has(.material-symbols-outlined)):not(:has(i)):not(:has(svg)):not(:has([class*="bx-"])),
[data-bs-theme="dark"] .avatar .avatar-initials:not(:has(.material-symbols-outlined)):not(:has(i)):not(:has(svg)):not(:has([class*="bx-"])),
[data-bs-theme="dark"] .avatar-initial.rounded-circle:not(:has(.material-symbols-outlined)):not(:has(i)):not(:has(svg)):not(:has([class*="bx-"])),
[data-bs-theme="dark"] .user-meta-info .avatar-initial,
[data-bs-theme="dark"] .table .avatar .avatar-initial:not(:has(.material-symbols-outlined)):not(:has(i)),
[data-bs-theme="dark"] .modal .avatar .avatar-initial:not(:has(.material-symbols-outlined)):not(:has(i)),
[data-bs-theme="dark"] .profile-hero-avatar .avatar-initial,
[data-bs-theme="dark"] #updateProfileAvatarContainerDesktop,
[data-bs-theme="dark"] #updateProfileAvatarContainerDesktop .avatar-initial,
[data-bs-theme="dark"] #updateProfileAvatarContainerDesktop .updateProfileAvatarInitials,
[data-bs-theme="dark"] #detail-user-initials,
[data-bs-theme="dark"] .cls-lobby-avatar-box .avatar-initial,
[data-bs-theme="dark"] #classroomContainer .tile-avatar-circle span {
  background-color: var(--bs-avatar-initial-primary-bg, #36190d) !important;
  color: var(--bs-primary, #ff5911) !important;
}

/* Icon Badges (Stats, Cards, Notifications): Primary / tanpa varian -> Soft Primary.
   Varian semantik (bg-label-success/warning/info/danger/secondary) tetap memakai warnanya sendiri
   (background + icon) di Light maupun Dark mode, konsisten dengan badge label. */
.avatar-initial:has(.material-symbols-outlined):not([class*="bg-label-"]):not([class*="bg-"]),
.avatar-initial:has(i):not([class*="bg-label-"]):not([class*="bg-"]),
.avatar-initial:has(svg):not([class*="bg-label-"]):not([class*="bg-"]),
.avatar-initial:has([class*="bx-"]):not([class*="bg-label-"]):not([class*="bg-"]),
.avatar-initial.bg-label-primary:has(.material-symbols-outlined),
.avatar-initial.bg-label-primary:has(i),
.avatar-initial.bg-label-primary:has(svg),
.avatar-initial.bg-label-primary:has([class*="bx-"]) {
  background-color: rgba(var(--bs-primary-rgb), 0.14) !important;
  color: var(--bs-primary) !important;
}

.avatar-initial:has(.material-symbols-outlined):not([class*="bg-label-"]):not([class*="bg-"]) > .material-symbols-outlined,
.avatar-initial:has(i):not([class*="bg-label-"]):not([class*="bg-"]) > i,
.avatar-initial:has(svg):not([class*="bg-label-"]):not([class*="bg-"]) > svg,
.avatar-initial:has([class*="bx-"]):not([class*="bg-label-"]):not([class*="bg-"]) > [class*="bx-"],
.avatar-initial.bg-label-primary > .material-symbols-outlined,
.avatar-initial.bg-label-primary > i,
.avatar-initial.bg-label-primary > svg,
.avatar-initial.bg-label-primary > [class*="bx-"] {
  color: var(--bs-primary) !important;
}

/* Varian semantik: icon mewarisi warna label (bukan primary) */
.avatar-initial[class*="bg-label-"]:not(.bg-label-primary) > .material-symbols-outlined,
.avatar-initial[class*="bg-label-"]:not(.bg-label-primary) > i,
.avatar-initial[class*="bg-label-"]:not(.bg-label-primary) > svg,
.avatar-initial[class*="bg-label-"]:not(.bg-label-primary) > [class*="bx-"] {
  color: inherit !important;
}

/* ==========================================================================
   PROPORTIONAL ICON BADGE SIZING (~46%-48% icon-to-circle ratio)
   Balanced breathing room inside circular & rounded avatar badges.
   ========================================================================== */
.avatar .avatar-initial:has(.material-symbols-outlined),
.avatar .avatar-initial:has(i),
.avatar .avatar-initial:has(svg),
.avatar .avatar-initial:has([class*="bx-"]),
.avatar-initial.rounded-circle:has(.material-symbols-outlined),
.avatar-initial.rounded-circle:has(i),
.avatar-initial.rounded-circle:has(svg),
.avatar-initial.rounded-circle:has([class*="bx-"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
}

/* Default & Medium Avatar (38px circle) -> 18px icon (~47.4% ratio) */
.avatar .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar .avatar-initial:has(i) > i,
.avatar .avatar-initial:has(svg) > svg,
.avatar .avatar-initial:has([class*="bx-"]) > [class*="bx-"],
.avatar-md .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-md .avatar-initial:has(i) > i,
.avatar-md .avatar-initial:has(svg) > svg,
.avatar-md .avatar-initial:has([class*="bx-"]) > [class*="bx-"],
.avatar-initial.rounded-circle:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-initial.rounded-circle:has(i) > i,
.avatar-initial.rounded-circle:has(svg) > svg,
.avatar-initial.rounded-circle:has([class*="bx-"]) > [class*="bx-"] {
  font-size: 1.125rem !important; /* 18px */
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Extra Small Avatar (26px circle) -> 13px icon (~50% ratio) */
.avatar-xs .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-xs .avatar-initial:has(i) > i,
.avatar-xs .avatar-initial:has(svg) > svg,
.avatar-xs .avatar-initial:has([class*="bx-"]) > [class*="bx-"] {
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Small Avatar (32px circle) -> 15px icon (~47% ratio) */
.avatar-sm .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-sm .avatar-initial:has(i) > i,
.avatar-sm .avatar-initial:has(svg) > svg,
.avatar-sm .avatar-initial:has([class*="bx-"]) > [class*="bx-"] {
  font-size: 0.9375rem !important; /* 15px */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Large Avatar (48px circle) -> 22px icon (~46% ratio) */
.avatar-lg .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-lg .avatar-initial:has(i) > i,
.avatar-lg .avatar-initial:has(svg) > svg,
.avatar-lg .avatar-initial:has([class*="bx-"]) > [class*="bx-"] {
  font-size: 1.375rem !important; /* 22px */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Extra Large Avatar (80px circle) -> 36px icon (~45% ratio) */
.avatar-xl .avatar-initial:has(.material-symbols-outlined) > .material-symbols-outlined,
.avatar-xl .avatar-initial:has(i) > i,
.avatar-xl .avatar-initial:has(svg) > svg,
.avatar-xl .avatar-initial:has([class*="bx-"]) > [class*="bx-"] {
  font-size: 2.25rem !important; /* 36px */
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Sembunyikan avatar-initial jika gambar profil tersedia dan aktif */
.avatar .avatar-initial[style*="display: none"],
.avatar .avatar-initial[style*="display:none"],
.avatar-initial[style*="display: none"],
.avatar-initial[style*="display:none"],
.avatar .avatar-initials[style*="display: none"],
.avatar .avatar-initials[style*="display:none"],
.avatar img:not([style*="display: none"]):not([style*="display:none"]) ~ .avatar-initial,
.avatar img:not([style*="display: none"]):not([style*="display:none"]) ~ .avatar-initials,
.avatar img:not([style*="display: none"]):not([style*="display:none"]) + .avatar-initial,
.avatar img:not([style*="display: none"]):not([style*="display:none"]) + .avatar-initials {
  display: none !important;
}

/* Safeguard: strictly ensure only the first avatar image renders if duplicated */
.avatar img ~ img,
.avatar .avatar-img ~ .avatar-img {
  display: none !important;
}

/* Ensure table and informational avatars have default cursor (not clickable) */
.table td .avatar,
.table td .avatar img,
.table td .avatar .avatar-img,
.table td .avatar .avatar-initial,
.user-meta-info .avatar,
.user-meta-info .avatar img,
.user-meta-info .avatar .avatar-img,
.user-meta-info .avatar .avatar-initial {
  cursor: default !important;
}

/* ==========================================================================
   PROPORTIONAL 4-TIER AVATAR INITIAL FONT SIZE HIERARCHY (~37% - 40% of circle)
   ========================================================================== */
/* Tier 1: Paling Kecil (Circle: 26px - 32px | Font: 10px - 12px) */
.avatar-xs .avatar-initial,
.avatar-xs.avatar-initial {
  font-size: 0.65rem !important; /* ~10.4px in 26px circle (~40%) */
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.2px !important;
}

.avatar-sm .avatar-initial,
.avatar-sm.avatar-initial {
  font-size: 0.75rem !important; /* ~12px in 32px circle (~37.5%) */
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.2px !important;
}

/* Tier 2: Normal / Standar (Circle: 38px - 40px | Font: 14px - 14.5px) */
.avatar-md .avatar-initial,
.avatar-md.avatar-initial,
.avatar:not(.avatar-xs):not(.avatar-sm):not(.avatar-lg):not(.avatar-xl):not(.avatar-xxl):not(.avatar-user-detail):not(.cls-lobby-avatar):not(.profile-mobile-avatar):not(.profile-hero-avatar) .avatar-initial,
.avatar.avatar-user .avatar-initial,
.layout-navbar .avatar .avatar-initial,
.dropdown-user .avatar .avatar-initial,
.account-switch-header-btn .avatar .avatar-initial,
.account-switch-item .avatar .avatar-initial {
  font-size: 0.875rem !important; /* ~14px in 38px circle (~36.8%) */
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Tier 3: Medium (Circle: 48px - 60px | Font: 18px - 22px) */
.avatar-lg .avatar-initial,
.avatar-lg.avatar-initial,
.greeting-section .avatar .avatar-initial {
  font-size: 1.125rem !important; /* ~18px in 48px circle (~37.5%) */
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
}

.avatar-user-detail,
.modal .avatar-user-detail,
#modalDetailAvatarContainer {
  --bs-avatar-size: 3.75rem !important; /* 60px */
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  position: relative !important;
  overflow: hidden !important;
}

.avatar-user-detail .avatar-initial,
.avatar-user-detail .avatar-initials,
#modalDetailAvatarContainer .avatar-initial,
#modalDetailAvatarContainer .avatar-initials,
#detail-user-initials {
  font-size: 1.375rem !important; /* ~22px in 60px circle (~36.7%) */
  font-weight: 600 !important;
  line-height: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

#modalDetailAvatarContainer #detail-user-avatar,
.avatar-user-detail #detail-user-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
}

.profile-hero-avatar {
  --bs-avatar-size: 3.5rem !important; /* 56px */
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
}

.profile-hero-avatar .avatar-initial,
.profile-hero-avatar .profileHeaderAvatarInitials,
.profile-hero-avatar #profileHeaderAvatarInitials {
  font-size: 1.35rem !important; /* ~21.6px in 56px circle (~38.5%) */
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* Tier 4: Large / Hero (Circle: 80px - 120px | Font: 30px - 46px) */
.avatar-xl .avatar-initial,
.avatar-xl.avatar-initial {
  font-size: 1.85rem !important; /* ~29.6px in 80px circle (~37%) */
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

.avatar-xxl .avatar-initial,
.avatar-xxl.avatar-initial,
.cls-lobby-avatar-box .avatar .avatar-initial,
.cls-lobby-avatar-box .cls-lobby-avatar .avatar-initial,
#updateProfileAvatarContainerDesktop .updateProfileAvatarInitials,
#updateProfileAvatarContainerDesktop .avatar-initial,
#updateProfileAvatarContainerDesktop span {
  font-size: 2.85rem !important; /* ~45.6px in 116px - 120px circle (~38% - 39%) */
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  line-height: 1 !important;
}

@media (max-width: 576px) {
  .cls-lobby-avatar-box .avatar .avatar-initial,
  .cls-lobby-avatar-box .cls-lobby-avatar .avatar-initial,
  .profile-mobile-avatar .avatar-initial,
  #updateProfileAvatarContainer .updateProfileAvatarInitials {
    font-size: 2.35rem !important; /* ~38px in 86px - 96px circle (~42%) */
    font-weight: 600 !important;
    line-height: 1 !important;
  }
}

/* 4. Unified Status Ring with Gap & Masking (Online / Offline / Away / Busy)
   - Outer status ring is drawn on .avatar border.
   - Clean transparent gap is created via padding inside the status ring.
   - Avatar image/initial is concentric, neatly scaled/masked inside the gap.
   - Offline avatars have no border and no padding (clean full-circle avatar).
   - Zero pseudo-elements: eliminates all Sneat dot glitches and specificity conflicts. */
.avatar {
  position: relative !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: none !important;
  transition: border-color 0.2s ease-in-out !important;
}

/* Completely neutralize and hide any ::after or ::before pseudo-element dots */
.avatar::after,
.avatar::before,
.avatar.avatar-online::after,
.avatar.avatar-away::after,
.avatar.avatar-busy::after,
.avatar.avatar-offline::after,
[data-bs-theme="dark"] .avatar::after,
[data-bs-theme="dark"] .avatar.avatar-online::after,
[data-bs-theme="dark"] .avatar.avatar-away::after,
[data-bs-theme="dark"] .avatar.avatar-busy::after,
[data-bs-theme="dark"] .avatar.avatar-offline::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Selectable Row & Avatar Interactive Cursor:
   1. Active Selection Mode or Selected Row: Row & contents have cursor: pointer to indicate clicking row toggles selection
   2. Mobile Screen (< 768px): Tapping row opens user detail modal (cursor: pointer)
   3. Desktop (>= 768px) when NOT in selection mode: Row & cells strictly default cursor; buttons/links/checkbox/avatar keep pointer */

/* Mobile Screen (< 768px): Row is clickable for user detail modal or active selection */
@media (max-width: 767.98px) {
  body.selection-mode-active .participant-row,
  body.selection-mode-active .participant-row *,
  body.selection-mode-active .user-row-clickable,
  body.selection-mode-active .user-row-clickable *,
  body.selection-mode-active .selectable-row,
  body.selection-mode-active .selectable-row *,
  body.selection-mode-active tr[data-selectable="true"],
  body.selection-mode-active tr[data-selectable="true"] *,
  body.selection-mode-active .selectable-card,
  body.selection-mode-active .selectable-card *,
  .table.selection-mode-active tr.participant-row,
  .table.selection-mode-active tr.participant-row *,
  .table.selection-mode-active tr.user-row-clickable,
  .table.selection-mode-active tr.user-row-clickable *,
  .table.selection-mode-active tr.selectable-row,
  .table.selection-mode-active tr.selectable-row *,
  .participant-row.selected,
  .participant-row.selected *,
  .participant-row.user-row-selected,
  .participant-row.user-row-selected *,
  .user-row-clickable.selected,
  .user-row-clickable.selected *,
  .user-row-clickable.user-row-selected,
  .user-row-clickable.user-row-selected *,
  .selectable-row.selected,
  .selectable-row.selected *,
  .selectable-row.user-row-selected,
  .selectable-row.user-row-selected *,
  tr[data-selectable="true"].selected,
  tr[data-selectable="true"].selected *,
  .selectable-card.selected,
  .selectable-card.selected *,
  .participant-row-clickable,
  .participant-row-clickable *,
  .user-row-clickable,
  .user-row-clickable *,
  .selectable-card,
  .selectable-card * {
    cursor: pointer;
  }
}

/* Desktop Screen (>= 768px): Table rows & cells ALWAYS have cursor: default (selection strictly via checkbox or avatar) */
@media (min-width: 768px) {
  .participant-row,
  .user-row-clickable,
  .selectable-row,
  tr[data-selectable="true"],
  .table tr.participant-row,
  .table tr.user-row-clickable,
  .table tr.selectable-row,
  .table tbody tr,
  .table tbody td,
  #classesTable tbody tr,
  #classesTable tbody td,
  #usersResultsSection table tbody tr,
  #usersResultsSection table tbody td,
  #teamResultsSection table tbody tr,
  #teamResultsSection table tbody td,
  #attendanceTable tbody tr,
  #attendanceTable tbody td,
  #participantsTable tbody tr,
  #participantsTable tbody td,
  #materialsTable tbody tr,
  #materialsTable tbody td {
    cursor: default !important;
  }

  /* Interactive avatars within rows have pointer cursor */
  .table .avatar,
  .table .avatar *,
  .table .selectable-avatar,
  .table .selectable-avatar *,
  #usersResultsSection .avatar,
  #usersResultsSection .avatar *,
  #teamResultsSection .avatar,
  #teamResultsSection .avatar *,
  #attendanceTable .avatar,
  #attendanceTable .avatar *,
  #participantsTable .avatar,
  #participantsTable .avatar *,
  #materialsTable .avatar,
  #materialsTable .avatar *,
  #broadcastResultsSection .avatar,
  #broadcastResultsSection .avatar *,
  #classesTable .avatar,
  #classesTable .avatar *,
  .user-row-clickable .avatar,
  .user-row-clickable .avatar *,
  .participant-row .avatar,
  .participant-row .avatar *,
  .selectable-card .avatar,
  .selectable-card .avatar *,
  .selected .avatar,
  .selected .avatar *,
  .user-row-selected .avatar,
  .user-row-selected .avatar * {
    cursor: pointer !important;
  }
}


/* Mobile Screen (< 768px): Avatar hover cue is STRICTLY DISABLED (selection is triggered via long-press on row) */
@media (max-width: 767.98px) {
  .participant-row:not(.user-row-selected):not(.selected) .avatar::before,
  .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::before,
  .selectable-row:not(.user-row-selected):not(.selected) .avatar::before,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar::before,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar::before,
  .table td .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::before,
  .participant-row:not(.user-row-selected):not(.selected) .avatar::after,
  .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::after,
  .selectable-row:not(.user-row-selected):not(.selected) .avatar::after,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar::after,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar::after,
  .table td .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::after,
  .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .selectable-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .table td .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .selectable-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .table td .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
  }
}

/* While any modal is open, or when a dropdown is open / interacting with row actions,
   strictly disable avatar hover cues ONLY for unselected items */
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar:hover::before,
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar:hover::after,
body.modal-open .user-row-clickable:not(.selected):not(.user-row-selected) .avatar:hover::before,
body.modal-open .user-row-clickable:not(.selected):not(.user-row-selected) .avatar:hover::after,
body.modal-open .user-row-clickable:not(.selected):not(.user-row-selected) .avatar::before,
body.modal-open .user-row-clickable:not(.selected):not(.user-row-selected) .avatar::after,
.dropdown-open-row .avatar::before,
.dropdown-open-row .avatar::after,
.dropdown-open-row .avatar:hover::before,
.dropdown-open-row .avatar:hover::after,
tr:has(.dropdown-menu.show) .avatar::before,
tr:has(.dropdown-menu.show) .avatar::after,
tr:has([aria-expanded="true"]) .avatar::before,
tr:has([aria-expanded="true"]) .avatar::after,
tr:has(.col-aksi:hover) .avatar::before,
tr:has(.col-aksi:hover) .avatar::after,
tr:has(.col-aksi:focus-within) .avatar::before,
tr:has(.col-aksi:focus-within) .avatar::after,
tr:has(.dropdown:hover) .avatar::before,
tr:has(.dropdown:hover) .avatar::after,
tr:has(.dropdown:focus-within) .avatar::before,
tr:has(.dropdown:focus-within) .avatar::after,
tr:has([data-bs-toggle="dropdown"]:hover) .avatar::before,
tr:has([data-bs-toggle="dropdown"]:hover) .avatar::after,
tr:has([data-bs-toggle="dropdown"]:active) .avatar::before,
tr:has([data-bs-toggle="dropdown"]:active) .avatar::after,
tr:has([data-bs-toggle="dropdown"]:focus) .avatar::before,
tr:has([data-bs-toggle="dropdown"]:focus) .avatar::after,
.user-row-clickable:has(.dropdown-menu.show) .avatar::before,
.user-row-clickable:has(.dropdown-menu.show) .avatar::after,
.user-row-clickable:has([aria-expanded="true"]) .avatar::before,
.user-row-clickable:has([aria-expanded="true"]) .avatar::after,
.user-row-clickable:has(.col-aksi:hover) .avatar::before,
.user-row-clickable:has(.col-aksi:hover) .avatar::after,
.user-row-clickable:has(.col-aksi:focus-within) .avatar::before,
.user-row-clickable:has(.col-aksi:focus-within) .avatar::after,
.user-row-clickable:has(.dropdown:hover) .avatar::before,
.user-row-clickable:has(.dropdown:hover) .avatar::after,
.user-row-clickable:has(.dropdown:focus-within) .avatar::before,
.user-row-clickable:has(.dropdown:focus-within) .avatar::after,
.user-row-clickable:has([data-bs-toggle="dropdown"]:hover) .avatar::before,
.user-row-clickable:has([data-bs-toggle="dropdown"]:hover) .avatar::after,
.user-row-clickable:has([data-bs-toggle="dropdown"]:active) .avatar::before,
.user-row-clickable:has([data-bs-toggle="dropdown"]:active) .avatar::after,
.user-row-clickable:has([data-bs-toggle="dropdown"]:focus) .avatar::before,
.user-row-clickable:has([data-bs-toggle="dropdown"]:focus) .avatar::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
  pointer-events: none !important;
  transition: none !important;
}

/* Selected row avatars: ALWAYS preserve active primary background and checkmark, even when hovered in modals */
tr.selected .avatar:hover::before,
tr.user-row-selected .avatar:hover::before,
.selected .avatar:hover::before,
.user-row-selected .avatar:hover::before,
.user-row-clickable.selected .avatar:hover::before,
.user-row-clickable.user-row-selected .avatar:hover::before,
.participant-row.selected .avatar:hover::before,
.participant-row.user-row-selected .avatar:hover::before,
.recovery-user-row.selected .avatar:hover::before,
.recovery-user-row.user-row-selected .avatar:hover::before,
.selectable-card.selected .avatar:hover::before,
body.modal-open tr.selected .avatar:hover::before,
body.modal-open tr.user-row-selected .avatar:hover::before,
body.modal-open .selected .avatar:hover::before,
body.modal-open .user-row-selected .avatar:hover::before,
body.modal-open .recovery-user-row.selected .avatar:hover::before,
body.modal-open .recovery-user-row.user-row-selected .avatar:hover::before {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background-color: var(--bs-primary) !important;
}

tr.selected .avatar:hover::after,
tr.user-row-selected .avatar:hover::after,
.selected .avatar:hover::after,
.user-row-selected .avatar:hover::after,
.user-row-clickable.selected .avatar:hover::after,
.user-row-clickable.user-row-selected .avatar:hover::after,
.participant-row.selected .avatar:hover::after,
.participant-row.user-row-selected .avatar:hover::after,
.recovery-user-row.selected .avatar:hover::after,
.recovery-user-row.user-row-selected .avatar:hover::after,
.selectable-card.selected .avatar:hover::after,
body.modal-open tr.selected .avatar:hover::after,
body.modal-open tr.user-row-selected .avatar:hover::after,
body.modal-open .selected .avatar:hover::after,
body.modal-open .user-row-selected .avatar:hover::after,
body.modal-open .recovery-user-row.selected .avatar:hover::after,
body.modal-open .recovery-user-row.user-row-selected .avatar:hover::after {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / 55% !important;
}

/* Desktop Only (>= 768px with fine pointer): Smooth Fade Overlay & Scale Checkbox Cue
   Strictly scoped ONLY to tables and cards with active Bulk Selection features */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::before,
  #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::before,
  #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar::before,
  #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar::before,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar::before,
  .export-participant-row:not(.user-row-selected):not(.selected) .avatar::before,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: var(--bs-primary) !important;
    border-radius: 50% !important;
    border: none !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    transition: opacity 0.18s ease, visibility 0.18s ease !important;
    pointer-events: none !important;
  }

  #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::after,
  #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar::after,
  #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar::after,
  #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar::after,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar::after,
  .export-participant-row:not(.user-row-selected):not(.selected) .avatar::after,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='4.5' width='15' height='15' rx='3.5'/%3E%3C/svg%3E") no-repeat center / 50% !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 10 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: opacity !important;
    transition: opacity 0.18s ease, visibility 0.18s ease !important;
    pointer-events: none !important;
  }

  /* Desktop Hover State: Primary background circle fades in, checkbox smoothly scales up to 1 */
  #usersResultsSection .user-row-clickable .avatar:hover,
  #teamResultsSection .user-row-clickable .avatar:hover,
  #attendanceTable .participant-row .avatar:hover,
  #participantsTable .participant-row .avatar:hover,
  tr[data-selectable="true"] .avatar:hover,
  .export-participant-row .avatar:hover,
  .selectable-card .avatar:hover,
  .selected .avatar:hover,
  .user-row-selected .avatar:hover {
    cursor: pointer !important;
  }

  #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .export-participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] .export-participant-row:not(.user-row-selected):not(.selected) .avatar:hover::before,
  [data-bs-theme="dark"] .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::before {
    opacity: 0.92 !important;
    visibility: visible !important;
    transform: none !important;
    cursor: pointer !important;
  }

  #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after,
  #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after,
  #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .export-participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] #usersResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] #teamResultsSection .user-row-clickable:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] #attendanceTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] #participantsTable .participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] tr[data-selectable="true"]:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] .export-participant-row:not(.user-row-selected):not(.selected) .avatar:hover::after,
  [data-bs-theme="dark"] .selectable-card:not(.user-row-selected):not(.selected) .avatar:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    cursor: pointer !important;
  }
}

/* STRICT EXCLUSION: Modals, modal tables, and unselected recovery rows must NEVER show avatar hover cues or ghost checkbox boxes */
.modal tr:not(.selected):not(.user-row-selected) .avatar::before,
.modal tr:not(.selected):not(.user-row-selected) .avatar::after,
.modal tr:not(.selected):not(.user-row-selected) .avatar:hover::before,
.modal tr:not(.selected):not(.user-row-selected) .avatar:hover::after,
.modal .avatar:not(.selected *):not(.user-row-selected *)::before,
.modal .avatar:not(.selected *):not(.user-row-selected *)::after,
.modal .avatar:not(.selected *):not(.user-row-selected *):hover::before,
.modal .avatar:not(.selected *):not(.user-row-selected *):hover::after,
.modal-table-container .avatar:not(.selected *):not(.user-row-selected *)::before,
.modal-table-container .avatar:not(.selected *):not(.user-row-selected *)::after,
.modal-table-container .avatar:not(.selected *):not(.user-row-selected *):hover::before,
.modal-table-container .avatar:not(.selected *):not(.user-row-selected *):hover::after,
.recovery-user-row:not(.selected):not(.user-row-selected) .avatar::before,
.recovery-user-row:not(.selected):not(.user-row-selected) .avatar::after,
.recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::before,
.recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::after,
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar::before,
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar::after,
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar:hover::before,
body.modal-open tr:not(.selected):not(.user-row-selected) .avatar:hover::after,
body.modal-open .recovery-user-row:not(.selected):not(.user-row-selected) .avatar::before,
body.modal-open .recovery-user-row:not(.selected):not(.user-row-selected) .avatar::after,
body.modal-open .recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::before,
body.modal-open .recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::after,
[data-bs-theme="dark"] .modal tr:not(.selected):not(.user-row-selected) .avatar::before,
[data-bs-theme="dark"] .modal tr:not(.selected):not(.user-row-selected) .avatar::after,
[data-bs-theme="dark"] .modal tr:not(.selected):not(.user-row-selected) .avatar:hover::before,
[data-bs-theme="dark"] .modal tr:not(.selected):not(.user-row-selected) .avatar:hover::after,
[data-bs-theme="dark"] .recovery-user-row:not(.selected):not(.user-row-selected) .avatar::before,
[data-bs-theme="dark"] .recovery-user-row:not(.selected):not(.user-row-selected) .avatar::after,
[data-bs-theme="dark"] .recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::before,
[data-bs-theme="dark"] .recovery-user-row:not(.selected):not(.user-row-selected) .avatar:hover::after,
#tableReferralList .avatar::before,
#tableReferralList .avatar::after,
#tableReferralList .avatar:hover::before,
#tableReferralList .avatar:hover::after,
#referralDetailContent .avatar::before,
#referralDetailContent .avatar::after,
#referralDetailContent .avatar:hover::before,
#referralDetailContent .avatar:hover::after,
.referral-row-clickable .avatar::before,
.referral-row-clickable .avatar::after,
.referral-row-clickable .avatar:hover::before,
.referral-row-clickable .avatar:hover::after,
.rank-row .avatar::before,
.rank-row .avatar::after,
.rank-row .avatar:hover::before,
.rank-row .avatar:hover::after,
#table-dashboard-users .avatar::before,
#table-dashboard-users .avatar::after,
#table-dashboard-users .avatar:hover::before,
#table-dashboard-users .avatar:hover::after,
.non-selectable .avatar::before,
.non-selectable .avatar::after,
.non-selectable .avatar:hover::before,
.non-selectable .avatar:hover::after,
[data-selectable="false"] .avatar::before,
[data-selectable="false"] .avatar::after,
[data-selectable="false"] .avatar:hover::before,
[data-selectable="false"] .avatar:hover::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
  background: none !important;
  transform: none !important;
  transition: none !important;
}

/* Ensure informational & non-selectable avatars strictly have default cursor */
.rank-row .avatar,
.rank-row .avatar *,
.non-selectable .avatar,
.non-selectable .avatar *,
[data-selectable="false"] .avatar,
[data-selectable="false"] .avatar *,
.referral-row-clickable .avatar,
.referral-row-clickable .avatar *,
#table-dashboard-users .avatar,
#table-dashboard-users .avatar * {
  cursor: default !important;
}

/* Allow selection checklist circle & checkmark pseudo-elements on selected avatar rows/cards */
.selected .avatar::before,
.user-row-selected .avatar::before,
tr.selected .avatar::before,
tr.user-row-selected .avatar::before,
.user-row-clickable.selected .avatar::before,
.user-row-clickable.user-row-selected .avatar::before,
.participant-row.selected .avatar::before,
.participant-row.user-row-selected .avatar::before,
.export-participant-row.selected .avatar::before,
.export-participant-row.user-row-selected .avatar::before,
.recovery-user-row.selected .avatar::before,
.selectable-card.selected .avatar::before,
[data-bs-theme="dark"] .selected .avatar::before,
[data-bs-theme="dark"] .user-row-selected .avatar::before,
[data-bs-theme="dark"] tr.selected .avatar::before,
[data-bs-theme="dark"] tr.user-row-selected .avatar::before,
[data-bs-theme="dark"] .user-row-clickable.selected .avatar::before,
[data-bs-theme="dark"] .user-row-clickable.user-row-selected .avatar::before,
[data-bs-theme="dark"] .selected .avatar.avatar-online::before,
[data-bs-theme="dark"] .user-row-selected .avatar.avatar-online::before,
[data-bs-theme="dark"] tr.selected .avatar.avatar-online::before,
[data-bs-theme="dark"] tr.user-row-selected .avatar.avatar-online::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: var(--bs-primary) !important;
  border-radius: 50% !important;
  border: none !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  cursor: pointer !important;
}

.selected .avatar::after,
.user-row-selected .avatar::after,
tr.selected .avatar::after,
tr.user-row-selected .avatar::after,
.user-row-clickable.selected .avatar::after,
.user-row-clickable.user-row-selected .avatar::after,
.participant-row.selected .avatar::after,
.participant-row.user-row-selected .avatar::after,
.export-participant-row.selected .avatar::after,
.export-participant-row.user-row-selected .avatar::after,
.recovery-user-row.selected .avatar::after,
.selectable-card.selected .avatar::after,
[data-bs-theme="dark"] .selected .avatar::after,
[data-bs-theme="dark"] .user-row-selected .avatar::after,
[data-bs-theme="dark"] tr.selected .avatar::after,
[data-bs-theme="dark"] tr.user-row-selected .avatar::after,
[data-bs-theme="dark"] .user-row-clickable.selected .avatar::after,
[data-bs-theme="dark"] .user-row-clickable.user-row-selected .avatar::after,
[data-bs-theme="dark"] .selected .avatar.avatar-online::after,
[data-bs-theme="dark"] .user-row-selected .avatar.avatar-online::after,
[data-bs-theme="dark"] tr.selected .avatar.avatar-online::after,
[data-bs-theme="dark"] tr.user-row-selected .avatar.avatar-online::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / 55% !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 10 !important;
  pointer-events: none !important;
  cursor: pointer !important;
}

/* Online Status Ring - Vibrant Green + Transparent Gap */
.avatar.avatar-online,
.avatar-md.avatar-online {
  border: 2px solid var(--bs-success, #71dd37) !important;
  background-color: transparent !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-xs.avatar-online {
  border: 1.5px solid var(--bs-success, #71dd37) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-sm.avatar-online {
  border: 2px solid var(--bs-success, #71dd37) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-lg.avatar-online {
  border: 2.5px solid var(--bs-success, #71dd37) !important;
  background-color: transparent !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-xl.avatar-online {
  border: 3px solid var(--bs-success, #71dd37) !important;
  background-color: transparent !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Away / Idle Status Ring - Warm Amber + Transparent Gap */
.avatar.avatar-away,
.avatar.avatar-idle,
.avatar-md.avatar-away,
.avatar-md.avatar-idle {
  border: 2px solid var(--bs-warning, #ffab00) !important;
  background-color: transparent !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-xs.avatar-away,
.avatar-xs.avatar-idle {
  border: 1.5px solid var(--bs-warning, #ffab00) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-sm.avatar-away,
.avatar-sm.avatar-idle {
  border: 2px solid var(--bs-warning, #ffab00) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-lg.avatar-away,
.avatar-lg.avatar-idle {
  border: 2.5px solid var(--bs-warning, #ffab00) !important;
  background-color: transparent !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-xl.avatar-away,
.avatar-xl.avatar-idle {
  border: 3px solid var(--bs-warning, #ffab00) !important;
  background-color: transparent !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Busy Status Ring - Danger Red + Transparent Gap */
.avatar.avatar-busy,
.avatar-md.avatar-busy {
  border: 2px solid var(--bs-danger, #ff3e1d) !important;
  background-color: transparent !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-xs.avatar-busy {
  border: 1.5px solid var(--bs-danger, #ff3e1d) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-sm.avatar-busy {
  border: 2px solid var(--bs-danger, #ff3e1d) !important;
  background-color: transparent !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-lg.avatar-busy {
  border: 2.5px solid var(--bs-danger, #ff3e1d) !important;
  background-color: transparent !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

.avatar-xl.avatar-busy {
  border: 3px solid var(--bs-danger, #ff3e1d) !important;
  background-color: transparent !important;
  padding: 5px !important;
  box-sizing: border-box !important;
}

/* Offline Status - Clean Full Avatar without Outline & without Gap (Zero layout shift) */
.avatar.avatar-offline,
.avatar-xs.avatar-offline,
.avatar-sm.avatar-offline,
.avatar-md.avatar-offline,
.avatar-lg.avatar-offline,
.avatar-xl.avatar-offline {
  border: none !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* Inner Avatar (Image & Initials) Sizing & Gap inside Status Ring:
   Consistently contained inside the status ring padding, providing a clear transparent gap */
.avatar.avatar-online > img,
.avatar.avatar-online > .avatar-img,
.avatar.avatar-online > .avatar-initial,
.avatar.avatar-away > img,
.avatar.avatar-away > .avatar-img,
.avatar.avatar-away > .avatar-initial,
.avatar.avatar-busy > img,
.avatar.avatar-busy > .avatar-img,
.avatar.avatar-busy > .avatar-initial,
.user-meta-info .avatar.avatar-online > img,
.user-meta-info .avatar.avatar-online > .avatar-img,
.user-meta-info .avatar.avatar-online > .avatar-initial,
.user-meta-info .avatar.avatar-away > img,
.user-meta-info .avatar.avatar-away > .avatar-img,
.user-meta-info .avatar.avatar-away > .avatar-initial,
.user-meta-info .avatar.avatar-busy > img,
.user-meta-info .avatar.avatar-busy > .avatar-img,
.user-meta-info .avatar.avatar-busy > .avatar-initial,
.table td .avatar.avatar-online > img,
.table td .avatar.avatar-online > .avatar-img,
.table td .avatar.avatar-online > .avatar-initial,
.table td .avatar.avatar-away > img,
.table td .avatar.avatar-away > .avatar-img,
.table td .avatar.avatar-away > .avatar-initial,
.table td .avatar.avatar-busy > img,
.table td .avatar.avatar-busy > .avatar-img,
.table td .avatar.avatar-busy > .avatar-initial {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  object-fit: cover !important;
}

/* Proportionate initial text size when avatar is inset inside a status ring */
.avatar.avatar-online > .avatar-initial,
.avatar.avatar-away > .avatar-initial,
.avatar.avatar-busy > .avatar-initial,
.user-meta-info .avatar.avatar-online > .avatar-initial,
.user-meta-info .avatar.avatar-away > .avatar-initial,
.user-meta-info .avatar.avatar-busy > .avatar-initial {
  font-size: 0.76rem !important;
}

.avatar-sm.avatar-online > .avatar-initial,
.avatar-sm.avatar-away > .avatar-initial,
.avatar-sm.avatar-busy > .avatar-initial,
.user-meta-sm .avatar.avatar-online > .avatar-initial {
  font-size: 0.65rem !important;
}

.avatar-xs.avatar-online > .avatar-initial,
.avatar-xs.avatar-away > .avatar-initial,
.avatar-xs.avatar-busy > .avatar-initial {
  font-size: 0.52rem !important;
}

.avatar-lg.avatar-online > .avatar-initial,
.avatar-lg.avatar-away > .avatar-initial,
.avatar-lg.avatar-busy > .avatar-initial {
  font-size: 1.15rem !important;
}

.avatar-xl.avatar-online > .avatar-initial,
.avatar-xl.avatar-away > .avatar-initial,
.avatar-xl.avatar-busy > .avatar-initial {
  font-size: 1.45rem !important;
}

/* Offline avatar full dimension overlay */
.avatar.avatar-offline > img,
.avatar.avatar-offline > .avatar-img,
.avatar.avatar-offline > .avatar-initial,
.avatar:not(.avatar-online):not(.avatar-away):not(.avatar-idle):not(.avatar-busy) > img,
.avatar:not(.avatar-online):not(.avatar-away):not(.avatar-idle):not(.avatar-busy) > .avatar-img,
.avatar:not(.avatar-online):not(.avatar-away):not(.avatar-idle):not(.avatar-busy) > .avatar-initial {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   HIDE STATUS OUTLINE RING ON SELECTED (FOR CHECKMARK SELECTION OVERLAY)
   When a user row, card, or item is SELECTED (checked/bulk select),
   hide the status outline ring so the clean checkmark badge appears smoothly.
   Hover states MUST PRESERVE the status outline ring!
   ========================================================================== */
.selected .avatar,
.user-row-selected .avatar,
tr.selected .avatar,
tr.user-row-selected .avatar,
tr.table-active .avatar,
tr.active .avatar,
tr:has(input[type="checkbox"]:checked) .avatar,
tr:has(.form-check-input:checked) .avatar,
.selectable-card.selected .avatar,
.participant-row.selected .avatar,
.participant-row.user-row-selected .avatar,
.export-participant-row.selected .avatar,
.export-participant-row.user-row-selected .avatar,
.recovery-user-row.selected .avatar,
.user-row-clickable.selected .avatar,
.user-row-clickable.user-row-selected .avatar,
.user-row-clickable.active .avatar,
.user-card.selected .avatar,
.user-row.selected .avatar,
.list-group-item.active .avatar,
.dropdown-item.active .avatar,
[data-bs-theme="dark"] .selected .avatar,
[data-bs-theme="dark"] .user-row-selected .avatar,
[data-bs-theme="dark"] tr.selected .avatar,
[data-bs-theme="dark"] tr.user-row-selected .avatar,
[data-bs-theme="dark"] tr.table-active .avatar {
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  outline: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.selected .avatar::before,
.user-row-selected .avatar::before,
tr.selected .avatar::before,
tr.user-row-selected .avatar::before,
.selectable-card.selected .avatar::before,
.participant-row.selected .avatar::before,
.participant-row.user-row-selected .avatar::before,
.export-participant-row.selected .avatar::before,
.export-participant-row.user-row-selected .avatar::before,
.recovery-user-row.selected .avatar::before,
.user-row-clickable.selected .avatar::before,
.user-row-clickable.user-row-selected .avatar::before,
.selected .avatar::after,
.user-row-selected .avatar::after,
tr.selected .avatar::after,
tr.user-row-selected .avatar::after,
.selectable-card.selected .avatar::after,
.participant-row.selected .avatar::after,
.participant-row.user-row-selected .avatar::after,
.export-participant-row.selected .avatar::after,
.export-participant-row.user-row-selected .avatar::after,
.recovery-user-row.selected .avatar::after,
.user-row-clickable.selected .avatar::after,
.user-row-clickable.user-row-selected .avatar::after,
[data-bs-theme="dark"] .selected .avatar::before,
[data-bs-theme="dark"] .user-row-selected .avatar::before,
[data-bs-theme="dark"] tr.selected .avatar::before,
[data-bs-theme="dark"] tr.user-row-selected .avatar::before,
[data-bs-theme="dark"] .selected .avatar::after,
[data-bs-theme="dark"] .user-row-selected .avatar::after,
[data-bs-theme="dark"] tr.selected .avatar::after,
[data-bs-theme="dark"] tr.user-row-selected .avatar::after {
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 50% !important;
}

/* 5. Reusable User Meta Info (.user-meta-info)
   Unified container for Avatar + Name + NIS/Custom ID */
.user-meta-info {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
}

.user-meta-info .avatar {
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
  margin-inline-end: 0.5rem !important;
}

@media (max-width: 767.98px) {
  .user-meta-info .avatar:first-child {
    margin-left: 0 !important;
    margin-right: 0.6rem !important;
  }
}

.user-meta-info .user-name {
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  line-height: 1.25 !important;
  color: var(--bs-heading-color, inherit) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.user-meta-info .user-id {
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  color: var(--bs-secondary-color, #7b7b7b) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 5.1 Sizing variants for User Meta Info */
/* Small (e.g. mobile tables / dense selection modal) */
.user-meta-sm .user-name {
  font-size: 0.8125rem !important; /* ~13px */
}
.user-meta-sm .user-id {
  font-size: 0.75rem !important;   /* ~12px */
}

/* Medium (Standard default) */
.user-meta-md .user-name {
  font-size: 0.875rem !important;  /* ~14px */
}
.user-meta-md .user-id {
  font-size: 0.8125rem !important; /* ~13px */
}

/* Large (Desktop profile cards / prominent lists) */
.user-meta-lg .user-name {
  font-size: 1rem !important;      /* ~16px */
}
.user-meta-lg .user-id {
  font-size: 0.875rem !important;  /* ~14px */
}

/* 6. Modal Detail Avatar & Modal User Name Styling */
.avatar.avatar-user-detail {
  --bs-avatar-size: 50px !important;
  width: 50px !important;
  height: 50px !important;
  inline-size: 50px !important;
  block-size: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  position: relative !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.avatar.avatar-user-detail.avatar-online {
  border: 2.5px solid var(--bs-success, #71dd37) !important;
  padding: 4.5px !important;
}

.avatar.avatar-user-detail.avatar-away,
.avatar.avatar-user-detail.avatar-idle {
  border: 2.5px solid var(--bs-warning, #ffab00) !important;
  padding: 4.5px !important;
}

.avatar.avatar-user-detail.avatar-busy {
  border: 2.5px solid var(--bs-danger, #ff3e1d) !important;
  padding: 4.5px !important;
}

.avatar.avatar-user-detail.avatar-offline {
  border: none !important;
  padding: 0 !important;
}

.avatar.avatar-user-detail img,
.avatar.avatar-user-detail .avatar-img,
.avatar.avatar-user-detail .avatar-initials,
.avatar.avatar-user-detail .avatar-initial {
  border-radius: 50% !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 1.15rem !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

/* Modal User Name - bright whitish heading matching table rows in dark mode */
.modal-user-name,
#detail-user-name,
#modal-name,
#modalDetailName {
  color: var(--bs-heading-color, #1a1a1a) !important;
  font-weight: 700 !important;
}

[data-bs-theme="dark"] .modal-user-name,
[data-bs-theme="dark"] #detail-user-name,
[data-bs-theme="dark"] #modal-name,
[data-bs-theme="dark"] #modalDetailName {
  color: var(--bs-heading-color, #e9e9e9) !important;
}

/* 7. Profile Hero Avatar (profile/index & profile/update) - Standard 56px */
.avatar.profile-hero-avatar,
.profile-hero-avatar {
  --bs-avatar-size: 56px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  inline-size: 56px !important;
  block-size: 56px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  cursor: pointer !important;
  margin-right: 0.25rem !important;
  margin-inline-end: 0.25rem !important;
}

.avatar.profile-hero-avatar img,
.profile-hero-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
}

/* 7b. Mobile Profile Hero Avatar - Big 104px Centered */
.avatar.profile-mobile-avatar,
.profile-mobile-avatar {
  --bs-avatar-size: 104px !important;
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  min-height: 104px !important;
  max-width: 104px !important;
  max-height: 104px !important;
  inline-size: 104px !important;
  block-size: 104px !important;
  flex: 0 0 104px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  cursor: pointer !important;
  margin: 0 auto !important;
  border: none !important;
}

#updateProfileAvatarContainer {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.avatar.profile-mobile-avatar img,
.profile-mobile-avatar img,
#updateProfileAvatarImg {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
}

.avatar.profile-hero-avatar .avatar-initial,
.profile-hero-avatar .avatar-initial,
.profile-hero-avatar .profileHeaderAvatarInitials,
.profile-hero-avatar #profileHeaderAvatarInitials {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 50% !important;
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
  background-color: var(--bs-avatar-initial-primary-bg, #36190d) !important;
  color: var(--bs-primary, #ff5911) !important;
}

[data-bs-theme="light"] .avatar.profile-hero-avatar .avatar-initial,
[data-bs-theme="light"] .profile-hero-avatar .avatar-initial,
[data-bs-theme="light"] .profile-hero-avatar .profileHeaderAvatarInitials,
[data-bs-theme="light"] .profile-hero-avatar #profileHeaderAvatarInitials {
  background-color: #fff2ec !important;
  color: var(--bs-primary, #ff5911) !important;
}

.avatar.profile-mobile-avatar .avatar-initial,
.profile-mobile-avatar .avatar-initial,
.profile-mobile-avatar .profileHeaderAvatarInitials,
.profile-mobile-avatar #profileHeaderAvatarInitials,
#profileMobileAvatarInitials {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 50% !important;
  font-size: 2.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  background-color: var(--bs-avatar-initial-primary-bg, #36190d) !important;
  color: var(--bs-primary, #ff5911) !important;
}

[data-bs-theme="light"] .avatar.profile-mobile-avatar .avatar-initial,
[data-bs-theme="light"] .profile-mobile-avatar .avatar-initial,
[data-bs-theme="light"] .profile-mobile-avatar .profileHeaderAvatarInitials,
[data-bs-theme="light"] .profile-mobile-avatar #profileHeaderAvatarInitials,
[data-bs-theme="light"] #profileMobileAvatarInitials {
  background-color: #fff2ec !important;
  color: var(--bs-primary, #ff5911) !important;
}

/* Container-backed avatar circles (Parent has bg-label-primary, child initial span is transparent to prevent double opacity) */
#updateProfileAvatarContainer .updateProfileAvatarInitials,
#updateProfileAvatarContainer #updateProfileAvatarInitials,
#updateProfileAvatarContainer span,
#updateProfileAvatarContainerDesktop .updateProfileAvatarInitials,
#updateProfileAvatarContainerDesktop span,
#avatarPreviewContainer #avatarModalPreviewInitials,
#avatarPreviewContainer span {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bs-primary, #ff5911) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

[data-bs-theme="dark"] #updateProfileAvatarContainer,
[data-bs-theme="dark"] #updateProfileAvatarContainerDesktop,
[data-bs-theme="dark"] #avatarPreviewContainer {
  background-color: var(--bs-avatar-initial-primary-bg, #36190d) !important;
}

[data-bs-theme="light"] #updateProfileAvatarContainer,
[data-bs-theme="light"] #updateProfileAvatarContainerDesktop,
[data-bs-theme="light"] #avatarPreviewContainer {
  background-color: #fff2ec !important;
}

#updateProfileAvatarContainer .updateProfileAvatarInitials,
#updateProfileAvatarContainer #updateProfileAvatarInitials,
#updateProfileAvatarContainer span {
  font-size: 2.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

/* 120px Desktop Profile Update */
#updateProfileAvatarContainerDesktop .updateProfileAvatarInitials,
#updateProfileAvatarContainerDesktop span {
  font-size: 2.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

/* 165px Modal Preview Container */
#avatarPreviewContainer #avatarModalPreviewInitials,
#avatarPreviewContainer span {
  font-size: 4rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.75px !important;
  line-height: 1 !important;
}

.profile-mobile-avatar .avatar-hover-overlay i {
  font-size: 1.5rem !important;
}

/* 7c. Avatar Templates (Circular Picker) */
.avatar-templates-section {
  user-select: none;
}

.avatar-template-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  max-width: 250px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.avatar-template-slider {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.avatar-template-slider::-webkit-scrollbar {
  height: 4px;
}

.avatar-template-slider::-webkit-scrollbar-thumb {
  background: var(--bs-border-color, rgba(255, 255, 255, 0.2));
  border-radius: 4px;
}

.avatar-template-item {
  width: 65px !important;
  height: 65px !important;
  min-width: 65px !important;
  min-height: 65px !important;
  border-radius: 50% !important;
  border: 2px solid var(--bs-border-color, rgba(255, 255, 255, 0.2)) !important;
  padding: 0 !important;
  cursor: pointer !important;
  background: transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden !important;
}

.avatar-template-item:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.6) !important;
  transform: scale(1.06) !important;
}

.avatar-template-item.is-active,
.avatar-template-item.border-primary {
  border-color: transparent !important;
  outline: 2.5px solid var(--bs-primary) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
  transform: scale(1.05) !important;
}

.avatar-template-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* User's own avatar (Navbar, Dropdown, Greeting, etc.) must never show status ring */
.avatar.avatar-user,
.avatar-user,
.navbar-dropdown .avatar,
.account-switch-header-btn .avatar,
.account-switch-header-static .avatar,
.greeting-section .avatar {
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.account-switch-header-static .avatar,
.account-switch-header-static .avatar *,
.account-switch-header-static .avatar-initial,
.account-switch-header-static .avatar-img {
  cursor: default !important;
  pointer-events: auto !important;
}

/* 8. Clickable Avatars (Links, Buttons, Dropdowns, Toggles, etc.) */
a.avatar:not(.profile-index-avatar),
a:not(.profile-index-avatar) .avatar,
a .avatar-initial,
a .avatar-img,
button.avatar:not(.profile-index-avatar),
button .avatar,
button .avatar-initial,
button .avatar-img,
[role="button"] .avatar,
[role="button"] .avatar-initial,
[role="button"] .avatar-img,
[data-bs-toggle="dropdown"] .avatar,
[data-bs-toggle="dropdown"] .avatar-initial,
[data-bs-toggle="dropdown"] .avatar-img,
.cursor-pointer .avatar:not(.profile-index-avatar),
.cursor-pointer.avatar:not(.profile-index-avatar),
.cursor-pointer .avatar-initial,
.cursor-pointer .avatar-img,
.layout-navbar #profile-menu .avatar,
.layout-navbar #profile-menu .avatar-initial,
.layout-navbar #profile-menu .avatar-img,
.dropdown-user > a .avatar,
.dropdown-user > a .avatar-initial,
.dropdown-user > a .avatar-img,
.account-switch-header-btn .avatar,
.account-switch-header-btn .avatar-initial,
.account-switch-header-btn .avatar-img,
.account-switch-item .avatar,
.account-switch-item .avatar-initial,
.account-switch-item .avatar-img,
.greeting-section a.avatar {
  cursor: pointer !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

a.avatar:not(.profile-index-avatar):hover,
a.avatar:not(.profile-index-avatar):active,
a:not(.profile-index-avatar):not(#profile-menu):hover .avatar,
a:not(.profile-index-avatar):not(#profile-menu):active .avatar,
.layout-navbar #profile-menu:hover:not(:active) .avatar,
.layout-navbar #profile-menu:hover:not(:active) .avatar-initial,
.layout-navbar #profile-menu:hover:not(:active) .avatar-img,
a.account-switch-header-btn:hover .avatar,
a.account-switch-header-btn:hover .avatar-initial,
a.account-switch-header-btn:hover .avatar-img,
.account-switch-item:hover .avatar,
.account-switch-item:hover .avatar-initial,
.account-switch-item:hover .avatar-img {
  opacity: 1 !important;
  filter: none !important;
}

/* 9. Modal Detail Avatar Click Effect (Only when user has a real profile photo) */
.avatar.avatar-user-detail.avatar-zoomable.has-image,
.avatar.avatar-user-detail.avatar-zoomable.has-image .avatar-img {
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.avatar.avatar-user-detail.avatar-zoomable.has-image:hover {
  opacity: 0.9 !important;
  transform: scale(1.04) !important;
}

.avatar.avatar-user-detail.avatar-zoomable.has-image:active {
  opacity: 0.8 !important;
  transform: scale(0.95) !important;
}

/* Modal Detail Avatar without image (Initials only): completely static, default cursor, no hover animations */
.avatar.avatar-user-detail:not(.has-image),
.avatar.avatar-user-detail:not(.has-image) *,
.avatar.avatar-user-detail:not(.avatar-zoomable),
.avatar.avatar-user-detail:not(.avatar-zoomable) *,
.avatar.avatar-user-detail .avatar-initials,
.avatar.avatar-user-detail .avatar-initial {
  cursor: default !important;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  user-select: none !important;
}

.avatar.avatar-user-detail:not(.has-image):hover,
.avatar.avatar-user-detail:not(.avatar-zoomable):hover,
.avatar.avatar-user-detail:not(.has-image):active,
.avatar.avatar-user-detail:not(.avatar-zoomable):active {
  transform: none !important;
  opacity: 1 !important;
  cursor: default !important;
  box-shadow: none !important;
}

/* User Avatar Lightbox - Matches Modal Styling & Directly Circular */
.user-avatar-lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  cursor: pointer !important;
}

.user-avatar-lightbox-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Matching Navbar Hamburger / Circular Action Button */
.avatar-lightbox-close {
  position: absolute !important;
  top: calc(22px + env(safe-area-inset-top, 0px)) !important;
  right: calc(1rem + env(safe-area-inset-right, 0px)) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
  z-index: 100005 !important;
  outline: none !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.1s ease, color 0.15s ease !important;
  background: var(--bs-btn-circle-bg, #e5e5e5) !important;
  background-color: var(--bs-btn-circle-bg, #e5e5e5) !important;
  color: var(--bs-btn-circle-color, #2c2c2c) !important;
}

.avatar-lightbox-close i {
  font-size: 1.35rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
}

.avatar-lightbox-close:hover,
.avatar-lightbox-close:focus {
  background: var(--bs-btn-circle-hover-bg, #e2e2e2) !important;
  background-color: var(--bs-btn-circle-hover-bg, #e2e2e2) !important;
  color: var(--bs-btn-circle-hover-color, #000000) !important;
}

.avatar-lightbox-close:active {
  transform: scale(0.92) !important;
}

/* Dark Theme: Matching Close Button in Dark Mode (Full Solid, Non-Transparent) */
[data-bs-theme="dark"] .avatar-lightbox-close,
html[data-bs-theme="dark"] .avatar-lightbox-close,
[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close,
html[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close {
  background: var(--bs-secondary-bg, #2d2d2d) !important;
  background-color: var(--bs-secondary-bg, #2d2d2d) !important;
  color: var(--white, #ffffff) !important;
  border: none !important;
}

[data-bs-theme="dark"] .avatar-lightbox-close:hover,
[data-bs-theme="dark"] .avatar-lightbox-close:focus,
html[data-bs-theme="dark"] .avatar-lightbox-close:hover,
html[data-bs-theme="dark"] .avatar-lightbox-close:focus,
[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close:hover,
[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close:focus,
html[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close:hover,
html[data-bs-theme="dark"] #userAvatarLightbox .avatar-lightbox-close:focus {
  background: var(--bs-gray-100, #3c3c3c) !important;
  background-color: var(--bs-gray-100, #3c3c3c) !important;
  color: var(--white, #ffffff) !important;
}

@media (min-width: 768px) {
  .avatar-lightbox-close {
    top: calc(1.25rem + env(safe-area-inset-top, 0px)) !important;
    right: calc(1.5rem + env(safe-area-inset-right, 0px)) !important;
  }
}

.user-avatar-lightbox-body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  z-index: 100001 !important;
  cursor: default !important;
}

/* Pure Circular Avatar Preview */
.user-avatar-lightbox-img {
  width: min(72vw, 72vh, 320px) !important;
  height: min(72vw, 72vh, 320px) !important;
  max-width: 320px !important;
  max-height: 320px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
  transform: scale(0.9) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  cursor: pointer !important;
}

.user-avatar-lightbox-overlay.active .user-avatar-lightbox-img {
  transform: scale(1) !important;
}

@media (max-width: 767.98px) {
  .user-avatar-lightbox-img {
    width: min(76vw, 76vh, 280px) !important;
    height: min(76vw, 76vh, 280px) !important;
    border-radius: 50% !important;
  }
}

/* ==========================================================================
   Tactile Bounce Click Effect (Khusus Avatar di profile/index)
   Bounce inward (scale 0.88) saat ditekan/klik, spring back saat lepas, NO hover
   ========================================================================== */
a.avatar.profile-index-avatar,
.avatar.profile-index-avatar,
.profile-index-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  will-change: transform;
  -webkit-tap-highlight-color: transparent !important;
  transform-origin: center center !important;
  user-select: none;
}

a.avatar.profile-index-avatar:hover,
.avatar.profile-index-avatar:hover,
.profile-index-avatar:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

a.avatar.profile-index-avatar:active,
.avatar.profile-index-avatar:active,
.profile-index-avatar:active,
a.avatar.profile-index-avatar.avatar-pressed,
.avatar.profile-index-avatar.avatar-pressed,
.profile-index-avatar.avatar-pressed {
  transform: scale(0.88) !important;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Adjust size and position of avatar status dot inside bug report detail modal to match Sneat navbar style */
.avatar-bug-detail.avatar-online::after, 
.avatar-bug-detail.avatar-offline::after, 
.avatar-bug-detail.avatar-away::after, 
.avatar-bug-detail.avatar-busy::after {
  width: 12px !important;
  height: 12px !important;
  bottom: -1px !important;
  right: -1px !important;
  border: 2px solid var(--bs-card-bg, #fff) !important;
  box-shadow: 0 0 0 1.5px var(--bs-card-bg, #fff) !important;
}


