/* EDUHUNT R30 — targeted Coordinator Follow-up + Medals visibility refinement. */

/* History: only the five requested filters remain. */
.r29-followup-filters{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  align-items:end;
}

/* Medal KPI icons must never render as black monochrome SVGs. */
.r29-medal-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  width:38px;
  min-width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  background:linear-gradient(145deg,#ffffff,#dff6ff);
  box-shadow:0 3px 10px rgba(0,0,0,.18),inset 0 0 0 1px rgba(20,140,220,.12);
  font-size:29px;
  line-height:1;
  filter:saturate(1.2) brightness(1.08);
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
}
.r29-medal-kpi{overflow:hidden}
.r29-medal-record .r27-medal-school small{line-height:1.45}

@media (max-width:1100px){
  .r29-followup-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .r29-followup-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  .r29-followup-filters{grid-template-columns:1fr}
  .r29-medal-icon{width:34px;min-width:34px;height:34px;flex-basis:34px;font-size:26px}
}


/* EDUHUNT V2.2.260 R31 — Login Engagement single-row cascade repair.
   R26 still contains a legacy 4-column !important rule. Because r29-ui.css
   loads after r26-ui.css, this block is the final layout authority only for
   Academic Coordinator + Super Admin Login Engagement cards.
   Card number/title/detail font sizes are intentionally NOT changed. */
/* R31_LOGIN_ENGAGEMENT_SINGLE_ROW */
body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:6px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-stat{
  min-width:0!important;
  padding:10px 4px!important;
}
body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-stat>span:last-child{
  min-width:0!important;
}

/* Medium/tablet: three cards per row. */
@media (max-width:1024px){
  body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Small mobile: two cards per row. */
@media (max-width:620px){
  body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
  }
}

/* Very narrow phones: one card per row to prevent clipping. */
@media (max-width:340px){
  body:is([data-portal-role="ACADEMIC_COORDINATOR"],[data-portal-role="SUPER_ADMIN"]) .login-engagement-grid{
    grid-template-columns:1fr!important;
  }
}
