/* Vanilla IP panels: deliberately scoped to V162 components. */
.v162-staff-card,.v162-calls,.v162-maintenance{background:#fff;border:1px solid #d9e5ef;border-radius:14px;padding:18px;margin:16px 0;min-width:0;color:#173b58}
.v162-staff-card h3,.v162-calls h3,.v162-maintenance h2{margin:0 0 9px;font-size:18px;color:#153e5a}
.v162-muted{font-size:13px;line-height:1.5;color:#5b7184;max-width:900px;margin:8px 0}
.v162-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0}
.v162-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#47617a;min-width:140px}
.v162-controls input{box-sizing:border-box;max-width:260px;width:100%;border:1px solid #c9d9e7;border-radius:8px;background:#fff;padding:9px;font:inherit;color:#173b58}
.v162-primary,.v162-secondary{appearance:none;cursor:pointer;border-radius:8px!important;min-height:36px!important;padding:8px 13px!important;width:auto!important;font-size:13px!important;font-weight:650!important;white-space:normal}
.v162-primary{background:#126398!important;border:1px solid #126398!important;color:white!important}
.v162-secondary{background:white!important;border:1px solid #b5cbdc!important;color:#144c77!important}
.v162-primary:disabled,.v162-secondary:disabled{opacity:.55;cursor:not-allowed}
.v162-table-wrap{overflow-x:auto;max-width:100%;margin:12px 0}
.v162-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;min-width:680px}
.v162-table th,.v162-table td{padding:10px;border-bottom:1px solid #e5edf4;vertical-align:top;overflow-wrap:anywhere}
.v162-table thead{background:#eef5fa;color:#315471}.v162-table tbody tr:hover{background:#f6fafd}
.v162-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin:10px 0}
.v162-small{font-size:12px;color:#64798a}
.v162-customer-choice{width:100%;display:block;text-align:left;border:1px solid #d4e0eb;border-radius:8px;background:white;color:#284d68;padding:10px;margin:5px 0;cursor:pointer;font-size:13px}
.v162-customer-choice[aria-pressed="true"]{background:#e3f3fc;border-color:#2676a3;font-weight:700}
#v162-match-modal{border:1px solid #bcd3e3;border-radius:14px;max-width:min(600px,92vw);width:100%;max-height:85vh;overflow:auto;padding:20px;box-sizing:border-box}
#v162-match-modal::backdrop{background:rgba(6,27,42,.5)}
#v162-customer-choices{max-height:38vh;overflow-y:auto;margin:8px 0}
#v162-match-modal input{max-width:100%;width:100%;box-sizing:border-box;border:1px solid #bcd3e3;border-radius:8px;padding:10px}
#v162-match-modal menu{display:flex;justify-content:flex-end;gap:10px;padding:0;margin:15px 0 0}
@media(max-width:600px){.v162-controls>*{width:100%}.v162-controls input{max-width:100%}.v162-staff-card,.v162-calls,.v162-maintenance{padding:13px}.v162-table{min-width:600px}}

/* V166: opaque, stable sticky table headings and keyboard-accessible page sorting. */
.v162-table-wrap{position:relative;isolation:isolate;overscroll-behavior:contain}
.v162-staff-card .v162-table-wrap{max-height:min(62vh,650px);overflow:auto}
.v162-table{border-collapse:separate;border-spacing:0}
.v162-table thead th{position:sticky;top:0;z-index:5;background:#eef5fa;box-shadow:0 1px 0 #c8dbe9;color:#315471;white-space:nowrap}
.v162-table .v162-sort-button{display:inline-flex!important;align-items:center;gap:7px;cursor:pointer;text-align:left;width:auto!important;max-width:100%;min-height:30px!important;margin:-5px -6px;padding:5px 6px!important;border:0!important;border-radius:5px!important;box-shadow:none!important;background:transparent!important;color:#234b69!important;font:inherit!important;font-weight:750!important;white-space:nowrap!important;line-height:1.2!important}
.v162-table .v162-sort-button:hover{background:#d7eafa!important}
.v162-table .v162-sort-button:focus-visible{outline:2px solid #1785c4!important;outline-offset:1px!important}
.v162-sort-arrow{display:inline-block;min-width:11px;font-size:11px;font-weight:800;color:#276d9c}
.v162-sort-note{color:#4c6880;font-size:12px;line-height:1.45;margin:8px 0 4px}
.v162-table-wrap:focus-visible{outline:2px solid #1785c4;outline-offset:2px}

/* v204: admin-only confidence review and deliberate sweep controls. */
.v204-matching-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:16px 0 7px}
.v204-matching-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:180px;font-size:13px;font-weight:650;color:#254b68}
.v204-matching-toolbar input,.v204-matching-toolbar select{box-sizing:border-box;min-height:38px;width:100%;border:1px solid #bed3e3;border-radius:8px;background:#fff;padding:8px 10px;font:inherit}
.v204-tick{width:18px;height:18px;accent-color:#1176b9;cursor:pointer}
.v204-tick:disabled{opacity:.25;cursor:not-allowed}
.v204-confidence{font-size:12px;font-weight:750;padding:4px 8px;border-radius:12px;display:inline-block;white-space:nowrap}
.v204-definite{background:#e5f6ed;color:#12683c}.v204-likely{background:#fff3d8;color:#80530b}.v204-possible{background:#eef4ff;color:#315f92}.v204-linked{background:#e9f0f5;color:#455e73}.v204-review{background:#f1f3f7;color:#55647a}
.v204-bulk-modal{width:min(800px,94vw);box-sizing:border-box;max-height:88vh;overflow:auto;border:1px solid #bcd3e3;border-radius:14px;padding:22px;color:#173b58}
.v204-bulk-modal::backdrop{background:rgba(6,27,42,.55)}
.v204-bulk-list{max-height:45vh;overflow:auto;border:1px solid #e1eaf1;border-radius:8px;margin:14px 0}
.v204-bulk-list .v204-pair{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:8px;padding:10px;border-bottom:1px solid #e5edf4;font-size:13px}
.v204-pair:last-child{border-bottom:0}.v204-pair span:nth-child(2){color:#2883af;text-align:center}
.v204-bulk-ack{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:650;line-height:1.4}
.v204-bulk-ack input{width:18px;height:18px;flex:0 0 18px;accent-color:#126398}
.v204-bulk-modal menu{display:flex;justify-content:flex-end;gap:10px;padding:0;margin:15px 0 0}
@media(max-width:700px){.v204-matching-toolbar>*{flex:1 1 100%}.v204-bulk-list .v204-pair{grid-template-columns:1fr;gap:3px}.v204-pair span:nth-child(2){display:none}}

/* v205: accessible sortable headings and no action-button letter wrapping. */
.v205-match-table{min-width:1020px;table-layout:auto}
.v205-match-table .v205-sort-heading{white-space:nowrap!important;overflow-wrap:normal!important}
.v205-match-table .v205-sort-button{
 display:inline-flex!important;gap:7px!important;align-items:center!important;justify-content:flex-start!important;
 width:auto!important;max-width:none!important;min-width:0!important;min-height:32px!important;
 margin:-5px -6px!important;padding:5px 6px!important;
 border:0!important;border-radius:5px!important;box-shadow:none!important;
 background:transparent!important;color:#234b69!important;font:inherit!important;
 font-weight:750!important;line-height:1.25!important;white-space:nowrap!important;
 word-break:normal!important;overflow-wrap:normal!important;cursor:pointer!important;
}
.v205-match-table .v205-sort-button:hover{background:#d7eafa!important}
.v205-match-table .v205-sort-button:focus-visible{outline:2px solid #1785c4!important;outline-offset:1px!important}
.v205-sort-icon{display:inline-block;min-width:12px;text-align:center;font-size:12px;color:#246b98}
.v205-match-table .v205-action-cell{
 width:1%;min-width:142px;white-space:nowrap!important;
 word-break:normal!important;overflow-wrap:normal!important;
}
.v205-match-table .v205-row-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:128px!important;min-width:128px!important;
 max-width:none!important;min-height:38px!important;padding:8px 12px!important;
 white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
 line-height:1.25!important;
}
.v204-matching-toolbar>button{
 white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
 min-width:max-content!important;width:auto!important;
}
@media(max-width:700px){
 .v204-matching-toolbar>button{min-width:0!important;white-space:normal!important}
}
