/* Independent OCR processing, accessible review controls and clear limitations. */
.ocr-queue{margin:18px 0 23px;padding:22px!important;border:1px solid #d6e3f0!important;border-radius:17px;background:#fff;color:#17324d}
.ocr-queue-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.ocr-queue-head>div{flex:1;min-width:200px}
.ocr-queue-head h2{font-size:21px;color:#132a44;line-height:1.25;margin:7px 0}
.ocr-queue-head p{line-height:1.6;font-size:13px;color:#475d74;margin:0}
.ocr-queue-head button{flex:none}
.ocr-counts{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 14px}
.ocr-counts span{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;background:#f1f6fc;border-radius:9px;color:#405a76;font-size:12px;font-weight:650}
.ocr-counts b{color:#1b3452;font-size:14px}
.ocr-jobs{display:grid;gap:10px}
.ocr-job{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;border:1px solid #dbe6f2;border-left:4px solid #4a81bb;background:#fbfdff;padding:13px;border-radius:12px}
.ocr-job[data-ocr-state="failed"],.ocr-job[data-ocr-state="needs_review"]{border-left-color:#b66b31}
.ocr-job>div{display:flex;flex-direction:column;gap:6px;flex:1;min-width:180px}
.ocr-job b{font-size:14px;color:#1b334c;overflow-wrap:anywhere}
.ocr-job span,.ocr-job small{font-size:12px;color:#4b617a}
.ocr-job button{flex:none}
.ocr-no-jobs,.ocr-disclaimer{font-size:13px;line-height:1.6;color:#506883}
.ocr-no-jobs{padding:12px;margin:0}
.ocr-disclaimer{border-top:1px solid #dee8f2;padding-top:12px;margin:17px 0 0}
.ocr-details{color:#243d57}
.ocr-details h3{font-size:16px;font-weight:750;color:#152b46;margin:20px 0 10px}
.ocr-details-head{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.ocr-details-head b{font-size:16px;overflow-wrap:anywhere}
.ocr-details-head span{background:#f1f6fc;color:#375d82;border-radius:15px;padding:7px 10px;font-size:12px}
.ocr-details>p{font-size:13px;color:#415972;line-height:1.6}
.ocr-warning{padding:13px;border:1px solid #edd9b7;background:#fff8ed;border-radius:9px;color:#785528!important}
.ocr-warnings{display:flex;gap:6px;flex-wrap:wrap}
.ocr-warnings span{padding:5px 8px;background:#fff1e2;color:#8c4f29;border-radius:8px;font-size:12px}
.ocr-fields{display:grid;gap:10px}
.ocr-field{background:#fbfcff;border:1px solid #dee8f2;border-radius:12px;padding:13px;min-width:0}
.ocr-field>div:first-child{display:flex;gap:9px;flex-wrap:wrap;justify-content:space-between}
.ocr-field b{color:#17314e;font-size:13px}
.ocr-field span{color:#365a7c;font-size:13px;overflow-wrap:anywhere}
.ocr-field-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}
.ocr-field-actions button{white-space:normal;text-align:center}
.ocr-pages,.ocr-history{margin-top:14px;padding:12px;border:1px solid #dce6f1;border-radius:12px}
.ocr-pages summary,.ocr-history summary{cursor:pointer;font-size:13px;font-weight:700;color:#254664}
.ocr-page,.ocr-event{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e1eaf2;color:#385873;font-size:12px}
.ocr-page b{color:#18324c}.ocr-page small{overflow-wrap:anywhere}
.ocr-event{flex-direction:column;align-items:flex-start;gap:4px}
.ocr-event span{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:680px){.ocr-queue{padding:14px!important}.ocr-queue-head h2{font-size:19px}.ocr-job button{width:100%}.ocr-counts span{flex:1 1 135px;justify-content:center}.ocr-field-actions button{flex:1 1 95px}}
@media(prefers-reduced-motion:reduce){.ocr-queue *,.ocr-details *{animation:none!important;transition:none!important}}
.ocr-file-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;padding:11px;border:1px solid #dce8f3;border-radius:11px;background:#f8fbff}
.ocr-file-action .btn{max-width:100%;white-space:normal}
.ocr-file-action small{color:#49647f;font-size:12px;line-height:1.5}
@media(max-width:680px){.ocr-file-action{flex-direction:column;align-items:stretch}.ocr-file-action .btn{width:100%;text-align:center}}

.ocr-document-kind{display:flex;gap:5px;flex-wrap:wrap;align-items:baseline;padding:12px 14px;border:1px solid #d5e5ef;background:#f4f8fc;border-radius:11px;margin:12px 0;color:#253c52}
.ocr-document-kind b{font-weight:700}
.ocr-document-kind small{width:100%;display:block;color:#52687f;font-size:12px;line-height:1.6}

/* Storage capacity is scoped to authenticated organization. */
.ocr-storage{border:1px solid #d7e4f1;background:#f8fbff;border-radius:12px;padding:14px 16px;margin:14px 0 16px;display:grid;gap:9px}
.ocr-storage-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;color:#17354e;font-size:14px}
.ocr-storage-title b{font-weight:750}.ocr-storage-title span{font-variant-numeric:tabular-nums;font-weight:700}
.ocr-storage-bar{background:#dfe9f4;border-radius:12px;height:9px;overflow:hidden}
.ocr-storage-bar span{display:block;height:100%;background:#457ab8;border-radius:12px;transition:width .3s ease}
.ocr-storage[data-storage-state=warning] .ocr-storage-bar span{background:#ad701d}
.ocr-storage[data-storage-state=full] .ocr-storage-bar span{background:#b43f3f}
.ocr-storage-foot{display:flex;gap:7px 22px;justify-content:space-between;flex-wrap:wrap;color:#47627c}
.ocr-storage-foot small,.ocr-storage-note{font-size:12px;line-height:1.5}
.ocr-storage-note{color:#60738b;margin:0}
.ocr-storage-warning{font-size:12px;line-height:1.55;color:#82501b;border:1px solid #f2d5a6;background:#fff7e9;border-radius:9px;padding:9px 12px;margin:0}
@media(max-width:680px){.ocr-storage{padding:11px}.ocr-storage-foot{flex-direction:column;gap:5px}}
