/* Contract scan workflow: one photograph, automatic contour and local OCR. */
.contract-scans,.contract-scan-cards,.contract-scan-slots{min-width:0;display:grid;gap:20px}.contract-scans{grid-column:1/-1}.contract-scan-card{min-width:0;padding:20px;border:1px solid #d4e3eb;border-radius:14px;background:#f8fbfd}.contract-scan-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.contract-scan-card h3{font-size:22px;letter-spacing:-.6px}.contract-scan-type{display:grid;gap:7px;color:#36586d;font-weight:650;font-size:14px;max-width:100%}.contract-scan-type select{width:100%;min-height:48px;font-size:16px;max-width:100%;padding:10px 32px 10px 12px;border:1px solid #bad1dd;border-radius:9px;background:#fff;color:#183f58}.contract-scan-help{font-size:14px;line-height:1.8;color:#60798a;margin:14px 0 18px}.contract-scan-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.contract-scan-slot{min-width:0;border:1px solid #d3e3ea;border-radius:10px;padding:15px;background:#fff}.contract-scan-slot h4{font-size:16px;color:#082e50;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin:0 0 16px}.contract-scan-slot h4 small{font-size:12px;font-weight:500;color:#60798a}.contract-scan-slot img{display:block;width:100%;height:170px;object-fit:contain;background:#edf4f7;border:1px solid #dae5ea;border-radius:8px}.contract-scan-actions{display:grid;gap:9px}.contract-scan-camera,.contract-scan-gallery,.contract-scan-remove{position:relative;min-height:48px;display:flex;align-items:center;justify-content:center;max-width:100%;padding:12px 15px;border:1px solid #bed5df;border-radius:8px;font-size:14px;font-weight:700;text-align:center;line-height:1.5;background:#fff;color:#345f74;cursor:pointer}.contract-scan-camera{background:#007d87;border-color:#007d87;color:#fff}.contract-scan-gallery input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.contract-scan-gallery:focus-within{outline:3px solid #099daa;outline-offset:3px}.contract-scan-done{display:block;font-size:12px;color:#1a7764;margin:10px 0}.contract-scan-remove{font-size:12px;width:100%;min-height:44px}.contract-scan-processing:empty{display:none}.contract-scan-processing .dr-status,.contract-scan-feedback{padding:16px 18px;background:#edf8f9;color:#2d6673;font-size:14px;border:1px solid #c6e0e5;border-radius:10px}.contract-scan-feedback{background:#fff6f0;border-color:#e7cdbf;color:#8a4e31}.contract-role-read-status{padding:12px 0;border-top:1px solid #dde7ed}.contract-role-read-status>strong{font-size:13px;color:#284f69}.contract-role-read-status .upload-status{font-size:12px}.contract-scan-card>.contract-scan-type{margin-top:18px}.upload-grid:has(.contract-scan-card){grid-template-columns:minmax(0,1fr)}
@media(max-width:620px){.contract-scan-card{padding:16px}.contract-scan-card>header{display:grid;gap:14px}.contract-scan-slots{grid-template-columns:minmax(0,1fr)}.contract-scan-card h3{font-size:21px}.contract-scan-help{font-size:14px}.contract-scan-slot img{height:190px}}

/* Shared guided camera styles; no document-request page globals. */
.dr-camera-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:23px;color:#143c53;font:inherit;border:1px solid #c6dce3;border-radius:19px;background:#fff;box-shadow:0 24px 100px #031b3245;overflow:auto;overscroll-behavior:contain;scroll-padding-block:20px}
.dr-camera-dialog *{box-sizing:border-box;min-width:0}
.dr-camera-dialog::backdrop{background:#031728c7;backdrop-filter:blur(4px)}
.dr-camera-dialog:not([open]),.dr-camera-dialog [hidden],.dr-camera-backdrop[hidden]{display:none!important}
.dr-camera-backdrop{position:fixed;inset:0;z-index:9998;background:#031728c7}
.dr-camera-dialog.dr-camera-fallback[open]{position:fixed;inset:0;z-index:9999}
.dr-camera-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:13px}
.dr-camera-eyebrow{display:block;margin:0 0 7px;color:#007987;font-size:9px;font-weight:750;line-height:1.6;letter-spacing:.11em}
.dr-camera-header h2{margin:0;color:#062b52;font-family:Arial,Helvetica,sans-serif;font-size:24px;font-weight:750;line-height:1.35;letter-spacing:-.6px;overflow-wrap:break-word}
.dr-camera-dialog button{font:650 13px/1.5 Arial,Helvetica,sans-serif;min-height:46px;max-width:100%;padding:11px 16px;border:1px solid #c2d9e1;border-radius:9px;background:#fff;color:#2b586c;cursor:pointer;touch-action:manipulation;white-space:normal;overflow-wrap:anywhere}
.dr-camera-dialog .dr-camera-close{flex:none;min-height:42px;padding:9px 12px;background:#f1f7f9;font-size:11px}
.dr-camera-dialog button:focus-visible{outline:3px solid #22a4af;outline-offset:3px}
.dr-camera-dialog button:hover:not(:disabled){background:#eaf5f5;border-color:#73aeb9}
.dr-camera-dialog button:disabled{opacity:.5;cursor:default}
.dr-camera-help{margin:0 0 16px;color:#607c8c;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.dr-camera-stage{position:relative;display:grid;place-items:center;width:100%;min-width:0;min-height:150px;border:1px solid #b4cdd7;border-radius:13px;background:#071f2f;overflow:hidden;isolation:isolate}
.dr-camera-video{display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;min-height:150px;background:#071f2f}
.dr-camera-guide{position:absolute;left:50%;top:50%;z-index:1;width:0;height:0;transform:translate(-50%,-50%);border:1px solid #ffffff55;border-radius:14px;box-shadow:0 0 0 100vmax #03182848;pointer-events:none}
.dr-camera-stage:not([data-kind=card]) .dr-camera-guide{border-radius:4px}
.dr-camera-corner{position:absolute;width:25px;height:25px;border-color:#5af0df;border-style:solid;filter:drop-shadow(0 1px 2px #06333d80)}
.dr-camera-corner.is-top-left{left:-2px;top:-2px;border-width:3px 0 0 3px;border-radius:11px 0 0}
.dr-camera-corner.is-top-right{right:-2px;top:-2px;border-width:3px 3px 0 0;border-radius:0 11px 0 0}
.dr-camera-corner.is-bottom-left{left:-2px;bottom:-2px;border-width:0 0 3px 3px;border-radius:0 0 0 11px}
.dr-camera-corner.is-bottom-right{right:-2px;bottom:-2px;border-width:0 3px 3px 0;border-radius:0 0 11px}
.dr-camera-stage:not([data-kind=card]) .dr-camera-corner{border-radius:0}
.dr-camera-guide-label{position:absolute;left:50%;top:-31px;transform:translateX(-50%);display:block;max-width:110%;width:max-content;padding:5px 9px;border:1px solid #ffffff30;border-radius:6px;background:#042839d9;color:#fff;font-size:10px;font-weight:650;line-height:1.5;text-align:center;white-space:normal}
.dr-camera-preview{display:block;width:100%;height:auto;max-height:50dvh;object-fit:contain;background:#071f2f}
.dr-camera-status{min-height:42px;margin:13px 0 10px;color:#587789;font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.dr-camera-status[role=alert]{padding:11px 13px;border:1px solid #e5c9b6;border-radius:8px;background:#fff8f1;color:#85542d}
.dr-camera-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.dr-camera-dialog .dr-camera-tools>button{min-height:42px;padding:8px 11px;background:#f3f8fa;font-size:11px}
.dr-camera-dialog .dr-camera-orientation[aria-pressed=true]{border-color:#86b7bf;background:#e8f5f3;color:#00717a}
.dr-camera-actions{display:flex;align-items:stretch;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:15px;border-top:1px solid #dfebee}
.dr-camera-dialog .dr-camera-capture,.dr-camera-dialog .dr-camera-confirm{min-width:180px;border-color:#007d87;background:#007d87;color:#fff}
.dr-camera-dialog .dr-camera-capture:hover:not(:disabled),.dr-camera-dialog .dr-camera-confirm:hover:not(:disabled){border-color:#006672;background:#006672;color:#fff}
@media(max-width:600px){
 .dr-camera-dialog{width:calc(100vw - 18px);max-width:calc(100vw - 18px);max-height:calc(100dvh - 18px);padding:17px 13px;border-radius:15px}
 .dr-camera-header{gap:10px;margin-bottom:11px}
 .dr-camera-header h2{font-size:20px;letter-spacing:-.4px}
 .dr-camera-eyebrow{font-size:8px;letter-spacing:.09em}
 .dr-camera-dialog .dr-camera-close{padding:9px 10px;font-size:11px;min-height:42px}
 .dr-camera-help{font-size:12px;line-height:1.75;margin-bottom:13px}
 .dr-camera-video,.dr-camera-preview{max-height:43dvh}
 .dr-camera-guide-label{font-size:9px;top:-29px;padding:4px 7px}
 .dr-camera-status{font-size:12px;min-height:42px;margin-block:12px}
 .dr-camera-tools>button{flex:1 1 130px}
 .dr-camera-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding-top:13px}
 .dr-camera-actions>button{width:100%;min-height:48px;font-size:15px}
}
@media(max-height:530px) and (min-width:601px){.dr-camera-dialog{padding:16px}.dr-camera-header{margin-bottom:8px}.dr-camera-header h2{font-size:20px}.dr-camera-help{margin-bottom:9px}.dr-camera-video,.dr-camera-preview{max-height:43dvh}.dr-camera-status{min-height:0;margin:9px 0}.dr-camera-tools{margin-bottom:9px}.dr-camera-actions{padding-top:10px}}
@media(prefers-reduced-motion:reduce){.dr-camera-dialog *{transition:none;scroll-behavior:auto}}
@media print{.dr-camera-dialog,.dr-camera-backdrop{display:none!important}}
