/* css/sales-reps-about.css — Sales Reps: "About them" (js/sales-reps-about.js), the panel the manager and the rep open on
   a booking. After sales-reps.css. */

.sra { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--text); }
.sra-sec { padding: 14px 0; border-top: 1px solid var(--border); }
.sra-sec:first-child { border-top: 0; padding-top: 2px; }
.sra-sec h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.sra-note { font-weight: 400; font-size: 13px; color: var(--text-3); }
.sra-blank { color: var(--text-3); font-style: italic; }
.sra-dl { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.sra-dl dt { color: var(--text-2); font-size: 13px; }
.sra-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sra-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .sra-dl dd { margin-bottom: 8px; } }
.sra a { color: var(--accent-deep); text-decoration: underline; overflow-wrap: anywhere; }
.sra-quote { margin: 4px 0 10px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.sra-made { margin: -4px 0 10px; font-size: 13px; color: var(--text-3); }
.sra-said + .sra-said { margin-top: 6px; }
.sra-facts { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sra-found { margin-top: 10px; }
.sra-found p { margin: 2px 0; overflow-wrap: anywhere; }

/* The fit: the number, what it means, every point and its reason. */
.sra-fit { padding-top: 2px; }
.sra-fit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sra-fit-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.sra-score {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  font-size: 20px; font-weight: 700; background: var(--surface-2); color: var(--text);
}
.sra-fit-head.strong .sra-score { background: color-mix(in srgb, var(--good) 22%, var(--surface)); color: var(--good); }
.sra-fit-head.possible .sra-score { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent-deep); }
.sra-fit-head.out .sra-score { background: var(--danger-soft); color: var(--danger); font-size: 15px; }
.sra-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sra-reasons li { display: flex; gap: 10px; align-items: baseline; }
.sra-pts { flex: 0 0 38px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.sra-reasons li.up .sra-pts { color: var(--good); }
.sra-reasons li.down .sra-pts { color: var(--danger); }
.sra-reasons li.flat .sra-pts { color: var(--text-3); }
.sra-unknown { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); font-size: 13px; }

/* Notes on them (Alex, 5 Nov): a box and "Save note", then every note newest first, who wrote it and when. */
.sra-note-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sra-note-form .textarea { width: 100%; min-height: 72px; resize: vertical; }
.sra-note-actions { display: flex; justify-content: flex-end; }
.sra-note-err { margin: 0; font-size: 13px; color: var(--danger); }
.sra-notes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sra-notes-list li { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.sra-note-head { margin: 0 0 2px; font-size: 13px; color: var(--text-3); }
.sra-note-head b { color: var(--text); font-weight: 600; }
.sra-note-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The person on a booking's row (js/sales-reps-about.js face / personFacts, Alex 11 Nov 2026): their picture on the
   left, the name, then one muted line of facts that wraps between facts, never inside one. app-shell's .avatar. */
.sra-who { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sra-who-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sra-face { position: relative; overflow: hidden; margin-top: 1px; }
.sra-face img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sra-seen { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--text-3);
  white-space: normal; overflow: visible; text-overflow: clip; }
/* A fact moves to the next line whole, and only one wider than the line wraps inside itself (a phone's timeline). */
.sra-seen > span { display: inline-block; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; vertical-align: top; }
.sra-seen > .sra-dot { display: inline; }   /* "\a0· ": the dot stays with the fact before it; the line breaks after it */

/* Their AI (js/sales-reps-about.js agentMarker / agentHtml, Alex 24 Nov 2026). The marker beside a booking's name: the
   assistants connected now, quiet and outlined, never one of the row's coloured chips (the row's one colour is its
   status). The name gives way first; the marker keeps its size. */
.sra-name { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.sra-name > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The same line around any other row's own name element (App.SalesRepsAbout.withAgent): a heading, a cell's bold, a
   timeline's name. The name keeps its own type and gives way first; the marker keeps its size. */
.sra-name > :first-child:not(.sra-ai) { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
div.sra-name { display: flex; }
.sra-ai {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; box-sizing: border-box;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: default;
}
.sra-ai .asst-logo { width: 12px; height: 12px; vertical-align: 0; }
.sra-ai .sra-ai-text { overflow: visible; }
.srcal-main .sra-name span.sra-ai, .srcal-main .sra-name span.sra-ai-text { overflow: visible; text-overflow: clip; }
/* The sheet's "AI connections": one paragraph per assistant, then what they used it for most. */
.sra-ai-one + .sra-ai-one { margin-top: 10px; }
.sra-ai-head { margin: 0; overflow-wrap: anywhere; }
.sra-ai-head .asst-logo { margin-right: 6px; vertical-align: -3px; }
.sra-ai-head b { font-weight: 600; }
.sra-ai-most { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.sra-ai-one.gone .sra-ai-head { color: var(--text-2); }
