/* ─── Team Overview ─────────────────────────────────────────── */

.team-overview {
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* Card */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.15s ease;
}
.team-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Header: avatar + meta */
.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.team-card-meta {
  min-width: 0;
}

.team-crew-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-job-counts {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}
.team-count-sep {
  opacity: 0.5;
}

/* Job list inside card */
.team-job-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius, 8px);
  cursor: pointer;
  transition: background 0.12s ease;
}
.team-job-row:hover {
  background: var(--surface-hover, rgba(0,0,0,0.04));
}

.team-job-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-job-customer {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-job-address {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-no-jobs {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  padding: 0.5rem 0;
}

.team-overflow {
  font-size: 0.8rem;
  color: var(--accent, #068bc3);
  cursor: default;
  padding-left: 0.6rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .team-overview {
    padding: 0.75rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
