.print-page { background: #eef1f5; }

.toolbar {
  max-width: 860px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.toolbar-tip { color: #6b7280; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: 9px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  background: #fff; color: #1f2937; border-color: #d5dce6;
}
.btn-primary { background: #0d7a8c; color: #fff; border-color: #0d7a8c; }

.sheet {
  max-width: 860px; margin: 0 auto 40px;
  background: #fff; padding: 28px 32px;
  border: 1px solid #e3e8ef; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
}

.sheet-title {
  text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: 2px; margin-bottom: 18px;
}

.info-table, .main-table, .quality-table, .conclusion-table, .sign-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.info-table td {
  border: 1px solid #cbd5e1; padding: 8px 10px;
}
.info-label {
  background: #f5f8fa; color: #5b6675; width: 100px;
  text-align: center; font-weight: 600; white-space: nowrap;
}
.info-val {
  font-weight: 700; min-width: 110px;
}

.main-table { margin-top: 14px; }
.main-table th, .main-table td {
  border: 1px solid #cbd5e1; padding: 6px 8px; text-align: center;
}
.main-table thead th {
  background: #f5f8fa; font-weight: 700; font-size: 12.5px;
}
.main-table .eye-label {
  font-weight: 800; font-size: 18px; background: #f5f8fa;
  vertical-align: middle;
}
.main-table .sub-label {
  background: #fbfcfd; color: #5b6675; font-size: 12px;
  text-align: left; font-weight: 600;
}
.main-table .sub-label .dir {
  display: block; font-weight: 400; font-size: 11.5px;
  color: #8b95a5; margin-top: 2px;
}
.main-table .mono {
  font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 13.5px;
}
.main-table .check {
  font-size: 12px; color: #5b6675; letter-spacing: 1px;
}

.remark-row {
  margin-top: 14px; border: 1px solid #cbd5e1; padding: 8px 10px;
  font-size: 13px; min-height: 42px;
}
.remark-label { font-weight: 700; color: #5b6675; }

.quality-table { margin-top: 14px; }
.quality-table td {
  border: 1px solid #cbd5e1; padding: 6px 8px; font-size: 12.5px;
}
.q-label {
  background: #f5f8fa; color: #5b6675; font-weight: 600;
  text-align: center; width: 110px;
}
.q-item { text-align: left; line-height: 1.5; }
.q-check {
  width: 90px; text-align: center; font-size: 12px;
  color: #5b6675; letter-spacing: 1px;
}

.conclusion-table { margin-top: 14px; }
.conclusion-table td {
  border: 1px solid #cbd5e1; padding: 8px 10px; font-size: 13px;
}
.conclusion-label {
  background: #f5f8fa; color: #5b6675; font-weight: 600;
  text-align: center; width: 110px;
}
.conclusion-val { text-align: center; letter-spacing: 1px; }

.sign-table { margin-top: 14px; }
.sign-table td {
  border: 1px solid #cbd5e1; padding: 10px 12px; font-size: 13px;
}
.sign-label {
  background: #f5f8fa; color: #5b6675; font-weight: 600;
  text-align: center; width: 90px;
}
.sign-blank { width: 220px; }
.sign-date { text-align: center; letter-spacing: 2px; }

.sheet-foot {
  display: flex; justify-content: space-between;
  margin-top: 18px; padding-top: 10px;
  border-top: 1px dashed #e3e8ef;
  color: #8b95a5; font-size: 12px;
}

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body { background: #fff; font-size: 11px; }
  .no-print { display: none !important; }
  .sheet {
    max-width: none; margin: 0; padding: 0;
    border: none; box-shadow: none; border-radius: 0;
  }
  .sheet-title { font-size: 18px; margin-bottom: 8px; letter-spacing: 1px; }

  /* 各表格之间取消大间距，用顶部边框线作为分隔，连成一体 */
  .info-table, .main-table, .quality-table, .conclusion-table, .sign-table {
    margin-top: 0;
    border-top: 1px solid #333;
  }
  .info-table { border-top: none; }

  .info-table td {
    padding: 4px 8px; font-size: 11px;
  }
  .info-label { width: 90px; }

  .main-table th, .main-table td {
    padding: 3px 5px; font-size: 10.5px;
  }
  .main-table thead th { font-size: 11px; }
  .main-table .eye-label { font-size: 15px; }
  .main-table .sub-label { font-size: 10.5px; }
  .main-table .sub-label .dir { font-size: 9px; margin-top: 0; }
  .main-table .mono { font-size: 11px; }
  .main-table .check { font-size: 10px; letter-spacing: 0; }

  .remark-row {
    margin-top: 0; border-top: 1px solid #333;
    padding: 4px 8px; min-height: auto; font-size: 11px;
  }

  .quality-table td {
    padding: 3px 6px; font-size: 10.5px;
  }
  .q-label { width: 95px; }
  .q-item { line-height: 1.35; }
  .q-check { width: 72px; font-size: 10px; letter-spacing: 0; }

  .conclusion-table td {
    padding: 5px 8px; font-size: 11px;
  }

  .sign-table td {
    padding: 5px 8px; font-size: 11px;
  }
  .sign-label { width: 80px; }
  .sign-blank { width: 180px; }

  .sheet-foot {
    margin-top: 8px; padding-top: 5px;
    border-top: 1px dashed #999;
    font-size: 10px;
  }

  /* 尽量避免表格被分页截断 */
  table { page-break-inside: avoid; break-inside: avoid; }
}
