/* team.css — team management panel on the «Сотрудники» collection. */
.team{padding:8px 22px 0}
.team__legend{
  display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:12px;
  font-size:.82rem;color:var(--muted);
}
.team__legend b{color:var(--ink-2);font-weight:600}
.team__note{color:var(--muted);font-size:.9rem;margin-bottom:12px}
.team__invite{
  display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;
  background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:12px;margin-bottom:14px;
}
.team__field{display:flex;flex-direction:column;gap:4px;flex:1;min-width:220px}
.team__invite .input{width:100%}
.team__role{flex:0 0 auto;width:auto;min-width:140px}

.team__list{display:flex;flex-direction:column;gap:6px;max-width:820px}
.team__row{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);
}
.team__row--pending{border-style:dashed;background:transparent}
.team__who{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.team__email{color:var(--muted);font-size:.82rem}
.team__status{
  margin-left:auto;font-size:.76rem;padding:2px 8px;border-radius:var(--r-pill);
  background:var(--sink);color:var(--ink-2);
}
.team__status--active{background:var(--good-tint);color:var(--good)}
.team__status--invited{background:var(--accent-tint);color:var(--accent-ink)}
.team__status--disabled{background:var(--bad-tint);color:var(--bad)}
.team__rolelabel{font-size:.84rem;color:var(--ink-2);min-width:96px;text-align:right}
.avatar--ghost{background:var(--sink);color:var(--muted);display:grid;place-items:center}
