/* 答卷复核工作台 */
.pr-root { max-width: 1580px; margin: 0 auto; padding: 18px 20px 36px; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pr-head h1 { margin: 0; font-size: 23px; color: var(--primary-dark); }
.pr-head p { margin: 6px 0 0; color: #64748b; font-size: 12px; }
.pr-head-actions { display: flex; gap: 8px; }
.pr-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.pr-side { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; position: sticky; top: 80px; }
.pr-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; border-bottom: 1px solid #eef2f7; }
.pr-side-head h2 { margin: 0; font-size: 14px; color: var(--primary-dark); }
.pr-filters { display: flex; gap: 5px; flex-wrap: wrap; padding: 9px 11px; border-bottom: 1px solid #f1f5f9; }
.pr-filter { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 4px 8px; font-size: 11px; color: #64748b; cursor: pointer; }
.pr-filter.active { background: #ecfeff; border-color: #67e8f9; color: #0e7490; }
.pr-sheet-list { max-height: calc(100vh - 235px); overflow: auto; padding: 7px; }
.pr-sheet { width: 100%; text-align: left; border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 5px; cursor: pointer; }
.pr-sheet:hover { background: #f8fafc; }
.pr-sheet.active { background: #ecfeff; border-color: #a5f3fc; }
.pr-sheet-top { display: flex; justify-content: space-between; gap: 7px; align-items: center; }
.pr-sheet-top b { font-size: 12px; color: #0f172a; word-break: break-all; }
.pr-sheet-meta { margin-top: 4px; font-size: 10.5px; color: #94a3b8; }
.pr-status { font-size: 10.5px; padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.pr-status.pending_review { background: #fff7ed; color: #c2410c; }
.pr-status.reviewed { background: #ecfdf5; color: #047857; }
.pr-status.incomplete { background: #fef2f2; color: #b91c1c; }
.pr-main { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.pr-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pr-detail-head h2 { margin: 0; font-size: 18px; color: #0f172a; }
.pr-detail-meta { margin-top: 5px; font-size: 11.5px; color: #64748b; }
.pr-detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-pages { display: flex; gap: 5px; align-items: center; margin: 12px 0 8px; flex-wrap: wrap; position: sticky; top: 0; z-index: 6; background: #f8fafc; padding: 8px 4px; border-bottom: 1px solid #e2e8f0; }
.pr-cont-label { font-size: 11.5px; color: #0e7490; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 999px; padding: 4px 9px; }
.pr-cont-page { padding: 10px 0 18px; }
.pr-cont-page + .pr-cont-page { border-top: 1px dashed #cbd5e1; margin-top: 6px; padding-top: 18px; }
.pr-cont-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pr-cont-head b { font-size: 13px; color: #0f172a; }
.pr-cont-head span { font-size: 10.5px; color: #94a3b8; word-break: break-all; }
.pr-spacer { flex: 1; }
.pr-page-tab { border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; padding: 5px 8px; font-size: 11px; cursor: pointer; color: #64748b; }
.pr-page-tab.active { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }
.pr-workspace { display: grid; grid-template-columns: minmax(320px, 680px) minmax(300px, 1fr); gap: 14px; align-items: start; }
.pr-image-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.pr-image-wrap { position: relative; width: 100%; background: #f1f5f9; }
.pr-image-wrap img { display: block; width: 100%; height: auto; }
.pr-image-wrap.original { background: #e2e8f0; }
/* 默认不渲染框；只有系统选中的选项才显示边框。
   未选中的 ROI 仍保留透明点击区域，点击即可切换答案。 */
.pr-roi { position: absolute; border: 1.5px solid transparent; background: transparent !important; cursor: pointer; box-sizing: border-box; z-index: 3; }
.pr-roi:not(.selected):hover { border-color: rgba(37, 99, 235, .55); }
.pr-roi.matrix { border-color: transparent; border-width: 1px; }
.pr-roi.matrix:not(.selected):hover { border-color: rgba(37, 99, 235, .55); }
.pr-roi.selected { border-color: #2563eb; border-width: 1.5px; background: transparent !important; }
.pr-roi.review.selected { border-color: #dc2626; border-width: 1.5px; background: transparent !important; }
.pr-roi.review { border-color: #dc2626 !important; border-width: 1.5px; background: rgba(220, 38, 38, .10) !important; }
.ps-badge.missing { background: #fef3c7; color: #92400e; }
/* 不画合成勾、不显示数字标签，也不填充底色，让真实笔迹完整透出。 */
.pr-roi span { display: none !important; }
.pr-image-note { padding: 6px 8px; font-size: 10.5px; color: #64748b; background: #fff; border-top: 1px solid #eef2f7; word-break: break-all; }
.pr-fields { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.pr-fields-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid #eef2f7; font-size: 12px; }
.pr-only { font-size: 11px; color: #64748b; }
.pr-field { border-bottom: 1px solid #eef2f7; padding: 8px 10px; }
.pr-field.active { background: #ecfeff; box-shadow: inset 3px 0 #0891b2; }
.pr-field.need-review { background: #fffaf5; }
.pr-row-conf { display: block; margin-top: 2px; font-size: 10px; color: #94a3b8; font-weight: 400; }
.pr-matrix tr.pr-row-low td { background: #fff7ed; }
.pr-matrix tr.pr-row-low .pr-row-conf { color: #c2410c; }
.pr-sheet-search { margin-bottom: 8px; }
.pr-sheet-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; font-size: 12px; color: #64748b; }
.pr-sheet-pager .ps-mini { background: #fff; }
.pr-low-sort { display: flex; align-items: center; gap: 5px; margin: 6px 10px; font-size: 11px; color: #64748b; cursor: pointer; }
.pr-sheet { content-visibility: auto; contain-intrinsic-size: 1px 56px; }
.pr-field-head { display: flex; justify-content: space-between; gap: 7px; align-items: flex-start; }
.pr-field-head b { font-size: 11px; color: #0e7490; margin-right: 4px; }
.pr-field-head span { font-size: 12px; color: #334155; }
.pr-field-tags { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.pr-method { font-size: 9.5px; color: #64748b; background: #f1f5f9; padding: 2px 4px; border-radius: 4px; }
.pr-conf { font-size: 10.5px; color: #0f172a; }
.pr-field-body { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.pr-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 5px; padding: 5px 6px; font-size: 12px; background: #fff; }
.pr-input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56,189,248,.12); }
.pr-save { flex: 0 0 auto; border-color: #7dd3fc; color: #0369a1; }
.pr-checks { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11px; color: #334155; }
.pr-checks label { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; padding: 3px 5px; }
.pr-warn { margin-top: 4px; font-size: 10px; color: #b45309; }
.pr-reverse { display: inline-block; font-size: 9.5px; color: #9a3412; background: #ffedd5; border: 1px solid #fed7aa; border-radius: 4px; padding: 1px 4px; }
.pr-score { margin-top: 5px; font-size: 10.5px; color: #9a3412; background: #fff7ed; border-radius: 5px; padding: 3px 6px; }
.pr-json { margin: 0; width: 100%; max-height: 150px; overflow: auto; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; padding: 5px; font-size: 10px; white-space: pre-wrap; }
.pr-matrix-wrap { width: 100%; overflow: auto; }
.pr-matrix { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.pr-matrix th, .pr-matrix td { border: 1px solid #e2e8f0; padding: 3px 5px; text-align: left; }
.pr-matrix th { background: #f8fafc; color: #475569; }
.pr-logs { margin-top: 12px; padding: 9px 10px; border-top: 1px solid #eef2f7; font-size: 10.5px; color: #64748b; }
.pr-logs b { display: block; color: #334155; margin-bottom: 5px; }
.pr-logs div { margin-top: 3px; }
.pr-logs span { color: #94a3b8; }
@media (max-width: 1150px) {
    .pr-layout { grid-template-columns: 260px minmax(0, 1fr); }
    .pr-workspace { grid-template-columns: 1fr; }
}
