/* Fotos de perfil y logos dentro de círculos: el círculo nunca se deforma
   (1:1, no se encoge dentro de un flex) y la imagen lo llena, recortada al
   centro. Se carga al final para ganarle a la regla general object-fit:contain. */

#txCommercePeerAvatar,
.sidebar-profile-avatar,
.tx-commerce-call-avatar,
.tx-commerce-chat-avatar,
.tx-commerce-chat-header .avatar,
.tx-commerce-chat-identity .avatar,
.tx-commerce-chat-incoming .avatar,
.tx-commerce-peer-card .profile-avatar,
.tx-circle,
.tx-feature-user-avatar,
.tx41-avatar-fallback,
.user-avatar{
    aspect-ratio:1/1!important;flex:0 0 auto!important;border-radius:50%!important;overflow:hidden!important
}
#txCommercePeerAvatar img,
.sidebar-profile-avatar img,
.tx-commerce-call-avatar img,
.tx-commerce-chat-avatar img,
.tx-commerce-chat-header .avatar img,
.tx-commerce-chat-identity .avatar img,
.tx-commerce-chat-incoming .avatar img,
.tx-commerce-peer-card .profile-avatar img,
.tx-circle img,
.tx-feature-user-avatar img,
.tx41-avatar-fallback img,
.user-avatar img,
.tx-ver26-profile-card img{
    width:100%!important;height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;padding:0!important;max-width:none!important;max-height:none!important
}

/* Fotos de la búsqueda de cuentas y del encabezado de expediente NO tienen un
   contenedor cuadrado propio (van sueltas dentro de un flex), así que un
   width/height:100% queda indeterminado y la foto se muestra a su tamaño
   real (círculo gigante). Se fija tamaño exacto en píxeles, sin importar el
   tamaño original de la imagen subida. */
.tx41-dossier-head>img{
    width:76px!important;height:76px!important;max-width:76px!important;max-height:76px!important;min-width:76px!important;min-height:76px!important;flex:0 0 76px!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;padding:0!important
}
.tx41-search-result img{
    width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;min-width:46px!important;min-height:46px!important;flex:0 0 46px!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;padding:0!important
}

/* Vista previa del logo de comprobantes */
.tx-receipt-logo-preview{width:120px;height:120px;border-radius:16px;background:#f2f4f7;display:grid;place-items:center;overflow:hidden;border:1px solid #e4e7ec}
.tx-receipt-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
