/* CSAT dashboard. Phone first (390 px): tables scroll inside the card, the popup fits, nothing wider than the screen. */
.cd-root { display: grid; gap: 12px; min-width: 0; max-width: 100%; overflow-x: clip; }
.cd-root h2 { font-size: 22px; }
.cd-root h3 { font-size: 16px; margin: 6px 0 0; }
.cd-subline, .cd-cap, .cd-foot, .cd-sub { margin: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.cd-note { margin: 0; color: var(--amber); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.cd-empty { margin: 0; color: var(--muted); padding: 12px 4px; text-align: center; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 4px; background: rgba(34, 38, 51, .5); border-radius: 8px; padding: 4px;
  justify-self: start; max-width: 100%; }
.cd-chips button { border: 0; background: none; color: var(--muted); border-radius: 6px; padding: 8px 12px; font-size: 13px;
  font-weight: 500; cursor: pointer; white-space: nowrap; }
.cd-chips button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.cd-hero { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.cd-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0;
  max-width: 100%; display: grid; gap: 6px; color: var(--text); font: inherit; text-align: left; }
.cd-big { font-size: 34px; font-weight: 750; line-height: 1.1; }
.cd-num { font-size: 22px; font-weight: 700; }
.cd-showing { font-size: 13px; font-weight: 650; color: var(--gold); }
.cd-types { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-type { cursor: pointer; width: 100%; white-space: normal; }
.cd-type.cd-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cd-type-name { display: block; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.cd-keptline, .cd-qavg { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.cd-name, .cd-client { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700;
  text-align: left; padding: 0; white-space: nowrap; }
button.cd-name, .cd-client, .cd-ans .cd-name { color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cd-scroll { overflow-x: auto; max-width: 100%; min-width: 0; width: 100%; container-type: inline-size; }
.cd-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.cd-table th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cd-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: middle; white-space: nowrap; }
.cd-expand td { white-space: normal; }
.cd-anslist { position: sticky; left: 10px; width: calc(100cqw - 20px); max-width: 100%; min-width: 0; }
.cd-table tr:last-child td { border-bottom: 0; }
.cd-avg { font-weight: 700; white-space: nowrap; }
.cd-fb { white-space: normal; overflow-wrap: anywhere; min-width: 140px; max-width: 320px; }
.cd-ans { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 8px; width: 100%;
  min-width: 0; max-width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: none;
  color: var(--text); font: inherit; text-align: left; padding: 8px 2px; cursor: pointer; white-space: normal;
  overflow-wrap: anywhere; }
.cd-ans:first-child { border-top: 0; }
.cd-ans .cd-name { white-space: normal; overflow-wrap: anywhere; }
.cd-ans-scorebit { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.cd-stars { position: relative; display: inline-block; line-height: 1; }
.cd-star-bg, .cd-star-fg { font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.cd-star-bg { color: rgba(255, 255, 255, .22); }
.cd-star-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--gold); width: 0; }
.cd-pill { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cd-blue { background: rgba(96, 165, 250, .18); color: var(--blue); }
.cd-purple { background: rgba(216, 180, 254, .18); color: var(--purple); }
.cd-amber { background: rgba(251, 191, 36, .18); color: var(--amber); }
.cd-green { background: rgba(52, 211, 153, .18); color: var(--green); }
.cd-resp { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 0;
  display: grid; gap: 4px; }
.cd-text { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cd-foot { font-size: 12px; }
.cd-pop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end;
  justify-content: center; padding: 10px; }
.cd-sheet { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 18px;
  width: min(560px, 100%); max-height: calc(100vh - 20px); overflow: auto; min-width: 0; display: grid; gap: 8px; }
.cd-sheet h2 { font-size: 20px; padding-right: 40px; overflow-wrap: anywhere; }
.cd-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 22px; line-height: 1; }
.cd-pophead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-right: 36px; min-width: 0; }
.cd-agent { margin: 0; overflow-wrap: anywhere; }
.cd-scorebox { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end;
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 10px 12px; }
.cd-scorebit { display: grid; gap: 4px; min-width: 0; }
.cd-scorerow { display: flex; align-items: center; gap: 8px; }
.cd-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cd-qcount { font-size: 20px; font-weight: 700; }
.cd-under { color: var(--red); }
.cd-qline { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.cd-qword, .cd-quote { margin: 0; overflow-wrap: anywhere; }
.cd-quote { font-size: 14px; }
.cd-qv { font-weight: 700; }
@media (min-width: 900px) {
  .cd-root { max-width: 1100px; }
  .cd-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-pop { align-items: center; }
  .cd-table { min-width: 0; }
}
/* Completion by person (Tannor 11-19): one card per client, phone first, nothing wider than the screen. */
.cd-comp { display: flex; flex-direction: column; gap: 4px; }
.cd-comp-sort { margin-top: 8px; }
.cd-comp-search { width: 100%; min-height: 44px; font-size: 16px; box-sizing: border-box; margin-top: 8px; padding: 8px 12px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: inherit; }
.cd-comp-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cd-comp-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex;
  flex-direction: column; gap: 4px; min-width: 0; }
.cd-comp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.cd-comp-name { font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.cd-comp-rate { font-weight: 750; font-size: 18px; white-space: nowrap; }
.cd-comp-marks { display: flex; flex-wrap: wrap; gap: 4px; }
.cd-mark { font-size: 12px; border-radius: 999px; padding: 2px 8px; border: 1px solid currentColor; white-space: nowrap; }
.cd-mark-answered { color: var(--green); }
.cd-mark-sent { color: var(--amber); }
.cd-mark-not_sent { color: var(--muted); border-style: dashed; opacity: .75; }
.cd-comp-more { margin-top: 8px; min-height: 44px; width: 100%; border: 1px solid var(--line); background: none; color: inherit;
  border-radius: 8px; font-size: 14px; }
.cd-comp-more[hidden] { display: none; }
