
/* Approved single-screen identity review. */
.healthcare-app #modal:has(.instant-review){width:min(1000px,calc(100vw - 32px));max-width:1000px;max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid #b8d9f7;border-radius:18px;box-shadow:0 18px 65px #10244930}
.healthcare-app #modal:has(.instant-review)>.close{display:none}
.instant-review{color:#102449}
.instant-review-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;background:#0756b7;color:white}
.instant-review-header h2{margin:0;font-size:clamp(17px,2.4vw,27px);line-height:1.25;letter-spacing:0;white-space:nowrap}
.instant-review-progress{white-space:nowrap;font-size:15px;flex-shrink:0}
.instant-review-body{padding:20px 24px 12px}
.instant-review-table-scroll{overflow:auto;border:1px solid #d0e1f2;border-radius:7px}
.instant-review-table{width:100%;min-width:680px;border-collapse:collapse;table-layout:fixed}
.instant-review-table th,.instant-review-table td{padding:11px 14px;border-right:1px solid #d8e5f3;border-bottom:1px solid #d8e5f3;text-align:left;font-size:13px;line-height:1.45;vertical-align:middle;overflow-wrap:anywhere}
.instant-review-table thead th{background:#e6f2ff;font-weight:700;color:#102449}
.instant-review-table th:first-child{width:19%}
.instant-review-table th:nth-child(2),.instant-review-table th:nth-child(3){width:28%}
.instant-review-table th:nth-child(4){width:25%}
.instant-review-table tbody th{font-weight:650}
.instant-review-table tr>*:last-child{border-right:0}
.instant-review-table tr:last-child>*{border-bottom:0}
.instant-review-table tbody tr:hover{background:transparent}
.field-comparison{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.comparison-circle{width:13px;height:13px;flex:0 0 13px;border-radius:50%;background:#c5cbd3}
.field-comparison.match .comparison-circle{background:var(--choice-red-ink)}
.field-comparison.different .comparison-circle{background:var(--choice-green-ink)}
.field-comparison.similar .comparison-circle{background:var(--choice-yellow-ink)}
.instant-source-meta{margin:10px 0 0;font-size:11px;color:#586c89}
.instant-review-decisions{padding:16px 20px 20px;background:#eff7ff;gap:14px}
.instant-review-error{padding:12px;background:#fff4cf;color:#795100;font-size:13px}
.healthcare-app .review-finding-dialog:has(.instant-review)>.review-dialog-footer{display:none}
@media(max-width:650px){
 .healthcare-app #modal:has(.instant-review){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 .instant-review-header{gap:10px;padding:18px 12px}
 .instant-review-header h2{font-size:clamp(13px,3.5vw,20px)}
 .instant-review-progress{font-size:clamp(10px,2.6vw,13px)}
 .instant-review-body{padding:12px 10px}
 .instant-review-decisions{padding:12px 10px;gap:7px}
 .instant-review-table th,.instant-review-table td{padding:10px;font-size:12px}
}

/* Fixed workspace: only evidence scrolls; header and decisions stay visible. */
.healthcare-app #modal:has(.instant-review){height:min(690px,calc(100dvh - 32px));overflow:hidden}
.healthcare-app #modal:has(.instant-review)>#modal-content,
.healthcare-app #modal:has(.instant-review) .review-finding-dialog{height:100%;min-height:0}
.instant-review{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.instant-review-header{padding-right:64px}
.instant-review-header h2:focus,.instant-review-header h2:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
.healthcare-app #modal:has(.instant-review)>.close{display:grid;place-items:center;z-index:2;right:12px;top:20px;width:32px;height:32px;padding:0;color:white;font-size:26px;border:0;border-radius:6px;background:transparent}
.healthcare-app #modal:has(.instant-review)>.close:hover{background:#ffffff20}
.healthcare-app #modal:has(.instant-review)>.close:focus-visible{outline:2px solid #ffffffb0;outline-offset:2px}
.instant-review-body{display:flex;flex-direction:column;min-height:0;padding-bottom:20px}
.instant-review-table-scroll{min-height:0;overflow:auto;scrollbar-gutter:stable}
.instant-review-table thead th{position:sticky;top:0;z-index:1}
.field-comparison{padding:5px 10px;border-radius:6px;color:#102449;font-size:12px;font-weight:600}
.field-comparison.match{background:#ffdce1;color:#9b1525;border:1px solid #dfa2ad;font-size:13px;font-weight:500;line-height:1.4}
.field-comparison.different{background:#d5efdd;color:#155c2c;border:1px solid #91cba1;font-size:13px;font-weight:500;line-height:1.4}
.field-comparison.similar{background:#ffe9a8;color:#704800;border:1px solid #d5b354;font-size:13px;font-weight:500;line-height:1.4}
.field-comparison.missing{background:#eef0f3;color:#102449}
@media(max-width:650px){
 .healthcare-app #modal:has(.instant-review){height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .instant-review-header{padding-right:43px;gap:7px}
 .instant-review-header h2{font-size:clamp(12px,3.25vw,19px)}
 .instant-review-progress{font-size:clamp(9px,2.25vw,12px)}
 .healthcare-app #modal:has(.instant-review)>.close{right:5px;top:12px;width:28px;height:28px}
 .instant-review-body{padding-bottom:12px}
}

/* Draw the close icon geometrically so font metrics cannot offset it. */
.healthcare-app #modal:has(.instant-review)>.close{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:0;margin:0;line-height:1;font-size:0;letter-spacing:0;transform:none}
.healthcare-app #modal:has(.instant-review)>.close::before{content:"";display:block;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3L13 13M13 3L3 13' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.healthcare-app #modal:has(.instant-review)>.close:hover{transform:none}
