/* TR Global v226 — footer, Prospect Buyers, Style Tracking repair */

/* Keep the original logo proportions inside a predictable footer tile. */
.footer .footer-logo,
.public-footer .footer-logo,
.tr-public-footer-v121 .footer-logo{align-items:center!important;align-self:flex-start!important;min-width:0!important}
.footer .footer-logo>img,
.public-footer .footer-logo>img,
.tr-public-footer-v121 .footer-logo>img{
  display:block!important;
  flex:0 0 56px!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  object-position:center!important;
  box-sizing:border-box!important;
  padding:6px!important;
  border-radius:16px!important;
  background:#fff!important;
  transform:none!important;
}

/* Prospect Buyers owns a full portal column; generic cards must never become media placeholders. */
body[data-portal-page="admin-prospect-buyers"] .portal-layout,
body[data-portal-page="staff-prospect-buyers"] .portal-layout{
  display:grid!important;
  grid-template-columns:minmax(230px,280px) minmax(0,1fr)!important;
  align-items:start!important;
  gap:24px!important;
}
body[data-portal-page="admin-prospect-buyers"] .portal-sidebar,
body[data-portal-page="staff-prospect-buyers"] .portal-sidebar{
  position:sticky!important;
  top:18px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
}
body[data-portal-page="admin-prospect-buyers"] .portal-sidebar a,
body[data-portal-page="staff-prospect-buyers"] .portal-sidebar a{
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:44px!important;
  white-space:normal!important;
}
body[data-portal-page="admin-prospect-buyers"] [data-prospect-admin],
body[data-portal-page="staff-prospect-buyers"] [data-prospect-admin]{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  gap:18px!important;
}
body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats,
body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
}
body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats>article,
body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats>article{
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:104px!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:18px!important;
  overflow:visible!important;
  color:#122150!important;
  background:linear-gradient(180deg,#fff,#f7f9ff)!important;
  border:1px solid rgba(13,40,87,.12)!important;
  border-radius:20px!important;
  box-shadow:0 14px 30px rgba(12,28,64,.06)!important;
  transform:none!important;
}
body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats>article::before,
body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats>article::after,
body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats>article::before,
body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats>article::after{display:none!important}
body[data-portal-page="admin-prospect-buyers"] [data-prospect-admin-list],
body[data-portal-page="staff-prospect-buyers"] [data-prospect-admin-list]{display:grid!important;gap:12px!important;min-height:80px!important}
body[data-portal-page="admin-prospect-buyers"] .prospect-account-row,
body[data-portal-page="staff-prospect-buyers"] .prospect-account-row{
  display:grid!important;
  grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) minmax(110px,150px) minmax(210px,260px)!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:92px!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:16px!important;
  overflow:visible!important;
  color:#101b3f!important;
  background:#fff!important;
  border:1px solid rgba(17,31,72,.1)!important;
  border-radius:20px!important;
  box-shadow:none!important;
  transform:none!important;
}
body[data-portal-page="admin-prospect-buyers"] .prospect-account-row>div,
body[data-portal-page="staff-prospect-buyers"] .prospect-account-row>div{
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  aspect-ratio:auto!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important
}


/* These two retired workflows must not reappear through older cached markup. */
body[data-style-page] [data-style-section="samples"],
body[data-style-page] [data-style-section="production"],
body[data-style-page] [data-sample-id],
body[data-style-page] [data-tna-id]{display:none!important}

@media(max-width:1080px){
  body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats,
  body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-portal-page="admin-prospect-buyers"] .prospect-account-row,
  body[data-portal-page="staff-prospect-buyers"] .prospect-account-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}
@media(max-width:760px){
  body[data-portal-page="admin-prospect-buyers"] .portal-layout,
  body[data-portal-page="staff-prospect-buyers"] .portal-layout{grid-template-columns:1fr!important}
  body[data-portal-page="admin-prospect-buyers"] .portal-sidebar,
  body[data-portal-page="staff-prospect-buyers"] .portal-sidebar{position:relative!important;top:auto!important}
  body[data-portal-page="admin-prospect-buyers"] .prospect-admin-stats,
  body[data-portal-page="staff-prospect-buyers"] .prospect-admin-stats,
  body[data-portal-page="admin-prospect-buyers"] .prospect-account-row,
  body[data-portal-page="staff-prospect-buyers"] .prospect-account-row{grid-template-columns:1fr!important}
  body[data-portal-page="admin-prospect-buyers"] .prospect-account-actions,
  body[data-portal-page="staff-prospect-buyers"] .prospect-account-actions{justify-content:flex-start!important}
}
