/* Aden Audit V8: compact checklist-by-subcheck evidence workflow. */
.v8-review .page-heading{margin-bottom:14px!important}
.v8-review-heading h1{font-size:21px!important}
.v8-review .review-grid{grid-template-columns:minmax(0,1fr) minmax(270px,340px);align-items:start}
.v8-review .step-intro{margin-bottom:13px}
.v8-review .step-intro h2{font-size:15px}
.v8-review .clue-card{padding:13px 14px;margin-bottom:9px}
.v8-review .review-step{padding:19px 17px}
.v8-check-count,.v8-aside-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 10px}
.v8-check-count b{font-size:12px}.v8-check-count small{font-size:11px;color:#738396}
.v8-subcheck{border:1px solid #e4e9ed;border-radius:13px;background:#fff;padding:14px;margin:0 0 10px;transition:border-color .16s,background-color .16s}
.v8-subcheck[data-current-status="Verified"]{border-color:#d0e9de;background:#fcfffd}
.v8-subcheck[data-current-status="Finding"]{border-color:#f3cbb7;background:#fffcfa}
.v8-subcheck[data-current-status="Not applicable"]{border-color:#e3e6e9;background:#fcfcfc}
.v8-subcheck-top,.v8-subcheck-label{display:flex;align-items:start;gap:12px;min-width:0}
.v8-subcheck-top{justify-content:space-between;gap:14px}
.v8-subcheck-label{flex:1;padding-top:3px}
.v8-subcheck-label b{font-size:13px;line-height:1.4;color:#263750}
.v8-subcheck-label p{font-size:11px;line-height:1.5;margin:4px 0 0;color:#738396}
.v8-sequence{display:grid;flex:0 0 29px;place-items:center;width:29px;height:29px;border-radius:9px;color:#ef5524;background:#fff0e8;font-weight:800;font-size:10px}
.v8-subcheck-select{min-width:190px;width:220px;flex:0 0 220px}
.v8-subcheck-select label{display:block;font-size:10px;color:#7b8795;margin-bottom:4px;font-weight:750}
.v8-subcheck-select select{width:100%;background:white;border:1px solid #dce3e8;border-radius:9px;padding:10px 11px;font-size:12px;font-weight:700;min-height:40px;color:#2c3c52}
.v8-subcheck[data-current-status="Verified"] .v8-subcheck-select select{border-color:#a7d5c0;color:#167b55}
.v8-subcheck[data-current-status="Finding"] .v8-subcheck-select select{border-color:#eeae89;color:#bd4c24}
.v8-subcheck-hint{font-size:10px;color:#738193;margin:9px 0 0 41px}
.v8-subcheck-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:11px;margin:12px 0 0 41px}
.v8-subcheck .field{margin-bottom:0}.v8-subcheck .field label,.v8-upload-group label{font-size:11px;font-weight:750}
.v8-subcheck .field textarea{min-height:76px;line-height:1.45;resize:vertical;font-size:12px}
.v8-upload-group input[type=file]{width:100%;min-width:0;border:1px dashed #d4dde5;background:#fcfdfd;border-radius:10px;padding:10px;font-size:11px;color:#526479}
.v8-upload-group input[type=file]::file-selector-button{border:1px solid #efc5af;border-radius:8px;background:#fff2ea;color:#b34d21;padding:7px 9px;font-weight:750;margin-right:9px;cursor:pointer}
.v8-file-queue{list-style:none;display:grid;gap:5px;margin:7px 0 0;padding:0}
.v8-file-queue:empty{display:none}
.v8-file-queue li{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f2f7f8;border-radius:7px;padding:5px 7px;color:#415365;font-size:10px;min-width:0}
.v8-file-queue li span{overflow-wrap:anywhere;min-width:0}
.v8-queue-remove{border:0;background:#fff;border-radius:6px;color:#ce572b;font-size:17px;font-weight:700;width:26px;height:26px;flex:0 0 26px;cursor:pointer}
.v8-derived-summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;border:1px solid #dce7eb;background:#f8fafb;border-radius:11px;padding:13px 14px;margin-top:12px}
.v8-derived-summary>span{font-size:11px;color:#617389;font-weight:780}
.v8-derived-summary>strong{font-size:13px;color:#25425a;text-align:right}
.v8-derived-summary small{grid-column:1/-1;font-size:10px;color:#7c8c9c}
.v8-legacy-note{border:1px solid #ebedf0;border-radius:9px;padding:9px 11px;margin-top:10px;font-size:11px;color:#607184}
.v8-legacy-note summary{cursor:pointer;font-weight:700}.v8-legacy-note p{white-space:pre-wrap}
.v8-upload-summary{display:grid;gap:5px;border-top:1px solid #eef0f1;padding-top:12px;margin-top:14px;font-size:11px;color:#3f5264}
.v8-upload-summary small{color:#8190a0}
.v8-file-error{margin:4px 0 0;border-radius:8px;padding:9px 10px;background:#fff2ea;color:#b23b18;font-weight:700}
.v8-simple-result{margin-top:15px}
.v8-file-badge{padding:4px 8px;border-radius:7px;background:#f5f7f9;color:#627588;font-size:10px;font-weight:750}
.v8-evidence-panel .v8-aside-top{margin:0 0 12px}
.v8-evidence-panel .v8-aside-top h3{margin-top:4px}
.v8-saved-list{display:grid;gap:8px}
.v8-saved-file{display:grid;gap:8px;padding:11px;border:1px solid #ebeff3;border-radius:10px;background:#fdfefe}
.v8-saved-info{display:grid;gap:4px;min-width:0}.v8-saved-info strong{font-size:11px;color:#344359;overflow-wrap:anywhere}.v8-saved-info small{font-size:10px;color:#8492a0;line-height:1.45}
.v8-saved-actions{display:flex;align-items:center;gap:6px}
.v8-saved-actions form{margin:0}
.v8-icon-button{display:grid;place-items:center;text-decoration:none;border:1px solid #e3e7eb;border-radius:7px;background:white;padding:5px 10px;min-width:32px;height:30px;color:#4b5f70;font-size:11px;font-weight:760;cursor:pointer}
.v8-icon-button:hover{background:#fff2ea;border-color:#ebaf8a;color:#ca5426}
.v8-remove-button{font-size:17px;color:#b34831}
.v8-uploader-note{font-size:10px;color:#7a8b9b;line-height:1.5;display:block;margin-top:12px}
.v8-preview-dialog{border:none;border-radius:16px;padding:0;background:#fff;width:min(94vw,1050px);max-width:1050px;max-height:94vh;box-shadow:0 30px 90px #0b1e3260;color:#24384f;overflow:hidden}
.v8-preview-dialog::backdrop{background:#0d2138a8}
.v8-dialog-head,.v8-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;border-bottom:1px solid #e7edf0}
.v8-dialog-head strong{font-size:13px;overflow-wrap:anywhere}.v8-dialog-head button{border:0;background:#f2f5f7;color:#4f6275;border-radius:8px;font-size:24px;width:34px;height:34px;cursor:pointer}
.v8-dialog-body{display:grid;place-items:center;min-height:260px;height:min(69vh,720px);background:#f2f5f8;overflow:auto}
.v8-dialog-body iframe{width:100%;height:100%;border:0;background:white}
.v8-dialog-body img{max-width:100%;max-height:100%;object-fit:contain}
.v8-dialog-body [hidden]{display:none!important}
.v8-dialog-footer{border-top:1px solid #e7edf0;border-bottom:0;justify-content:flex-end}
.v8-dialog-footer .btn{min-height:36px}
@media(max-width:1120px){.v8-review .review-grid{grid-template-columns:minmax(0,1fr) minmax(230px,285px)}.v8-subcheck-fields{grid-template-columns:1fr}}
@media(max-width:860px){.v8-review .review-grid{grid-template-columns:1fr}.v8-review .review-aside{grid-template-columns:1fr 1fr;display:grid;align-items:start}}
@media(max-width:620px){.v8-review .review-step{padding:12px}.v8-subcheck{padding:11px}.v8-subcheck-top{display:grid;gap:8px}.v8-subcheck-label{align-items:center}.v8-subcheck-select{width:100%;min-width:0}.v8-subcheck-select label{display:none}.v8-subcheck-fields{margin-left:0;gap:10px}.v8-subcheck-hint{margin-left:0}.v8-review .review-aside{display:grid;grid-template-columns:1fr}.v8-derived-summary{grid-template-columns:1fr}.v8-derived-summary strong{text-align:left}.v8-dialog-head,.v8-dialog-footer{padding:10px}.v8-dialog-body{height:65vh}}
@media print{.v8-upload-group,.v8-saved-actions,.v8-preview-dialog{display:none!important}}

/* V9: evidence grouped by the actual persisted AuditSubcheckResultId, compact progressive disclosure. */
.v9-review .v9-subcheck{padding:13px 14px;background:#fff;border:1px solid #e6e9ed;border-radius:12px}
.v9-review .v9-subcheck[data-current-status="Verified"]{border-color:#cce7d9;background:#fff}
.v9-review .v9-subcheck[data-current-status="Finding"]{border-color:#f4c7ad;background:#fff}
.v9-review .v9-subcheck[data-current-status="Not applicable"]{border-color:#dce3e8;background:#fff}
.v9-review [hidden]{display:none!important}
.v9-review .v8-subcheck-label{align-items:center}
.v9-review .v8-subcheck-label b{font-size:13px}
.v9-review .v9-subcheck-expanded{border-top:1px solid #eff1f3;margin-top:12px;padding-top:12px}
.v9-review .v9-selected-result{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:11px}
.v9-review .v9-selected-result span{font-size:11px;color:#3e5368;font-weight:800;border:1px solid #dce6ec;background:#f5f8fa;border-radius:20px;padding:6px 10px}
.v9-review .v9-subcheck[data-current-status="Verified"] .v9-selected-result span{color:#177454;border-color:#c8e4d5;background:#eef9f3}
.v9-review .v9-subcheck[data-current-status="Finding"] .v9-selected-result span{color:#b95121;border-color:#f6d6c3;background:#fff4ed}
.v9-review .v9-selected-result small{font-size:10px;color:#8795a1}
.v9-review .v9-subcheck-instruction{font-size:11px;color:#8a98a5;margin:8px 0 0 42px}
.v9-review .v9-check-hint{color:#788897;font-size:11px;margin:0 0 10px}
.v9-review .v9-subcheck-fields{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
.v9-review .v9-subcheck-fields .field textarea{min-height:92px;max-width:100%;font-size:12px}
.v9-review .v9-subcheck-fields .v8-upload-group input{max-width:100%}
.v9-review .v9-existing-link{display:inline-block;margin:8px 0 0;font-size:11px;font-weight:750;text-decoration:none;color:#d75b2a}
.v9-review .v9-existing-link:hover{text-decoration:underline}
.v9-review .v9-inline-validation{display:block;margin-top:4px;font-size:11px;color:#c34928}
.v9-review .v9-inline-validation:empty{display:none}
.v9-evidence-panel{min-width:0}
.v9-evidence-panel .v9-evidence-group{margin-top:12px;border:1px solid #e8edf1;border-radius:12px;padding:11px;background:#fff;scroll-margin-top:80px}
.v9-evidence-panel .v9-evidence-group:target{border-color:#e49f7b;box-shadow:0 0 0 3px #fff0e9}
.v9-evidence-panel .v9-evidence-group-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}
.v9-evidence-panel .v9-evidence-group-title>div{display:flex;align-items:center;gap:7px;min-width:0}
.v9-evidence-panel .v9-evidence-group-title strong{font-size:12px;color:#283b4f;overflow-wrap:anywhere}
.v9-evidence-panel .v9-group-dot{display:block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#ed5c27}
.v9-evidence-panel .v9-group-count{min-width:25px;text-align:center;background:#fff1e9;color:#c55224;border-radius:7px;padding:4px 6px;font-size:10px;font-weight:800}
.v9-evidence-panel .v9-empty-evidence{margin:0;color:#8493a1;font-size:11px;line-height:1.5}
.v9-evidence-panel .v8-saved-list{gap:7px}
.v9-evidence-panel .v9-saved-file{padding:10px;border-radius:9px;background:#fbfcfd;gap:7px}
.v9-evidence-panel .v9-saved-file .v8-saved-info strong{font-size:11px}
.v9-evidence-panel .v9-legacy-group{background:#fdfaf6;border-color:#eee4d8}
.v9-evidence-panel .v9-legacy-group .v9-empty-evidence{margin-bottom:9px}
@media(max-width:620px){
 .v9-review .v9-subcheck{padding:11px}
 .v9-review .v9-subcheck-instruction{margin-left:0}
 .v9-review .v9-selected-result{align-items:flex-start;flex-direction:column;gap:5px}
 .v9-evidence-panel .v9-evidence-group{padding:10px}
}
@media print{.v9-review .v9-subcheck-expanded[hidden]{display:none!important}}

/* V10: interactive, single-card finding + correction; no remote icon dependencies. */
.v10-review .v10-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.v10-review .v10-subcheck{border:1px solid #e5e9ee;border-radius:14px;background:#fff;padding:16px;box-shadow:0 2px 12px rgba(34,57,75,.025);transition:border-color .22s ease,box-shadow .22s ease,background-color .22s ease,transform .22s ease}
.v10-review .v10-subcheck:hover{box-shadow:0 5px 22px rgba(39,57,72,.055)}
.v10-review .v10-subcheck[data-current-status="Finding"]{border-color:#edb99d;background:#fffdfb;box-shadow:0 3px 18px rgba(230,105,54,.065)}
.v10-review .v10-subcheck[data-current-status="Verified"]{border-color:#c1e2d3;background:#fff}
.v10-review .v10-subcheck[data-current-status="Not applicable"]{border-color:#d6dfe7;background:#fff}
.v10-review .v10-subcheck-expanded{border-top:1px solid #edf1f2;margin-top:14px;padding-top:14px}
.v10-review .v10-subcheck-expanded.v10-revealing{animation:v10-reveal .28s cubic-bezier(.2,.8,.2,1) both;transform-origin:top center}
.v10-review .v10-status-intro{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:11px;background:#f0faf5;border:1px solid #d9ede3;margin-bottom:15px}
.v10-review .v10-subcheck[data-current-status="Finding"] .v10-status-intro{background:#fff4ec;border-color:#f3d4c1}
.v10-review .v10-subcheck[data-current-status="Not applicable"] .v10-status-intro{background:#f5f7f9;border-color:#e0e6eb}
.v10-review .v10-status-icon,.v10-review .v10-correction-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#ddf3e8;color:#16784e}
.v10-review .v10-subcheck[data-current-status="Finding"] .v10-status-icon{background:#ffe3d3;color:#ce5c27}
.v10-review .v10-subcheck[data-current-status="Not applicable"] .v10-status-icon{background:#e7ebef;color:#70808e}
.v10-review .v10-status-icon svg,.v10-review .v10-correction-icon svg,.v10-review .v10-section-caption svg,.v10-review .v10-assembled-note svg,.v10-review .v10-workflow-tip svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.v10-review .v10-status-intro>div{display:grid;gap:3px;min-width:0;flex:1}
.v10-review .v10-status-intro strong{font-size:12px;color:#216c4e}
.v10-review .v10-subcheck[data-current-status="Finding"] .v10-status-intro strong{color:#ad491e}
.v10-review .v10-subcheck[data-current-status="Not applicable"] .v10-status-intro strong{color:#536879}
.v10-review .v10-status-intro small{font-size:11px;color:#6d7c88;line-height:1.5}
.v10-review .v10-status-auto{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;font-weight:750;color:#6e8c7c}
.v10-review .v10-subcheck[data-current-status="Finding"] .v10-status-auto{color:#aa613e}
.v10-review .v10-status-auto svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.v10-review .v10-check-hint,.v10-review .v9-check-hint{font-size:11px;color:#758595;margin-top:0;margin-bottom:12px}
.v10-review .v10-section-caption{display:flex;align-items:center;gap:8px;margin:2px 0 10px;color:#34495b}
.v10-review .v10-section-caption svg{width:17px;height:17px;color:#e85d2e}
.v10-review .v10-section-caption strong{font-size:12px}
.v10-review .v10-evidence-fields{display:grid;gap:16px}
.v10-review .v10-evidence-fields .field{margin-bottom:0}
.v10-review .v10-evidence-fields textarea{font-family:inherit;min-height:90px;font-size:12px;line-height:1.7;border-color:#dfe7ed;border-radius:10px;padding:12px}
.v10-review .v10-evidence-fields textarea:focus,.v10-review .v10-corrective-workspace textarea:focus,.v10-review .v10-corrective-workspace select:focus,.v10-review .v10-corrective-workspace input:focus{outline:2px solid #ed7549;outline-offset:1px;border-color:#ed7549}
.v10-review .v10-inline-icon{width:15px;height:15px;vertical-align:-3px;margin-right:4px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v10-review .v10-corrective-slot:empty{display:none}
.v10-review .v10-corrective-workspace{display:grid;gap:14px;border:1px solid #f0c7b1;border-radius:12px;padding:17px;background:linear-gradient(145deg,#fff8f4 0%,#fff 65%);margin-top:17px;box-shadow:0 2px 8px rgba(191,81,35,.025)}
.v10-review .v10-corrective-workspace[style*="display:none"]{display:none!important}
.v10-review .v10-correction-home .v10-corrective-workspace{margin:16px}
.v10-review .v10-correction-head{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #f2e3dc}
.v10-review .v10-correction-icon{background:#ffe4d3;color:#bc5529;width:42px;height:42px;flex:0 0 42px;border-radius:12px}
.v10-review .v10-correction-head>div{flex:1;min-width:0}
.v10-review .v10-mini-eyebrow{font-size:9px;font-weight:850;letter-spacing:.11em;color:#d85e28}
.v10-review .v10-correction-head h3{margin:2px 0 3px!important;font-size:15px;color:#26374b;font-weight:800}
.v10-review .v10-correction-head p{margin:0;font-size:11px;color:#697988;line-height:1.5}
.v10-review .v10-assembled-note{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #f0e0d8;background:rgba(255,255,255,.9);border-radius:9px;font-size:11px;color:#6c6e73;line-height:1.55}
.v10-review .v10-assembled-note svg{width:15px;height:15px;flex:0 0 15px;color:#c95e37;margin-top:1px}
.v10-review .v10-corrective-workspace .field{min-width:0;margin:0}
.v10-review .v10-corrective-workspace .field label{display:block;font-size:11px;font-weight:750;margin-bottom:6px;color:#33475a}
.v10-review .v10-corrective-workspace textarea{min-height:90px;line-height:1.55;font-size:12px;resize:vertical}
.v10-review .v10-assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v10-review .v10-assignment-grid>.field:last-child{grid-column:1/-1;max-width:225px}
.v10-review .v10-assignment-grid select,.v10-review .v10-assignment-grid input{min-width:0;width:100%}
.v10-review .v10-workflow-tip{display:flex;align-items:flex-start;gap:7px;border-top:1px solid #f2e4db;padding-top:12px;font-size:11px;color:#75818a;line-height:1.55}
.v10-review .v10-workflow-tip svg{width:14px;height:14px;flex:0 0 14px;color:#d75b2b;margin-top:1px}
.v10-review .v8-derived-summary[data-overall-status="Finding"]{border-color:#efd2bd;background:#fff8f3}
.v10-review .v8-derived-summary[data-overall-status="Finding"]>strong{color:#ba5223}
.v10-review .v8-derived-summary[data-overall-status="Compliant"]{border-color:#cfe8da;background:#f8fcfa}
.v10-review .v8-derived-summary[data-overall-status="Compliant"]>strong{color:#287c55}
.v10-review .v9-existing-link{display:inline-flex;align-items:center;gap:5px;border-radius:5px}
.v10-review .v9-existing-link:focus-visible{outline:2px solid #eb6b37;outline-offset:3px}
.v10-review .v8-upload-group input[type=file]{transition:background-color .2s ease,border-color .2s ease}
.v10-review .v8-upload-group input[type=file]:hover{background:#fff9f5;border-color:#e5a881}
.v10-review .v8-queue-remove:hover{background:#ffe8dd}
@keyframes v10-reveal{from{opacity:.01;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){.v10-review .v10-assignment-grid{grid-template-columns:1fr}.v10-review .v10-assignment-grid>.field:last-child{grid-column:auto;max-width:none}}
@media(max-width:580px){.v10-review .v10-subcheck{padding:12px}.v10-review .v10-status-intro{padding:10px;flex-wrap:wrap;gap:9px}.v10-review .v10-status-auto{margin-left:44px}.v10-review .v10-corrective-workspace{padding:13px}.v10-review .v10-correction-home .v10-corrective-workspace{margin:12px}.v10-review .v10-status-intro small{line-height:1.45}}
@media(prefers-reduced-motion:reduce){.v10-review .v10-subcheck,.v10-review .v10-subcheck-expanded,.v10-review .v8-upload-group input[type=file]{animation:none!important;transition:none!important}}
@media print{.v10-review .v10-workflow-tip,.v10-review .v10-status-auto{display:none!important}}

.v10-review .v10-corrective-workspace.v10-enter{animation:v10-reveal .32s cubic-bezier(.2,.8,.2,1) both}
.v10-review .v8-subcheck-select select:focus-visible{outline:2px solid #e97042;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.v10-review .v10-corrective-workspace.v10-enter{animation:none!important}}
