/* ── pickers.css ───────────────────────────────────────────────*/

/* ── COACH PICKER (coachPicker.js) — reuses .roster-panel slide-out chrome ── */
.cpk-panel { width: 480px; right: -500px; }
.cpk-panel.open { right: 0; }
/* Match the Edit Session sheet's helper-text size (cp-erg-meta / cp-publish-toggle-sub)
   without touching the base .rp-meta used by the roster admin slide-out. */
.cpk-panel .rp-meta { font-size: 11px; }
.cpk-section { margin-bottom: 20px; }
.cpk-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.cpk-empty { font-size: 11px; color: var(--text-tertiary); font-style: italic; padding: 6px 0; }

.cpk-shortlist { display: flex; flex-direction: column; gap: 6px; }
.cpk-shortlist-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm);
  background: var(--navy-light); border: 0.5px solid var(--border-strong);
  cursor: grab;
}
.cpk-drag-handle { color: var(--text-tertiary); font-size: 13px; flex-shrink: 0; min-width: 13px; display: inline-block; }

.crpk-seat-row[draggable="true"] { cursor: grab; }
.crpk-seat-row--dragover { background: var(--navy-light); }
.cpk-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--nav-navy); color: white; font-size: 10px; font-weight: 700;
}
.cpk-shortlist-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--navy-dark); min-width: 0; }

.cpk-list { display: flex; flex-direction: column; }
.cpk-row-wrap { border-bottom: 0.5px solid var(--border); }
.cpk-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.cpk-add-btn {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 0.5px solid var(--border-strong); background: var(--surface);
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.cpk-add-btn:hover { background: var(--bg); }
.cpk-add-btn--active { background: var(--nav-navy); color: white; border-color: transparent; font-size: 11px; }
.cpk-engaged-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cpk-rank-pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--nav-navy); color: white; font-size: 10px; font-weight: 700;
}
.cpk-remove-btn {
  flex-shrink: 0; padding: 3px 9px; border-radius: 12px;
  border: 0.5px solid #fca5a5; background: #fee2e2; color: #991b1b;
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.12s;
}
.cpk-remove-btn:hover { background: #fecaca; }
[data-theme="dark"] .cpk-remove-btn { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(239,68,68,0.4); }
[data-theme="dark"] .cpk-remove-btn:hover { background: rgba(239,68,68,0.28); }
.cpk-row-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.cpk-row-body { flex: 1; min-width: 0; }
.cpk-row-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cpk-row-name { font-size: 13px; font-weight: 500; color: var(--text); }
.cpk-row-note {
  font-size: 11px; color: var(--text-tertiary); font-style: italic;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpk-row-fairness { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; white-space: nowrap; }

.cpk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cpk-dot--green { background: #16a34a; }
.cpk-dot--amber { background: #d97706; }
.cpk-dot--grey  { background: #d1d5db; }

.cpk-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.cpk-badge--interested { background: #dbeafe; color: #1e40af; }
.cpk-badge--confirmed  { background: #dcfce7; color: #166534; }
.cpk-badge--declined   { background: #fee2e2; color: #991b1b; }
.cpk-badge--neutral    { background: #f3f4f6; color: var(--text-secondary); }
.cpk-badge--prefers    { background: #fef3c7; color: #92400e; }
.cpk-badge--awaiting   { background: #e0e7ff; color: #3730a3; }
[data-theme="dark"] .cpk-badge--interested { background: rgba(59,130,246,0.18); color: #93c5fd; }
[data-theme="dark"] .cpk-badge--confirmed  { background: rgba(22,163,74,0.2); color: #86efac; }
[data-theme="dark"] .cpk-badge--declined   { background: rgba(239,68,68,0.22); color: #fca5a5; }
[data-theme="dark"] .cpk-badge--neutral    { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
[data-theme="dark"] .cpk-badge--prefers    { background: rgba(217,119,6,0.22); color: #fdba74; }
[data-theme="dark"] .cpk-badge--awaiting   { background: rgba(99,102,241,0.22); color: #a5b4fc; }

/* Declined rows stay visible but read as inactive — name/avatar/meta muted, the
   Declined badge itself stays at full strength so it's still easy to spot. Muting
   is applied per-element (not via opacity on the row container) so it never
   compounds down onto the badge. */
.cpk-shortlist-row--declined { cursor: default; background: var(--bg); }
.cpk-shortlist-row--declined .cpk-rank { background: var(--text-tertiary); }
.cpk-shortlist-row--declined .cpk-shortlist-name { color: var(--text-tertiary); text-decoration: line-through; }

.cpk-row-wrap--declined .cpk-row-name,
.cpk-row-wrap--declined .cpk-row-fairness,
.cpk-row-wrap--declined .cpk-row-note { color: var(--text-tertiary); }
.cpk-row-wrap--declined .av { opacity: 0.5; filter: grayscale(1); }
.cpk-row-wrap--declined .cpk-dot { opacity: 0.5; }

/* Once a candidate has confirmed, they're pinned to rank 1 (cpkRenderBody /
   cxpRenderBody) regardless of their original priority position, and get a light
   highlight so they read clearly as the resolved pick. */
.cpk-shortlist-row--confirmed { background: rgba(22,163,74,0.08); border-color: #86efac; }
[data-theme="dark"] .cpk-shortlist-row--confirmed { background: rgba(22,163,74,0.14); border-color: rgba(134,239,172,0.4); }

/* Everyone else (queued or declined) below a confirmed candidate is muted uniformly,
   and their declined/awaiting badge is dropped — a resolved assignment shouldn't keep
   carrying a stale warning from the cascade that led to it. */
.cpk-shortlist-row--resolved { opacity: 0.55; }
.cpk-shortlist-row--resolved .cpk-badge { display: none; }

.cpk-row-warn { font-size: 11px; color: #991b1b; font-weight: 500; margin-top: 2px; }
[data-theme="dark"] .cpk-row-warn { color: #fca5a5; }

.cpk-row-detail {
  display: none; padding: 2px 0 10px 32px; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.cpk-row-detail.expanded { display: grid; }
.cpk-detail-field { display: flex; flex-direction: column; gap: 1px; }
.cpk-detail-label { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.cpk-detail-val { font-size: 12px; color: var(--text); }
.cpk-detail-empty { color: var(--text-tertiary); font-style: italic; }
