/* Staff roles share one aligned switch list in create and edit. */
.manager-team-role-list { --manager-team-role-gutter:24px; max-width:100%; }
.manager-team-role-row { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px var(--manager-team-role-gutter); border-bottom:1px solid #E5EAF2; cursor:pointer; }
.manager-team-role-row > span { display:grid; gap:4px; }
.manager-team-role-row strong { font-weight:600; }
.manager-team-role-row small,.manager-team-role-list > p { color:#64748b; font-size:12px; }
.manager-team-role-switch { appearance:none; -webkit-appearance:none; flex:0 0 36px; width:36px; height:20px; margin:0; padding:0; border:0; border-radius:20px; background:#cbd5e1; position:relative; cursor:pointer; }
.manager-team-role-switch::before { content:""; position:absolute; width:16px; height:16px; left:2px; top:2px; border-radius:50%; background:#fff; transition:transform .15s ease; }
.manager-team-role-switch:checked { background:#2F6BFF; }
.manager-team-role-switch:checked::before { transform:translateX(16px); }
.manager-team-role-switch:focus-visible { outline:2px solid #2F6BFF; outline-offset:3px; }
.manager-team-role-switch:disabled { opacity:.5; cursor:default; }


@media(max-width:600px) { .manager-configuration .manager-team-role-list { --manager-team-role-gutter:16px; } }

/* Both tabs reach the person card edges; content keeps its inset. */
#manager-app .manager-specialist-editor :is([data-specialist-panel="services"],[data-specialist-panel="access"]) { padding-left:0; padding-right:0; }
#manager-app .manager-team-role-list > h3 { margin-left:var(--manager-team-role-gutter); margin-right:var(--manager-team-role-gutter); }
#manager-app .manager-team-role-list > p { margin-left:var(--manager-team-role-gutter); margin-right:var(--manager-team-role-gutter); }
#manager-app .manager-specialist-editor .manager-specialist-services-table { width:100%; max-width:none; margin-inline:0; box-sizing:border-box; }
#manager-app .manager-specialist-editor .manager-specialist-services-table > :is(.desktop-table-head,.desktop-table-row) { width:100%; margin-inline:0; box-sizing:border-box; }

/* The create form picker must not inset the table a second time. */
#manager-app .manager-specialist-editor [data-specialist-panel="services"] > .desktop-resource-service-picker { margin:0; padding:0; border-radius:0; }
#manager-app .manager-specialist-editor .manager-specialist-services-table > :is(.desktop-table-head,.desktop-table-row) { padding-inline:24px; }
@media(max-width:600px) {
  #manager-app .manager-specialist-editor .manager-specialist-services-table > :is(.desktop-table-head,.desktop-table-row) { padding-inline:16px; }
}

#manager-app .manager-specialist-services-table .manager-catalog-action-heading { text-align:left; justify-self:start; }
#manager-app .manager-specialist-services-table .manager-visit-open { justify-self:start; text-align:left; }

#manager-app .manager-specialist-editor [data-specialist-panel="services"]>.manager-heading-with-help{margin-top:12px}
#manager-app .manager-specialist-editor [data-specialist-panel="access"] .manager-team-role-row strong{font-size:14px;line-height:1.5;font-weight:500}
#manager-app .manager-specialist-editor [data-specialist-panel="access"] .manager-team-role-row:last-child{border-bottom:0}

/* Roles use the service table's typography, row spacing, dividers and switches. */
#manager-app .manager-team-role-table .manager-team-role-grid {
  display:grid;
  min-width:0;
  grid-template-columns:minmax(140px,1.4fr) minmax(0,2fr) 100px;
  gap:1rem;
  align-items:center;
}
#manager-app .manager-team-role-table .manager-team-role-switch::before { content:none; }
#manager-app .manager-team-role-table .manager-team-role-switch { appearance:none; padding:0; border:0; }
#manager-app .manager-team-role-list > h3 { margin-top:12px; }
@media(max-width:760px) {
  #manager-app .manager-team-role-table .desktop-table-head { display:none; }
  #manager-app .manager-team-role-table article.manager-team-role-grid {
    grid-template-columns:minmax(0,1fr) auto;
    gap:.75rem 1rem;
  }
  #manager-app .manager-team-role-table article.manager-team-role-grid > span:nth-child(1) { grid-column:1; grid-row:1; }
  #manager-app .manager-team-role-table article.manager-team-role-grid > span:nth-child(2) { grid-column:1; grid-row:2; }
  #manager-app .manager-team-role-table article.manager-team-role-grid > span:nth-child(3) { grid-column:2; grid-row:1 / 3; align-self:center; }
  #manager-app .manager-team-role-table article.manager-team-role-grid > span::before { display:none; }
}
