/* EDUHUNT R229 - presentation only. Scoped to dashboards and dashboard photo attendance.
   No selectors affect academic-year data, billing, stock calculations, or permissions. */

/* Remove the yellow preparation explanatory banner the user crossed out.
   The selected year and its mode remain in the portal header. */
body[data-portal-role="SUPER_ADMIN"][data-portal-module="dashboard"] .r210-prep-notice,
body[data-portal-role="SUPER_ADMIN"][data-portal-module="dashboard"] [data-r210-prep-notice],
body[data-portal-role="SUPER_ADMIN"][data-portal-module="dashboard"] .r212-prep-hero{
  display:none!important;
}

/* Uniform, fully clickable preparation metric cards. */
#eh-preparation-r221 .r221-cards{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
}
#eh-preparation-r221 .r221-kpi{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  padding:14px 12px 18px!important;
  min-width:0!important;
  min-height:106px!important;
  gap:5px!important;
}
#eh-preparation-r221 .r221-kpi small{
  display:block!important;
  min-height:0!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.25!important;
  color:#e3f4ff!important;
  opacity:1!important;
  overflow-wrap:break-word!important;
}
#eh-preparation-r221 .r221-kpi b{
  display:block!important;
  font-size:29px!important;
  font-weight:900!important;
  line-height:1.05!important;
  margin:0!important;
  font-variant-numeric:tabular-nums;
}
#eh-preparation-r221 .r221-kpi-cue{
  position:absolute;
  bottom:5px;
  right:9px;
  color:#a4dffd;
  font-size:18px;
  line-height:1;
}
#eh-preparation-r221 .r221-detail-head{
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
#eh-preparation-r221 .r221-detail-head h3{
  margin:0!important;
  font-size:19px!important;
  line-height:1.25;
}
#eh-preparation-r221 .r221-detail-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex:1 1 400px;
  min-width:0;
}
#eh-preparation-r221 .r221-detail-actions input{
  flex:1 1 220px;
  max-width:440px;
  min-width:140px;
  min-height:38px;
}
#eh-preparation-r221 .r221-detail-actions button{flex-shrink:0;}
#eh-preparation-r221 .r221-toolbar label{font-size:14px!important;}
#eh-preparation-r221 .r221-table{
  font-size:13.5px!important;
}
#eh-preparation-r221 .r221-table th,
#eh-preparation-r221 .r221-table td{padding:10px 11px!important;}
#eh-preparation-r221 .r221-table th{font-size:13px!important;}
#eh-preparation-r221 .r221-table .r221-sub{
  font-size:12px!important;
}
#eh-preparation-r221 .r221-badge{
  font-size:12px!important;
  font-weight:750!important;
}
#eh-preparation-r221 .r221-shortcuts .grid.grid--3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
#eh-preparation-r221 .r221-shortcuts .quick-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  min-width:0!important;
  gap:7px!important;
}
#eh-preparation-r221 .r221-shortcuts .quick-card > span:last-child,
#eh-preparation-r221 .r221-shortcuts .quick-card strong,
#eh-preparation-r221 .r221-shortcuts .quick-card small{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  overflow-wrap:break-word!important;
}
#eh-preparation-r221 .r221-shortcuts .quick-card strong{font-size:14px!important;}
#eh-preparation-r221 .r221-shortcuts .quick-card small{font-size:12px!important;}

/* Dashboard statistic controls across roles, especially the Coordinator's
   previously fixed 6-column, horizontally-scrolling desktop strip. */
body[data-portal-module="dashboard"] .kpi-grid:not(.exam-ops-compact-kpis){
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  overflow:visible!important;
  padding-bottom:4px!important;
}
body[data-portal-module="dashboard"] .kpi-grid .kpi-card{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  padding:14px 9px!important;
}
body[data-portal-module="dashboard"] .kpi-grid .kpi-top{
  display:flex!important;
  justify-content:center!important;
  width:100%!important;
  margin:0 0 6px!important;
}
body[data-portal-module="dashboard"] .kpi-grid .kpi-card>b{
  display:block!important;
  font-size:27px!important;
  line-height:1.15!important;
  text-align:center!important;
  overflow-wrap:anywhere;
}
body[data-portal-module="dashboard"] .kpi-grid .kpi-card>span{
  display:block!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:800!important;
  text-align:center!important;
  overflow-wrap:break-word;
}

/* Attendance: only hide duplicated readiness label and informational whitespace.
   Actual Punch IN/OUT and error/success feedback remain visible. */
body[data-portal-role="ACADEMIC_COORDINATOR"][data-portal-module="dashboard"]
  .eh-oa-dashboard-punch-message:empty{
    display:none!important;
}
body[data-portal-role="ACADEMIC_COORDINATOR"][data-portal-module="dashboard"]
  .eh-oa-punctuality-card{
    line-height:1.5!important;
}
body[data-portal-role="ACADEMIC_COORDINATOR"][data-portal-module="dashboard"]
  .eh-oa-punctuality-card strong{
    font-size:17px!important;
    line-height:1.4!important;
}
body[data-portal-role="ACADEMIC_COORDINATOR"][data-portal-module="dashboard"]
  .eh-oa-punctuality-card span{
    display:block!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.5!important;
}
body[data-portal-role="ACADEMIC_COORDINATOR"][data-portal-module="dashboard"]
  .eh-oa-punctuality-card small{
    display:block!important;
    font-size:14px!important;
    line-height:1.6!important;
    font-weight:600!important;
}

@media(max-width:900px){
  #eh-preparation-r221 .r221-cards{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #eh-preparation-r221 .r221-kpi{
    padding:11px 6px 15px!important;
    min-height:105px!important;
  }
  #eh-preparation-r221 .r221-kpi small{
    font-size:12px!important;
    line-height:1.22!important;
  }
  #eh-preparation-r221 .r221-kpi b{
    font-size:25px!important;
  }
  #eh-preparation-r221 .r221-details{padding:11px!important;}
  #eh-preparation-r221 .r221-detail-head h3{font-size:17px!important;}
  #eh-preparation-r221 .r221-detail-actions{flex-basis:100%;}
  #eh-preparation-r221 .r221-detail-actions input{max-width:none;}
  #eh-preparation-r221 .r221-shortcuts .grid.grid--3{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  #eh-preparation-r221 .r221-shortcuts .quick-card{padding:10px 5px!important;}
  #eh-preparation-r221 .r221-shortcuts .quick-card strong{font-size:12px!important;}
  #eh-preparation-r221 .r221-shortcuts .quick-card small{font-size:10.5px!important;}
  body[data-portal-module="dashboard"] .kpi-grid:not(.exam-ops-compact-kpis){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body[data-portal-module="dashboard"] .kpi-grid .kpi-card{
    padding:10px 5px!important;
    min-height:95px!important;
  }
  body[data-portal-module="dashboard"] .kpi-grid .kpi-card>b{font-size:24px!important;}
  body[data-portal-module="dashboard"] .kpi-grid .kpi-card>span{
    font-size:11px!important;
    line-height:1.26!important;
  }
}
@media(max-width:350px){
  #eh-preparation-r221 .r221-kpi small{font-size:10.5px!important;}
  #eh-preparation-r221 .r221-kpi b{font-size:22px!important;}
  #eh-preparation-r221 .r221-shortcuts .quick-card small{font-size:9.5px!important;}
}
