/* v1.15.43 · PAPS/수행평가 미입력 학생 조회 전용 UI */
body.missingStudentsModalOpen{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.missingStudentsBtn{
  background:#314a63!important;
  color:#fff!important;
}
.missingStudentsModal{
  position:fixed;
  inset:0;
  z-index:52000;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:24px;
  background:rgba(24,39,57,.52);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}
.missingStudentsDialog{
  display:flex;
  flex-direction:column;
  width:min(780px,100%);
  max-height:min(82vh,820px);
  overflow:hidden;
  border:1px solid #cfdae6;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(20,41,63,.28);
  color:#203247;
}
.missingStudentsHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  border-bottom:1px solid #dde6ef;
  background:linear-gradient(135deg,#f7fbff 0%,#eef6fc 100%);
}
.missingStudentsEyebrow{
  display:block;
  margin-bottom:5px;
  color:#2b91d4;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.missingStudentsHead h3{
  margin:0;
  color:#203247;
  font-size:22px;
  line-height:1.25;
}
.missingStudentsHead p{
  margin:7px 0 0;
  color:#738296;
  font-size:13px;
  font-weight:700;
}
.missingStudentsClose{
  flex:0 0 38px;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid #d2deea;
  border-radius:10px;
  background:#fff;
  color:#536579;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
.missingStudentsSummary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:14px 24px;
  border-bottom:1px solid #e5ebf2;
  background:#fff;
}
.missingStudentsSummary span{
  min-width:0;
  padding:10px 12px;
  border:1px solid #dce6f0;
  border-radius:10px;
  background:#f8fbfe;
  color:#617286;
  text-align:center;
  font-size:12px;
  font-weight:800;
}
.missingStudentsSummary b{
  margin-right:3px;
  color:#223b55;
  font-size:17px;
}
.missingStudentsGroups{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:16px 24px 20px;
  background:#f7f9fc;
}
.missingStudentsGroup{
  margin:0 0 10px;
  overflow:hidden;
  border:1px solid #d9e3ed;
  border-radius:12px;
  background:#fff;
}
.missingStudentsGroup:last-child{margin-bottom:0}
.missingStudentsGroupHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #edf1f5;
}
.missingStudentsGroupHead h4{
  margin:0;
  color:#263a50;
  font-size:15px;
  line-height:1.3;
}
.missingStudentsGroupHead span{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:#fff0ee;
  color:#df574e;
  font-size:11px;
  font-weight:900;
}
.missingStudentsGroup.isComplete .missingStudentsGroupHead span{
  background:#eaf8f1;
  color:#198657;
}
.missingStudentsChips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:12px 14px 14px;
}
.missingStudentsChips span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border:1px solid #dbe5ef;
  border-radius:8px;
  background:#f9fbfd;
  color:#34495f;
  font-size:12px;
  font-weight:800;
}
.missingStudentsComplete,
.missingStudentsEmpty{
  margin:0;
  padding:13px 14px;
  color:#388766;
  font-size:12px;
  font-weight:800;
}
.missingStudentsEmpty{text-align:center;color:#748396}
.missingStudentsFoot{
  display:flex;
  justify-content:flex-end;
  padding:14px 24px;
  border-top:1px solid #dfe7ef;
  background:#fff;
}
.missingStudentsFoot .btn{min-width:112px}

/* iPad에서는 기존 다섯 버튼의 폭을 유지하고 조회 버튼만 위 한 줄로 추가한다. */
@media (min-width:769px) and (max-width:1366px){
  html.pe87Ipad #app:has(#papsTableBox) > .pe87PageHead > .row{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:4px!important;
  }
  html.pe87Ipad #app:has(#papsTableBox) > .pe87PageHead > .row > #papsMissingStudentsBtn,
  html.pe87Ipad #app:has(#papsTableBox) > .pe87PageHead > .row > .missingStudentsBtn:first-child{
    grid-column:1 / -1!important;
    height:34px!important;
    min-height:34px!important;
    font-size:10px!important;
  }
}

@media (max-width:768px){
  .mobilePapsActionRow #mPapsMissing{
    grid-column:1 / -1;
    min-height:42px!important;
  }
  body.mobileAssessmentView #app>.pe87PageHead>.row>#assessMissingStudentsBtn{
    grid-column:1 / -1;
    min-height:44px!important;
  }
  .missingStudentsModal{
    align-items:flex-end;
    padding:10px;
  }
  .missingStudentsDialog{
    width:100%;
    max-height:calc(100dvh - 20px);
    border-radius:18px 18px 12px 12px;
  }
  .missingStudentsHead{padding:17px 16px 14px}
  .missingStudentsHead h3{font-size:19px}
  .missingStudentsHead p{font-size:12px}
  .missingStudentsClose{flex-basis:36px;width:36px;height:36px}
  .missingStudentsSummary{gap:5px;padding:10px 12px}
  .missingStudentsSummary span{padding:8px 4px;font-size:10px}
  .missingStudentsSummary b{display:block;margin:0 0 2px;font-size:16px}
  .missingStudentsGroups{padding:12px}
  .missingStudentsGroupHead{padding:11px 12px}
  .missingStudentsChips{gap:6px;padding:10px 12px 12px}
  .missingStudentsChips span{font-size:11px}
  .missingStudentsFoot{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .missingStudentsFoot .btn{width:100%}
}
