.team-filters,
.team-client-controls,
.team-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.team-filters label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  max-width: 100%;
}
.team-filters select,
.team-filters input,
.team-client-controls input,
.team-client-controls select {
  min-width: 0;
  max-width: 100%;
}
.team-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding-block: 16px;
  gap: 16px;
  margin-block: 20px;
}
.team-totals > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
}
.team-totals > div > span {
  font-size: 13px;
  color: var(--muted);
}
.team-number {
  padding: 4px 8px;
  min-width: 40px;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #126449;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.team-totals .team-number {
  font-size: 28px;
  line-height: 1.2;
}
.team-channels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.team-channels .channel-mark {
  position: relative;
  flex-shrink: 0;
}
.team-channels [data-health]::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid white;
  border-radius: 50%;
  background: #737b78;
}
.team-channels [data-health="ok"]::after {
  background: #21815a;
}
.team-channels [data-health="attention"]::after {
  background: #bc382f;
}
.team-channels [data-health="stale"]::after {
  background: #bd8012;
}
.team-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: end;
  margin-block: 16px;
}
.team-call-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.team-call-review .message-text {
  white-space: pre-wrap;
}
.work-chat.team-focused {
  grid-template-columns: minmax(0, 1fr);
}
.team-focused .chat-clients {
  display: none;
}
.team-focused .chat-back {
  display: inline-flex;
}
[data-page="team"] th,
[data-page="clients"] th {
  max-width: 180px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
[data-page="team"] table,
[data-page="clients"] table {
  min-width: 1050px;
}
[data-page="team"] th:first-child,
[data-page="clients"] th:first-child {
  min-width: 180px;
}
.team-evidence table {
  min-width: 950px;
}
[data-page="team"] .table-wrap,
[data-page="clients"] .table-wrap {
  max-width: 100%;
}
[data-page="team"] details,
[data-page="clients"] details {
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.team-custom[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .team-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-filters > label {
    width: calc(50% - 6px);
  }
  .team-filters select,
  .team-custom input {
    width: 100%;
  }
  .team-custom,
  .team-client-controls,
  .team-client-controls > input,
  .team-client-controls > select {
    max-width: 100%;
  }
  .team-pager {
    justify-content: center;
  }
}
