/* EDUHUNT R450 — Student Exam Dates: exact status semantics + compact table UI.
   Scope: STUDENT portal only. */

body[data-portal-role="STUDENT"] .student-schedule-filter-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:10px!important;
  padding:12px!important;
  border:1px solid var(--stu-border,#284a66)!important;
  border-radius:12px!important;
  background:var(--stu-card,#071b2f)!important;
}
body[data-portal-role="STUDENT"] .student-schedule-filter-row .form-field{
  min-width:0!important;
}
body[data-portal-role="STUDENT"] .student-schedule-filter-row select{
  width:100%!important;
}

/* Immediate next exam: remove the second metadata line and keep the remaining
   information on one horizontal row. */
body[data-portal-role="STUDENT"] .student-next-exam-inline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 10px!important;
  padding:13px 16px!important;
  border:1px solid var(--stu-border,#284a66)!important;
  border-radius:12px!important;
  background:var(--stu-card,#071b2f)!important;
  min-width:0!important;
}
body[data-portal-role="STUDENT"] .student-next-exam-inline>span:first-child{
  color:#9fd8ff!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.13em!important;
  white-space:nowrap!important;
}
body[data-portal-role="STUDENT"] .student-next-exam-inline>strong{
  font-size:18px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
body[data-portal-role="STUDENT"] .student-next-exam-inline .status-badge{
  white-space:nowrap!important;
}

/* Date | Test Name | Subject | Chapter | Status */
body[data-portal-role="STUDENT"] .student-exam-table{
  margin-top:12px!important;
  border:1px solid var(--stu-border,#284a66)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:var(--stu-card,#071b2f)!important;
  min-width:0!important;
}
body[data-portal-role="STUDENT"] .student-exam-table-head,
body[data-portal-role="STUDENT"] .student-exam-date-row{
  display:grid!important;
  grid-template-columns:120px minmax(130px,1.05fr) minmax(110px,.8fr) minmax(180px,1.55fr) 120px!important;
  align-items:center!important;
  gap:0!important;
  min-width:0!important;
}
body[data-portal-role="STUDENT"] .student-exam-table-head{
  background:#0f5a88!important;
  color:#fff!important;
  min-height:43px!important;
}
body[data-portal-role="STUDENT"] .student-exam-table-head>span{
  padding:10px 12px!important;
  font-size:11px!important;
  font-weight:950!important;
  border-right:1px solid rgba(255,255,255,.16)!important;
}
body[data-portal-role="STUDENT"] .student-exam-table-head>span:last-child{border-right:0!important;text-align:center!important}
body[data-portal-role="STUDENT"] .student-exam-table-body{
  display:grid!important;
  min-width:0!important;
}
body[data-portal-role="STUDENT"] .student-exam-date-row{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  border-bottom:1px solid var(--stu-border,#284a66)!important;
  background:transparent!important;
  min-height:55px!important;
}
body[data-portal-role="STUDENT"] .student-exam-date-row:last-child{border-bottom:0!important}
body[data-portal-role="STUDENT"] .student-exam-date-row>div{
  min-width:0!important;
  padding:10px 12px!important;
  border-right:1px solid var(--stu-border,#284a66)!important;
  overflow-wrap:anywhere!important;
}
body[data-portal-role="STUDENT"] .student-exam-date-row>div:last-child{border-right:0!important}
body[data-portal-role="STUDENT"] .student-exam-date{
  color:#66dcff!important;
  font-size:13px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
body[data-portal-role="STUDENT"] .student-exam-test strong,
body[data-portal-role="STUDENT"] .student-exam-subject,
body[data-portal-role="STUDENT"] .student-exam-chapter{
  font-size:12px!important;
  line-height:1.25!important;
}
body[data-portal-role="STUDENT"] .student-exam-test strong{font-weight:950!important}
body[data-portal-role="STUDENT"] .student-exam-subject{font-weight:850!important}
body[data-portal-role="STUDENT"] .student-exam-chapter{color:var(--stu-muted,#aac0d4)!important}
body[data-portal-role="STUDENT"] .student-exam-status{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

@media(max-width:1024px){
  body[data-portal-role="STUDENT"] .student-next-exam-inline{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:8px!important;
    padding:10px 11px!important;
  }
  body[data-portal-role="STUDENT"] .student-next-exam-inline>span:first-child{font-size:9px!important;letter-spacing:.07em!important}
  body[data-portal-role="STUDENT"] .student-next-exam-inline>strong{font-size:15px!important}

  body[data-portal-role="STUDENT"] .student-exam-table-head,
  body[data-portal-role="STUDENT"] .student-exam-date-row{
    grid-template-columns:70px minmax(74px,1fr) minmax(60px,.75fr) minmax(90px,1.25fr) 74px!important;
  }
  body[data-portal-role="STUDENT"] .student-exam-table-head>span,
  body[data-portal-role="STUDENT"] .student-exam-date-row>div{
    padding:8px 5px!important;
  }
  body[data-portal-role="STUDENT"] .student-exam-table-head>span{font-size:8px!important;line-height:1.05!important}
  body[data-portal-role="STUDENT"] .student-exam-date{font-size:9px!important}
  body[data-portal-role="STUDENT"] .student-exam-test strong,
  body[data-portal-role="STUDENT"] .student-exam-subject,
  body[data-portal-role="STUDENT"] .student-exam-chapter{font-size:8.5px!important;line-height:1.15!important}
  body[data-portal-role="STUDENT"] .student-exam-status .status-badge{font-size:7.5px!important;padding:4px!important}
}

@media(max-width:560px){
  body[data-portal-role="STUDENT"] .student-schedule-filter-row{gap:6px!important;padding:8px!important}
  body[data-portal-role="STUDENT"] .student-schedule-filter-row label{font-size:9px!important}
  body[data-portal-role="STUDENT"] .student-schedule-filter-row select{font-size:10px!important;padding-left:7px!important;padding-right:22px!important}
  body[data-portal-role="STUDENT"] .student-next-exam-inline{gap:5px!important;padding:9px 8px!important}
  body[data-portal-role="STUDENT"] .student-next-exam-inline>span:first-child{font-size:7.5px!important}
  body[data-portal-role="STUDENT"] .student-next-exam-inline>strong{font-size:13px!important}
  body[data-portal-role="STUDENT"] .student-next-exam-inline .status-badge{font-size:7px!important;padding:4px!important}

  body[data-portal-role="STUDENT"] .student-exam-table-head,
  body[data-portal-role="STUDENT"] .student-exam-date-row{
    grid-template-columns:54px minmax(62px,1fr) minmax(48px,.72fr) minmax(74px,1.18fr) 60px!important;
  }
  body[data-portal-role="STUDENT"] .student-exam-table-head>span,
  body[data-portal-role="STUDENT"] .student-exam-date-row>div{padding:7px 3px!important}
  body[data-portal-role="STUDENT"] .student-exam-table-head>span{font-size:6.8px!important}
  body[data-portal-role="STUDENT"] .student-exam-date{font-size:7.6px!important}
  body[data-portal-role="STUDENT"] .student-exam-test strong,
  body[data-portal-role="STUDENT"] .student-exam-subject,
  body[data-portal-role="STUDENT"] .student-exam-chapter{font-size:7.2px!important}
  body[data-portal-role="STUDENT"] .student-exam-status .status-badge{font-size:6.5px!important;padding:3px!important}
}
