/* ──────────────────────────────────────────────────────────────────────────
   Propzora default avatar. One look everywhere a person's picture is shown.
   No picture (or the picture fails to load) = a clean white circle with a soft grey profile silhouette.
   A real uploaded picture always wins and covers this.
   Used by: .pz-avatar (new markup, see js/pz-avatar.js) and every older avatar box that used to show initials.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --pz-avatar-line: #e5e7eb;
  --pz-avatar-grey: #c3cad5;
  /* head + shoulders, both in the same soft grey */
  --pz-avatar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8.6' r='4.1' fill='%23c3cad5'/%3E%3Cpath d='M3.6 22.5c0-4.9 3.8-8 8.4-8s8.4 3.1 8.4 8z' fill='%23c3cad5'/%3E%3C/svg%3E");
}
[data-theme="dark"] { --pz-avatar-line: rgba(255,255,255,.14); }

/* ── The avatar itself ─────────────────────────────────────────────────── */
.pz-avatar {
  --pz-avatar-size: 40px;
  position: relative;
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: var(--pz-avatar-size);
  height: var(--pz-avatar-size);
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  background-color: #fff;
  background-image: var(--pz-avatar-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 74%;
  border: 1px solid var(--pz-avatar-line);
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.pz-avatar > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 50%; background: #fff;
}
.pz-avatar--xs { --pz-avatar-size: 24px; }
.pz-avatar--sm { --pz-avatar-size: 32px; }
.pz-avatar--md { --pz-avatar-size: 40px; }
.pz-avatar--lg { --pz-avatar-size: 56px; }
.pz-avatar--xl { --pz-avatar-size: 72px; }
.pz-avatar--xxl { --pz-avatar-size: 104px; }
.pz-avatar--52 { --pz-avatar-size: 52px; }
.pz-avatar--center { display: block; margin: 0 auto 16px; }

/* A picture that failed to load disappears so the default shows through (js/pz-avatar.js adds this class). */
img.pz-avatar-img-failed { display: none !important; }

/* ── Older avatar boxes that used to print initials: same look, same silhouette ─────────────
   Their own sizes stay; only the fill changes. The text (if any is left in them) is hidden. */
.pz-avatar-default,
.pz-tr-avatar,
.pz-fp-avatar,
.pz-acct-avatar,
.pz-pay-person:not(.pz-pay-person--new):not(.pz-pay-person--ghost) .pz-pay-person__avatar,
.ap-topbar__avatar {
  box-sizing: border-box !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background-color: #fff !important;
  background-image: var(--pz-avatar-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 74% !important;
  border: 1px solid var(--pz-avatar-line) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
}
.pz-fp-avatar--muted { background-color: #fff !important; color: transparent !important; }
[data-theme="dark"] .pz-acct-avatar,
[data-theme="dark"] .pz-tr-avatar { background-color: #fff !important; }

/* Real pictures inside those boxes fill the circle */
.pz-tr-avatar > img, .pz-fp-avatar > img, .pz-ap-avatar > img, .ap-topbar__avatar > img,
.pz-pay-person__avatar > img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; background: #fff;
}

/* The profile-picture <img> used next to the default on the dashboard */
.pz-acct-avatar-img, #piAvatarImg, #navAvatarImg { border-radius: 50% !important; object-fit: cover; background: #fff; }