/* 国家学生体质健康标准管理系统样式 */
.health-admin-app { --health-primary: #0d9488; --health-accent: #14b8a6; }
.health-sidebar .health-brand-mark { font-size: 1.4rem; color: #e11d48; }
.health-sb-sub { display: block; font-size: 0.72rem; color: #64748b; font-weight: 400; }
.health-sb-nav { display: flex; flex-direction: column; gap: 8px; padding-bottom: 0.5rem; }
.health-sb-details { margin: 0; }
.health-sidebar .gb-sb-details > .gb-sb-sum {
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.22);
}
.health-sidebar .gb-sb-details > .gb-sb-sum:hover { filter: brightness(1.04); }
.health-sb-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 6px 0 8px;
}
.health-sb-item {
    margin: 2px 6px;
    color: #334155;
}
.health-sb-item:hover {
    background: #f0fdfa;
    color: #0f766e;
}
.health-sb-item.is-active {
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #0d9488;
}
.health-sb-item--iconic:hover .gb-sb-item-title,
.health-sb-item--iconic.is-active .gb-sb-item-title {
    color: #0f766e;
}
.health-sb-item.is-disabled {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: not-allowed;
    color: #94a3b8 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.72;
    pointer-events: none;
}
.health-sb-item.is-disabled .gb-sb-item-ico,
.health-sb-item.is-disabled .gb-sb-item-title {
    color: #94a3b8 !important;
}

/* 侧栏跳转 — 即时高亮与加载态 */
.health-admin-app .gb-admin-content {
    position: relative;
}
body.health-page-loading .gb-admin-content {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
body.health-page-loading .gb-admin-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #0d9488);
    background-size: 200% 100%;
    animation: health-nav-progress 0.9s linear infinite;
    z-index: 20;
}
@keyframes health-nav-progress {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.health-back-link { margin-bottom: 0.25rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.75rem !important; }
.health-sb-footer { padding: 1rem; border-top: 1px solid #e2e8f0; font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.health-role-badge { display: inline-block; background: #ecfdf5; color: var(--health-primary); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; width: fit-content; }
.health-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.health-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.health-stat-label { font-size: 0.85rem; color: #64748b; margin-bottom: 0.35rem; }
.health-stat-value { font-size: 1.75rem; font-weight: 700; color: #0f172a; }
.health-stat-card--ok .health-stat-value { color: #059669; }
.health-stat-card--good .health-stat-value { color: #0d9488; }
.health-stat-card--warn .health-stat-value { color: #dc2626; }
.health-chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.health-chart { height: 280px; width: 100%; }
.health-chart-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }

/* 统计分析 — 全校数据表 */
.health-stats-head .health-filter-bar {
    margin-top: .75rem;
    margin-bottom: 0;
}
.health-school-stats-sheet {
    padding: 1.15rem 1.15rem .95rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.health-school-stats-title {
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
    letter-spacing: .02em;
}
.health-school-stats-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #475569;
    margin-bottom: .75rem;
    padding: 0 .25rem;
}
.health-school-stats-seal {
    flex: 0 0 6rem;
    color: #94a3b8;
}
.health-school-stats-date {
    margin-left: auto;
    color: #64748b;
}
.health-school-stats-scroll {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.health-school-stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .8rem;
    min-width: 980px;
}
.health-school-stats-table th,
.health-school-stats-table td {
    border: 1px solid #cbd5e1;
    padding: .45rem .55rem;
    text-align: center;
    white-space: nowrap;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}
.health-school-stats-table thead th {
    font-weight: 700;
    color: #0f172a;
}
.health-school-stats-table thead tr:first-child th {
    background: #e2e8f0;
    font-size: .78rem;
    padding: .5rem .45rem;
}
.health-school-stats-table thead tr:last-child th {
    background: #f1f5f9;
    font-size: .74rem;
    padding: .4rem .45rem;
}
.health-school-stats-table tbody tr:nth-child(even):not(.health-school-stats-total-row) td {
    background: #f8fafc;
}
.health-school-stats-table tbody tr:not(.health-school-stats-total-row):hover td {
    background: #f0fdf4;
}
.health-school-stats-col-grade {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 3.2rem;
    font-weight: 600;
    box-shadow: 2px 0 5px rgba(15, 23, 42, .08);
}
.health-school-stats-table thead .health-school-stats-col-grade {
    z-index: 3;
    background: #e2e8f0;
}
.health-school-stats-table thead tr:last-child .health-school-stats-col-grade {
    background: #f1f5f9;
}
.health-school-stats-table tbody tr:nth-child(even):not(.health-school-stats-total-row) .health-school-stats-col-grade {
    background: #f8fafc;
}
.health-school-stats-table tbody tr:not(.health-school-stats-total-row):hover .health-school-stats-col-grade {
    background: #f0fdf4;
}
.health-school-stats-rate {
    color: #b91c1c !important;
    font-weight: 700;
}
.health-school-stats-total-row td {
    background: #ecfdf5 !important;
    border-top: 2px solid #0d9488;
    font-weight: 700;
    color: #0f172a;
}
.health-school-stats-total-row .health-school-stats-col-grade {
    background: #ecfdf5 !important;
    color: #0f766e;
}
.health-school-stats-empty {
    padding: 1.25rem !important;
    color: #94a3b8;
}

/* 统计分析 — 各项目图表 */
.health-item-charts-section {
    margin-bottom: 1.5rem;
}
.health-item-charts-title {
    margin: 0 0 .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f766e;
}
.health-item-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.health-item-chart-card {
    padding: 1rem 1.15rem 1.1rem;
}
.health-item-chart-name {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.health-item-chart-summary {
    margin: 0 0 .5rem;
    font-size: .82rem;
    color: #64748b;
}
.health-item-chart {
    height: 380px;
    width: 100%;
}
.health-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.health-import-label { cursor: pointer; margin: 0; }
.health-import-label.is-loading { opacity: 0.7; pointer-events: none; }

.page-health-module .health-sync-scores-btn.is-active.btn-primary,
.page-health-module .health-sync-scores-btn.is-active.btn-primary:disabled {
    opacity: 1;
    cursor: wait;
}
.page-health-module .health-sync-scores-btn.is-active.btn-primary:disabled {
    opacity: 0.9;
}

.health-import-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
}
.health-import-overlay[hidden] { display: none !important; }
.health-import-panel {
    width: min(520px, 100%);
    padding: 1.35rem 1.5rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.health-import-panel h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: #0f172a;
}
.health-import-actions .btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    box-shadow: none;
}
.health-import-actions #health-task-download-btn.btn-secondary:disabled {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #94a3b8;
}
.health-import-status {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}
.health-import-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.health-import-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%);
    transition: width 0.15s linear;
}
.health-import-percent {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
    text-align: right;
}
.health-import-log-label {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.health-import-log {
    margin-top: 0.85rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #334155;
}
.health-import-log-line {
    padding: 0.1rem 0;
    word-break: break-word;
}
.health-import-log-line--err {
    color: #dc2626;
}
.health-import-log-line--hint {
    color: #64748b;
}
.health-import-actions {
    margin-top: 0.85rem;
    text-align: right;
}
.health-import-progress-bar.is-error {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}
.health-import-panel--done .health-import-status {
    color: #0f766e;
    font-weight: 600;
}
.health-toolbar { margin-bottom: 1rem; }
.health-field-abnormal input { border-color: #dc2626; background: #fef2f2; }
.health-abnormal-tip { color: #dc2626; font-size: 0.75rem; }
.health-level { padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; border: 1px solid transparent; }
.health-level--excellent { background: #dcfce7; color: #15803d; border-color: #86efac; }
.health-level--good { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.health-level--pass { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.health-level--fail { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.health-grade-items-list { line-height: 1.8; color: #475569; }
.health-resolved { opacity: 0.6; }
.health-reg-card { max-width: 800px; }
.health-reg-header { text-align: center; margin-bottom: 1.5rem; }
.health-reg-header h2 { margin: 0; font-size: 1.25rem; }
.health-reg-header h3 { margin: 0.5rem 0 0; font-size: 1rem; font-weight: 500; color: #475569; }
.health-reg-info { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.health-reg-info td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; }
.health-reg-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }

/* 国标附表1～6登记卡 */
.health-reg-preview { padding: 1.25rem; overflow-x: auto; }
.health-reg-official { min-width: 720px; font-size: 12px; color: #111; line-height: 1.45; }
.health-reg-official-head { text-align: center; margin-bottom: .75rem; }
.health-reg-official-appendix { margin: 0 0 .25rem; font-size: 12px; color: #334155; }
.health-reg-official-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.health-reg-official-meta,
.health-reg-official-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.health-reg-official-meta td,
.health-reg-official-table th,
.health-reg-official-table td {
    border: 1px solid #111;
    padding: .35rem .4rem;
    vertical-align: middle;
    word-break: break-word;
}
.health-reg-official-meta { margin-bottom: .5rem; }
.health-reg-meta-label { width: 4.5rem; text-align: center; background: #f8fafc; white-space: nowrap; }
.health-reg-meta-val { min-height: 1.6rem; }
.health-reg-meta-wide { min-width: 12rem; }
.health-reg-official-table thead th { background: #f1f5f9; font-weight: 600; text-align: center; font-size: 11px; }
.health-reg-col-indicator { width: 7.5rem; text-align: left; background: #fafafa; font-size: 11px; }
.health-reg-center { text-align: center; }
.health-reg-grad-cell { text-align: center; vertical-align: middle; width: 4.5rem; }
.health-reg-grad-inner p { margin: .35rem 0; }
.health-reg-grad-val { min-height: 1.25rem; font-weight: 600; }
.health-reg-row-summary td,
.health-reg-row-footer td { font-weight: 500; }
.health-reg-official-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 .25rem;
    font-size: 12px;
}
.health-reg-exempt-note { margin: .75rem 0 0; font-size: 11px; color: #64748b; }

@media print {
    .no-print { display: none !important; }
    .health-reg-preview { padding: 0; border: none; box-shadow: none; overflow: visible; }
    .health-reg-official { min-width: 0; font-size: 10px; }
    .health-reg-card { box-shadow: none; border: none; }
    .health-admin-sidebar,
    .health-admin-header,
    .health-admin-strip { display: none !important; }
    .health-admin-main { margin: 0 !important; padding: 0 !important; }
}
.health-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.health-feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.health-feature-card h3 { margin: 0 0 .5rem; font-size: 1rem; color: #0f172a; }
.health-feature-card p { margin: 0 0 .75rem; font-size: .88rem; color: #64748b; line-height: 1.6; }
.health-feature-card .btn { margin-right: .35rem; margin-bottom: .35rem; }

/* 跨网数据转换：收紧留白，顶栏已有标题 */
.gb-admin-content:has(.health-main--cross-network) {
    padding-top: 12px;
    padding-bottom: 24px;
}
.health-main.health-main--cross-network.section-gap,
.gb-admin-inner.health-main--cross-network.section-gap {
    padding-top: 8px;
    padding-bottom: 20px;
}
.health-main--cross-network .health-cross-network-head {
    margin: 0 0 0.75rem;
}
.health-main--cross-network .health-cross-network-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}
.health-main--cross-network .health-cross-network-head p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
}
.health-main--cross-network .health-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
    align-items: stretch;
}
.health-main--cross-network .health-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.1rem;
}
.health-main--cross-network .health-feature-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.96rem;
}
.health-main--cross-network .health-feature-card > p:not(.hint) {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    line-height: 1.55;
}
.health-main--cross-network .health-feature-card .health-grid-fill-form,
.health-main--cross-network .health-feature-card > .btn {
    margin-top: 0.15rem;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}
.health-main--cross-network .health-feature-card .health-btn-row {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}
.health-main--cross-network .health-feature-card .health-btn-row .btn {
    width: auto;
}
.health-main--cross-network .health-feature-card .hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
}
.health-main--cross-network .health-feature-card .hint:last-child {
    margin-top: auto;
    padding-top: 0.5rem;
}
@media (max-width: 1080px) {
    .health-main--cross-network .health-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 登记卡一键打印/导出：收紧留白 */
.gb-admin-content:has(.health-main--registration) {
    padding-top: 12px;
    padding-bottom: 24px;
}
.health-main.health-main--registration.section-gap,
.gb-admin-inner.health-main--registration.section-gap {
    padding-top: 8px;
    padding-bottom: 20px;
}
.health-main--registration .health-entry-hero.health-page-hero--compact {
    padding: 0.6rem 1rem;
    margin-bottom: 0.65rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.18);
}
.health-main--registration .health-entry-hero h1 {
    font-size: 1.12rem;
    margin-bottom: 0.15rem;
}
.health-main--registration .health-entry-hero p {
    font-size: 0.82rem;
}
.health-main--registration .health-filter-bar {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.85rem;
}
.health-main--registration .health-reg-preview.card {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    color: #000;
}

.health-main--registration .health-reg-preview .reg-form,
.health-main--registration .health-reg-preview .reg-form *,
.health-main--registration .health-reg-preview.card p,
.health-main--registration .health-reg-preview.card strong,
.health-main--registration .health-reg-preview .reg-form table.reg-main-table,
.health-main--registration .health-reg-preview .reg-form table.reg-main-table * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}
.health-main--registration .health-reg-preview-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.health-main--registration .health-reg-batch-hint {
    align-self: center;
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}
.health-reg-extra-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
#reg-generate-btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
}
.health-reg-card-page + .health-reg-card-page {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #cbd5e1;
}
@media print {
    .health-reg-card-page + .health-reg-card-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
}
.health-main--registration .empty.card.no-print {
    margin-bottom: 0;
    padding: 0.75rem 1rem;
}

/* 数据分析：收紧顶部留白 */
.gb-admin-content:has(.health-main--stats-analysis) {
    padding-top: 12px;
    padding-bottom: 24px;
}
.health-main.health-main--stats-analysis.section-gap,
.gb-admin-inner.health-main--stats-analysis.section-gap {
    padding-top: 8px;
    padding-bottom: 20px;
}
.health-main--stats-analysis .health-stats-head {
    margin: 0 0 0.75rem;
}
.health-main--stats-analysis .health-stats-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
}
.health-main--stats-analysis .health-stats-head p {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: #64748b;
}
.health-main--stats-analysis .health-stats-head .health-filter-bar {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 0.65rem 0.85rem;
}
.health-main--stats-analysis .health-school-stats-sheet {
    padding: 0.85rem 1rem 0.75rem;
    margin-bottom: 1rem;
}

/* 成绩协同录入：收紧顶部留白、缩小主标题 */
.gb-admin-content:has(.health-main--score-collab) {
    padding-top: 12px;
    padding-bottom: 24px;
}
.health-main.health-main--score-collab.section-gap,
.gb-admin-inner.health-main--score-collab.section-gap {
    padding-top: 8px;
    padding-bottom: 20px;
}
.health-main--score-collab .health-score-collab-head {
    margin: 0 0 0.75rem;
}
.health-main--score-collab .health-score-collab-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
}
.health-main--score-collab .health-score-collab-head p {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: #64748b;
}
.health-main--score-collab .health-score-collab-create-form input.health-score-collab-count-input:focus,
.health-main--score-collab .health-score-collab-create-form input.health-score-collab-count-input:focus-visible {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: none;
}

.health-mini-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; font-size: .85rem; }
.health-mini-stats span { background: #f1f5f9; padding: .25rem .5rem; border-radius: 4px; }
.health-mini-stats .ok { background: #ecfdf5; color: #059669; }
.health-mini-stats .warn { background: #fef2f2; color: #dc2626; }
.health-issue-list { margin: 0; padding-left: 1.2rem; color: #475569; line-height: 1.8; font-size: .88rem; }
.health-security-note { background: #f8fafc; border-left: 4px solid var(--health-primary); }
.health-grade-section { margin-bottom: 1.5rem; }
.health-main--entry.section-gap {
    padding-top: 12px;
    padding-bottom: 28px;
}
.health-page-hero--compact {
    padding: .85rem 1.15rem;
    margin-bottom: .75rem;
}
.health-page-hero--compact h1 {
    font-size: 1.2rem;
    margin-bottom: .2rem;
}
.health-page-hero--compact p {
    font-size: .85rem;
}
.health-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
    padding: .85rem 1rem;
}
.health-filter-bar select {
    min-width: 120px;
    padding: .4rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}
.health-filter-bar .btn.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    transition: background .15s, border-color .15s;
}
.health-filter-bar .btn.btn-secondary:hover,
.health-filter-bar .btn.btn-secondary:focus-visible,
.health-filter-bar .btn.btn-secondary:active {
    background: #cbd5e1;
    color: #0f172a;
    border-color: #94a3b8;
    box-shadow: none;
    filter: none;
}
.health-filter-bar .btn.btn-secondary:focus {
    outline: none;
}
.health-filter-bar .btn.btn-primary,
.health-filter-bar a.btn.btn-primary {
    background: #0d9488;
    color: #fff;
    border: 1px solid #0d9488;
    box-shadow: none;
    transition: background .15s, border-color .15s;
}
.health-filter-bar a.btn.btn-primary:link,
.health-filter-bar a.btn.btn-primary:visited {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}
.health-filter-bar .btn.btn-primary:hover,
.health-filter-bar .btn.btn-primary:focus-visible,
.health-filter-bar .btn.btn-primary:active,
.health-filter-bar a.btn.btn-primary:hover,
.health-filter-bar a.btn.btn-primary:focus-visible,
.health-filter-bar a.btn.btn-primary:active,
.health-filter-bar a.btn.btn-primary:visited:hover,
.health-filter-bar a.btn.btn-primary:visited:focus-visible,
.health-filter-bar a.btn.btn-primary:visited:active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
    box-shadow: none;
    filter: none;
}
.health-filter-bar .btn.btn-primary:focus,
.health-filter-bar a.btn.btn-primary:focus {
    outline: none;
}
.health-filter-bar .btn.btn-secondary.health-btn-score-filter {
    background: #0d9488;
    color: #fff;
    border: 1px solid #0d9488;
    box-shadow: none;
}
.health-filter-bar .btn.btn-secondary.health-btn-score-filter:hover,
.health-filter-bar .btn.btn-secondary.health-btn-score-filter:focus-visible,
.health-filter-bar .btn.btn-secondary.health-btn-score-filter:active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
    box-shadow: none;
    filter: none;
}
.health-filter-bar .btn.btn-secondary.health-btn-score-edit {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
    color: #fff;
    border: 1px solid #1e4d8c;
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.22);
}
.health-filter-bar .btn.btn-secondary.health-btn-score-edit:hover,
.health-filter-bar .btn.btn-secondary.health-btn-score-edit:focus-visible,
.health-filter-bar .btn.btn-secondary.health-btn-score-edit:active {
    background: linear-gradient(180deg, #2d6bb8 0%, #255fa8 100%);
    color: #fff;
    border-color: #255fa8;
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.28);
    filter: none;
}
.health-filter-bar .btn.btn-secondary.health-btn-score-edit.is-save-mode {
    background: linear-gradient(180deg, #1e63d9 0%, #1e4d8c 100%);
    border-color: #1e4d8c;
    color: #fff;
}
.health-filter-bar .btn.btn-secondary.health-btn-score-edit.is-save-mode:hover,
.health-filter-bar .btn.btn-secondary.health-btn-score-edit.is-save-mode:focus-visible,
.health-filter-bar .btn.btn-secondary.health-btn-score-edit.is-save-mode:active {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
    border-color: #1e4d8c;
    color: #fff;
}
.health-filter-bar a.health-reg-export-word,
.health-filter-bar a.health-reg-export-word:link,
.health-filter-bar a.health-reg-export-word:visited {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}
.health-filter-bar a.health-reg-export-word:hover,
.health-filter-bar a.health-reg-export-word:focus-visible,
.health-filter-bar a.health-reg-export-word:active,
.health-filter-bar a.health-reg-export-word:visited:hover,
.health-filter-bar a.health-reg-export-word:visited:focus-visible,
.health-filter-bar a.health-reg-export-word:visited:active {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.28);
    filter: none;
}
.health-filter-bar a.health-reg-export-word:focus {
    outline: none;
}
#score-view-toast.toast {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 10050;
    min-width: 11rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.6rem;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}
#score-view-toast.toast.ok {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}
#score-view-toast.toast.err {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.health-ss-raw-cell {
    position: relative;
    padding: .28rem .35rem;
    vertical-align: middle;
}
.health-ss-raw-cell .health-ss-raw-text {
    display: inline-block;
    min-width: 2.5rem;
}
.health-score-view-editing .health-ss-raw-cell .health-ss-raw-text {
    visibility: hidden;
}
.health-ss-raw-input {
    display: none;
    position: absolute;
    left: .2rem;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - .4rem);
    min-width: 0;
    max-width: none;
    padding: .18rem .28rem;
    border: 1px solid #475569;
    border-radius: 4px;
    font: inherit;
    font-size: .72rem;
    text-align: center;
    box-sizing: border-box;
}
.health-score-view-editing .health-ss-raw-input:not([disabled]):focus {
    border-color: #1e293b;
    outline: none;
    box-shadow: 0 0 0 1px #1e293b;
}
.health-score-view-editing .health-ss-raw-input:not([disabled]) {
    display: block;
}
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td {
    background: #fef08a !important;
}
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td.health-ss-total-level--excellent,
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td.health-ss-total-level--good,
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td.health-ss-total-level--pass,
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td.health-ss-total-level--fail,
.health-score-view-editing .health-score-sheet-table tbody tr.health-ss-row-active td.health-ss-total-level--exempt {
    background: #fef08a !important;
}
.health-table-card {
    padding: 0;
    overflow: auto;
}
.health-data-table { margin: 0; }
.health-entry-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(13, 148, 136, .22);
}
.health-entry-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.health-entry-hero h1 { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 700; }
.health-entry-hero p { margin: 0; opacity: .92; font-size: .92rem; }
.health-entry-badge {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .82rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.health-entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}
.health-entry-actions-hint {
    font-size: .82rem;
    color: #64748b;
    flex: 1 1 220px;
}
.health-entry-actions-msg {
    font-size: .82rem;
    width: 100%;
}
.health-entry-actions-msg.is-ok { color: #059669; }
.health-entry-actions-msg.is-err { color: #dc2626; }
.health-grade-title {
    margin: 0 0 .85rem;
    padding: .45rem .85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f766e;
    background: linear-gradient(90deg, #ecfdf5 0%, transparent 100%);
    border-left: 4px solid var(--health-primary);
    border-radius: 0 6px 6px 0;
}
.health-grade-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: stretch;
}
/* 班级成绩录入：双栏布局（参考学生信息管理） */
.health-score-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(30, 58, 95, .25);
}
.health-score-hero--compact {
    padding: .85rem 1.15rem;
    margin-bottom: .75rem;
}
.health-score-hero--compact h1 {
    font-size: 1.2rem;
    margin-bottom: .2rem;
}
.health-score-hero--compact p {
    font-size: .85rem;
    line-height: 1.45;
}
.health-score-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.health-score-hero h1 { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 700; }
.health-score-hero p { margin: 0; opacity: .92; font-size: .92rem; line-height: 1.6; }
.health-score-back {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    white-space: nowrap;
}
.health-score-back:hover { background: rgba(255,255,255,.25); color: #fff; }

/* 班级成绩录入：左侧录入区贴左，减少主区左右留白 */
body.page-health-module .gb-admin-content:has(.health-score-split) {
    padding-left: 12px;
    padding-right: 18px;
}

.health-score-split {
    display: grid;
    grid-template-columns: 276px 1fr;
    gap: 1rem;
    align-items: start;
    margin-left: 0;
}
.health-score-side.card {
    padding: 1rem 1rem 1.15rem;
    box-sizing: border-box;
}
@media (max-width: 960px) {
    .health-score-split { grid-template-columns: 1fr; }
}

.health-score-side-head,
.health-score-main-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e2e8f0;
}
.health-score-side-head {
    justify-content: flex-start;
}
.health-score-main-head {
    justify-content: space-between;
}
.health-score-main-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.health-score-side-head h2,
.health-score-main-title h2 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.health-score-main-title .health-count-badge {
    margin-left: .15rem;
}
.health-score-main-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}
.health-score-main-actions .health-btn-save-class {
    display: inline-block;
    background: #86efac;
    border: 1px solid #4ade80;
    color: #0f172a;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    min-height: 2.5rem;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.health-score-main-actions .health-btn-save-class:hover,
.health-score-main-actions .health-btn-save-class:focus-visible,
.health-score-main-actions .health-btn-save-class:active {
    background: #16a34a;
    border-color: #16a34a;
    color: #0f172a;
}
.health-score-main-actions .health-btn-save-class:disabled {
    opacity: .7;
    cursor: wait;
}
.health-score-main-actions .health-btn-delete-class {
    display: inline-block;
    background: #fca5a5;
    border: 1px solid #f87171;
    color: #0f172a;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    min-height: 2.5rem;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.health-score-main-actions .health-btn-delete-class:hover,
.health-score-main-actions .health-btn-delete-class:focus-visible,
.health-score-main-actions .health-btn-delete-class:active {
    background: #dc2626;
    border-color: #dc2626;
    color: #0f172a;
}
.health-score-main-actions .health-btn-delete-class:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* 成绩录入页提示：居中显示，避免被顶部栏遮挡 */
#toast.toast {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 10050;
    min-width: 11rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.6rem;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}
#toast.toast.ok {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}
#toast.toast.err {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.health-score-side-icon { font-size: 1.15rem; line-height: 1; }

.health-count-badge {
    background: #1e293b;
    color: #fff;
    font-size: .78rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.health-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin-bottom: .75rem;
}
.health-score-side-download {
    margin-bottom: 1rem;
}
.health-score-side-download .btn {
    width: 100%;
    text-align: center;
}
.health-method-tab {
    padding: .45rem .5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: .82rem;
    cursor: pointer;
    transition: all .15s;
}
.health-method-tab:hover { border-color: #94a3b8; color: #0f172a; }
.health-method-tab.is-active {
    background: #ecfdf5;
    border-color: var(--health-primary);
    color: var(--health-primary);
    font-weight: 600;
}

.health-method-ocr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.health-method-ocr-actions .health-method-ocr-fix-hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #64748b;
}

.health-method-panel { display: none; }
.health-method-panel.is-active { display: block; }
.health-method-panel h3 { margin: 0 0 .5rem; font-size: .95rem; color: #0f172a; }
.health-method-panel p { margin: 0 0 .75rem; font-size: .88rem; color: #64748b; line-height: 1.65; }
.health-method-steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: #475569;
    font-size: .86rem;
    line-height: 1.75;
}
.health-method-actions { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.health-method-actions .health-method-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}
.health-method-step-inner {
    display: grid;
    grid-template-columns: 1.35em 1fr;
    column-gap: .2rem;
    align-items: center;
    width: 9.5em;
}
.health-method-step-no {
    text-align: center;
}
.health-admin-app .health-method-actions .btn.health-method-download-btn {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.health-admin-app .health-method-actions .btn.health-method-download-btn:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    filter: none;
}
.health-admin-app .health-method-actions .btn.health-method-download-btn:active {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
    filter: none;
}
.health-admin-app .health-method-actions .btn.health-method-download-btn:focus,
.health-admin-app .health-method-actions .btn.health-method-download-btn:focus-visible {
    background: #0d9488;
    border-color: #0f766e;
    color: #fff;
    filter: none;
    outline: 2px solid rgba(13, 148, 136, 0.35);
    outline-offset: 1px;
}
.health-admin-app .health-method-actions .btn.health-method-download-btn:disabled {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    opacity: 0.88;
}
.health-admin-app .health-method-actions .btn.health-method-upload-btn {
    background: #255fa8;
    border-color: #255fa8;
    color: #fff;
}
.health-admin-app .health-method-actions .btn.health-method-upload-btn:hover {
    background: #1e4d8c;
    border-color: #1e4d8c;
    color: #fff;
    filter: none;
}
.health-admin-app .health-method-actions .btn.health-method-upload-btn:active,
.health-admin-app .health-method-actions .btn.health-method-upload-btn:focus-within {
    background: #163d6e;
    border-color: #163d6e;
    color: #fff;
    filter: none;
}
.health-admin-app .health-method-actions .btn.health-method-upload-btn:focus-visible {
    outline: 2px solid rgba(30, 77, 140, 0.35);
    outline-offset: 1px;
}
.health-admin-app .btn.health-method-ocr-upload-btn {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.health-admin-app .btn.health-method-ocr-upload-btn:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    filter: none;
}
.health-admin-app .btn.health-method-ocr-upload-btn:active,
.health-admin-app .btn.health-method-ocr-upload-btn:focus-within {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
    filter: none;
}
.health-admin-app .btn.health-method-ocr-upload-btn:focus-visible {
    background: #0d9488;
    border-color: #0f766e;
    color: #fff;
    filter: none;
    outline: 2px solid rgba(13, 148, 136, 0.35);
    outline-offset: 1px;
}
.health-method-ocr-upload-btn.is-ocr-loading {
    opacity: 0.78;
    pointer-events: none;
    cursor: wait;
}
.health-ocr-status {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    color: #0f766e;
    line-height: 1.55;
}

.health-method-smart-fix-btn.is-loading {
    opacity: 0.78;
    pointer-events: none;
    cursor: wait;
}
.health-smart-fix-progress {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}
.health-smart-fix-status {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.5;
}
.health-smart-fix-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #fde68a;
    overflow: hidden;
}
.health-smart-fix-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    transition: width 0.18s ease;
}
.health-smart-fix-progress-bar.is-error {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}
.health-smart-fix-progress-percent {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    text-align: right;
}
.health-smart-fix-steps-label {
    margin: 0.65rem 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78716c;
}
.health-smart-fix-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.health-smart-fix-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #a8a29e;
    line-height: 1.4;
}
.health-smart-fix-step-no {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid #d6d3d1;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
    color: #a8a29e;
}
.health-smart-fix-step.is-active {
    color: #92400e;
    font-weight: 600;
}
.health-smart-fix-step.is-active .health-smart-fix-step-no {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #b45309;
}
.health-smart-fix-step.is-done {
    color: #57534e;
}
.health-smart-fix-step.is-done .health-smart-fix-step-no {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #fff;
}

.health-score-import-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.48);
}
.health-score-import-overlay[hidden] { display: none !important; }
.health-score-import-panel {
    width: min(380px, 100%);
    padding: 1.85rem 1.65rem 1.45rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    text-align: center;
    animation: health-score-import-in 0.22s ease-out;
}
@keyframes health-score-import-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.health-score-import-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    color: #0d9488;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.health-score-import-icon svg {
    width: 2rem;
    height: 2rem;
}
.health-score-import-heading {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.health-score-import-msg {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    white-space: pre-line;
}
.health-score-import-overlay.is-error .health-score-import-icon {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}
.health-score-import-overlay.is-error .health-score-import-ok {
    background: #64748b;
    border-color: #64748b;
}
.health-score-import-overlay.is-error .health-score-import-ok:hover {
    background: #475569;
    border-color: #475569;
}
.health-score-import-ok {
    width: 100%;
    padding: 0.58rem 1rem;
    background: #0d9488;
    border: 1px solid #0d9488;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: none;
}
.health-score-import-ok:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    filter: none;
}
.health-score-import-ok:active {
    background: #115e59;
    border-color: #115e59;
}

.health-delete-overlay .health-delete-icon {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}
.health-delete-panel .health-score-import-msg strong {
    color: #0f172a;
}
.health-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}
.health-delete-cancel {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    padding: .58rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}
.health-delete-cancel:hover {
    background: #f8fafc;
}
.health-delete-confirm {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: #fff;
    font-weight: 600;
    padding: .58rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}
.health-delete-confirm:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.health-delete-confirm:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.btn-block { display: block; width: 100%; text-align: center; }

.health-field-label { display: block; margin-bottom: .65rem; font-size: .85rem; color: #475569; }
.health-field-input {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .45rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .88rem;
}
.health-ocr-text { min-height: 88px; resize: vertical; font-family: inherit; }

.health-score-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.health-score-table { margin: 0; min-width: 960px; table-layout: auto; }
/* 覆盖 app.css .data-table 的左对齐 */
.health-score-table.data-table th,
.health-score-table.data-table td {
    text-align: center;
}
.health-score-table th,
.health-score-table td {
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.35;
    text-align: center;
}
.health-score-table thead th.health-score-sticky-col,
.health-score-table tbody td.health-score-sticky-col {
    position: sticky;
    z-index: 1;
    background: #fff;
    box-shadow: 2px 0 4px rgba(15, 23, 42, .04);
}
.health-score-table thead th.health-score-sticky-col:nth-child(1),
.health-score-table tbody td.health-score-sticky-col:nth-child(1) { left: 0; min-width: 86px; }
.health-score-table thead th.health-score-sticky-col:nth-child(2),
.health-score-table tbody td.health-score-sticky-col:nth-child(2) { left: 86px; min-width: 72px; }
.health-score-table thead th.health-score-sticky-col:nth-child(3),
.health-score-table tbody td.health-score-sticky-col:nth-child(3) { left: 158px; min-width: 44px; }
.health-score-table thead th.health-score-sticky-col {
    z-index: 3;
    background: #334155;
    box-shadow: 2px 2px 4px rgba(15, 23, 42, .08);
}
.health-score-table tbody tr:nth-child(even) td.health-score-sticky-col { background: #f8fafc; }
.health-score-table tbody tr.is-ocr-target td.health-score-sticky-col { background: #ecfdf5 !important; }
.health-score-class { font-size: .88rem; color: #475569; }
.health-score-table thead th {
    background: #334155;
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    padding: .55rem .65rem;
}
.health-score-table tbody td { padding: .45rem .65rem; }
.health-score-table tbody tr:nth-child(even) { background: #f8fafc; }
.health-score-table tbody tr.is-ocr-target { outline: 2px solid var(--health-primary); outline-offset: -2px; background: #ecfdf5 !important; }
.health-score-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.health-score-cell input {
    width: 76px;
    min-width: 76px;
    padding: .3rem .35rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: .85rem;
    text-align: center;
}
.health-score-cell.is-abnormal input { border: 2px solid #dc2626; background: #fef2f2; }
.health-score-cell.is-missing input {
    border: 2px solid #f59e0b;
    background: #fffbeb;
}
.health-score-cell.is-missing input::placeholder { color: #d97706; opacity: .75; }
.health-score-cell.is-missing input:focus {
    border-color: #d97706;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.health-score-na { color: #94a3b8; }
.health-score-level {
    text-align: center;
}
.health-score-level .health-level {
    display: inline-block;
}
.health-score-total { font-weight: 600; white-space: nowrap; }
.health-score-bonus { font-weight: 400; color: #0f172a; white-space: nowrap; }
.health-score-exempt { white-space: nowrap; }
.health-exempt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    cursor: pointer;
    font-size: .88rem;
    color: #475569;
    user-select: none;
}
.health-exempt-check input { width: 1rem; height: 1rem; cursor: pointer; accent-color: var(--health-primary); }
.health-score-row.is-exempt { background: #f1f5f9 !important; }
.health-score-row.is-exempt td.health-score-sticky-col { background: #f1f5f9 !important; }
.health-score-row.is-exempt .score-input { background: #e2e8f0; color: #94a3b8; }
.health-score-row.is-saving { opacity: .7; }
.health-level--exempt { background: #e2e8f0; color: #64748b; }

.health-grade-row .health-class-card {
    flex: 0 0 132px;
    max-width: 148px;
    min-height: 64px;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .7rem .55rem .55rem;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
.health-class-card--with-status {
    text-decoration: none;
}
.health-class-card-label {
    font-size: .92rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
}
.health-class-status {
    display: inline-block;
    font-size: .72rem;
    line-height: 1.2;
    padding: .12rem .45rem;
    border-radius: 999px;
    font-weight: 500;
}
.health-class-status--done {
    background: #ecfdf5;
    color: #059669;
}
.health-class-status--partial {
    background: #fef3c7;
    color: #b45309;
}
.health-class-status--none {
    background: #f1f5f9;
    color: #64748b;
}
.health-grade-row .health-class-card:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, .15);
    border-color: var(--health-primary);
    transform: translateY(-1px);
}
.health-grade-row .health-class-card:hover .health-class-card-label {
    color: var(--health-primary);
}

/* 评分成绩查看 — 国标评分表样式 */
.health-score-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.health-score-sheet {
    padding: 0;
    overflow: hidden;
}
.health-ss-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .85rem 1rem .65rem;
    text-align: center;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    border-bottom: 2px solid #86efac;
}
.health-ss-banner-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: .04em;
    line-height: 1.3;
}
.health-ss-banner-sub {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}
.health-ss-banner-class {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}
.health-score-sheet-head {
    padding: .65rem .85rem .35rem;
    background: #fff;
    border-bottom: 1px solid #dbeafe;
}
.health-ss-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.health-ss-meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.health-ss-meta-rates {
    display: flex;
    gap: .5rem;
}
.health-ss-meta-rates--tier {
    justify-content: flex-start;
}
.health-ss-meta-rates--summary {
    margin-left: auto;
}
.health-score-sheet-meta {
    width: 100%;
    border-collapse: collapse;
}
.health-score-sheet-meta td {
    vertical-align: middle;
    border: none;
    padding: .15rem .35rem;
}
.health-ss-count-table {
    border-collapse: collapse;
    font-size: .72rem;
}
.health-ss-count-table th,
.health-ss-count-table td {
    border: 1px solid #94a3b8;
    padding: .2rem .45rem;
    text-align: center;
    min-width: 2.2rem;
}
.health-ss-count-table th {
    background: #e2e8f0;
    font-weight: 600;
    color: #000;
}
.health-ss-meta-rate {
    width: 88px;
    text-align: center;
    border: 1px solid #94a3b8;
    padding: .35rem .5rem;
    border-radius: 4px;
}
.health-ss-meta-rate span {
    display: block;
    font-size: .72rem;
    color: #000;
    font-weight: 700;
}
.health-ss-meta-rate strong {
    display: block;
    margin-top: .15rem;
    font-size: .95rem;
    color: #000;
    font-weight: 700;
}
.health-ss-meta-rate--good {
    background: #fef9c3;
}
.health-ss-meta-rate--pass {
    background: #dcfce7;
}
.health-ss-meta-rate--excellent {
    background: #dcfce7;
}
.health-ss-meta-rate--good-tier {
    background: #dbeafe;
}
.health-ss-meta-rate--pass-tier {
    background: #ffedd5;
}
.health-ss-total-level {
    font-weight: 700;
    color: #000;
}
.health-ss-total-level--excellent {
    background: #dcfce7 !important;
    color: #15803d;
}
.health-ss-total-level--good {
    background: #dbeafe !important;
    color: #1d4ed8;
}
.health-ss-total-level--pass {
    background: #ffedd5 !important;
    color: #c2410c;
}
.health-ss-total-level--fail {
    background: #fee2e2 !important;
    color: #b91c1c;
}
.health-ss-total-level--exempt {
    background: #e2e8f0 !important;
    color: #64748b;
}
.health-score-sheet-scroll {
    overflow-x: auto;
    padding: 0 .35rem .65rem;
}
.health-score-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem;
    min-width: 960px;
}
.health-score-sheet-table th,
.health-score-sheet-table td {
    border: 1px solid #94a3b8;
    padding: .28rem .35rem;
    text-align: center;
    white-space: nowrap;
}
.health-ss-col-base {
    background: #f8fafc !important;
}
.health-score-sheet-table thead th {
    color: #000;
    font-weight: 700;
}
.health-ss-row-weight th {
    font-weight: 700;
}
.health-ss-row-item th {
    font-weight: 700;
    line-height: 1.25;
}
.health-ss-row-sub th {
    font-weight: 700;
}
/* 各体测项目分色（表头略深、数据行略浅） */
.health-ss-item--bmi { background: #dbeafe !important; }
.health-ss-item--vital_capacity { background: #fef3c7 !important; }
.health-ss-item--run_50m { background: #fce7f3 !important; }
.health-ss-item--sit_reach { background: #d1fae5 !important; }
.health-ss-item--rope_skip_1min { background: #ede9fe !important; }
.health-ss-item--sit_up_1min { background: #ffedd5 !important; }
.health-ss-item--run_50m_x8 { background: #cffafe !important; }
.health-ss-item--standing_long_jump { background: #fae8ff !important; }
.health-ss-item--pull_up { background: #ecfccb !important; }
.health-ss-item--run_1000m { background: #fee2e2 !important; }
.health-ss-item--run_800m { background: #f3e8ff !important; }
.health-score-sheet-table tbody .health-ss-item--bmi { background: #eff6ff !important; }
.health-score-sheet-table tbody .health-ss-item--vital_capacity { background: #fffbeb !important; }
.health-score-sheet-table tbody .health-ss-item--run_50m { background: #fdf2f8 !important; }
.health-score-sheet-table tbody .health-ss-item--sit_reach { background: #ecfdf5 !important; }
.health-score-sheet-table tbody .health-ss-item--rope_skip_1min { background: #f5f3ff !important; }
.health-score-sheet-table tbody .health-ss-item--sit_up_1min { background: #fff7ed !important; }
.health-score-sheet-table tbody .health-ss-item--run_50m_x8 { background: #ecfeff !important; }
.health-score-sheet-table tbody .health-ss-item--standing_long_jump { background: #fdf4ff !important; }
.health-score-sheet-table tbody .health-ss-item--pull_up { background: #f7fee7 !important; }
.health-score-sheet-table tbody .health-ss-item--run_1000m { background: #fef2f2 !important; }
.health-score-sheet-table tbody .health-ss-item--run_800m { background: #faf5ff !important; }
.health-score-sheet-table tbody tr.health-ss-row-exempt td {
    background: #e2e8f0 !important;
    color: #64748b;
}
.health-ss-unit {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: #000;
}
.health-ss-col-green {
    background: #dcfce7 !important;
    font-weight: 700;
    color: #000;
}
.health-score-sheet-table th.health-ss-col-tail-w,
.health-score-sheet-table td.health-ss-col-tail-w {
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
    box-sizing: border-box;
}
.health-ss-col-bonus {
    background: #fce7f3 !important;
    font-weight: 700;
    white-space: normal;
    word-break: keep-all;
    overflow: visible;
    vertical-align: middle;
}
.health-score-sheet-table th.health-ss-col-bonus {
    overflow: visible;
    padding: .28rem .15rem;
    line-height: 1.3;
}
.health-ss-bonus-th-label {
    display: inline-block;
    line-height: 1.3;
    max-width: 100%;
}
.health-score-sheet-table .health-ss-level-cell {
    font-weight: 700;
    color: #0f172a;
}
.health-ss-empty {
    padding: 1.25rem !important;
    color: #94a3b8;
    text-align: center;
}

/* 评分标准页 */
.health-standards-section {
    padding: 1rem 1.1rem;
    margin-bottom: .85rem;
}
.health-standards-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f766e;
}
.health-standards-unit,
.health-standards-weight {
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    margin-left: .35rem;
}
.health-standards-scroll { overflow-x: auto; }
.health-standards-table { margin: 0; font-size: .85rem; }
.health-standards-table th,
.health-standards-table td {
    padding: .45rem .65rem;
    text-align: center;
    white-space: nowrap;
}
.health-standards-table thead th {
    background: #f1f5f9;
    font-weight: 600;
}
.health-standards-total td {
    font-weight: 700;
    background: #ecfdf5;
}
.health-standards-empty {
    margin: 0;
    color: #94a3b8;
    font-size: .88rem;
}
.health-standards-table--wide { min-width: 640px; }
.health-standards-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    font-weight: 600;
}
.health-standards-table thead .health-standards-sticky {
    background: #f1f5f9;
}
.health-standards-bonus-label {
    width: 100%;
    margin: 6px 0 .15rem;
    padding: 0 .15rem;
    font-family: "SimSun", "宋体", "Microsoft YaHei", serif;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-align: left;
}
.health-standards-row--bonus .health-standards-cell--bonus {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    padding: 4px 4px 6px;
}
.health-standards-bonus-hit {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}
.health-standards-bonus-hit:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
.health-standards-bonus-sheet {
    width: 100%;
    max-width: 100%;
    font-family: "SimSun", "宋体", "Microsoft YaHei", serif;
    font-size: 12px;
    line-height: 1.25;
    color: #000;
}
.health-standards-gallery .health-standards-bonus-caption,
.health-standards-gallery .health-standards-bonus-footnote {
    color: #000;
}
.health-standards-bonus-caption {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #000;
}
.health-standards-bonus-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    color: #000;
    background: #fff;
}
.health-standards-bonus-table th,
.health-standards-bonus-table td {
    border: 1px solid #000;
    padding: 1px 2px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 400;
    color: #000;
}
.health-standards-bonus-table thead th,
.health-standards-bonus-table tbody th {
    font-weight: 700;
    color: #000;
    background: #fff;
}
.health-standards-bonus-footnote {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #000;
    text-align: left;
}
.health-standards-doc {
    padding: 1rem 1.1rem 1.25rem;
}
.health-standards-gallery.card,
section.health-standards-gallery {
    padding: .25rem .3rem .35rem;
    margin-bottom: .5rem;
}
.health-standards-gallery {
    overflow: visible;
    width: 100%;
    max-width: none;
}
.health-standards-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}
.health-standards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}
.health-standards-row--lead .health-standards-cell {
    height: auto;
    max-height: 520px;
}
.health-standards-cell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    max-height: 480px;
    min-height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}
.health-standards-cell--weights .health-standards-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center top;
    transform: none;
}
.health-standards-hit {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}
.health-standards-hit:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
.health-standards-cell--spacer {
    visibility: hidden;
    padding: 0;
}
.health-standards-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center top;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}
body.health-standards-lightbox-open {
    overflow: hidden;
}
.health-standards-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.health-standards-lightbox[hidden] {
    display: none !important;
}
.health-standards-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}
.health-standards-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 80vw;
    max-height: 80vh;
    background: #fff;
    border-radius: 10px;
    --health-lightbox-pad: 1.1rem;
    padding: var(--health-lightbox-pad);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    overflow: hidden;
    margin: 0 auto;
}
.health-standards-lightbox__close {
    position: absolute;
    top: .35rem;
    right: .45rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: rgba(15, 23, 42, .06);
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.health-standards-lightbox__close:hover {
    background: rgba(15, 23, 42, .12);
}
.health-standards-lightbox__panel.is-table {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 80vw;
    max-height: 80vh;
}
.health-standards-lightbox__table {
    width: auto;
    max-width: calc(80vw - 2 * var(--health-lightbox-pad, 1.1rem));
    max-height: calc(80vh - 2 * var(--health-lightbox-pad, 1.1rem));
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.health-standards-lightbox__table-inner {
    overflow: hidden;
    flex-shrink: 0;
}
.health-standards-lightbox__table .health-standards-bonus-sheet--zoom {
    flex-shrink: 0;
    color: #000;
}
.health-standards-lightbox__table .health-standards-bonus-sheet--zoom .health-standards-bonus-caption,
.health-standards-lightbox__table .health-standards-bonus-sheet--zoom .health-standards-bonus-footnote,
.health-standards-lightbox__table .health-standards-bonus-sheet--zoom .health-standards-bonus-table th,
.health-standards-lightbox__table .health-standards-bonus-sheet--zoom .health-standards-bonus-table td {
    color: #000;
}
.health-standards-lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(80vw - 2 * var(--health-lightbox-pad, 1.1rem));
    max-height: calc(80vh - 2 * var(--health-lightbox-pad, 1.1rem));
    margin: 0 auto;
    object-fit: contain;
}
@media (max-width: 900px) {
    .health-standards-grid {
        max-width: none;
    }
    .health-standards-row {
        grid-template-columns: 1fr;
    }
    .health-standards-row--lead .health-standards-cell,
    .health-standards-cell,
    .health-standards-row--bonus .health-standards-cell--bonus {
        height: auto;
        max-height: none;
    }
    .health-standards-cell--weights .health-standards-image {
        transform: none;
    }
    .health-standards-cell--spacer {
        display: none;
    }
    .health-standards-image {
        height: auto;
        max-height: 560px;
    }
}

@media print {
    .gb-admin-sidebar, .gb-admin-topbar, .section-title, .btn, form { display: none !important; }
    .health-reg-card { box-shadow: none; border: none; }
}

/* 学生信息管理 / 学校信息：减少标题上方留白 */
.gb-admin-inner.gb-admin-inner--students.section-gap,
.health-main.health-main--students.section-gap,
.gb-admin-inner.gb-admin-inner--school-info.section-gap,
.health-main.health-main--school-info.section-gap {
    padding-top: 8px;
    padding-bottom: 32px;
}

.health-sidebar .gb-sb-brand-title {
    font-size: 16.5px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.health-main--school-info .health-students-head {
    margin-top: 0;
}

.health-main--school-info .health-students-head h1 {
    font-size: 1.35rem;
    font-weight: 600;
}

.health-main--school-info .health-students-head p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.health-school-info-card {
    max-width: 760px;
}

.health-school-info-form.meet-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.health-school-info-form .health-school-info-submit {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    min-width: 88px;
    padding: 8px 28px;
    margin-top: 4px;
}

.health-school-info-form input,
.health-school-info-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font: inherit;
    box-sizing: border-box;
    min-height: 42px;
}

.health-school-info-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.health-school-info-form input:focus,
.health-school-info-form select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

@media (max-width: 720px) {
    .health-school-info-form.meet-form-grid {
        grid-template-columns: 1fr;
    }
}

.health-main--students .health-students-head {
    margin-top: 0;
}

.health-main--students .health-students-head p {
    margin-bottom: 1rem;
}

.health-main--students .health-btn-row {
    margin-bottom: 0;
}

.health-main--students .filter-form.health-students-filter {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.health-main--students .health-students-filter input[type="text"],
.health-main--students .health-students-filter select {
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.health-main--students .health-students-filter select {
    min-width: 140px;
    padding-right: 1.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-color: #fff;
}

.health-main--students .health-students-filter input[type="text"]:focus,
.health-main--students .health-students-filter input[type="text"]:focus-visible,
.health-main--students .health-students-filter select:focus,
.health-main--students .health-students-filter select:focus-visible {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
    outline: none;
}

/* 国网学生表：滚动条紧贴表格区域，避免使用浏览器最右侧整页滚动条 */
.health-main--students.gb-admin-inner.section-gap {
    padding-bottom: 16px;
}

.health-students-table-wrap {
    position: relative;
    max-width: 100%;
    max-height: min(72vh, 780px);
    margin-bottom: 1rem;
    border: 1px solid #a6a6a6;
    background: #fff;
    border-radius: 2px;
}

.health-national-student-scroll {
    display: block;
    width: 100%;
    max-height: min(72vh, 780px);
    overflow: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.health-national-student-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.health-national-student-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

.health-national-student-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.health-students-pager {
    padding: 0.75rem 1rem;
}

.health-students-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.health-students-pager .pagination li a,
.health-students-pager .pagination li span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.88rem;
}

.health-students-pager .pagination li.active span {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

.health-national-student-table {
    border-collapse: collapse;
    width: max-content;
    table-layout: auto;
    font-family: "SimSun", "宋体", "Microsoft YaHei", serif;
    font-size: 12px;
    line-height: 1.35;
    color: #000;
    background: #fff;
}

.health-national-student-table th,
.health-national-student-table td {
    border: 1px solid #bfbfbf;
    padding: 4px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.health-national-student-table thead th {
    background: #d9e1f2;
    color: #000;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.health-national-student-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.health-national-student-table tbody tr:hover td {
    background: #eef6ff;
}

.health-national-student-empty {
    padding: 2rem;
    color: #64748b;
    text-align: center;
}

.health-national-student-table th,
.health-national-student-table td {
    min-width: 72px;
}

.health-national-student-table .health-col-seq {
    min-width: 44px;
    max-width: 52px;
    padding: 4px 6px;
}

.health-national-student-table .health-col-class-code {
    min-width: 64px;
}

.health-national-student-table .health-col-class-name {
    min-width: 56px;
}

.health-national-student-table .health-col-enrollment {
    min-width: 180px;
}

.health-national-student-table .health-col-nation {
    min-width: 72px;
    padding: 4px 8px;
}

.health-national-student-table .health-col-name {
    min-width: 72px;
}

.health-national-student-table .health-col-gender,
.health-national-student-table .health-col-birth {
    min-width: 56px;
    max-width: 88px;
}

.health-national-student-table .health-col-address {
    min-width: 120px;
}

/* 历届学生记录 */
.health-main--history.section-gap {
    padding-top: 12px;
}
.health-history-head h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}
.health-history-actions {
    margin-top: 0.65rem;
}
.health-history-actions .btn.btn-primary {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.health-history-actions .btn.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    filter: none;
}
.health-history-actions .btn.btn-primary:active {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
}
.health-history-actions .btn.btn-primary:focus,
.health-history-actions .btn.btn-primary:focus-visible {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.28);
}
.health-history-actions .btn.btn-secondary:hover {
    background: #cbd5e1;
    border-color: #94a3b8;
}
.health-history-actions .btn.btn-secondary:focus,
.health-history-actions .btn.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}
.health-history-batch-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    overflow: visible;
    position: relative;
    z-index: 20;
}
.health-history-batch-picker {
    position: relative;
    width: min(380px, 100%);
    max-width: 380px;
    flex: 0 0 auto;
}
.health-history-batch-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.1rem;
    padding: 0.28rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 0.88rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.health-history-batch-toggle:hover {
    border-color: #94a3b8;
}
.health-history-batch-toggle:focus,
.health-history-batch-toggle:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #cbd5e1;
}
.health-history-batch-picker.is-open .health-history-batch-toggle {
    border-color: #cbd5e1;
    box-shadow: none;
}
.health-history-batch-current {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.health-history-batch-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}
.health-history-batch-picker.is-open .health-history-batch-chevron {
    transform: rotate(-135deg) translateY(2px);
}
.health-history-batch-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.health-history-batch-menu[hidden] {
    display: none !important;
}
.health-history-batch-option {
    display: block;
    width: 100%;
    padding: 0.45rem 0.85rem;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.health-history-batch-option:hover,
.health-history-batch-option.is-active {
    background: #eff6ff;
}
.health-history-archive-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.health-history-batch-form .btn {
    min-height: 2.1rem;
    padding: 0.28rem 0.85rem;
    font-size: 0.88rem;
    flex: 0 0 auto;
}
.health-history-meta {
    padding: 0.95rem 1.15rem;
    margin-bottom: 0.85rem;
    overflow: visible;
}
.health-history-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.health-history-meta-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem 2rem;
    font-size: 0.9rem;
    color: #0f172a;
    overflow-x: auto;
    scrollbar-width: thin;
    flex: 1;
    min-width: 0;
}
.health-history-meta-item {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.health-history-meta-label {
    color: #0f172a;
    font-weight: 600;
}
.health-history-meta-label::after {
    content: '：';
}
.health-history-meta-value {
    color: #0f172a;
}
.health-history-delete-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
.health-history-delete-btn:focus,
.health-history-delete-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
.health-archive-locked-hint {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}
.health-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.health-history-tab {
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
}
.health-history-tab.is-active {
    background: var(--health-primary, #2563eb);
    color: #fff;
}
.health-history-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.health-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}
.health-stat-card-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}
.health-stat-card-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.health-history-empty {
    padding: 1.25rem;
}
.health-history-empty-hint {
    color: #64748b;
    font-size: 0.88rem;
}
.health-history-empty-inline {
    color: #64748b;
    margin: 0.75rem 0;
}
.health-history-pagination-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0;
}
.health-history-detail-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}
.health-history-detail-filter select {
    min-height: 2.5rem;
    min-width: 8rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.health-history-detail-filter .health-history-keyword-input {
    min-width: 14rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
}
.health-history-detail-filter .btn {
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
}
.health-history-compare-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}
.health-history-compare-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}
.health-history-compare-form select {
    min-width: 18rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.health-history-compare-form .btn {
    min-height: 2.5rem;
    padding: 0.45rem 1.15rem;
    font-size: 0.95rem;
}
.health-history-compare-charts,
.health-history-trajectory-chart {
    margin-bottom: 1.25rem;
}
.health-history-compare-charts h2,
.health-history-trajectory-chart h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f766e;
}
.health-history-trajectory-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}
.health-history-trajectory-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}
.health-history-trajectory-form select {
    min-width: 18rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.health-history-trajectory-form .health-history-trajectory-input {
    min-width: 16rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.health-history-trajectory-form .health-history-trajectory-input:focus,
.health-history-trajectory-form .health-history-trajectory-input:focus-visible,
.health-main--history .health-history-trajectory-form .health-history-trajectory-input:focus,
.health-main--history .health-history-trajectory-form .health-history-trajectory-input:focus-visible {
    border-color: #cbd5e1;
    outline: none;
    box-shadow: none;
}
.health-history-trajectory-form .btn {
    min-height: 2.5rem;
    padding: 0.45rem 1.15rem;
    font-size: 0.95rem;
}
.health-diff-up {
    color: #059669;
    font-weight: 600;
}
.health-diff-down {
    color: #dc2626;
    font-weight: 600;
}
.health-history-error {
    color: #dc2626;
}
.health-archive-note-edit {
    font-size: 0.82rem;
    padding: 0;
    margin-left: 0.35rem;
}

