/* v1.15.7 — desktop/laptop profile-photo clarity only.
   Keep avatar rendering isolated from the rest of HRMS. */
@media (min-width: 769px) {
  .aq-sidebar-user img,
  .aq-profile-dropdown > img,
  .aq-profile-menu-header img,
  .aq-welcome-profile-photo,
  .aqhr-live-rank-card > img,
  .aqp-podium-grid img,
  .aqhr-chat-avatar > img,
  .aqhr-chat-main-avatar > img,
  .aqhr-employee-avatar img,
  .aqhr-employee-card img,
  .aqhr-profile-avatar img,
  .aqhr-profile-photo-frame img,
  .aqhr-page-user-avatar img,
  .aqhr-team-member img,
  .aqhr-top-performer img,
  .aqhr-recognition-card img,
  .aqhr-champion-card > img,
  .aqhr-performer-winners article > img,
  .aqhr-birthday-people article > img,
  img[data-aqhr-avatar],
  img.aqhr-avatar-img {
      object-fit: cover !important;
      object-position: 50% 20% !important;
      image-rendering: auto !important;
      filter: none !important;
      opacity: 1 !important;
      transform: none !important;
      -webkit-transform: none !important;
      backface-visibility: visible !important;
      -webkit-backface-visibility: visible !important;
      will-change: auto !important;
      isolation: isolate;
  }

  /* Use integer CSS dimensions that remain crisp at common Windows
     100%, 125%, 150% and 175% display scaling. */
  .aq-sidebar-user img { width:64px !important; height:64px !important; min-width:64px !important; min-height:64px !important; }
  .aq-profile-dropdown > img { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; }
  .aq-welcome-profile-photo { width:80px !important; height:80px !important; min-width:80px !important; min-height:80px !important; }
  .aqhr-live-rank-card > img { width:56px !important; height:56px !important; min-width:56px !important; min-height:56px !important; }
}


/* v1.15.8 — profile photo frame + high-DPI desktop source correction only. */
@media (min-width: 769px) {
  .aqhr-profile-photo-frame img {
    width: 128px !important;
    height: 128px !important;
    min-width: 128px !important;
    min-height: 128px !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 50% 18% !important;
    image-rendering: auto !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* v1.15.9 — desktop avatar source/fitting correction only. */
@media (min-width: 769px) {
  /* My Profile: image must fill the entire 180px framed card, not a fixed
     128px box floating inside the gradient frame. */
  .aqhr-profile-photo-frame {
    width: 180px !important;
    height: 180px !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .aqhr-profile-photo-frame > img,
  .aqhr-profile-photo-frame img[data-profile-photo-preview] {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    object-position: 50% 12% !important;
    display: block !important;
  }

  /* Chromium on Windows can soften tiny downsampled portraits.  Feed the
     original file (handled in PHP/JS) and ask Chromium to favour contrast for
     the small sidebar/header/dashboard avatars only. */
  .aq-sidebar-user > img,
  .aq-profile-dropdown > img,
  .aq-welcome-profile-photo,
  .aqhr-live-rank-card > img,
  .aqp-podium-grid img,
  .aqhr-chat-avatar > img,
  .aqhr-chat-main-avatar > img,
  .aqhr-employee-avatar img,
  .aqhr-team-member img,
  .aqhr-top-performer img,
  img[data-aqhr-avatar="1"] {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto;
    object-fit: cover !important;
    object-position: 50% 12% !important;
    filter: none !important;
    transform: none !important;
  }
}


/* v1.16.0 — final desktop avatar rasterization correction.
   Source selection is handled server-side at 256/512px. */
@media (min-width:769px){
 .aq-sidebar-user img,
 .aq-profile-dropdown > img,
 .aq-profile-menu-header img,
 .aq-welcome-profile-photo,
 .aqhr-live-rank-card > img,
 .aqp-podium-grid img,
 .aqhr-chat-avatar > img,
 .aqhr-chat-main-avatar > img,
 .aqhr-employee-avatar img,
 .aqhr-employee-card img,
 .aqhr-profile-avatar img,
 .aqhr-profile-photo-frame img,
 .aqhr-page-user-avatar img,
 .aqhr-team-member img,
 .aqhr-top-performer img,
 .aqhr-recognition-card img,
 img[data-aqhr-avatar], img.aqhr-avatar-img{
   image-rendering:auto!important;
   -ms-interpolation-mode:bicubic;
   object-fit:cover!important;
   object-position:50% 14%!important;
   filter:none!important;
   transform:none!important;
   -webkit-transform:none!important;
   backface-visibility:visible!important;
   -webkit-backface-visibility:visible!important;
   will-change:auto!important;
 }
}
