/* A4 심사표 (화면 미리보기 · 인쇄 · PDF 공통) */
.paper {
  --k: 1;                     /* 발표가 많을 때 점수표를 줄이는 비율 (report.js에서 조절) */
  width: 794px;               /* A4 가로 (96dpi) */
  min-height: 1090px;
  -webkit-text-size-adjust: 100%;  /* 아이폰이 글씨를 임의로 키우지 않도록 */
  text-size-adjust: 100%;
  margin: 0 auto;
  padding: 48px 46px 40px;
  background: #fff;
  color: #111;
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 4px 24px rgba(35, 38, 131, 0.12);
  word-break: keep-all;
}

.p-head { display: flex; justify-content: space-between; align-items: flex-start; }
.p-logo { width: 96px; height: auto; aspect-ratio: 596 / 474; } /* 로고를 불러오기 전에도 자리를 잡아 높이 계산이 틀리지 않게 */
.p-meta { border-collapse: collapse; font-size: 12.5px; min-width: 300px; }
.p-meta th, .p-meta td {
  border-top: 1px solid #232683;
  border-bottom: 1px solid #232683;
  padding: 4px 14px;
  text-align: center;
  font-weight: 500;
}
.p-meta th { border-right: 1px solid #232683; width: 44%; color: #333; }
.p-meta td { font-weight: 700; }

.p-title {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: #232683;
  margin: 18px 0 18px;
  font-weight: 800;
}

.paper table.p-criteria,
.paper table.p-scores { width: 100%; border-collapse: collapse; table-layout: fixed; }
.p-criteria th, .p-criteria td,
.p-scores th, .p-scores td {
  border: 1px solid #333;
  padding: 5px 6px;
  text-align: center;
  vertical-align: middle;
}
.p-criteria { margin-bottom: 22px; font-size: 11.5px; }
.p-criteria th, .p-scores th { background: #eef0f8; font-weight: 700; }
.p-criteria .p-caption { background: #fff; border: 0; border-bottom: 1px solid #333; text-align: right; color: #232683; font-size: 11px; padding: 0 2px 4px; }

.p-scores td { height: calc(62px * var(--k)); padding-top: calc(5px * var(--k)); padding-bottom: calc(5px * var(--k)); }
.p-scores .p-left { text-align: left; font-size: calc(12.5px * var(--k)); }
.p-scores .p-authors { font-size: calc(10.5px * var(--k)); color: #333; }
.p-scores .p-num { font-size: calc(17px * var(--k)); font-weight: 700; }
.p-scores .p-total { color: #232683; font-size: calc(18px * var(--k)); font-weight: 800; }
.p-scores tr { break-inside: avoid; page-break-inside: avoid; }

.p-sign {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 700;
  break-inside: avoid;
  page-break-inside: avoid;
}
.p-sign-box {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 240px;
  height: 72px;
  border-bottom: 1.5px solid #111;
}
.p-sign-box img { max-width: 100%; max-height: 68px; object-fit: contain; }
.p-sign-placeholder { color: #9aa0cc; font-size: 12px; font-weight: 500; padding-bottom: 6px; }
.p-sign-name { min-width: 70px; }
.p-foot { text-align: right; color: #666; font-size: 10.5px; margin-top: 8px; }

/* PDF로 만들 때 (관리자 페이지) */
.pdf-mode .paper { box-shadow: none; margin: 0; }

/* 인쇄: 심사표만 A4로 */
@page { size: A4 portrait; margin: 0; }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .paper, .paper * { visibility: visible; }
  .paper { position: absolute; left: 0; top: 0; box-shadow: none; margin: 0; zoom: 1 !important; }
  .status-bar, .toast-box { display: none !important; }
}
