/* iframe 内 PDF.js 布局（原站 iframe 600px） */
html.admissionFrameBody,
body.admissionFrameBody {
  height: 600px;
  overflow: hidden;
}

body.admissionFrameBody #outerContainer {
  position: absolute;
  inset: 0;
}

body.admissionFrameBody #mainContainer {
  position: absolute;
  inset: 0;
}

body.admissionFrameBody #viewerContainer {
  top: 32px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.admissionFrameBody #viewer.pdfViewer {
  padding: 0;
}

/* 使用 PDF.js 默认 .page 阴影，不用 removePageBorders */
body.admissionFrameBody .pdfViewer .page.admission-page {
  width: 816px;
  height: 1056px;
  margin: 1px auto -8px auto;
  overflow: hidden;
}

body.admissionFrameBody .pdfViewer .page.admission-page:last-child {
  margin-bottom: 10px;
}

.admission-page-inner {
  width: 798px;
  height: 1038px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* 缩放容器 — 模拟 PDF.js scale */
.admission-zoom-wrap {
  width: 816px;
  margin: 0 auto;
  text-align: center;
}

/* 名单表格 — 与原 PDF 一致 */
.admission-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "SimSun", "Songti SC", "STSong", serif;
  font-size: 12px;
  color: #000;
  background: #fff;
}

.admission-table th,
.admission-table td {
  border: 1px solid #000;
  text-align: center;
  vertical-align: middle;
  padding: 0 1px;
  line-height: 1.15;
  font-weight: normal;
}

.admission-table thead th {
  background: #ffff00;
  font-weight: bold;
  font-size: 12px;
  height: 28px;
  padding: 2px 1px;
  white-space: nowrap;
}

.admission-table tbody tr {
  background: #fff;
}

.admission-table tbody td {
  font-size: 11px;
  height: var(--row-h, 13px);
  max-height: var(--row-h, 13px);
  overflow: visible;
}

.admission-table td.col-no,
.admission-table td.col-id,
.admission-table td.col-name,
.admission-table td.col-dept-code,
.admission-table td.col-score,
.admission-table td.col-major-code,
.admission-table td.col-type {
  white-space: nowrap;
  font-size: 11px;
}

.admission-table td.col-dept-name,
.admission-table td.col-major-name,
.admission-table td.col-remark {
  white-space: normal;
  word-break: break-all;
  font-size: 10px;
  line-height: 1.1;
  padding: 0 1px;
}

.admission-table.rows-50 tbody tr,
.admission-table.rows-50 tbody td {
  height: 20px;
  font-size: 12px;
}

.admission-table col.col-no { width: 5%; }
.admission-table col.col-id { width: 14%; }
.admission-table col.col-name { width: 6%; }
.admission-table col.col-dept-code { width: 5%; }
.admission-table col.col-dept-name { width: 14%; }
.admission-table col.col-score { width: 6%; }
.admission-table col.col-major-code { width: 8%; }
.admission-table col.col-major-name { width: 14%; }
.admission-table col.col-remark { width: 14%; }
.admission-table col.col-type { width: 7%; }

.admission-table mark.find-highlight {
  background: #ff0;
  color: #000;
}

.thumbnail-page-label {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #ccc;
  padding: 2px 0 6px;
}

.thumbnail-mini-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: 3px;
  font-family: SimSun, serif;
  background: #fff;
}

.thumbnail-mini-table th {
  background: #ff0;
  border: 1px solid #000;
}

.thumbnail-mini-table td {
  border: 1px solid #000;
  text-align: center;
}

@media print {
  body.admissionFrameBody #sidebarContainer,
  body.admissionFrameBody .toolbar,
  body.admissionFrameBody .findbar,
  body.admissionFrameBody .secondaryToolbar {
    display: none !important;
  }
  body.admissionFrameBody #viewerContainer {
    top: 0 !important;
    overflow: visible !important;
  }
}
