/* ==========================================================================
   audit-print.css — 白名单审核页的纸面版式（A4）
   由 audit.html 以 media="print" 引入；只在打印 / 导出 PDF 时生效。
   输出范围：白名单信息 → 角色卡 → 审核记录，不含免责声明与网页外壳。
   ========================================================================== */

@page {
  size: A4;
  margin: 13mm 12mm 14mm;
}

:root {
  --ink: #fff;
}

html,
body.audit {
  background: #fff !important;
  color: #111 !important;
  font-size: 10.5pt;
  line-height: 1.6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.audit-bg,
.atop,
.ahead,
.stepper,
.afoot,
.toasts,
.actions,
.doc,
.check--big,
.strength,
.ctrl-group__toggle,
.preview,
.linkbtn,
.field__count,
.field__err,
.field__warn {
  display: none !important;
}

.apage {
  max-width: none;
  padding: 0;
  margin: 0;
}

.print-only {
  display: block !important;
}

.print-head {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #b3121c;
}

.print-head__brand {
  font-size: 9pt;
  letter-spacing: 0.22em;
  color: #666;
}

.print-head__title {
  font-size: 18pt;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #111;
}

.print-head__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9pt;
  color: #444;
  text-align: right;
  white-space: nowrap;
}

/* 跨页后的续表头 */
.print-party {
  display: flex !important;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  font-size: 8pt;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 1px solid #ddd;
}

/* 面板变为纸张区块 */
.step {
  display: none !important;
}

.step[data-step="info"],
.step[data-step="card"] {
  display: block !important;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none !important;
}

.step[data-step="card"] {
  break-before: page;
  page-break-before: always;
}

.cardstep {
  display: block;
}

.panel::before,
.panel::after {
  display: none;
}

.panel__head {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
}

.panel__idx {
  display: none;
}

.panel__title {
  margin: 4px 0 3px;
  font-size: 14pt;
  color: #111;
}

.print-num {
  display: inline !important;
}

.panel__sub {
  max-width: none;
  font-size: 8.5pt;
  line-height: 1.6;
  color: #666;
}

.req-mark {
  color: #b3121c;
}

/* 双列表格化 */
.fields {
  gap: 8px 12px;
}

/* 白名单信息页留出便于手写的行高 */
.step[data-step="info"] .fields {
  gap: 14px 12px;
}

.step[data-step="info"] .ctrl {
  min-height: 34px;
}

.step[data-step="info"] .field__hint {
  margin-top: 4px;
}

.field {
  break-inside: avoid;
}

.field__label {
  margin-bottom: 3px;
  font-size: 9pt;
  color: #1a1a1a;
}

.field__req,
.field__opt {
  font-size: 8pt;
}

.ctrl,
.ctrl-echo {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 10pt;
  color: #111;
  background: #fff;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  box-shadow: none;
}

.ctrl:focus {
  box-shadow: none;
}

.ctrl::placeholder {
  color: #b8b8b8;
}

textarea.ctrl {
  min-height: 38px;
  padding: 5px 7px;
  line-height: 1.55;
  resize: none;
}

#f-background {
  min-height: 60px;
}

.ctrl-echo {
  border-style: dashed;
  background: #fbfbfb;
  font-weight: 700;
}

/* 空白表模板里不打印占位说明，留一个空框给人手写 */
.ctrl-echo:empty::after {
  content: "";
}

.ctrl--select {
  background-image: none;
  padding-right: 7px;
}

.field__hint {
  margin-top: 3px;
  font-size: 7.5pt;
  line-height: 1.5;
  color: #777;
}

.field__hint b {
  color: #555;
}

.chip {
  margin-top: 4px;
  padding: 2px 7px;
  font-size: 7.5pt;
  color: #333;
  border-color: #bbb;
  background: #f6f6f6;
}

/* 角色卡确认声明 */
.step[data-step="card"] .check {
  padding: 7px 9px;
  background: #fafafa;
  border: 1px solid #ccc;
  break-inside: avoid;
}

.check__box {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border-color: #666;
}

.check__text {
  font-size: 9pt;
  color: #222;
}

.check__text b {
  color: #111;
}

.step[data-step="card"] .check input:checked + .check__box {
  background: #fff;
  border-color: #666;
}

.step[data-step="card"] .check input:checked + .check__box::after {
  border-color: #b3121c;
}

/* 申请人承诺与签名 */
.print-sign {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px dashed #bbb;
}

.print-sign__text {
  margin: 0 0 22px;
  font-size: 8.5pt;
  line-height: 1.7;
  color: #666;
}

.print-sign__line {
  margin: 0;
  font-size: 9.5pt;
  letter-spacing: 0.02em;
  color: #222;
}

.print-sign__line--review {
  margin: 14px 0 0;
  text-align: right;
}

/* 审核记录单独成页 */
.print-party--review {
  break-before: page;
  page-break-before: always;
}

/* 审核记录表 */
.print-review {
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-h2 {
  margin: 0 0 7px;
  padding-bottom: 5px;
  font-size: 11pt;
  font-weight: 900;
  color: #111;
  border-bottom: 1px solid #ccc;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
}

.print-table th,
.print-table td {
  padding: 6px 8px;
  border: 1px solid #9a9a9a;
  text-align: left;
  vertical-align: top;
  height: 20px;
}

.print-table th {
  width: 15%;
  font-weight: 600;
  color: #333;
  background: #f4f4f4;
  white-space: nowrap;
}

.print-table .print-lines {
  height: 96px;
  color: #b0b0b0;
}

.print-box {
  display: inline-block;
  margin-right: 14px;
  padding-left: 16px;
  position: relative;
}

.print-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid #666;
}

.print-note {
  margin: 8px 0 0;
  font-size: 7.5pt;
  line-height: 1.6;
  color: #777;
}
