.ocr-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 32px));max-width:none;max-height:90dvh;height:min(900px,90dvh);padding:0;border:1px solid #dce5ef;border-radius:18px;color:#243f59;background:#fff;box-shadow:0 24px 90px #142d4c44;overflow:hidden}
.ocr-dialog[open]{display:flex;flex-direction:column}.ocr-dialog::backdrop{background:#152c4b66}.ocr-dialog *{box-sizing:border-box}.ocr-dialog [hidden]{display:none!important}
.ocr-header{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 26px 16px;gap:16px;border-bottom:1px solid #e5ecf3}.ocr-header h2{font-size:21px;margin:3px 0;line-height:1.5;overflow-wrap:anywhere}.ocr-eyebrow{font-size:11px;letter-spacing:2px;color:#678198;margin:0}.ocr-class-code{font-size:12px;color:#7a8da0;margin:0}.ocr-header>button{font-size:23px!important;min-width:38px;padding:2px!important}
.ocr-tabs{display:flex;gap:8px;padding:12px 26px;border-bottom:1px solid #e5ecf3}.ocr-tabs button[aria-pressed=true]{background:#e8f2ff;border-color:#9fbfde;color:#12599a;font-weight:700}.ocr-dialog button{font:inherit;min-height:38px;border:1px solid #cfddeb;border-radius:8px;padding:8px 13px;white-space:nowrap;background:#fff;color:#24577e;cursor:pointer;box-shadow:none}.ocr-dialog button.primary{background:#155e9f;border-color:#155e9f;color:white}.ocr-dialog button:disabled{opacity:.5;cursor:not-allowed}.ocr-dialog button:focus-visible,.ocr-dialog input:focus-visible,.ocr-dialog select:focus-visible{outline:3px solid #6aabe866;outline-offset:2px}
.ocr-status{margin:0;padding:8px 26px;font-size:12px;color:#416983;background:#f4f8fc;min-height:34px;flex-shrink:0;overflow-wrap:anywhere}.ocr-status.is-error{color:#a42b24;background:#fff4f2}.ocr-status a{margin-left:8px;font-weight:600}
.ocr-readonly{font-size:12px;line-height:1.7;color:#825b21;background:#fff8e9;border:1px solid #efdfb7;border-radius:8px;padding:10px 12px}.ocr-dialog input:disabled,.ocr-dialog select:disabled{opacity:.65;cursor:not-allowed}
.ocr-body{overflow:auto;min-height:0;min-width:0;flex:1;border:0;margin:0;padding:22px 26px}.ocr-dialog h3{font-size:17px;margin:0 0 5px}.ocr-dialog h4{font-size:15px;margin:0 0 12px}.ocr-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.ocr-section-title p,.ocr-muted{font-size:12px;line-height:1.7;color:#708396;margin:4px 0}.ocr-badge{font-size:12px;background:#edf4fb;color:#376a94;white-space:nowrap;border-radius:30px;padding:4px 11px}.ocr-dialog label{font-size:12px;color:#526d85;display:flex;flex-direction:column;gap:6px}.ocr-dialog input:not([type=checkbox]):not([type=file]),.ocr-dialog select{font:inherit;background:#fff;color:#29455e;width:100%;min-height:40px;border:1px solid #cddbe9;border-radius:8px;padding:8px 10px}.ocr-dialog input[type=checkbox]{width:17px;height:17px;accent-color:#155e9f;flex-shrink:0}.ocr-dialog .ocr-check{display:flex;flex-direction:row;gap:10px;align-items:center;font-size:13px;cursor:pointer;color:#29455e}.ocr-dialog small{display:block;color:#76899b;font-size:11px;line-height:1.6}
.ocr-locked{padding:12px 15px;border:1px solid #e1e8ef;border-radius:10px;background:#f8fafc;margin-bottom:16px}.ocr-locked summary,.ocr-categories summary{cursor:pointer;font-size:13px}.ocr-locked ul{list-style:none;padding:0;margin:8px 0 0}.ocr-locked li{display:flex;justify-content:space-between;gap:20px;font-size:13px;padding:8px 0}.ocr-search{margin-bottom:16px;max-width:560px}.ocr-course-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ocr-course{border:1px solid #dce6ef;padding:14px;border-radius:10px;min-width:0}.ocr-course:has(input[data-course-enable]:checked){border-color:#78a8d3;background:#f7fbff}.ocr-course-controls{display:flex;gap:10px;align-items:end;margin-top:12px}.ocr-course-controls label{flex:1;min-width:0}.ocr-course-controls button{font-size:12px}.ocr-lessons{max-height:240px;overflow:auto;margin-top:12px;border-top:1px solid #e0e8f1;padding-top:6px}.ocr-lessons label{padding:7px 0}.ocr-preview{background:#eef6ff;border:1px solid #b7d2ec;padding:16px;border-radius:10px;margin-top:18px;font-size:13px}.ocr-preview p{font-size:12px;line-height:1.7}.ocr-empty{padding:24px;text-align:center;color:#6d8397;font-size:13px;grid-column:1/-1}
.ocr-footer{flex-shrink:0;border-top:1px solid #dce5ef;background:#fff;padding:14px 26px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ocr-footer>span{margin-right:auto;font-size:12px;color:#657e94}.ocr-material-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ocr-material-tools label:first-child{flex:2;min-width:180px}.ocr-material-tools label{flex:1;min-width:110px}.ocr-actions{display:flex;gap:10px;margin:16px 0}.ocr-inset{padding:16px;background:#f8fafc;border:1px solid #dce6ef;border-radius:10px;margin-bottom:16px}.ocr-inset>label{margin:12px 0}.ocr-source-list{max-height:260px;overflow:auto;margin:12px 0}.ocr-source-list>label{padding:10px;border-bottom:1px solid #e5ebf2}.ocr-categories{padding:12px 14px;border:1px solid #e1e8ef;border-radius:10px;margin-bottom:16px}.ocr-category-list>div,.ocr-category-new{display:flex;gap:10px;align-items:end;margin-top:12px}.ocr-category-list>div>label:first-child,.ocr-category-new>label{flex:1}.ocr-category-list>div>label:last-child{width:110px}
.ocr-material-table-scroll{max-width:100%;overflow:auto;border:1px solid #dce5ef;border-radius:10px}.ocr-dialog table{border-collapse:collapse;width:100%;min-width:620px;table-layout:fixed}.ocr-dialog th,.ocr-dialog td{padding:12px;border-bottom:1px solid #e7edf4;vertical-align:middle;text-align:left;font-size:13px;overflow-wrap:anywhere}.ocr-dialog th{background:#f5f8fb;color:#677f96;font-size:12px}.ocr-dialog th:first-child{width:42%}.ocr-dialog th:nth-child(2){width:24%}.ocr-dialog th:nth-child(3){width:16%}.ocr-dialog th:last-child{width:18%}.ocr-dialog td strong{font-weight:600}.ocr-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;font-size:12px;color:#607a91}
.ocr-candidate-search{display:flex;gap:10px;align-items:end}.ocr-candidate-search label{flex:1;min-width:0}.ocr-selected-sources{margin:12px 0;font-size:12px}.ocr-selected-sources summary{cursor:pointer}.ocr-selected-sources ul{padding:0;list-style:none}.ocr-selected-sources li{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0;overflow-wrap:anywhere}.ocr-selected-sources button{font-size:11px;min-height:30px;padding:4px 9px;flex-shrink:0}.owner-portal .owner-table-scroll td:last-child:has([data-oc-resources]){white-space:normal;min-width:240px}.owner-table-scroll [data-oc-resources]{margin:3px 0}
@media(max-width:650px){.ocr-dialog{width:calc(100vw - 16px);height:94dvh;max-height:94dvh;border-radius:12px}.ocr-header{padding:16px}.ocr-header h2{font-size:18px}.ocr-tabs{padding:10px 16px}.ocr-status{padding:8px 16px}.ocr-body{padding:16px}.ocr-course-list{grid-template-columns:1fr}.ocr-course-controls{flex-wrap:wrap}.ocr-course-controls label{flex-basis:100%}.ocr-locked li{flex-direction:column;gap:0}.ocr-footer{padding:12px 16px;gap:8px}.ocr-footer>span{flex-basis:100%}.ocr-footer>button{flex:1;font-size:12px;padding:8px 10px}.ocr-material-tools label:first-child{flex-basis:100%}.ocr-section-title{gap:10px}.ocr-pagination{justify-content:center}.ocr-inset{padding:12px}.ocr-category-list>div>label:last-child{width:90px}}
