
/* AHU_EGA_V9_USERCHIP_ORIGINAL_LOOK
   Przywraca wyglad 1:1 z oryginalnego portal-v2/portal-final.
   Nadpisujemy tylko responsywne ukrywanie na desktop/tablet. */

.portal-topbar.portal-final-topbar .portal-user-chip.portal-account-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:0!important;
  max-width:180px!important;
  flex:0 0 auto!important;
  padding:8px 10px!important;
  border:1px solid var(--ui-edge,var(--p-edge,#e2e8f0))!important;
  border-radius:12px!important;
  background:var(--ui-surface,rgba(255,255,255,.72))!important;
  color:#334155!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.portal-topbar.portal-final-topbar .portal-user-chip.portal-account-chip .portal-user-dot{
  width:8px!important;
  height:8px!important;
  flex:0 0 8px!important;
  border-radius:50%!important;
  background:#22c55e!important;
  box-shadow:0 0 0 4px rgba(34,197,94,.12)!important;
}

.portal-topbar.portal-final-topbar .portal-user-chip.portal-account-chip [data-portal-username]{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  max-width:145px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Oryginal portal-v2 ukrywa .portal-user-chip ponizej 1080 px.
   Tutaj zachowujemy chip az do trybu mobilnego. */
@media (min-width:761px) and (max-width:1080px){
  .portal-topbar.portal-final-topbar .portal-user-chip.portal-account-chip{
    display:inline-flex!important;
  }
}

@media (max-width:760px){
  .portal-topbar.portal-final-topbar .portal-user-chip.portal-account-chip{
    display:none!important;
  }
}
