/* =========================================================
   EDUHUNT R452 · PRINCIPAL EXAM DATES EXPORT + EDGE FIT
   Scope: Principal Portal only
   ========================================================= */
body[data-portal-role="PRINCIPAL"] .principal-schedule-card{
  overflow:visible!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card .table-card,
body[data-portal-role="PRINCIPAL"] .principal-schedule-card .table-wrap{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card .table-wrap{
  overflow-x:hidden!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card th,
body[data-portal-role="PRINCIPAL"] .principal-schedule-card td{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  box-sizing:border-box!important;
}

/* Desktop CDF-capable table: Date | Exam | Class | Subject | Chapter | Status | Action */
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(1),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(1){width:12%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(2),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(2){width:13%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(3),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(3){width:12%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(4),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(4){width:13%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(5),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(5){width:22%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(6),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(6){width:13%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns th:nth-child(7),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.has-cdf-columns td:nth-child(7){width:15%!important}

/* FT / CT / GT-only table: Date | Exam | Class | Status | Action */
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns th:nth-child(1),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns td:nth-child(1){width:18%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns th:nth-child(2),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns td:nth-child(2){width:24%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns th:nth-child(3),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns td:nth-child(3){width:20%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns th:nth-child(4),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns td:nth-child(4){width:18%!important}
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns th:nth-child(5),
body[data-portal-role="PRINCIPAL"] .principal-schedule-card.compact-columns td:nth-child(5){width:20%!important}

/* Report actions live inside the filtered table toolbar. */
body[data-portal-role="PRINCIPAL"] .principal-schedule-card .table-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-report-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-report-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:9px!important;
  cursor:pointer!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-report-icon svg{
  width:19px!important;
  height:19px!important;
}

/* Keep the rightmost live Action column fully inside the screen. */
body[data-portal-role="PRINCIPAL"] .principal-schedule-row-action,
body[data-portal-role="PRINCIPAL"] .principal-schedule-row-status{
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-row-action select{
  width:100%!important;
  max-width:100%!important;
}

@media(max-width:1024px){
  body[data-portal-role="PRINCIPAL"] .principal-schedule-card th,
  body[data-portal-role="PRINCIPAL"] .principal-schedule-card td{
    padding-left:6px!important;
    padding-right:6px!important;
    font-size:11px!important;
  }
  body[data-portal-role="PRINCIPAL"] .principal-schedule-card .table-toolbar{
    gap:6px!important;
  }
  body[data-portal-role="PRINCIPAL"] .principal-schedule-report-actions{gap:5px!important}
  body[data-portal-role="PRINCIPAL"] .principal-schedule-report-icon{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  }
}
