.home-exp-page {
  max-width: 900px;
  margin: 0;
  padding-left: clamp(8px, 2vw, 16px);
  padding-right: clamp(8px, 2vw, 16px);
}

.home-exp-hero {
  margin-bottom: 14px;
  width: 100%;
  max-width: 780px;
  margin-left: 0;
  margin-right: auto;
}

.home-exp-hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.home-exp-hero p {
  margin: 8px 0 0;
  color: #5b6b82;
  font-size: 14px;
}

.home-exp-card {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.05);
  width: 100%;
  max-width: 780px;
  margin-left: 0;
  margin-right: auto;
}

.home-exp-card .row {
  gap: 12px;
}

.home-exp-item-bottom {
  align-self: flex-end;
}

.home-exp-student-row {
  align-items: flex-end;
}

.home-exp-student-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.home-exp-student-number {
  font-size: 15px;
  color: #64748b;
  font-weight: 700;
}

.home-exp-student-meta {
  color: #5f6f86;
  margin-top: 8px;
}

.home-exp-status-line {
  margin-top: 10px;
}

.home-exp-status-date {
  color: #64748b;
  margin-left: 8px;
}

.home-exp-form-card {
  padding: 18px;
}

.home-exp-page .home-exp-form.row {
  display: block !important;
}

.home-exp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 740px;
  margin: 0;
}

.home-exp-form .home-exp-item {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}

.home-exp-form .home-exp-item input,
.home-exp-form .home-exp-item textarea,
.home-exp-form .home-exp-item select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #b9c9de;
  background: #f9fcff;
  padding: 11px 12px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.home-exp-form .home-exp-item input:focus,
.home-exp-form .home-exp-item textarea:focus,
.home-exp-form .home-exp-item select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
}

.home-exp-section-title {
  display: block;
  width: 100%;
  margin: 4px 0 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #d9e7fb;
  color: #1e3a8a;
  font-weight: 800;
}

.home-exp-grid {
  display: grid;
  gap: 12px;
}

.home-exp-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-exp-grid.one {
  grid-template-columns: 1fr;
}

.home-exp-file-field {
  grid-column: 1 / -1;
}

.home-exp-guardian-choice {
  align-self: start;
} /* [HOME-EXP-UI-20260409-603] 신청자 선택 라인 높이 맞춤 */

.home-exp-radio-row {
  display: grid;
  grid-auto-rows: 24px;
  gap: 4px;
  padding-top: 2px;
} /* [HOME-EXP-UI-20260409-604] 신청자 선택 줄간격/행높이 정렬 */

.home-exp-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
} /* [HOME-EXP-UI-20260409-605] 라디오/텍스트 수직 정렬 고정 */

.home-exp-guardian-grid {
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
} /* [HOME-EXP-UI-20260409-614] 신청자 선택 영역 폭 대폭 축소 */

.home-exp-guardian-grid .home-exp-guardian-choice {
  min-width: 84px;
  max-width: 84px;
}

.home-exp-parent-stack {
  display: grid;
  gap: 10px;
} /* [HOME-EXP-UI-20260409-618] 보호자 2행 그룹 */

.home-exp-parent-row {
  margin: 0;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: end;
} /* [HOME-EXP-UI-20260409-619] 성함/연락처 한 줄 정렬 */

.home-exp-guardian-grid .home-exp-span-full {
  grid-column: 1 / -1;
}

.home-exp-submit-row {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.home-exp-submit-btn {
  min-width: 170px;
  font-weight: 800;
}

.home-exp-submit-top {
  margin-bottom: 2px;
}

.home-exp-flow-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #dbe6f3;
  color: #4b5f77;
}

.home-exp-result-sheet {
  max-width: 860px;
  margin: 14px auto 30px;
  border: 2px solid #1f2937;
  background: #fff;
}

.home-exp-result-header {
  padding: 14px 18px;
  border-bottom: 2px solid #1f2937;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.home-exp-result-table {
  width: 100%;
  border-collapse: collapse;
}

.home-exp-result-table th,
.home-exp-result-table td {
  border: 1px solid #1f2937;
  padding: 10px 12px;
  vertical-align: top;
}

.home-exp-result-table th {
  width: 160px;
  background: #f8fafc;
  font-weight: 700;
  text-align: center;
}

.home-exp-result-value {
  min-height: 24px;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-exp-approval-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
} /* [HOME-EXP-RESULT-20260409-771] 결재 3단계(담임/교감/교장) 레이아웃 */

.home-exp-approval-box {
  border: 1px solid #1f2937;
  min-height: 96px;
  padding: 8px;
}

.home-exp-approval-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.home-exp-pdf-sheet {
  width: min(100%, 920px);
  margin: 8px auto 28px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 2px solid #111827;
} /* [HOME-EXP-RESULT-20260409-777] 결과물 PDF 문서 박스 */

.home-exp-pdf-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
} /* [HOME-EXP-RESULT-20260409-778] PDF 제목 스타일 */

.home-exp-pdf-table,
.home-exp-pdf-approval {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.home-exp-pdf-table th,
.home-exp-pdf-table td,
.home-exp-pdf-approval th,
.home-exp-pdf-approval td {
  border: 1px solid #111827;
  padding: 10px 10px;
  font-size: 16px;
  line-height: 1.45;
  vertical-align: top;
}

.home-exp-pdf-table th {
  width: 130px;
  background: #fafafa;
  text-align: center;
  font-weight: 700;
}

.home-exp-pdf-approval th {
  background: #fafafa;
  text-align: center;
  font-weight: 700;
}

.home-exp-pdf-multiline {
  white-space: pre-wrap;
  word-break: break-word;
}

.home-exp-pdf-note {
  margin: 14px 0 10px;
  font-size: 17px;
  text-align: center;
}

.home-exp-pdf-sign-row {
  margin: 2px 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.home-exp-a4-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 10px auto 24px;
  background: #fff;
  border: 1px solid #111827;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  padding: 14mm 14mm 16mm;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
} /* [HOME-EXP-RESULT-20260409-785] A4 문서 캔버스 */

.home-exp-a4-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/login-bg.jpg?v=2");
  background-repeat: no-repeat;
  background-position: center 52%;
  background-size: 88% auto;
  opacity: 0.44;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
} /* [HOME-EXP-RESULT-20260409-802] 로그인 배경 이미지 워터마크 */

.home-exp-a4-sheet > * {
  position: relative;
  z-index: 1;
}

.home-exp-a4-logo-row {
  height: 34px;
  margin-bottom: 20px;
}

.home-exp-a4-doc-no {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
  text-align: left;
} /* [HOME-EXP-DOCNO-20260410-005] 결과문서 좌측 상단 문서번호 */

.home-exp-a4-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.home-exp-a4-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
} /* [HOME-EXP-RESULT-20260409-786] 타이틀/결재박스 헤더 */

.home-exp-a4-title {
  margin: 22px 0 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-exp-a4-approval-mini {
  border-collapse: collapse;
  table-layout: fixed;
  width: 306px;
  flex: 0 0 306px;
}

.home-exp-a4-approval-mini th,
.home-exp-a4-approval-mini td {
  border: 1px solid #111827;
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px;
  font-size: 14px;
}

.home-exp-a4-approval-mini th:first-child,
.home-exp-a4-approval-mini td:first-child {
  width: 49px;
  min-width: 49px;
} /* [HOME-EXP-RESULT-20260409-794] 결재 라벨칸 폭 축소 */

.home-exp-a4-approval-mini th:not(:first-child),
.home-exp-a4-approval-mini td:not(:first-child) {
  width: calc((100% - 49px) / 3);
} /* [HOME-EXP-RESULT-20260409-795] 담임/교감/교장 칸 폭 확대 */

.home-exp-a4-approval-mini tr:nth-child(2) td {
  height: 79px;
} /* [HOME-EXP-RESULT-20260409-796] 결재칸 세로 높이 확대 */

.home-exp-a4-stamp {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 3px;
  object-fit: contain;
} /* [HOME-EXP-STAMP-20260410-003] 결재칸 직인 이미지 */

.home-exp-a4-approver-name {
  font-size: 11px;
  line-height: 1.2;
  color: #1f2937;
  min-height: 14px;
} /* [HOME-EXP-STAMP-20260410-004] 결재자 이름 보조 표기 */

.home-exp-a4-approval-mini tr:first-child th {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #cdd6e6;
  color: #111827;
}

.home-exp-a4-main {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.home-exp-a4-main th,
.home-exp-a4-main td {
  border: 1px solid #111827;
  padding: 10px 10px;
  font-size: 18px;
  line-height: 1.45;
  vertical-align: middle;
}

.home-exp-a4-main th {
  width: 16%;
  background: #cdd6e6;
  text-align: center;
  font-weight: 700;
}

.home-exp-a4-main td {
  text-align: center;
}

.home-exp-a4-nowrap {
  white-space: nowrap;
} /* [HOME-EXP-RESULT-20260409-791] '동반자' 한 단어 유지 */

.home-exp-a4-multiline {
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
}

.home-exp-a4-plan-cell {
  min-height: 220px;
} /* [HOME-EXP-RESULT-20260409-792] 계획 칸 세로 확장 */

.home-exp-a4-plan-row td {
  height: 220px;
  vertical-align: top;
  padding-top: 14px;
} /* [HOME-EXP-RESULT-20260409-793] 계획 행 높이 고정 */

.home-exp-a4-approval-mini tr:first-child th:not(:first-child) {
  border-width: 1px;
  background: #cdd6e6;
  color: #111827;
} /* [HOME-EXP-RESULT-20260409-798] 결재 헤더를 본문 라벨칸과 동일 톤으로 통일 */

.home-exp-a4-approval-mini tr:first-child th:nth-child(2) {
  background: #cdd6e6;
  color: #111827;
} /* [HOME-EXP-RESULT-20260409-799] 담임 헤더 색상 */

.home-exp-a4-approval-mini tr:first-child th:nth-child(3) {
  background: #cdd6e6;
  color: #111827;
} /* [HOME-EXP-RESULT-20260409-800] 교감 헤더 색상 */

.home-exp-a4-approval-mini tr:first-child th:nth-child(4) {
  background: #cdd6e6;
  color: #111827;
} /* [HOME-EXP-RESULT-20260409-801] 교장 헤더 색상 */

.home-exp-a4-statement {
  margin: 22px 0 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.home-exp-a4-sign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  font-size: 16px;
}

@media print {
  .page-head,
  .filters,
  .topnav,
  .sidebar,
  .page-tabs,
  .btn,
  .notice {
    display: none !important;
  }

  .content {
    padding: 0 !important;
  }

  .home-exp-result-sheet {
    margin: 0 auto;
    border-width: 2px;
  }

  .home-exp-pdf-sheet {
    margin: 0 auto;
    border-width: 2px;
    page-break-inside: avoid;
  } /* [HOME-EXP-RESULT-20260409-779] 인쇄 시 PDF 영역 보존 */

  .home-exp-a4-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    border: 0;
    box-shadow: none;
    page-break-inside: avoid;
    padding: 14mm 14mm 16mm;
  } /* [HOME-EXP-RESULT-20260409-787] 인쇄 시 A4 실측 유지 */
}

@media (max-width: 640px) {
  .home-exp-grid.two {
    grid-template-columns: 1fr;
  }

  .home-exp-guardian-grid {
    grid-template-columns: 1fr;
  }

  .home-exp-guardian-grid .home-exp-guardian-choice {
    min-width: 100%;
    max-width: 100%;
  }

  .home-exp-radio-row {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    align-items: stretch;
  } /* [HOME-EXP-MOBILE-20260410-001] 신청자 선택 라디오를 가로 버튼형으로 */

  .home-exp-radio {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #b9c9de;
    border-radius: 12px;
    background: #f9fcff;
    line-height: 1.1;
  } /* [HOME-EXP-MOBILE-20260410-002] 모바일 터치 영역 확대 */

  .home-exp-radio input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2563eb;
  } /* [HOME-EXP-MOBILE-20260410-003] 라디오 크기/색상 */

  .home-exp-parent-stack {
    grid-column: 1 / -1;
  }

  .home-exp-parent-row.home-exp-grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  } /* [HOME-EXP-MOBILE-20260410-004] 모바일에서도 보호자 성함/연락처 1행 유지(우선순위 보강) */

  .home-exp-parent-row .home-exp-item {
    margin-bottom: 8px;
  } /* [HOME-EXP-MOBILE-20260410-005] 모바일 보호자 행 간격 압축 */

  .home-exp-student-name {
    font-size: 24px;
  }

  .home-exp-approval-row {
    grid-template-columns: 1fr;
  } /* [HOME-EXP-RESULT-20260409-772] 모바일 결재 박스 세로 정렬 */

  .home-exp-pdf-title {
    font-size: 22px;
  }

  .home-exp-pdf-sign-row {
    flex-direction: column;
    gap: 6px;
  }

  .home-exp-pdf-table th,
  .home-exp-pdf-table td,
  .home-exp-pdf-approval th,
  .home-exp-pdf-approval td {
    font-size: 14px;
    padding: 8px 8px;
  }

  .home-exp-a4-sheet {
    width: 100%;
    min-height: auto;
    padding: 12px;
  }

  .home-exp-a4-head-row {
    flex-direction: column;
  }

  .home-exp-a4-title {
    margin-top: 0;
    font-size: 20px;
  }

  .home-exp-a4-approval-mini {
    width: 100%;
    flex: 1 1 auto;
  }

  .home-exp-a4-main th,
  .home-exp-a4-main td {
    font-size: 14px;
    padding: 8px 6px;
  }

  .home-exp-a4-statement {
    font-size: 16px;
    margin: 16px 0 12px;
  }

  .home-exp-a4-sign-row {
    font-size: 14px;
    gap: 18px;
  }
}
