/* Net New Logos — /dept/sales?tab=logos
   Scoped to .nnl-*; rides on the shared .dept-* section chrome and the
   .nav-rep-input / .nav-rep-chip-btn form primitives used across /dept pages. */

/* The drawer, the two modals and the pager are all toggled from JS through the
   `hidden` property, and all four carry a `display` of their own below. An
   author `display` outranks the UA sheet's `[hidden] { display: none }`, so
   without this they paint on first render and never close. */
.nnl-drawer[hidden],
.nnl-drawer-backdrop[hidden],
.nnl-modal[hidden],
.nnl-modal-backdrop[hidden],
.nnl-pager[hidden] { display: none; }

.nnl-section-compact .dept-section-body { padding-top: 12px; padding-bottom: 12px; }

/* ── Headline cards ─────────────────────────────────────────────── */
.nnl-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.nnl-card {
  border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px 14px;
  background: var(--bg-card, #fff);
}
.nnl-card-label {
  font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.nnl-card-value { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.nnl-card-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

.nnl-note, .nnl-warn {
  margin-top: 12px; padding: 9px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.5;
}
.nnl-note { background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.2); color: var(--text-muted); }
.nnl-warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.32); color: var(--text-primary); }

/* ── Activation lanes ───────────────────────────────────────────── */
.nnl-lanes { display: flex; flex-wrap: wrap; gap: 10px; }
.nnl-lane {
  display: flex; flex-direction: column; gap: 2px; min-width: 128px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff);
  transition: border-color .12s ease, transform .12s ease;
}
.nnl-lane:hover { transform: translateY(-1px); border-color: var(--accent, #3b82f6); }
.nnl-lane.active { border-color: var(--accent, #3b82f6); box-shadow: 0 0 0 1px var(--accent, #3b82f6) inset; }
.nnl-lane-count { font-size: 19px; font-weight: 700; color: var(--text-primary); }
.nnl-lane-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.nnl-lane-desc { font-size: 11px; color: var(--text-muted); }
.nnl-lane[data-lane="in_pursuit"] .nnl-lane-count { color: #7c3aed; }
.nnl-lane[data-lane="sequenced"] .nnl-lane-count { color: #2563eb; }
.nnl-lane[data-lane="contacted"] .nnl-lane-count { color: #0891b2; }
.nnl-lane[data-lane="researched"] .nnl-lane-count { color: #059669; }

/* ── Toolbar ────────────────────────────────────────────────────── */
.nnl-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.nnl-ctl { display: flex; flex-direction: column; gap: 4px; }
.nnl-ctl > label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .02em; text-transform: uppercase;
}
.nnl-ctl .nav-rep-input { min-width: 138px; }
.nnl-ctl-search .nav-rep-input { min-width: 200px; }
.nnl-ctl-narrow .nav-rep-input { min-width: 96px; }
.nnl-ctl-actions { flex-direction: row; gap: 8px; margin-left: auto; }
.nnl-ctl-check { justify-content: flex-end; }
.nnl-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-primary); cursor: pointer; }

.nnl-primary {
  background: var(--accent, #3b82f6) !important; color: #fff !important;
  border-color: var(--accent, #3b82f6) !important;
}
.nnl-primary[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Table ──────────────────────────────────────────────────────── */
.nnl-table-wrap { overflow-x: auto; }
.nnl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nnl-table thead th {
  text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border, #e5e7eb); white-space: nowrap;
}
.nnl-table tbody td { padding: 10px; border-bottom: 1px solid var(--border-light, #f1f5f9); vertical-align: top; }
.nnl-table tbody tr:hover { background: var(--bg-hover, #f8fafc); }
.nnl-col-fit { width: 74px; }
.nnl-col-comp { width: 190px; }
.nnl-col-stage { width: 104px; }
.nnl-col-act { width: 92px; }

.nnl-name-btn {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font-size: 13.5px; font-weight: 650; color: var(--text-primary);
}
.nnl-name-btn:hover { color: var(--accent, #3b82f6); text-decoration: underline; }
.nnl-name-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }

.nnl-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.nnl-badge-crm { background: rgba(59,130,246,.12); color: #1d4ed8; }
.nnl-badge-vendor { background: rgba(139,92,246,.13); color: #6d28d9; }
a.nnl-badge { text-decoration: none; }
a.nnl-badge:hover { text-decoration: underline; }
.nnl-ext { color: var(--accent, #3b82f6); text-decoration: none; }
.nnl-ext:hover { text-decoration: underline; }

.nnl-fit { font-size: 19px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.nnl-fit-basis { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.nnl-fit.tier-a { color: #059669; }
.nnl-fit.tier-b { color: #0891b2; }
.nnl-fit.tier-c { color: var(--text-muted); }

/* Component bars. Five fixed rows so the eye can compare down a column;
   a component the row could not be scored on renders as a dash, never a
   zero-length bar, because "not measured" and "measured as zero" are
   different facts and a bar cannot tell them apart. */
.nnl-comps { display: flex; flex-direction: column; gap: 3px; }
.nnl-comp { display: grid; grid-template-columns: 58px 1fr 26px; align-items: center; gap: 6px; }
.nnl-comp-label { font-size: 10px; color: var(--text-muted); }
.nnl-comp-track { height: 5px; border-radius: 3px; background: var(--border-light, #eef2f7); overflow: hidden; }
.nnl-comp-fill { height: 100%; border-radius: 3px; background: var(--accent, #3b82f6); }
.nnl-comp-val { font-size: 10px; color: var(--text-muted); text-align: right; }
.nnl-comp.na .nnl-comp-track { background: repeating-linear-gradient(90deg, #eef2f7 0 4px, transparent 4px 8px); }

.nnl-ev { font-size: 12px; color: var(--text-primary); line-height: 1.5; }
.nnl-ev-sub { font-size: 11px; color: var(--text-muted); }
.nnl-intel { font-size: 12px; line-height: 1.45; color: var(--text-primary); }
.nnl-intel-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nnl-intel-none { color: var(--text-muted); font-size: 11.5px; }
.nnl-col-intel { min-width: 180px; max-width: 260px; }
.nnl-reach { font-size: 12px; line-height: 1.5; }
.nnl-reach-none { color: #b45309; }

.nnl-stage {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.nnl-stage-in_pursuit { background: rgba(124,58,237,.12); color: #6d28d9; }
.nnl-stage-sequenced { background: rgba(37,99,235,.12); color: #1d4ed8; }
.nnl-stage-contacted { background: rgba(8,145,178,.12); color: #0e7490; }
.nnl-stage-researched { background: rgba(5,150,105,.12); color: #047857; }
.nnl-stage-untouched { background: var(--border-light, #f1f5f9); color: var(--text-muted); }

.nnl-row-act {
  background: none; border: 1px solid var(--border, #e5e7eb); border-radius: 7px;
  padding: 4px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  color: var(--accent, #3b82f6);
}
.nnl-row-act:hover { border-color: var(--accent, #3b82f6); background: rgba(59,130,246,.06); }

.nnl-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding-top: 14px; font-size: 12.5px; color: var(--text-muted);
}

/* ── Drawer ─────────────────────────────────────────────────────── */
.nnl-drawer-backdrop, .nnl-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 900;
}
.nnl-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 96vw);
  background: var(--bg-card, #fff); border-left: 1px solid var(--border, #e5e7eb);
  box-shadow: -12px 0 40px rgba(0,0,0,.14); z-index: 901;
  display: flex; flex-direction: column;
}
.nnl-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.nnl-drawer-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.nnl-drawer-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.nnl-drawer-close {
  background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--text-muted); padding: 0 4px;
}
.nnl-drawer-close:hover { color: var(--text-primary); }
.nnl-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.nnl-drawer-foot {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--border, #e5e7eb); background: var(--bg-subtle, #f8fafc);
}

.nnl-block { margin-bottom: 20px; }
.nnl-block-title {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.nnl-kv { display: grid; grid-template-columns: 128px 1fr; gap: 5px 12px; font-size: 12.5px; }
.nnl-kv-wide { grid-template-columns: 168px 1fr; }
.nnl-kv dt { color: var(--text-muted); }
.nnl-kv dd { margin: 0; color: var(--text-primary); }
.nnl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.nnl-chip {
  padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: var(--border-light, #f1f5f9); color: var(--text-primary);
}
.nnl-chip.match { background: rgba(5,150,105,.12); color: #047857; }
.nnl-prose { font-size: 12.5px; line-height: 1.6; color: var(--text-primary); }
.nnl-muted { color: var(--text-muted); font-size: 12px; line-height: 1.55; }

.nnl-strategy { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 14px; }
.nnl-strategy-headline { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.nnl-strategy h5 {
  margin: 14px 0 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-muted);
}
.nnl-strategy p, .nnl-strategy li { font-size: 12.5px; line-height: 1.6; color: var(--text-primary); }
.nnl-strategy ul { margin: 0; padding-left: 18px; }
.nnl-cite { font-size: 10.5px; color: var(--text-muted); word-break: break-all; }
.nnl-cite-quote {
  margin: 8px 0 4px; padding: 8px 10px; border-left: 3px solid var(--border, #e5e7eb);
  background: var(--bg-subtle, #f8fafc); font-size: 12px; line-height: 1.5; color: var(--text-primary);
}
.nnl-sig {
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.nnl-sig-head { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.nnl-openline {
  background: var(--bg-subtle, #f8fafc); border-left: 3px solid var(--accent, #3b82f6);
  padding: 9px 12px; border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.6;
}
.nnl-conf { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.nnl-conf-high { background: rgba(5,150,105,.13); color: #047857; }
.nnl-conf-medium { background: rgba(245,158,11,.14); color: #b45309; }
.nnl-conf-low { background: var(--border-light, #f1f5f9); color: var(--text-muted); }

/* ── Modals ─────────────────────────────────────────────────────── */
.nnl-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(520px, 94vw); max-height: 86vh; z-index: 901;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
}
.nnl-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border, #e5e7eb);
  font-size: 14.5px; font-weight: 700; color: var(--text-primary);
}
.nnl-modal-body { padding: 16px 18px; overflow-y: auto; font-size: 12.5px; line-height: 1.6; }
.nnl-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--border, #e5e7eb);
}
.nnl-seq-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.nnl-seq {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 9px; cursor: pointer;
}
.nnl-seq:hover { border-color: var(--accent, #3b82f6); }
.nnl-seq.selected { border-color: var(--accent, #3b82f6); background: rgba(59,130,246,.06); }
.nnl-seq-name { font-weight: 600; color: var(--text-primary); }
.nnl-seq-meta { font-size: 11px; color: var(--text-muted); margin-left: auto; }

.nnl-msg { margin-top: 10px; font-size: 12px; border-radius: 8px; padding: 8px 11px; }
.nnl-msg-ok { background: rgba(5,150,105,.1); color: #047857; }
.nnl-msg-err { background: rgba(220,38,38,.1); color: #b91c1c; }
