#staffUserTable{width:100%;border-collapse:collapse}#staffUserTable tr[hidden]{display:none!important}#staffUserTable .team-child{background:#f6f8fb}#staffUserTable .team-child .user-cell{padding-left:20px;border-left:1px solid #cbd5e1;position:relative}#staffUserTable .team-child .user-cell:before{content:'';width:12px;height:1px;background:#cbd5e1;position:absolute;left:0;top:50%}.team-count{display:inline-block;margin-left:10px;background:#e8edf3;border-radius:20px;padding:4px 9px;font-size:11px}.team-toggle-cell button{width:30px;height:30px;padding:0}.team-child td{border-bottom:1px solid #e4e9f0}body.dark #staffUserTable .team-child{background:#16191e}body.dark .team-count{background:#252a32}.user-stats-grid{display:none!important}.user-management-actions{gap:8px}#staffUserTable td:nth-child(4),#staffUserTable th:nth-child(4){display:none}.user-cell>div small{display:block}.user-cell{gap:12px}

body:has(#staffUserTable) .mc-page-heading{display:none!important}body:has(#staffUserTable) .user-page-header{display:block!important;margin-bottom:22px!important}body:has(#staffUserTable) .user-page-header .mc-page-heading{display:block!important}body:has(#staffUserTable) .crumbline,body:has(#staffUserTable) .title-icon{display:none!important}body:has(#staffUserTable) .filter-panel .searchrow{display:flex!important;gap:16px}body:has(#staffUserTable) .filter-panel .searchbox{flex:1}body:has(#staffUserTable) .filter-panel .search-btn{min-width:164px;background:#11161c!important;color:#fff!important}body:has(#staffUserTable) .bulkbar{display:none!important}#staffUserTable td,#staffUserTable th{padding:16px 12px}#staffUserTable td:nth-child(2),#staffUserTable th:nth-child(2){width:35px}#staffUserTable .row-actions button[data-add-staff]{width:auto!important;min-width:90px!important;font-size:12px!important;white-space:nowrap}#staffUserTable .team-child td:first-child{border-left:1px solid #cbd5e1}#staffUserTable .team-child .table-avatar{margin-left:12px}

#staffUserTable .team-site-group td{padding:12px 20px;background:#edf2f8;border-top:1px solid #d9e2ed;border-bottom:1px solid #d9e2ed}#staffUserTable .team-site-group td>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.team-site-group strong{font-size:12px;letter-spacing:.4px}.team-site-group span{font-size:11px;color:#64748b}.team-site-group button{margin-left:auto;border:1px solid #ccd8e7;border-radius:8px;padding:8px 12px;background:#fff;color:#172435;font-weight:600;cursor:pointer}.team-site-group small{margin-left:auto;color:#9a4d20}body.dark #staffUserTable .team-site-group td{background:#1c2531;border-color:#344255}body.dark .team-site-group button{background:#121923;color:#e9f0fa;border-color:#3a4a60}body.dark .team-site-group span{color:#a2b1c6}

/* V8.254: bounded columns and readable long identities */
#staffUserTable{table-layout:fixed;min-width:920px}
#staffUserTable th:nth-child(1){width:40px}#staffUserTable th:nth-child(2){width:34px}#staffUserTable th:nth-child(3){width:27%}#staffUserTable th:nth-child(5){width:22%}#staffUserTable th:nth-child(6){width:100px}#staffUserTable th:nth-child(7){width:88px}#staffUserTable th:nth-child(8){width:18%}#staffUserTable th:nth-child(9){width:190px}
#staffUserTable td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle}
#staffUserTable .user-cell{min-width:0;width:100%;align-items:center}
#staffUserTable .user-cell>.table-avatar{flex:0 0 40px;width:40px;height:40px}
#staffUserTable .user-cell>div:not(.table-avatar){min-width:0;flex:1}
#staffUserTable .user-cell b{white-space:normal!important;overflow-wrap:anywhere;line-height:1.5;display:inline}
#staffUserTable .row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#staffUserTable .team-child .user-cell{padding-left:18px!important}
#staffUserTable [data-role=SUPERADMIN]{background:var(--card,#f8fafc)}
#staffUserTable td .row-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-end!important;width:100%!important}
#staffUserTable .row-actions>button,#staffUserTable .row-actions>.row-menu{flex:0 0 auto!important}
#staffUserTable .row-actions button[data-add-staff]{min-width:104px!important;padding:8px 10px!important;height:auto!important;overflow:visible!important}
#staffUserTable .role-badge,#staffUserTable .status-pill{white-space:nowrap!important;overflow-wrap:normal!important;font-size:10px!important;padding:5px 7px!important}
