/**
 * sales-reps-training-calls.css — Sales Reps: Real calls to learn from (src/public/js/sales-reps-training-calls.js): the
 * list on the rep's and the manager's Training, a call opened in our CBSheet panel, and the block on an opened call in
 * Call reviews.
 *
 * Built from the shared Sales Reps pieces (css/sales-reps.css: .sr-list, .sr-li, .sr-acard, .sr-score, .sr-why; the
 * manager's .sr-mgr helpers: .sr-label, .sr-stack, .sr-small, .sr-muted; css/sales-reps-dialer-calls.css: .srd-player,
 * .sr-tx). Design tokens only. Everything here is prefixed srtc-, so nothing can restyle another screen. Loaded after
 * sales-reps-call-history.css.
 */

.srtc-card .card-head { flex-wrap: wrap; gap: 8px; }
.srtc-card .card-title { margin: 0; }
.srtc-card .card-head > .count {
  background: var(--surface-3); color: var(--text-2); font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
}
.srtc-empty { padding: 28px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.srtc-empty p { margin: 0; }
.srtc-empty-act { margin-top: 12px; }

/* ── The list (rep and manager) ── */
.srtc-list .sr-li { align-items: flex-start; flex-wrap: wrap; row-gap: 8px; }
.srtc-list .sr-li:first-child { border-top: 1px solid var(--border-soft); }
.srtc-grow { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srtc-grow h3 { font-size: 14.5px; font-weight: 600; margin: 0; line-height: 1.35; }
.srtc-link {
  border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600; color: var(--text);
  text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.srtc-link:hover, .srtc-link:focus-visible { color: var(--accent-deep); text-decoration: underline; }
.srtc-link.srtc-inline { font-weight: 600; color: var(--accent-deep); }
.srtc-clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  color: var(--text-2) !important;
}
.srtc-mark { font-weight: 700; width: 16px; flex: 0 0 16px; text-align: center; line-height: 1.4; }
.srtc-mark.yes { color: var(--good); }
.srtc-mark.no { color: var(--danger); }
.srtc-mark.todo { color: var(--text-4, var(--text-3)); }
.srtc-n {
  flex: 0 0 26px; height: 26px; border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.srtc-listen { flex: 0 0 auto; align-self: center; }
.srtc-acts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.srtc-acts .btn { min-width: 36px; }

/* ── One call, in the panel ── */
/* The panel asks for 820px (CBSheet.panel width); the shared sheet caps every sheet at 420px, so this one widens it, as
   the AI calls editor and custom packages do (sales-reps-calls.css, sales-reps-manager.css). */
#cb-sheet .rel-editor:has(.srtc-entry), #cb-sheet .rel-editor:has(.srtc-loading) { max-width: 820px; }
.srtc-entry { display: flex; flex-direction: column; gap: 18px; }
.srtc-entry p { margin: 0; }
.srtc-entry .srtc-tight { gap: 6px; }
.srtc-entry .srd-player video { max-height: 320px; }
.srtc-coach { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2, var(--surface)); }
.srtc-coach-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srtc-points .sr-li { padding: 8px 0; gap: 10px; align-items: flex-start; }
.srtc-points .sr-li:first-child { border-top: 0; }
.srtc-flags { gap: 8px; }
.srtc-note { border-left: 4px solid var(--accent); padding: 4px 0 4px 12px; }
.srtc-pre { white-space: pre-line; overflow-wrap: anywhere; }
.srtc-loading { padding: 18px 2px; color: var(--text-3); }

/* ── Call reviews: Add to training ── */
.srtc-review { display: flex; flex-direction: column; gap: 6px; }
.srtc-review p { margin: 0; }

@media (max-width: 560px) {
  .srtc-list .sr-li { padding: 12px 14px; }
  .srtc-listen { width: calc(100% - 28px); margin-left: 28px; }   /* under the title, past the tick */
  .srtc-acts { margin-left: 36px; }
  .srtc-coach { padding: 12px; }
}
