.qualification-matrix-screen{z-index:10800!important;inset:0!important;margin:0!important;overflow-x:hidden;background:var(--bg,#f4f7f8);color:var(--ink,#173139)}
.qualification-matrix-screen main{max-width:none;width:100%;box-sizing:border-box;padding:22px 26px 40px}.qualification-matrix-screen .certificate-top{gap:12px}.qualification-matrix-screen .certificate-top p{min-width:0;white-space:normal}.qm-heading h1{font-size:25px;margin:0 0 5px}.qm-heading p{margin:0;color:var(--muted,#627780);font-size:14px}.qualification-matrix-screen [data-qm-message]{font-size:13px;min-height:18px;margin:8px 0}.qm-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.qm-toolbar label{flex:1 1 150px;min-width:0;display:grid;gap:5px;font-size:12px;font-weight:600}.qm-toolbar .qm-search{flex:3 1 270px}.qm-toolbar input,.qm-toolbar select,.qm-editor input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border,#cfdbdf);border-radius:8px;padding:10px 12px;background:var(--card,#fff);color:inherit;font:inherit;min-height:42px}
.qualification-matrix-screen button,.qm-editor button{font:600 13px inherit;cursor:pointer;border:1px solid var(--border,#cfdbdf);border-radius:8px;padding:10px 13px;min-height:42px;background:var(--card,#fff);color:inherit}.qualification-matrix-screen button:focus-visible,.qm-editor button:focus-visible,.qm-table-scroll:focus-visible{outline:3px solid #00896a;outline-offset:2px}.qualification-matrix-screen .qm-primary,.qm-editor .qm-primary{background:#008963;border-color:#008963;color:#fff;font-weight:700}.qm-editor button:disabled{opacity:.55;cursor:wait}.qm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 17px}.qm-stats article{background:var(--card,#fff);border:1px solid var(--border,#d9e3e5);border-radius:10px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}.qm-stats small{font-size:13px;font-weight:600}.qm-stats b{font-size:25px}.qm-stats .qm-stat-current{border-left:4px solid #168446}.qm-stats .qm-stat-soon{border-left:4px solid #c1810b}.qm-stats .qm-stat-expired{border-left:4px solid #c63843}.qm-scroll-hint{font-size:12px;color:var(--muted,#627780);margin:4px 0 8px}.qm-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--border,#d9e3e5);border-radius:10px;background:var(--card,#fff)}.qm-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.qm-table th,.qm-table td{border-right:1px solid var(--border,#e0e7e9);border-bottom:1px solid var(--border,#e0e7e9);padding:0;text-align:center;vertical-align:middle}.qm-table tr:last-child>*{border-bottom:0}.qm-table tr>*:last-child{border-right:0}.qm-table th:first-child{width:190px;min-width:165px;max-width:210px;text-align:left;padding:10px 14px;position:sticky;left:0;z-index:1;background:var(--card,#fff);box-shadow:2px 0 4px #12323d0a;overflow-wrap:anywhere}.qm-table thead th{background:var(--surface,#edf3f4);font-weight:700}.qm-table thead th:first-child{background:var(--surface,#edf3f4);z-index:2}.qm-table thead th:not(:first-child){min-width:95px;max-width:180px;padding:5px}.qm-table thead button{font-weight:700;border:0;background:transparent;padding:5px 8px;width:100%;overflow-wrap:anywhere;line-height:1.25}.qm-table small{display:block;font-size:11px;font-weight:400;line-height:1.35;color:var(--muted,#627780);margin-top:3px}.qm-table tbody th b{display:block;font-size:13px}.qm-table .qm-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-width:94px;min-height:57px;border:0;border-radius:0;padding:5px 7px;background:transparent;color:inherit}.qm-table button.qm-cell:hover{background:#0089630d}.qm-mark{font-size:24px;font-weight:800;line-height:1}.qm-current{color:#168446}.qm-soon{color:#af7000}.qm-expired{color:#c63843}.qm-missing{color:#86969d}.qm-muted-cell{opacity:.35}.qm-footer{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,1fr);gap:16px;margin-top:16px}.qm-key,.qm-legend{background:var(--card,#fff);border:1px solid var(--border,#d9e3e5);border-radius:10px;padding:14px 17px}.qm-footer h2{font-size:16px;margin:0 0 11px}.qm-key [data-qm-key]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px}.qm-key p{display:flex;gap:12px;margin:0;font-size:12px;align-items:baseline;overflow-wrap:anywhere}.qm-key b{color:#00815f;flex:0 0 80px}.qm-key span{min-width:0}.qm-legend p{display:flex;gap:10px;align-items:center;font-size:12px;margin:8px 0}.qm-legend .qm-mark{font-size:19px;min-width:20px;text-align:center}.qm-note{color:var(--muted,#627780);font-size:12px;line-height:1.5}.qm-secondary{display:flex;gap:9px;flex-wrap:wrap}.qm-empty{padding:32px;text-align:center;background:var(--card,#fff);border:1px solid var(--border,#d9e3e5);border-radius:10px}.qm-empty h2{font-size:18px;margin:0 0 8px}.qm-empty p{font-size:14px;margin:0}.qm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.qm-editor{padding:0;max-width:720px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);box-sizing:border-box;border:1px solid var(--border,#d3dfe2);border-radius:14px;background:var(--card,#fff);color:var(--ink,#173139);box-shadow:0 12px 60px #0e293b40;overflow:auto;font-family:inherit}.qm-editor::backdrop{background:#0b202b80}.qm-editor form{padding:20px}.qm-editor header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.qm-editor h2{font-size:21px;margin:0}.qm-editor label{display:grid;gap:5px;font-size:13px}.qm-editor .qm-definition{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr);gap:12px}.qm-editor .qm-bulk{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0 8px;padding-bottom:12px;border-bottom:1px solid var(--border,#d9e3e5)}.qm-editor .qm-bulk label:first-child,.qm-editor .qm-person>label:first-child{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}.qm-editor input[type=checkbox]{width:20px;height:20px;accent-color:#008963;flex-shrink:0}.qm-editor .qm-bulk label:first-child{flex:1 1 160px}.qm-person{display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:14px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border,#e1e8eb)}.qm-person b{display:block;font-size:14px;overflow-wrap:anywhere}.qm-person small{display:block;font-size:12px;color:var(--muted,#627780);margin-top:3px}.qm-editor [data-qm-save-message]{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.qm-editor [role=alert],.qualification-matrix-screen [role=alert]{color:#b8323d}.qm-editor footer{display:flex;justify-content:end;flex-wrap:wrap;gap:9px;position:sticky;bottom:-20px;background:var(--card,#fff);padding:14px 0 5px}.qm-editor .qm-danger{color:#b8323d;margin-right:auto}.qm-editor .qm-edit-person{line-height:1.5}.qm-editor input:disabled{opacity:.45}
@media(max-width:750px){.qualification-matrix-screen main{padding:18px 14px 32px}.qm-toolbar label{flex-basis:130px}.qm-toolbar .qm-search{flex-basis:100%}.qm-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qm-stats article{padding:10px 12px}.qm-footer{grid-template-columns:1fr}.qm-key [data-qm-key]{grid-template-columns:1fr}.qm-table th:first-child{min-width:130px;max-width:160px;padding:9px}.qm-toolbar [data-qm-add]{flex:1 1 auto}.qm-editor{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.qm-editor form{padding:16px}.qm-editor .qm-definition{grid-template-columns:1fr}.qm-person{grid-template-columns:minmax(0,1fr) 140px;gap:8px}.qm-editor footer{bottom:-16px}.qm-editor .qm-danger{width:100%}.qm-editor .qm-bulk label:nth-child(2){flex:1 1 170px}}
/* Keep this dense matrix intact within the shared compact People workspace. */
body.cp-shell #qualification-matrix-screen .qm-table{border-collapse:separate!important}
body.cp-shell #qualification-matrix-screen .qm-table :is(th,td){padding:0!important;border-right:1px solid var(--border,#e0e7e9)!important;border-bottom:1px solid var(--border,#e0e7e9)!important;text-align:center;vertical-align:middle!important}
body.cp-shell #qualification-matrix-screen .qm-table th:first-child{text-align:left;padding:8px 12px!important;background:var(--card,#fff)!important}
body.cp-shell #qualification-matrix-screen .qm-table thead th{background:#edf3f4!important}
body.cp-shell #qualification-matrix-screen .qm-table button{background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;padding:4px 7px!important;color:inherit!important}
body.cp-shell #qualification-matrix-screen .qm-table button.qm-cell{min-height:52px!important}
body.cp-shell #qualification-matrix-screen .qm-table .qm-mark{font-size:23px!important;font-weight:800!important}
body.cp-shell #qualification-matrix-screen .qm-table thead button{font-weight:700!important;min-height:44px!important}
body.cp-shell #qualification-matrix-screen .qm-primary{background:#008963!important;border-color:#008963!important;color:white!important;font-weight:700!important}
body.cp-shell #qualification-matrix-screen .qm-footer{align-items:start}
.qm-editor button{font-family:inherit;font-size:13px;font-weight:600}
