.staff-ux-dialog{border:1px solid #d8dfd8;border-radius:16px;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);color:#183b33;background:#fffefa;box-shadow:0 24px 80px #102d3340}.staff-ux-dialog::backdrop{background:#142b2870}.staff-ux-card{padding:24px;overflow:auto}.staff-ux-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.staff-ux-heading h2{font-size:24px;margin:0}.staff-ux-close{min-width:44px;min-height:44px;border:0;border-radius:10px;background:#edf2ed;font-size:24px}.staff-ux-card form{display:grid;gap:16px}.staff-ux-field{display:grid;gap:6px;font-weight:600}.staff-ux-field input:not([type=checkbox]),.staff-ux-field select{min-height:44px;width:100%;padding:10px 12px;border:1px solid #cdd9d2;border-radius:8px;background:white;color:#183b33;font-size:16px}.staff-ux-properties{margin:0;border:1px solid #dce5df;border-radius:10px;padding:12px;display:flex;flex-wrap:wrap;gap:8px}.staff-ux-properties .staff-ux-field{display:flex;flex-direction:row-reverse;align-items:center;gap:8px;min-height:44px;padding:4px 10px;border-radius:8px;background:#eff5f0}.staff-ux-properties input{width:20px;height:20px}.staff-ux-note{font-size:13px;line-height:1.7;color:#5c6d64}.staff-ux-note summary{min-height:44px;cursor:pointer}.staff-ux-lead{font-size:16px;line-height:1.7}.staff-ux-pin{display:block;font:700 48px/1.6 ui-monospace,monospace;letter-spacing:.18em;text-align:center;background:#e9f2eb;border-radius:12px;margin:20px 0}.staff-ux-status{margin:0;color:#9b3d2d;line-height:1.6}.staff-ux-card button.primary{min-height:48px;cursor:pointer}.staff-ux-back{display:inline-flex;align-items:center;min-height:44px;color:#245e50;margin-bottom:8px}.staff-ux-dialog [hidden]{display:none!important}@media(max-width:600px){.staff-ux-card{padding:16px}.staff-ux-heading h2{font-size:21px}}
.staff-ux-unrelated{display:none!important}.staff-state-ready{color:#245b4b;background:#edf6f0}.staff-state-waiting{color:#795829;background:#fffaed}.staff-pin-action{background:#174c3e;color:white!important}.account-management-heading{flex-wrap:wrap;gap:12px}.account-management-heading .muted{max-width:620px}
.staff-ux-jobrow{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.staff-ux-jobrow .staff-ux-properties{padding:0 6px 4px}.staff-ux-jobrow .staff-ux-properties .staff-ux-field{margin:0;padding:2px 4px}.staff-ux-card{padding:20px}.staff-ux-card form{gap:12px}.staff-ux-card>.staff-ux-note{margin:12px 0}.staff-ux-heading{margin-bottom:8px}@media(max-width:400px){.staff-ux-jobrow{gap:8px}.staff-ux-jobrow legend{font-size:13px}.staff-ux-jobrow .staff-ux-field{font-size:13px}}
.auth-card:has(#activation-form){padding:24px}.auth-card:has(#activation-form) .account-details{margin:8px 0}.auth-card:has(#activation-form) .account-details>div{padding:10px}.auth-card:has(#activation-form) .stack-form{gap:10px}.auth-card:has(#activation-form) .tenant-avatar{display:none}.auth-card:has(#activation-form) h1{font-size:26px}.auth-card:has(#activation-form) .staff-ux-note{margin:0}.auth-card:has(#activation-form) .staff-ux-note summary{display:flex;align-items:center;min-height:44px}
.staff-remove-button{color:#963f33!important;background:#fff7f4!important;border-color:#e3c9c2!important}.staff-remove-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0 12px}.staff-remove-actions button{min-height:44px}.staff-remove-confirm{background:#963f33!important;color:#fff!important;border:1px solid #963f33!important;border-radius:8px;padding:10px 16px}.staff-remove-confirm:disabled{opacity:.6}

/* Keep the staff list and its actions within the available screen. */
.workspace.staff-page{height:calc(100dvh - 68px);min-height:350px;max-width:1440px;display:flex;flex-direction:column;gap:8px;padding:10px 20px 12px}
main:has(>.staff-page){min-height:0}
.staff-page>.staff-ux-back{min-height:24px;margin:0;font-size:12px;align-self:flex-start}
.workspace .member-management-compact{align-items:center;flex-direction:row;gap:8px;margin:0;padding:0;border:0}
.member-management-compact h2{margin:0;font-family:inherit;font-size:21px}
.member-management-compact .eyebrow,.member-management-compact .muted{display:none}
.member-management-compact .mobile-access-settings-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;min-width:0;max-width:100%}
#member-management.member-management-compact button{min-height:34px;width:auto;padding:7px 10px;font-size:12px;white-space:normal}
.member-management-compact>button{flex:0 0 auto}
.member-list-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px}
.member-list-summary #role-summary{display:flex;flex-wrap:wrap;gap:16px;margin:0}
.member-list-summary .summary-card{display:flex;flex-direction:row;align-items:baseline;gap:5px;padding:0;border:0;background:none;border-radius:0}
.member-list-summary .summary-card strong{display:inline;font-size:16px;line-height:1.25}
.member-list-summary .summary-card span{font-size:12px}
.member-list-help{position:relative;font-size:12px;color:#576b63}
.member-list-help summary{cursor:pointer;min-height:26px;display:flex;align-items:center;gap:4px;text-decoration:underline;text-underline-offset:3px}
.member-list-help summary:before{content:'?';display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid #84978c;border-radius:50%;font-size:10px}
.member-list-help p{max-width:560px;margin:4px 0;font-size:12px;line-height:1.5}
.staff-page>#members-message:empty{display:none}
.staff-page>#members-message{margin:0;font-size:12px}
.member-list-card{min-width:0;max-width:100%;border-radius:10px;box-shadow:none;overflow:visible}
.staff-page>.member-list-card{flex:1;min-height:160px;display:flex;flex-direction:column}
.member-list-card .table-toolbar{flex:none;flex-direction:row;gap:8px;padding:8px 10px}
.member-list-card .table-toolbar input,.member-list-card .table-toolbar select{min-width:0;min-height:34px;margin:0;padding:6px 10px;font-size:13px}
.member-list-card .table-toolbar input{flex:1;max-width:360px}
.member-list-card .table-toolbar select{flex:0 1 160px;max-width:160px}
.member-list-card .table-scroll{min-height:0;width:100%;overflow:auto}
.staff-page>.member-list-card .table-scroll{flex:1}
.member-list-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.member-list-table th,.member-list-table td{padding:5px 10px;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.35;vertical-align:middle}
.member-list-table th{position:sticky;top:0;z-index:1;background:#f4f7f4;font-size:11px;font-weight:700}
.member-list-table th:nth-child(1){width:29%}
.member-list-table th:nth-child(3){width:18%}
.member-list-table th:nth-child(5){width:35%}
.member-list-table th:nth-child(6){width:18%}
.member-list-table th:nth-child(2),.member-list-table th:nth-child(4),.member-list-table td:nth-child(2),.member-list-table td:nth-child(4){display:none}
.member-list-table .person strong{font-size:13px;line-height:1.35}
.member-list-table .person small:empty{display:none}
.member-list-table .member-login-id,.member-list-table .member-position{display:block;max-width:100%;margin-top:2px;color:#69776f;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.member-list-table .badge{min-height:0;max-width:100%;padding:3px 8px;font-size:11px;white-space:normal}
.member-list-table .row-actions{justify-content:flex-end;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}
.member-list-table .row-actions>button{min-height:32px;padding:5px 8px;font-size:12px;white-space:nowrap}
.member-row-menu{position:fixed;inset:auto;margin:0;z-index:1000;width:min(250px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:6px;border:1px solid #ccd8d0;border-radius:10px;background:#fffefa;box-shadow:0 8px 28px #17352b33}
.member-row-menu[popover]:not(:popover-open){display:none}
.member-row-menu button{display:block;width:100%;min-height:38px;margin:0 0 3px;padding:9px 10px!important;text-align:left;white-space:normal!important;font-size:13px!important;border-radius:6px!important}
.member-list-pager{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:7px;padding:7px 10px;border-top:1px solid #dde5de;font-size:12px;background:#fafcf9;border-radius:0 0 10px 10px}
.member-list-pager>span{margin-right:auto;color:#52645a}
.member-list-pager button{min-height:30px;padding:4px 11px;font-size:12px}
@media(max-width:1000px){.member-management-compact>div:first-child{flex:1 0 100%}.member-list-table th:nth-child(1){width:29%}.member-list-table th:nth-child(3){width:18%}.member-list-table th:nth-child(5){width:33%}.member-list-table th:nth-child(6){width:20%}}
@media(max-width:680px){
 .workspace.staff-page{padding:8px;gap:6px;min-height:500px}
 .member-management-compact h2{font-size:19px}
 .member-management-compact .mobile-access-settings-actions{flex:1;gap:4px}
 .member-management-compact button{padding:6px 8px;font-size:11px;min-height:36px}
 .member-management-compact [data-mobile-access]{display:none}
 .member-list-summary{align-items:flex-start}
 .member-list-summary #role-summary{gap:10px}
 .member-list-table thead{display:none}
 .member-list-table,.member-list-table tbody{display:block;width:100%}
 .member-list-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:9px 10px;border-bottom:1px solid #e0e7e1}
 .member-list-table td{display:block;min-width:0;border:0;padding:0;font-size:12px}
 .member-list-table td:first-child{grid-column:1;grid-row:1}
 .member-list-table td:nth-child(3){grid-column:1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:5px}
 .member-list-table td:nth-child(5){grid-column:1/-1;grid-row:3;padding:5px 7px;margin-top:3px;border-radius:5px;font-size:11px}
 .member-list-table td:nth-child(6){grid-column:2;grid-row:1/3;align-self:center;max-width:95px}
 .member-list-table .member-position{margin:0;font-size:11px}
 .member-list-table .row-actions{flex-direction:column;gap:3px}
 .member-list-table .row-actions>button{min-height:36px;padding:5px 9px}
 .member-list-card .table-toolbar{padding:7px;gap:6px}
 .member-list-card .table-toolbar select{flex-basis:120px}
 .member-list-pager{padding:6px 8px}
 .member-list-pager button{min-height:36px}
}
@media(pointer:coarse){.member-row-menu button{min-height:44px}.member-list-table .row-actions>button,.member-list-pager button{min-height:40px}}
