.wf-role-picker{margin:14px 0;padding:12px;border:1px solid #c8d9cf;border-radius:12px;background:#f7faf8;color:#203d30;font-size:13px;line-height:1.45}
.wf-role-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.wf-role-picker-heading strong{font-size:14px}.wf-role-count{font-size:11px;white-space:nowrap;color:#52715f}
.wf-role-filters{display:grid;gap:8px;margin-bottom:10px}
.wf-role-picker input[type=search],.wf-role-picker select,.wf-role-dialog input[type=search],.wf-role-dialog textarea{width:100%;box-sizing:border-box;min-width:0;padding:9px 10px;border:1px solid #b9ccc0;border-radius:7px;background:#fff;color:#203d30;font:inherit}
.wf-role-results{max-height:260px;overflow:auto;border:1px solid #dce7df;border-radius:8px;background:#fff;overscroll-behavior:contain}
.wf-role-family h4{margin:0;padding:9px 11px;background:#eaf1ec;font-size:11px;line-height:1.4;color:#466452;position:sticky;top:0;z-index:1}
.wf-role-choice{display:flex!important;align-items:flex-start;gap:9px;padding:8px 11px;border-bottom:1px solid #edf2ee;cursor:pointer;color:#243f30!important;font-size:12px!important;font-weight:400!important}
.wf-role-choice:hover{background:#f1f7f3}.wf-role-choice:has(input:checked){background:#e5f2e9}
.wf-role-picker input[type=checkbox],.wf-role-dialog input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px;flex:none;margin:1px 0 0!important;accent-color:#24764c}
.wf-role-help{font-size:12px;color:#60766a;line-height:1.5;margin:9px 0 0}.wf-role-warning{color:#946015!important}
.wf-role-selection{display:grid;gap:7px;margin-bottom:10px}.wf-role-selection:empty{display:none}
.wf-role-selected{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;padding:10px;border:1px solid #c2d8c9;border-radius:8px;background:#fff}
.wf-role-selected>div:first-child{min-width:0;flex:1 1 160px}.wf-role-selected strong,.wf-role-selected small{display:block;overflow-wrap:anywhere}.wf-role-selected strong{font-size:12px}.wf-role-selected small{font-size:11px;margin-top:3px}
.wf-role-selected-controls{display:flex;gap:6px;align-items:center}.wf-role-selected-controls button{font:inherit;font-size:11px;padding:6px 8px;border:1px solid #c7d8cd;border-radius:6px;background:#edf5ef;color:#245939;cursor:pointer;min-height:30px}
.wf-role-selected-controls .wf-role-remove{font-size:18px;padding:1px 9px;background:#fff}.wf-role-picker button:disabled{opacity:.55;cursor:default}
.wf-role-overlay{position:fixed;inset:0;z-index:25000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(12,31,22,.48);box-sizing:border-box;border:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none}
.wf-role-overlay::backdrop{background:transparent}
.wf-role-dialog{width:900px;max-width:100%;max-height:calc(100dvh - 40px);overflow:auto;background:#fff;border:1px solid #b8cfbf;border-radius:16px;box-shadow:0 24px 85px #122b2455;padding:24px;color:#203d30;font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;box-sizing:border-box;overscroll-behavior:contain}
.wf-role-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.wf-role-dialog h2{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.wf-role-close{flex:none;background:none;border:0;color:#45614e;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.wf-role-binding-form{margin-top:18px}.wf-role-binding-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.wf-role-binding-field{margin:0;min-width:0;padding:12px;border:1px solid #d1dfd5;border-radius:10px}.wf-role-binding-field legend{font-weight:600;padding:0 5px}
.wf-role-binding-list{height:220px;overflow:auto;margin-top:8px;overscroll-behavior:contain}.wf-role-binding-choice{display:flex;gap:10px;align-items:flex-start;padding:8px 3px;border-bottom:1px solid #edf2ee;cursor:pointer;overflow-wrap:anywhere}
.wf-role-binding-choice span{min-width:0}.wf-role-binding-choice small{display:block;font-size:11px;color:#6a7b70;margin-top:2px}
.wf-role-declared-emails{display:grid;gap:7px;margin-top:18px}.wf-role-declared-emails>span{font-weight:600}.wf-role-dialog textarea{resize:vertical;min-height:80px}.wf-role-declared-emails .wf-role-help{margin:0}
.wf-role-binding-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.wf-role-binding-actions button{padding:10px 14px;border:1px solid #bdcec2;border-radius:8px;background:#fff;font:inherit;color:#345340;cursor:pointer}.wf-role-binding-actions .wf-role-save{color:#fff;background:#28734d;border-color:#28734d}
.wf-role-binding-actions button:disabled{opacity:.6;cursor:wait}.wf-role-feedback{min-height:20px;font-size:12px;line-height:1.5;color:#52705e;margin:13px 0 0}
.wf-role-picker :focus-visible,.wf-role-dialog :focus-visible{outline:3px solid #8cbe9d;outline-offset:2px}
@media(max-width:620px){.wf-role-overlay{padding:8px}.wf-role-dialog{padding:16px;max-height:calc(100dvh - 16px);border-radius:12px}.wf-role-dialog h2{font-size:18px}.wf-role-binding-columns{grid-template-columns:1fr;gap:12px}.wf-role-binding-list{height:150px}.wf-role-binding-actions{flex-wrap:wrap}.wf-role-selected{align-items:flex-start}.wf-role-selected-controls{flex-wrap:wrap}.wf-role-picker{padding:10px}}

/* Exact people associated with each métier, not all agents in its broad department. */
.wf-role-choice-text{flex:1;min-width:0;display:grid;gap:3px}
.wf-role-choice-label{display:block;font-weight:550;color:#244334}
.wf-role-holders{display:grid;gap:3px;margin-top:3px}
.wf-role-holder,.wf-role-service-email,.wf-role-no-holder{
 display:block;font-size:11px;line-height:1.45;overflow-wrap:anywhere;font-weight:450;color:#5c7364
}
.wf-role-holder{color:#296449;font-weight:620}
.wf-role-service-email{color:#5d727b}
.wf-role-no-holder{color:#8a7251;font-style:italic}

/* Role recipient assignment: the LDAP group scopes the list to its own
   active GED-linked members; distinguish supervisor and subordinate. */
.wf-role-binding-choice .wf-role-ldap-role {
  display:inline-block;
  width:max-content;
  margin-top:3px;
  padding:2px 7px;
  border-radius:5px;
  font-weight:760;
  color:#26664a;
  background:#e8f5ec;
  border:1px solid #c4e0ce;
}
