.assessment-open { overflow: hidden; }
.evidence-current-value { grid-column: 1 / -1; color: #173b4b; font-size: 14px; font-weight: 750; padding: 4px 0; }
.assessment-toolbar button, .assessment-rules button, .document-toolbar button { border: 1px solid #b6d5d7; border-radius: 7px; background: white; color: #16535d; padding: 10px 14px; font: 600 12px/1.4 "Microsoft YaHei", sans-serif; cursor: pointer; }
.assessment-toolbar .assessment-primary { color: white; background: #087e88; border-color: #087e88; }
#generateAssessmentReport:disabled { background: #dce2e6; border-color: #d0d8de; color: #84929c; box-shadow: none; opacity: 1; cursor: not-allowed; }
#generateAssessmentReport[data-busy="true"]:disabled { cursor: wait; }
.assessment-launch-status { display: block; font-size: 11px; color: #537380; margin-top: 8px; }
.assessment-launch-status:empty { display: none; }
.assessment-dialog { width: min(1080px, calc(100vw - 32px)); height: min(94vh, 1200px); max-height: 94vh; padding: 0; border: 0; border-radius: 16px; color: #203e4d; background: #eaf0f2; box-shadow: 0 24px 100px #102d4750; }
.assessment-dialog::backdrop { background: #0b2339a8; backdrop-filter: blur(3px); }
.assessment-dialog[open] { display: flex; flex-direction: column; }
.assessment-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 20px; background: white; border-bottom: 1px solid #d7e3e8; }
.assessment-toolbar > div { margin-right: auto; }
.assessment-toolbar strong { font-size: 16px; }
.assessment-toolbar small { display: block; font-size: 11px; color: #6b7f87; margin-top: 4px; }
.assessment-scroll { overflow: auto; padding: 20px; overscroll-behavior: contain; }
.assessment-rules { max-width: 940px; margin: 0 auto 16px; padding: 14px 18px; background: white; border: 1px solid #ccdce0; border-radius: 8px; }
.assessment-rules summary { font-size: 13px; cursor: pointer; font-weight: 700; }
.assessment-rules p { font-size: 12px; color: #5e7380; line-height: 1.7; }
.assessment-rule-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.assessment-rule-fields label { display: grid; gap: 5px; color: #244a5b; font-size: 12px; }
.assessment-rule-fields small { color: #69828e; font-size: 10px; }
.assessment-rule-fields input { min-width: 0; width: 100%; box-sizing: border-box; border: 1px solid #b8ced7; border-radius: 5px; padding: 8px; color: #153f51; background: white; }
.assessment-rule-status { font-size: 12px; color: #14756b; margin-left: 12px; }
.medical-document { margin: 0; background: #eaf0f2; color: #203e4d; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.medical-paper, .medical-paper * { box-sizing: border-box; }
.medical-paper { width: 100%; max-width: 940px; padding: 42px; margin: 0 auto; color: #213e4d; background: white; font: 12px/1.65 "Microsoft YaHei", "PingFang SC", sans-serif; }
.medical-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #137883; padding-bottom: 22px; }
.medical-header p { margin: 0 0 6px; letter-spacing: 2px; color: #147a83; font-size: 12px; }
.medical-header h1 { margin: 0; color: #173a4f; font-size: 28px; letter-spacing: 3px; line-height: 1.4; }
.medical-header span { display: block; margin-top: 6px; color: #748b96; font-size: 10px; letter-spacing: 2px; }
.medical-mark { border: 2px solid #167c85; width: 60px; height: 60px; display: grid; place-content: center; text-align: center; line-height: 1.4; font-size: 16px; font-weight: 700; color: #167c85; border-radius: 50%; }
.medical-meta { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 18px; padding: 22px 0; }
.medical-meta span, .medical-meta b, .medical-meta small { display: block; }
.medical-meta span { color: #74858d; font-size: 10px; margin-bottom: 4px; }
.medical-meta b { font-size: 12px; overflow-wrap: anywhere; }
.medical-meta small { font-size: 10px; color: #687b86; margin-top: 4px; }
.medical-summary { border: 1px solid #bcded9; border-left: 4px solid #278b78; background: #f0f9f5; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.medical-summary.fail { border-color: #ecd1c8; border-left-color: #c85643; background: #fff8f5; }
.medical-summary.pending { border-color: #ebd9af; border-left-color: #b98a25; background: #fffcf3; }
.medical-summary span { font-size: 10px; color: #637b85; }
.medical-summary h2 { margin: 3px 0 5px; font-size: 20px; color: #203e4d; }
.medical-summary p { margin: 0; font-size: 10px; color: #647b85; }
.medical-counts { display: flex; gap: 24px; flex-shrink: 0; text-align: center; }
.medical-counts b { display: block; font-size: 26px; line-height: 1.3; font-weight: 600; }
.medical-counts > div:first-child b { color: #218470; }
.medical-counts > div:nth-child(2) b { color: #bb493b; }
.medical-counts > div:last-child b { color: #a67724; }
.medical-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.medical-section-title h2 { margin: 0; color: #174a59; font-size: 15px; }
.medical-section-title > span { font-size: 10px; color: #728995; }
.medical-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.medical-table th { background: #edf4f5; font-weight: 600; color: #45636e; }
.medical-table th, .medical-table td { text-align: left; white-space: normal; padding: 11px 9px; border-bottom: 1px solid #e2eaed; font-size: 11px; vertical-align: middle; overflow-wrap: anywhere; }
.medical-table th:first-child { width: 23%; }
.medical-table th:nth-child(2) { width: 22%; }
.medical-table th:nth-child(3) { width: 28%; }
.medical-table th:nth-child(4) { width: 12%; }
.medical-table th:nth-child(5) { width: 15%; }
.medical-table td:first-child small { display: inline; color: #8ca2aa; margin-right: 8px; font-size: 9px; }
.medical-table td small { display: block; font-size: 9px; color: #70868f; }
.medical-table tr.fail { background: #fff7f4; }
.medical-table tr.fail td:nth-child(2), .medical-abnormal { color: #bc4535; }
.medical-table tr.pending { background: #fffdf7; }
.medical-abnormal { margin-left: 4px; }
.medical-status { display: inline-block; border-radius: 4px; padding: 3px 6px; line-height: 1.3; font-size: 10px; white-space: nowrap; }
.medical-status.pass { color: #196d59; background: #e7f5ee; }
.medical-status.fail { color: #b74131; background: #ffe9e2; }
.medical-status.pending { color: #956b1e; background: #fff2d3; }
.medical-finding { border: 1px solid #e4eaee; border-left: 3px solid #c35e4e; border-radius: 5px; padding: 12px 14px; margin-bottom: 10px; break-inside: avoid; }
.medical-finding.pending { border-left-color: #be943b; }
.medical-finding h3 { margin: 0 0 8px; font-size: 12px; color: #254a5b; }
.medical-finding h3 span { margin-right: 8px; }
.medical-finding p { margin: 4px 0; font-size: 11px; color: #516b78; }
.medical-methods > p { font-size: 10px; color: #5d7581; }
.medical-methods dl { margin: 12px 0; }
.medical-methods dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e9eef0; break-inside: avoid; }
.medical-methods dt { font-size: 10px; font-weight: 700; }
.medical-methods dd { margin: 0; font-size: 10px; color: #5c737d; }
.medical-methods dd small { display: block; color: #7c8e97; margin-top: 3px; font-size: 9px; }
.medical-source-link { color: #087e88; text-decoration: underline; overflow-wrap: anywhere; }
.medical-clear { color: #227860; background: #f0f9f5; padding: 14px; }
footer.medical-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 0; margin-top: 24px; border-top: 1px solid #cedde2; min-height: 0; background: white; color: #78909b; font-size: 9px; }
.medical-footer small { display: block; width: 100%; font-size: 8px; overflow-wrap: anywhere; }
.document-toolbar { max-width: 940px; padding: 15px 0; margin: auto; text-align: right; }
.assessment-print-frame { position: fixed; left: -10000px; width: 900px; height: 900px; border: 0; }
@media (max-width: 600px) {
  .assessment-dialog { width: calc(100vw - 12px); max-width: none; height: 96vh; max-height: 96vh; }
  .assessment-toolbar { padding: 10px; }
  .assessment-toolbar > div { flex-basis: 100%; }
  .assessment-toolbar button { padding: 8px 10px; }
  .assessment-scroll { padding: 8px; }
  .assessment-rule-fields { grid-template-columns: 1fr 1fr; }
  .medical-paper { padding: 22px 14px; }
  .medical-header h1 { font-size: 22px; letter-spacing: 1px; }
  .medical-meta { grid-template-columns: 1fr; gap: 10px; }
  .medical-summary { align-items: flex-start; flex-direction: column; }
  .medical-counts { gap: 32px; }
  .medical-table-wrap { overflow-x: auto; }
  .medical-table { min-width: 650px; }
  .medical-methods dl > div { grid-template-columns: 1fr; gap: 4px; }
  .medical-section-title { align-items: flex-start; flex-direction: column; }
}
@media print {
  @page { size: A4 portrait; margin: 13mm 12mm; @bottom-center { content: "第 " counter(page) " 页"; color: #78909b; font: 9px "Microsoft YaHei", sans-serif; } }
  .medical-document { background: white; }
  .document-toolbar { display: none !important; }
  .medical-paper { padding: 0; max-width: none; font-size: 10px; }
  .medical-header h1 { font-size: 24px; }
  .medical-header { padding-bottom: 14px; }
  .medical-meta { padding: 10px 0; }
  .medical-summary { padding: 14px 18px; }
  .medical-section-title { break-after: avoid; margin: 20px 0 10px; }
  .medical-summary, .medical-header, .medical-meta, .medical-table tr { break-inside: avoid; }
  .medical-table thead { display: table-header-group; }
  .medical-table { min-width: 0; }
  .medical-table th, .medical-table td { padding: 6px 7px; font-size: 10px; }
  .medical-finding { padding: 8px 12px; margin-bottom: 8px; }
  .medical-finding p { margin: 2px 0; }
  .medical-finding h3 { margin-bottom: 4px; }
  .medical-methods dl > div { padding: 3px 0; }
  footer.medical-footer { margin-top: 12px; padding-top: 10px; break-inside: avoid; }
  .medical-table-wrap { overflow: visible; }
  footer.medical-footer { display: flex !important; }
  .medical-paper { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .medical-source-link::after { content: "（" attr(href) "）"; overflow-wrap: anywhere; }
}

.medical-evidence p { overflow-wrap:anywhere; white-space:pre-line; }

.investment-report-table th:nth-child(1) {width:22%;}.investment-report-table th:nth-child(2){width:24%;}.investment-report-table th:nth-child(3){width:32%;}.investment-report-table th:nth-child(4){width:22%;}

.market-reference-alert { color:#b42318; font-weight:700; border-left:3px solid #b42318; padding:10px 14px; background:#fff3f1; }
.market-reference-policy { color:#526878; font-size:11px; line-height:1.7; }
.market-reference-table { width:100%; table-layout:fixed; }
.market-reference-table th:nth-child(1) { width:15%; }
.market-reference-table th:nth-child(2) { width:20%; }
.market-reference-table th:nth-child(3) { width:25%; }
.market-reference-table th:nth-child(4) { width:40%; }
.market-reference-table td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.market-reference-table td p { margin:5px 0; }
.market-reference-abnormal, .market-reference-table tr.market-reference-abnormal td, .market-reference-table tr.market-reference-abnormal small { color:#b42318; }
@media print { .market-reference-abnormal, .market-reference-alert { print-color-adjust:exact; -webkit-print-color-adjust:exact; } }

.market-reference-table tr.market-reference-abnormal strong { color:#b42318; }

.report-object-info { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; margin:0; padding:2px 14px; background:#f4f8fa; border:1px solid #dfe9ee; border-radius:8px; }
.report-object-info > div { padding:12px 0; min-width:0; }
.report-object-info dt { color:#6b808c; font-size:10px; margin-bottom:5px; }
.report-object-info dd { margin:0; font-size:12px; color:#173a4f; font-weight:600; overflow-wrap:anywhere; }
.report-three-column th:nth-child(1) { width:24%; }
.report-three-column th:nth-child(2) { width:26%; }
.report-three-column th:nth-child(3) { width:50%; }
.report-exception { margin:0 0 10px; padding:12px 14px; border:1px solid #eed4cf; border-left:3px solid #b42318; border-radius:6px; break-inside:avoid; }
.report-exception h3 { margin:0 0 6px; font-size:12px; }
.report-exception p { margin:0; font-size:11px; line-height:1.8; overflow-wrap:anywhere; }
.report-exception small { display:block; margin-top:6px; font-size:10px; line-height:1.7; }
.report-exception.fail, .report-exception.fail h3, .report-exception.fail p, .report-exception.fail small, .report-anomaly-text { color:#b42318; }
.report-exception.pending { border-color:#e5ddc9; border-left-color:#9a721f; color:#7c651f; }
.report-exception-policy { font-size:10px; line-height:1.7; color:#6a7c88; }
@media(max-width:600px){ .report-object-info { grid-template-columns:1fr; } }
@media print { .report-object-info { grid-template-columns:1fr 1fr; break-inside:avoid; } .report-exception.fail, .report-anomaly-text { print-color-adjust:exact; -webkit-print-color-adjust:exact; } }

.medical-table.report-check-table th:nth-child(1) { width: 19%; }
.medical-table.report-check-table th:nth-child(2) { width: 14%; }
.medical-table.report-check-table th:nth-child(3) { width: 9%; }
.medical-table.report-check-table th:nth-child(4) { width: 10%; }
.medical-table.report-check-table th:nth-child(5) { width: 20%; }
.medical-table.report-check-table th:nth-child(6) { width: 28%; }
.report-check-table td { line-height: 1.6; }
.report-check-table tr.pass td:nth-child(4) { color: #23756a; }
.report-check-table tr.fail td:nth-child(4) { color: #bc4535; font-weight: 700; }
