/* EDUHUNT R114 — Exam Dates, dashboard, Execution Status and icon cleanup. */

body[data-portal-role="PRINCIPAL"] .principal-schedule-top-types{
  margin:0 0 10px!important;
  padding:9px 10px!important;
  border:1px solid #2d5875!important;
  border-radius:11px!important;
  background:#071d31!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-toolbar{
  justify-content:flex-end!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-row-date{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:40px!important;
  padding:8px 10px!important;
  border:1px solid #2f766c!important;
  border-radius:9px!important;
  background:#0a3b3d!important;
  color:#8ff4dd!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
body[data-portal-role="PRINCIPAL"] .principal-schedule-action-note{
  display:none!important;
}

body[data-portal-role="PRINCIPAL"][data-portal-module="dashboard"] #content>.kpi-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="dashboard"] #content>.principal-next-exam{
  margin-top:14px!important;
}

body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tabs{
  display:grid!important;
  grid-template-columns:repeat(var(--principal-exam-type-count,4),minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tab{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:46px!important;
  padding:8px 12px!important;
  border:1px solid #37627e!important;
  border-radius:9px!important;
  background:#0a2944!important;
  color:#eaf6ff!important;
  font:inherit!important;
  font-weight:950!important;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tab small{
  min-width:24px!important;
  padding:3px 6px!important;
  border-radius:999px!important;
  background:#061a2d!important;
  color:#9fc9e2!important;
  font-size:12px!important;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tab.is-active{
  border-color:#34d2ff!important;
  background:#1177ad!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(52,210,255,.16)!important;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-accordion,
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-panel{
  display:contents;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-toggle{
  display:none;
}
body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-abbreviations,
.exam-v3-coordinator-abbreviations{
  display:none!important;
}

/* Dark portal icons use visible accent colours; black glyphs are not allowed. */
body[data-desktop-theme="dark"] svg[aria-hidden="true"]{
  color:#62dcff!important;
}
body[data-desktop-theme="dark"] :where(.staff-directory-card-icon,.staff-directory-mobile,.staff-directory-actions,.kpi-icon,.nav-item,.button,.icon-button) svg{
  color:#62dcff!important;
}
body[data-desktop-theme="dark"] :where(.staff-directory-card-icon,.staff-directory-mobile,.staff-directory-actions,.kpi-icon,.nav-item,.button,.icon-button) svg [stroke]:not([stroke="none"]){
  stroke:currentColor!important;
}
body[data-desktop-theme="dark"] :where(.staff-directory-card-icon,.staff-directory-mobile,.staff-directory-actions,.kpi-icon,.nav-item,.button,.icon-button) svg [fill]:not([fill="none"]){
  fill:currentColor!important;
}
body[data-portal-role="PRINCIPAL"] .staff-directory-card-icon{
  color:#62dcff!important;
}
body[data-portal-role="PRINCIPAL"] .staff-directory-mobile{
  color:#4dc9ff!important;
}

@media(max-width:900px){
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(2)::before{content:'Dispatched by EduHunt'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(3)::before{content:'School Received'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(4)::before{content:'Test Date'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(5)::before{content:'Test Conducted'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(6)::before{content:'OMR Sent by School'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(7)::before{content:'OMR Received by EduHunt'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(8)::before{content:'Result Uploaded'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row:not(.is-cdf) .exam-v3-coordinator-cell:nth-child(9)::before{content:'Approved by Principal'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(3)::before{content:'Dispatched by EduHunt'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(4)::before{content:'School Received'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(5)::before{content:'Test Date'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(6)::before{content:'Test Conducted'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(7)::before{content:'OMR Sent by School'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(8)::before{content:'OMR Received by EduHunt'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(9)::before{content:'Result Uploaded'!important}
  html body[data-portal-module="exam-monitoring"][data-portal-role] .exam-v3-coordinator-table .exam-v3-coordinator-table-row.is-cdf .exam-v3-coordinator-cell:nth-child(10)::before{content:'Approved by Principal'!important}
  body[data-portal-role="PRINCIPAL"][data-portal-module="dashboard"] #content>.kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-portal-role="PRINCIPAL"] .principal-schedule-top-types{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:5px!important;
    width:100%!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tabs{
    grid-template-columns:repeat(var(--principal-exam-type-count,4),minmax(0,1fr))!important;
    gap:5px!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tab{
    min-height:43px!important;
    padding:7px 4px!important;
    gap:4px!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-table.is-extended{
    display:block!important;
    border:0!important;
    background:transparent!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-table.is-extended>.exam-v3-principal-table-head{
    display:none!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-accordion{
    display:block!important;
    margin:0 0 10px!important;
    overflow:hidden!important;
    border:1px solid #315873!important;
    border-radius:12px!important;
    background:#071d31!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-toggle{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
    min-height:62px!important;
    padding:12px 15px!important;
    border:0!important;
    border-left:5px solid #28b9ec!important;
    background:#0b2c48!important;
    color:#f2f9ff!important;
    text-align:left!important;
    font:inherit!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-toggle span{
    font-size:19px!important;
    font-weight:950!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-toggle small{
    color:#8cc7e8!important;
    font-size:11px!important;
    font-weight:850!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-toggle b{
    color:#62dcff!important;
    font-size:22px!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-panel{
    display:none!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-accordion.is-open .exam-v3-principal-test-panel{
    display:block!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-panel .exam-v3-principal-test-name{
    display:none!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-test-panel .exam-v3-principal-table-row.is-extended{
    margin:0!important;
    border:0!important;
    border-top:1px solid #315873!important;
    border-radius:0!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-table-row.is-extended .exam-v3-principal-cell{
    position:relative!important;
    min-height:94px!important;
    padding:38px 7px 10px!important;
  }
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-table-row.is-extended .exam-v3-principal-cell::before{
    content:attr(data-mobile-label)!important;
    position:absolute!important;
    top:9px!important;
    left:6px!important;
    right:6px!important;
    color:#ff9eb1!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1.15!important;
    text-align:center!important;
    white-space:normal!important;
  }
}

@media(max-width:520px){
  body[data-portal-role="PRINCIPAL"][data-portal-module="exam-monitoring"] .exam-v3-principal-type-tab small{
    display:none!important;
  }
}
