/* notes.css
   Contextual notes threads and the card footer notes button.

   Part of the dashboard stylesheet, split by concern. index.html links these
   in source order; keep that order, the cascade depends on it. */

/* ── Contextual notes thread ────────────────────────────────────────── */
.nt { display: flex; flex-direction: column; gap: 12px; }
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt-empty { font-size: 12.5px; color: var(--label-2); padding: 6px 2px; }
/* A note collapses to a clickable chip; the full note opens in a popover. */
.nt-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--label); font: inherit; cursor: pointer;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.nt-chip:hover, .nt-chip:focus-visible { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); outline: none; }
.nt-chip-ic { display: inline-flex; color: var(--slate); flex-shrink: 0; }
.nt-chip-ic svg { width: 15px; height: 15px; }
.nt-chip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nt-chip-preview { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-chip-preview.is-empty { font-style: italic; color: var(--label-3); }
.nt-chip-arrow { color: var(--label-3); font-size: 17px; line-height: 1; flex-shrink: 0; }
.nt-chip:hover .nt-chip-arrow { color: var(--accent); }
/* The creation date & time is the note's auto-generated title. */
.nt-stamp { font-size: 12.5px; font-weight: 700; color: var(--label); letter-spacing: 0.01em; }
/* Single-note popover (opened from a chip). */
.nt-pop { display: flex; flex-direction: column; gap: 12px; }
.nt-pop-body {
  width: 100%; min-height: 170px; resize: vertical; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--label); font: inherit; font-size: 14px; line-height: 1.6;
  padding: 12px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; font-family: var(--font);
}
.nt-pop-body:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); background: var(--surface); }
.nt-pop-body::placeholder { color: var(--label-3); }
.nt-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nt-pop-foot--end { justify-content: flex-end; }
.nt-pop-edited { font-size: 12px; color: var(--label-3); }
.nt-pop-del { display: inline-flex; align-items: center; gap: 6px; }
.nt-pop-del svg { width: 13px; height: 13px; }
.nt-add-save { display: inline-flex; align-items: center; gap: 6px; }
.nt-add-save svg { width: 13px; height: 13px; }
/* Breathing room between the popover's bottom button and the window edge. */
.detail-body .nt-pop { padding-bottom: 10px; }
.nt-compose { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.nt-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2);
  padding: 10px 12px; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--label);
  outline: none; resize: vertical; min-height: 44px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.nt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); background: var(--surface); }
.nt-input::placeholder { color: var(--label-3); }
.nt-add svg { width: 13px; height: 13px; }

/* ── Card footer notes button (Recruiting / Transfer Portal) ────────── */
.card-foot { padding: 8px 12px 12px; border-top: 1px solid var(--border-2); flex-shrink: 0; }
.card-notes-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--label-2); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: color 0.14s, background 0.14s, border-color 0.14s;
}
.card-notes-btn:hover { color: var(--accent); background: var(--accent-light); border-color: transparent; }
.card-notes-ic { display: inline-flex; }
.card-notes-ic svg { width: 14px; height: 14px; }
.card-notes-count { font-size: 11px; font-weight: 750; color: var(--accent); background: var(--accent-light); border-radius: var(--r-full); padding: 1px 7px; font-variant-numeric: tabular-nums; }
.card-notes-btn:hover .card-notes-count { background: var(--surface); }
