.documents-page{max-width:1180px;margin:0 auto}.documents-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.documents-heading h1{font-size:30px;margin:2px 0 4px}.documents-heading p:not(.preview-caption){margin:0;color:#6b788b}.documents-notice{margin:20px 0;padding:12px 16px;border:1px solid #8bcabf;border-radius:10px;background:#edf9f6;color:#11614f}.documents-filter{display:grid;grid-template-columns:220px minmax(240px,1fr) auto;gap:12px;align-items:end;margin:24px 0 14px;padding:16px;background:white;border:1px solid #e1e5eb;border-radius:12px}.documents-filter label span,.document-upload-dialog label span{display:block;margin-bottom:5px;font-size:12px;font-weight:700;color:#5e6c80}.documents-summary{display:flex;align-items:baseline;gap:7px;margin:12px 2px;color:#68768a;font-size:13px}.documents-summary strong{font-size:19px;color:#243248}.documents-table-wrap{overflow-x:auto;background:white;border:1px solid #e1e5eb;border-radius:12px}.documents-table{width:100%;border-collapse:collapse;min-width:840px}.documents-table th,.documents-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #edf0f4;font-size:13px}.documents-table th{background:#f8f9fb;color:#617086;font-size:12px}.documents-table tbody tr:last-child td{border-bottom:0}.document-name{display:flex;align-items:center;gap:11px;max-width:390px}.document-name strong,.document-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-name small{color:#7a8798;font-size:11px}.document-file-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;background:#edf2ff;color:#3656b3;font-size:10px;font-weight:800}.document-type{display:inline-flex;padding:4px 9px;border-radius:999px;background:#edf6f4;color:#14695d;font-size:12px;font-weight:700}.actions-column{text-align:right!important}.document-actions{display:flex;justify-content:flex-end;gap:7px}.document-actions .button{padding:6px 10px;font-size:12px;white-space:nowrap}.danger-outline{border-color:#e3b2b2!important;color:#a32f2f!important;background:#fff!important}.danger{background:#b93636!important;color:#fff!important}.documents-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px}.documents-pagination .button{padding:7px 12px;font-size:13px}.documents-empty{padding:62px 24px;text-align:center;background:white;border:1px dashed #cad3df;border-radius:14px}.documents-empty-icon{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:14px;background:#edf2ff;color:#3656b3;font-size:28px}.documents-empty h2{margin:4px 0}.documents-empty p{margin:0 0 20px;color:#6b788b}.document-upload-dialog,.document-view-dialog,.document-delete-dialog{margin:auto;border:1px solid #dfe5ec;border-radius:18px;color:#243248;box-shadow:0 24px 80px #14233840}.document-upload-dialog::backdrop,.document-view-dialog::backdrop,.document-delete-dialog::backdrop{background:#14233880;backdrop-filter:blur(2px)}.document-upload-dialog{width:min(560px,calc(100vw - 30px));padding:28px}.document-upload-dialog h2{margin:2px 0 6px}.document-upload-dialog>p:not(.preview-caption){margin:0 0 20px;color:#68768a;font-size:13px}.dialog-close{background:#edf2f8!important;color:#33445b!important;padding:4px 10px!important;font-size:24px!important}.document-upload-dialog>.dialog-close,.document-delete-dialog>.dialog-close{float:right}.document-upload-dialog form{display:grid;gap:16px}.document-file-field input{padding:18px;border:1px dashed #aebaca}.document-file-field small{display:block;margin-top:5px;color:#7a8798}.document-upload-actions{display:flex;justify-content:flex-end;gap:9px}.document-upload-status{min-height:24px;margin:0;color:#53677e;font-size:13px}.document-upload-dialog progress{width:100%;accent-color:#3656b3}.document-view-dialog{width:min(980px,calc(100vw - 36px));height:min(850px,calc(100vh - 36px));padding:0;overflow:hidden}.document-dialog-header{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;border-bottom:1px solid #e4e8ee}.document-dialog-header h2{max-width:760px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.document-dialog-header .preview-caption{margin:0 0 2px}.document-preview-stage{height:calc(100% - 134px);display:grid;place-items:center;overflow:auto;background:#eef1f5}.document-preview-stage img{max-width:100%;max-height:100%;object-fit:contain}.document-preview-stage iframe{width:100%;height:100%;border:0;background:#fff}.document-view-status{position:absolute;inset:72px 0 62px;display:grid;place-items:center;margin:0;background:#eef1f5;color:#5f7086}.document-view-actions{height:62px;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:0 20px;border-top:1px solid #e4e8ee;background:#fff}.document-view-actions .button{padding:8px 15px}.document-delete-dialog{width:min(470px,calc(100vw - 30px));padding:28px}.document-delete-icon{width:44px;height:44px;display:grid;place-items:center;margin-bottom:16px;border-radius:50%;background:#fbe9e9;color:#a32f2f;font-size:24px;font-weight:800}.document-delete-dialog h2{margin:0 0 8px}.document-delete-dialog p{color:#5f6f83;line-height:1.55}.document-delete-note{font-size:12px}.document-delete-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}@media(max-width:760px){.documents-heading{display:block}.documents-heading>.button{margin-top:16px}.documents-filter{grid-template-columns:1fr}.document-actions{justify-content:flex-start}.documents-pagination{flex-wrap:wrap}.document-view-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border:0;border-radius:0}.document-dialog-header{height:64px}.document-preview-stage{height:calc(100% - 126px)}}
.document-view-status[hidden]{display:none!important}
.processing-status{display:inline-flex;padding:4px 9px;border-radius:999px;background:#eef1f5;color:#58687d;font-size:12px;font-weight:700;white-space:nowrap}.processing-status.processing{background:#fff4d6;color:#805d00}.processing-status.needs_review,.processing-status.confirmed{background:#e6f6f0;color:#12614f}.processing-status.failed{background:#fbe9e9;color:#9d3030}
