/* Connection-owned employee picker; keep the cabinet's flat work surface. */
#crm-staff-content{min-width:0}
#crm-staff-form{max-width:760px;gap:20px}
.crm-staff-picker{min-width:0}
.crm-staff-picker .field{margin:0}
.crm-staff-search-status{min-height:22px;margin:8px 0;color:var(--muted);font-size:13px}
.crm-staff-results{list-style:none;padding:0;margin:0;max-height:272px;overflow-y:auto;border-block:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#b4c5df transparent}
.crm-staff-results:empty{display:none}
.crm-staff-results li+li{border-top:1px solid var(--line)}
.crm-staff-option{display:flex;align-items:center;gap:16px;width:100%;min-height:64px;padding:12px 10px;border:0;background:white;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.crm-staff-option>span:first-child{flex:1;min-width:0}
.crm-staff-option strong,.crm-staff-option small{display:block;overflow-wrap:anywhere}
.crm-staff-option strong{font-size:15px;font-weight:600}
.crm-staff-option small{margin-top:3px;font-size:12px;color:var(--muted)}
.crm-staff-option>span:last-child{font-size:13px;color:var(--blue);flex-shrink:0}
.crm-staff-option:hover{background:var(--soft-blue,#eaf1ff)}
.crm-staff-option:focus-visible{outline:3px solid var(--blue);outline-offset:-3px;background:var(--soft-blue,#eaf1ff)}
.crm-staff-selected{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 0;border-block:1px solid var(--line)}
.crm-staff-selected>div{min-width:0;overflow-wrap:anywhere}
.crm-staff-selected strong,.crm-staff-selected small{display:block}
.crm-staff-selected small{font-size:13px;color:var(--muted);margin-top:3px}
.crm-staff-selected .btn{flex-shrink:0}
.crm-staff-fallback{margin-top:10px}
.crm-staff-fallback summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.crm-staff-fallback .form-grid{margin-top:12px}
#crm-staff-form .crm-staff-submit-note{margin:0;font-size:13px;color:var(--muted);max-width:70ch}
#crm-staff-content .team-table{min-width:0;table-layout:fixed;width:100%}
#crm-staff-content .team-table th:first-child{width:52%}
#crm-staff-content .team-table th:last-child{width:28%}
#crm-staff-content .team-table td{overflow-wrap:anywhere}
#crm-staff-content .team-table .btn{min-height:44px;white-space:normal;padding-inline:6px}
#crm-staff-content [hidden]{display:none!important}
@media(max-width:620px){
 #crm-staff-form .form-grid{grid-template-columns:minmax(0,1fr)}
 #crm-staff-form input,#crm-staff-form select{font-size:16px}
 #crm-staff-content .team-table th,#crm-staff-content .team-table td{padding:12px 6px;font-size:13px}
 #crm-staff-content .team-table small{font-size:12px}
 .crm-staff-selected{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .crm-staff-option{gap:10px}
}
