/* Sistem → Ekipler (teams.js) ve Kullanıcılar sayfasındaki ekip rozetleri / seçimi (users.js). Renkler tags.css'teki .tag-<renk>. */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 16px 18px 20px; }
.team-grid:empty { display: none; }
.team-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line, #e7e8ef); border-radius: 12px; background: #fff; }
.team-card:hover { border-color: #d3d0f5; box-shadow: 0 2px 10px #3b2fb20d; }
.team-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-card-head h3 { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: #2c3044; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.team-card-head .tag-chip { flex: none; }
.team-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 10px currentColor; }
.team-desc { margin: 0; color: #5d6175; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.team-leads { color: #2c3044; font-size: 12.5px; }
.team-avatars { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 28px; }
.team-avatars .avatar.is-lead { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e0a100; }
.team-avatars .avatar.is-disabled { opacity: .45; }
.team-more { color: #6c6f80; background: #eef0f5; font-size: 10.5px; font-weight: 700; }
.team-card-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: auto; }

/* Ekip penceresi */
.team-dialog { width: min(560px, calc(100vw - 32px)); }
.team-form-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.team-member-list { max-height: 44vh; margin-top: 8px; overflow-y: auto; border: 1px solid #eef0f5; border-radius: 9px; }
.team-member-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f1f2f6; }
.team-member-row:last-child { border-bottom: 0; }
.team-member-row.selected { background: #f8f7ff; }
.dialog label.team-member-check { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; color: #2c3044; font-size: 13px; font-weight: 500; cursor: pointer; }
.dialog label.team-member-check input { flex: none; width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0; accent-color: var(--purple, #6857df); }
.team-member-name { min-width: 0; }
.team-member-name b, .team-member-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member-name small { color: #8b8fa3; font-size: 11.5px; }
.team-member-name .user-status { padding: 1px 6px; font-size: 10px; }
.team-lead-toggle { flex: none; padding: 3px 9px; border: 1px solid #e4e6ee; border-radius: 999px; color: #8b8fa3; background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.team-lead-toggle:hover:not(:disabled) { border-color: #e0a100; color: #9a6a00; }
.team-lead-toggle.on { border-color: #f0c869; color: #9a6a00; background: #fff5dc; }
.team-lead-toggle:disabled { opacity: .35; cursor: default; }
.team-member-list .empty-state { padding: 18px 12px; }

/* Kullanıcılar sayfası: EKİPLER sütunu ve Düzenle penceresindeki ekip seçimi */
.user-team-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
.user-team-chips .tag-chip { max-width: 140px; }
#userTeamFilter { min-width: 140px; }
.user-team-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog label.user-team-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px 5px 8px; border: 1px solid #e4e7ef; border-radius: 999px;
  color: #44485e; font-size: 12px; font-weight: 600; cursor: pointer; }
.dialog label.user-team-pick:hover { border-color: #c9c2fb; }
.dialog label.user-team-pick.selected { border-color: #6555d8; background: #f1efff; }
.dialog label.user-team-pick input { flex: none; width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0; accent-color: var(--purple, #6857df); }
.user-team-picks .muted { font-size: 12px; }
@media (max-width: 640px) { .team-form-row { grid-template-columns: 1fr; } }
