.crm-ocr-overlay{position:fixed;inset:0;z-index:2147483600;background:rgba(9,19,35,.72);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;color:#182638;font:14px/1.5 system-ui,sans-serif}
.crm-ocr-overlay *{box-sizing:border-box}.crm-ocr-dialog{display:flex;flex-direction:column;width:100%;max-width:1000px;max-height:calc(100dvh - 32px);background:#fff;border-radius:16px;box-shadow:0 20px 64px #0005;overflow:hidden;min-width:0}.crm-ocr-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102039;color:#fff;padding:14px 20px}.crm-ocr-header h2{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}.crm-ocr-body{padding:20px;overflow:auto;min-height:0;overscroll-behavior:contain}.crm-ocr-body p{margin:6px 0 12px;overflow-wrap:anywhere}.crm-ocr-footer{padding:12px 20px;border-top:1px solid #e1e5eb;display:flex;justify-content:flex-end}.crm-ocr-button{font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;min-height:44px;padding:10px 16px;border:1px solid #a9b4c3;border-radius:8px;background:#fff;color:#182638;cursor:pointer;max-width:100%;white-space:normal}.crm-ocr-button:disabled{cursor:default;opacity:.55}.crm-ocr-primary{background:#bc943a;border-color:#987220;color:#101820}.crm-ocr-button:focus-visible,.crm-ocr-overlay input:focus-visible,.crm-ocr-overlay select:focus-visible{outline:3px solid #156ad4;outline-offset:3px}.crm-ocr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.crm-ocr-message{padding:12px 14px;margin:12px 0;background:#eef4fa;border-left:4px solid #316aa8;border-radius:4px;overflow-wrap:anywhere}.crm-ocr-error{background:#fff0ed;border-color:#ac2e1a;color:#8b2516}.crm-ocr-warning{color:#854c0b}.crm-ocr-label{display:block;font-weight:600;margin:14px 0}.crm-ocr-overlay select,.crm-ocr-field input:not([type=checkbox]),.crm-ocr-crop input{display:block;width:100%;font:inherit;color:#182638;border:1px solid #a9b4c3;border-radius:7px;min-height:44px;padding:9px 10px;background:#fff}.crm-ocr-label select{margin-top:6px}.crm-ocr-pick{border:2px dashed #a9b4c3;border-radius:12px;padding:16px;background:#fafbfd}.crm-ocr-preview{max-height:450px;overflow:auto;border:1px solid #dce1e8;background:#f0f3f6;border-radius:8px;margin-top:16px;padding:8px}.crm-ocr-preview canvas{display:block;max-width:none;width:100%;height:auto}.crm-ocr-crop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:1px solid #dce1e8;margin:16px 0;padding:12px;border-radius:8px}.crm-ocr-crop label{min-width:0}.crm-ocr-crop .crm-ocr-button{grid-column:1/-1;justify-self:start}.crm-ocr-overlay progress{width:100%;height:14px}.crm-ocr-field{border:1px solid #dce1e8;border-radius:10px;padding:14px;margin:12px 0;overflow-wrap:anywhere;min-width:0}.crm-ocr-conflict{border-color:#c28a35;background:#fffaf0}.crm-ocr-field p{font-size:12px}.crm-ocr-check{display:flex;align-items:flex-start;gap:10px;margin:8px 0 12px;overflow-wrap:anywhere}.crm-ocr-check input{width:20px;height:20px;flex:0 0 20px;accent-color:#987220}.crm-ocr-field label[for]{font-size:12px;display:block;margin-top:12px}.crm-ocr-field input[readonly]{background:#eef1f5}.crm-ocr-overlay [hidden]{display:none!important}.crm-ocr-entry{margin:8px 0;min-height:44px;max-width:100%;white-space:normal}
@media(max-width:640px){.crm-ocr-overlay{padding:0}.crm-ocr-dialog{max-height:100dvh;height:100dvh;border-radius:0}.crm-ocr-header{padding:12px}.crm-ocr-header h2{font-size:18px}.crm-ocr-body{padding:12px}.crm-ocr-actions .crm-ocr-button{flex:1 1 130px}.crm-ocr-crop{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-ocr-preview{max-height:330px}.crm-ocr-footer{padding:10px 12px}}
@media print{.crm-ocr-overlay{display:none!important}}
.crm-ocr-entry[hidden]{display:none!important}
.crm-ocr-evidence{border:1px solid #dce1e8;border-radius:8px;padding:12px;margin:12px 0;overflow-wrap:anywhere;max-width:100%;font-size:13px}.crm-ocr-evidence:empty{display:none}.crm-ocr-evidence h4{margin:0 0 8px}.crm-ocr-evidence summary{min-height:44px;padding:10px 0;cursor:pointer}.crm-ocr-evidence p{margin:6px 0}
