/* Recordings (recordings.html, recordings.js). Built from the Calls page's
 * parts (.view-head, .hist-stats, .hist-dl, .hist-row, .hist-foot), the
 * campaign list's state badges, Knowledge's drop zone, the inspector's fix
 * line and the player's transcript lines. Only what is its own is here, and
 * every colour is a token, so dark mode needs nothing beyond theme-dark.css's
 * tokens. */

/* A row has no audio to play (it is deleted once transcribed), so the Calls
 * row's 34px circle is left out and the text takes the whole row. */
.rec-row { grid-template-columns: minmax(0, 1fr); padding: 10px 8px; }
.rec-row.sel { padding-left: 6px; }
.rec-row:focus-visible { outline-offset: -2px; }
.rec-state { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.rec-words { color: var(--c-ink-2); }
.rec-cost { color: var(--c-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Upload. */
.rec-up .rec-src { width: max-content; max-width: 100%; margin: 8px 0 10px; }
/* The drop zone is a <label>, so it would take every label's eyebrow style
 * (uppercase, line-height 1): a chosen file's name and length read as they
 * are, the way Knowledge's .kb-attach resets it. */
.rec-up .rec-drop { margin: 0 0 4px; text-transform: none; letter-spacing: 0; font: 400 13px/1.45 var(--sans); }
.rec-link-field { max-width: 560px; }
.rec-link-field input { width: 100%; box-sizing: border-box; }
.rec-price { margin: 4px 0 8px; color: var(--c-ink-2); }
.rec-refusal { margin: 0 0 8px; }

/* One recording. */
.rec-detail { margin-bottom: 14px; }
.rec-d-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 10px;
             font-size: 12px; line-height: 1.5; color: var(--c-ink-2); }
.rec-detail .insp-fix { margin: 0 0 12px; }
.rec-d-body { display: grid; gap: 18px; }
.rec-d-sec .block-title { margin-bottom: 8px; }
.rec-d-times { margin: 0; }
.rec-d-summary { margin: 0 0 4px; max-width: 72ch; font-size: 13px; line-height: 1.6; color: var(--c-ink); }
.rec-table td:first-child { color: var(--c-ink); }
/* The player's lines, all of them read at once: nothing is playing, so none
 * sits back and none answers the pointer. */
.rec-tx { max-height: 440px; border: 1px solid var(--c-line); border-radius: var(--r-sm); }
.rec-tx .pl-line { opacity: 1; cursor: default; grid-template-columns: 84px 1fr auto; }
/* "Speaker 1", "Customer": one line, wider than a call's "Agent". */
.rec-tx .pl-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-tx .pl-line:hover { background: none; opacity: 1; }

.rec-empty { padding: 40px 18px 44px; }
.rec-empty p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.rec-empty-links { margin: 14px 0 0; font-size: 12.5px; }

@media (max-width: 760px) {
  .rec-row .hist-bot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rec-tx .pl-line { grid-template-columns: 1fr auto; }
  .rec-tx .pl-said { grid-column: 1 / -1; grid-row: 2; }
  .rec-up .hist-dl-field { flex: 1 1 100%; }
}
