/**
 * 国标登记卡样式 — 由 scripts/build_registration_templates.py 从 Word 附表 docx 同步
 * 附表编号：仿宋 12pt；标题：黑体 14pt；表格：宋体 11pt；表内标签：宋体 11pt 加粗
 */

.reg-form {
    box-sizing: border-box;
    color: #000 !important;
    font-family: "SimSun", "宋体", serif;
    font-size: 11pt;
    line-height: 1.15;
    margin: 0 auto;
    background: #fff;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.reg-form,
.reg-form p,
.reg-form td,
.reg-form th,
.reg-form span,
.reg-form sup {
    color: #000 !important;
}

.reg-form strong {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-weight: bold !important;
}

/* 覆盖全站 .card p { color: #667085 }，登记卡预览在 .card 内 */
.health-reg-preview.card .reg-form,
.health-reg-preview.card .reg-form p,
.health-reg-preview.card .reg-form strong,
.health-reg-preview.card .reg-form td,
.health-reg-preview.card .reg-form th,
.health-reg-preview.card .reg-form span,
.health-reg-preview.card .reg-form sup,
.health-reg-preview.card .reg-form table.reg-main-table,
.health-reg-preview.card .reg-form table.reg-main-table * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

.reg-form > p:first-of-type {
    font-family: "FangSong", "仿宋", "SimSun", serif;
    font-size: 12pt;
    line-height: 1;
    margin: 0 0 6pt;
    text-align: left;
    color: #000 !important;
    font-weight: normal !important;
}

.reg-form > p:nth-of-type(2) {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 14pt;
    font-weight: bold !important;
    line-height: 1.15;
    margin: 0 0 10pt;
    text-align: center;
    color: #000 !important;
}

.reg-form > p:nth-of-type(2) strong {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 14pt;
    font-weight: bold !important;
    color: #000 !important;
}

.reg-form table.reg-main-table {
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.reg-form table.reg-main-table td,
.reg-form table.reg-main-table th,
.reg-form table.reg-main-table p,
.reg-form table.reg-main-table strong,
.reg-form table.reg-main-table sup {
    font-family: "SimHei", "黑体", "SimSun", "宋体", sans-serif;
    font-size: 11pt;
    line-height: 1.15;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
    -webkit-font-smoothing: auto;
}

.reg-form table.reg-main-table td,
.reg-form table.reg-main-table th {
    padding: 1pt 2pt;
    text-align: center;
    vertical-align: middle;
    word-break: keep-all;
    background: #fff;
    font-weight: normal;
}

.reg-form table.reg-main-table td[data-fill],
.reg-form table.reg-main-table td[data-fill] p {
    font-weight: normal !important;
    font-size: 11pt;
    text-align: center !important;
}

.reg-form table.reg-main-table td[data-fill="student_no"],
.reg-form table.reg-main-table td[data-fill="student_no"] p {
    text-align: left !important;
    white-space: nowrap;
    font-size: 10pt;
    letter-spacing: -0.3pt;
    padding-left: 1pt;
    padding-right: 1pt;
}

.reg-form table.reg-main-table tr.reg-row-school td {
    vertical-align: bottom;
    padding-bottom: 2pt;
}

.reg-form table.reg-main-table p {
    margin: 0;
    padding: 0;
    font-size: 11pt;
}

.reg-form table.reg-main-table strong {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 11pt;
    font-weight: bold !important;
}

.reg-form table.reg-foot-table {
    border: none;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 8pt;
    background: transparent;
}

.reg-form table.reg-foot-table[data-foot-align="right"] {
    margin-left: auto;
    margin-right: 0;
}

.reg-form table.reg-foot-table td {
    border: none !important;
    background: transparent !important;
    padding: 0 4pt;
    font-family: "SimHei", "黑体", "SimSun", "宋体", sans-serif;
    font-size: 11pt;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-align: center;
    vertical-align: bottom;
}

.reg-form table.reg-foot-table[data-foot-align="right"] td {
    text-align: right;
}

.reg-form table.reg-foot-table:not([data-foot-align="right"]) tr:first-child td:first-child {
    text-align: left;
}

.reg-form p {
    margin: 0;
    padding: 0;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-weight: normal;
}

.health-reg-preview {
    background: #fff;
    overflow-x: auto;
    padding: 18pt 0;
    color: #000;
}

.health-reg-preview .reg-form,
.health-reg-preview .reg-form * {
    color: #000 !important;
}

.health-reg-preview-inner {
    width: 100%;
}

.health-reg-preview .reg-form {
    margin-left: auto;
    margin-right: auto;
}

.health-reg-card-page {
    width: 100%;
    display: flex;
    justify-content: center;
}

.health-reg-card-page .reg-form {
    margin-left: auto;
    margin-right: auto;
}

@media print {
    .health-reg-card-page {
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
        border-top: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 267mm;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .health-reg-card-page--landscape {
        min-height: 180mm;
    }

    .health-reg-card-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}
/* === 各附表版式（由 Word docx 自动提取） === */
@page reg-page-primary-12 {
    margin: 72.0pt 90.0pt 63.8pt 90.0pt;
    size: A4 portrait;
}

.reg-form--primary_12 {
    max-width: 494.9pt;
    width: 494.9pt;
    page: reg-page-primary-12;
}

.reg-form--primary_12 table.reg-main-table {
    width: 494.9pt;
    max-width: 494.9pt;
}

.reg-form--primary_12 table.reg-foot-table {
    width: 191.3pt;
    max-width: 191.3pt;
}

.reg-form--primary_12 table.reg-main-table tr:nth-child(1) { height: 14.8pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(2) { height: 31.2pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(3) { height: 31.2pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(4) { height: 31.2pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(5) { height: 31.2pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(6) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(7) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(8) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(9) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(10) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(11) { height: 34.0pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(12) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(13) { height: 31.45pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(14) { height: 34.0pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(15) { height: 34.0pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(16) { height: 34.0pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(17) { height: 34.0pt; }
.reg-form--primary_12 table.reg-main-table tr:nth-child(18) { height: 34.0pt; }

@page reg-page-primary-34 {
    margin: 72.0pt 90.0pt 56.75pt 90.0pt;
    size: A4 portrait;
}

.reg-form--primary_34 {
    max-width: 494.9pt;
    width: 494.9pt;
    page: reg-page-primary-34;
}

.reg-form--primary_34 table.reg-main-table {
    width: 494.9pt;
    max-width: 494.9pt;
}

.reg-form--primary_34 table.reg-foot-table {
    width: 191.3pt;
    max-width: 191.3pt;
}

.reg-form--primary_34 table.reg-main-table tr:nth-child(1) { height: 21.85pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(2) { height: 31.2pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(3) { height: 31.2pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(4) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(5) { height: 28.35pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(6) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(7) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(8) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(9) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(10) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(11) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(12) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(13) { height: 28.35pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(14) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(15) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(16) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(17) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(18) { height: 31.45pt; }
.reg-form--primary_34 table.reg-main-table tr:nth-child(19) { height: 31.45pt; }

@page reg-page-primary-56 {
    margin: 72.0pt 90.0pt 56.75pt 90.0pt;
    size: A4 portrait;
}

.reg-form--primary_56 {
    max-width: 494.1pt;
    width: 494.1pt;
    page: reg-page-primary-56;
}

.reg-form--primary_56 table.reg-main-table {
    width: 494.1pt;
    max-width: 494.1pt;
}

.reg-form--primary_56 table.reg-foot-table {
    width: 191.3pt;
    max-width: 191.3pt;
}

.reg-form--primary_56 table.reg-main-table tr:nth-child(1) { height: 4.25pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(2) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(3) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(4) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(5) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(6) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(7) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(8) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(9) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(10) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(11) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(12) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(13) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(14) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(15) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(16) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(17) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(18) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(19) { height: 28.35pt; }
.reg-form--primary_56 table.reg-main-table tr:nth-child(20) { height: 20.15pt; }

@page reg-page-junior {
    margin: 0.0pt 72.0pt 63.8pt 72.0pt;
    size: A4 landscape;
}

.reg-form--junior {
    max-width: 746.05pt;
    width: 746.05pt;
    page: reg-page-junior;
}

.reg-form--junior table.reg-main-table {
    width: 746.05pt;
    max-width: 746.05pt;
}

.reg-form--junior table.reg-main-table tr:nth-child(1) { height: 17.55pt; }
.reg-form--junior table.reg-main-table tr:nth-child(2) { height: 17.55pt; }
.reg-form--junior table.reg-main-table tr:nth-child(3) { height: 17.55pt; }
.reg-form--junior table.reg-main-table tr:nth-child(4) { height: 1.0pt; }
.reg-form--junior table.reg-main-table tr:nth-child(5) { height: 1.0pt; }
.reg-form--junior table.reg-main-table tr:nth-child(6) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(7) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(8) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(9) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(10) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(11) { height: 3.5pt; }
.reg-form--junior table.reg-main-table tr:nth-child(12) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(13) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(14) { height: 14.15pt; }
.reg-form--junior table.reg-main-table tr:nth-child(15) { height: 3.5pt; }
.reg-form--junior table.reg-main-table tr:nth-child(16) { height: 19.85pt; }
.reg-form--junior table.reg-main-table tr:nth-child(17) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(18) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(19) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(20) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(21) { height: 18.45pt; }
.reg-form--junior table.reg-main-table tr:nth-child(22) { height: 22.95pt; }

@page reg-page-senior {
    margin: 49.65pt 72.0pt 49.65pt 72.0pt;
    size: A4 landscape;
}

.reg-form--senior {
    max-width: 746.05pt;
    width: 746.05pt;
    page: reg-page-senior;
}

.reg-form--senior table.reg-main-table {
    width: 746.05pt;
    max-width: 746.05pt;
}

.reg-form--senior table.reg-main-table tr:nth-child(1) { height: 7.7pt; }
.reg-form--senior table.reg-main-table tr:nth-child(2) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(3) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(4) { height: 1.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(5) { height: 1.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(6) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(7) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(8) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(9) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(10) { height: 17.55pt; }
.reg-form--senior table.reg-main-table tr:nth-child(11) { height: 17.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(12) { height: 17.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(13) { height: 19.85pt; }
.reg-form--senior table.reg-main-table tr:nth-child(14) { height: 14.15pt; }
.reg-form--senior table.reg-main-table tr:nth-child(15) { height: 1.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(16) { height: 1.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(17) { height: 19.85pt; }
.reg-form--senior table.reg-main-table tr:nth-child(18) { height: 19.85pt; }
.reg-form--senior table.reg-main-table tr:nth-child(19) { height: 17.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(20) { height: 17.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(21) { height: 17.0pt; }
.reg-form--senior table.reg-main-table tr:nth-child(22) { height: 19.85pt; }
.reg-form--senior table.reg-main-table tr:nth-child(23) { height: 14.15pt; }

@page reg-page-university {
    margin: 0.0pt 72.0pt 78.0pt 72.0pt;
    size: A4 landscape;
}

.reg-form--university {
    max-width: 745.6pt;
    width: 745.6pt;
    page: reg-page-university;
}

.reg-form--university table.reg-main-table {
    width: 745.6pt;
    max-width: 745.6pt;
}

.reg-form--university table.reg-main-table tr:nth-child(1) { height: 19.85pt; }
.reg-form--university table.reg-main-table tr:nth-child(2) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(3) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(4) { height: 14.15pt; }
.reg-form--university table.reg-main-table tr:nth-child(5) { height: 1.0pt; }
.reg-form--university table.reg-main-table tr:nth-child(6) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(7) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(8) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(9) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(10) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(11) { height: 3.5pt; }
.reg-form--university table.reg-main-table tr:nth-child(12) { height: 3.5pt; }
.reg-form--university table.reg-main-table tr:nth-child(13) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(14) { height: 14.15pt; }
.reg-form--university table.reg-main-table tr:nth-child(15) { height: 3.5pt; }
.reg-form--university table.reg-main-table tr:nth-child(16) { height: 3.5pt; }
.reg-form--university table.reg-main-table tr:nth-child(17) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(18) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(19) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(20) { height: 18.45pt; }
.reg-form--university table.reg-main-table tr:nth-child(21) { height: 22.95pt; }
.reg-form--university table.reg-main-table tr:nth-child(22) { height: 22.95pt; }

@media print {
    @page {
        size: A4 portrait;
        margin: 15mm 12mm 15mm 12mm;
    }

    @page reg-print-landscape {
        size: A4 landscape;
        margin: 15mm 12mm 15mm 12mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
        background: #fff !important;
    }

    .no-print {
        display: none !important;
    }

    .reg-form--primary_12,
    .reg-form--primary_34,
    .reg-form--primary_56,
    .reg-form--junior,
    .reg-form--senior,
    .reg-form--university {
        page: auto !important;
    }

    .health-reg-card-page--landscape {
        page: reg-print-landscape !important;
    }

    .health-reg-card-page {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .health-reg-card-page:not(.health-reg-card-page--landscape) {
        min-height: 267mm !important;
    }

    .health-reg-card-page--landscape {
        min-height: 180mm !important;
    }

    .health-reg-card-page .reg-form {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-left: auto !important;
        margin-right: auto !important;
        transform-origin: center center !important;
    }

    .health-reg-preview,
    .health-reg-preview-inner,
    .health-reg-preview.card {
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    body.print-registration .health-admin-sidebar,
    body.print-registration .gb-admin-app > aside,
    body.print-registration .gb-admin-strip,
    body.print-registration .health-entry-hero,
    body.print-registration .health-filter-bar,
    body.print-registration .health-reg-batch-hint,
    .health-admin-sidebar,
    .gb-admin-app > aside,
    .gb-admin-strip,
    .health-entry-hero,
    .health-filter-bar {
        display: none !important;
    }

    body.print-registration .gb-admin-app,
    body.print-registration .gb-admin-main,
    body.print-registration .gb-admin-content,
    body.print-registration .gb-admin-inner,
    body.print-registration .health-main {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
    }
}
