/* Unresolved lens — market whitespace on /dept/navigator?section=vendors&lens=unresolved
 *
 * Scoped under .uv-panel rather than an id so the surface can be mounted twice
 * (an id cannot). Every colour goes through a var() with a fallback: this page
 * has both a light and a dark theme and a hardcoded dark background is how the
 * All-Vendors expansion row came to be unreadable on light.
 */

.uv-panel .uv-caveat {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted, #6b7280);
  border-left: 3px solid var(--accent-amber, #d29922);
  padding: 8px 12px;
  margin: 0 0 12px;
  background: color-mix(in srgb, var(--accent-amber, #d29922) 7%, transparent);
  border-radius: 0 6px 6px 0;
}
.uv-panel .uv-caveat strong { color: var(--text, #e8e8ef); }

/* ── Lane chips ── three different actions, so three different colours ── */
.uv-lane {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.uv-lane.whitespace {
  color: var(--accent-green, #3fb950);
  border-color: color-mix(in srgb, var(--accent-green, #3fb950) 45%, transparent);
  background: color-mix(in srgb, var(--accent-green, #3fb950) 12%, transparent);
}
.uv-lane.er_review {
  color: var(--accent-amber, #d29922);
  border-color: color-mix(in srgb, var(--accent-amber, #d29922) 45%, transparent);
  background: color-mix(in srgb, var(--accent-amber, #d29922) 12%, transparent);
}
/* Hatched, not merely grey: excluded rows are procurement prose and government
   buyers, and a flat grey reads as "low priority" rather than "not a company". */
.uv-lane.excluded {
  color: var(--text-muted, #6b7280);
  border-color: var(--border, #2a2a3a);
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 3px,
    color-mix(in srgb, var(--text-muted, #6b7280) 18%, transparent) 3px,
    color-mix(in srgb, var(--text-muted, #6b7280) 18%, transparent) 6px
  );
}

/* ── ZoomInfo verdict chips ── */
.uv-verdict {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2a3a);
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
}
.uv-verdict.exact_domain {
  color: var(--accent-green, #3fb950);
  border-color: color-mix(in srgb, var(--accent-green, #3fb950) 50%, transparent);
}
.uv-verdict.confident {
  color: var(--accent-blue, #4a90d9);
  border-color: color-mix(in srgb, var(--accent-blue, #4a90d9) 50%, transparent);
}
.uv-verdict.ambiguous {
  color: var(--accent-amber, #d29922);
  border-color: color-mix(in srgb, var(--accent-amber, #d29922) 50%, transparent);
}
/* A candidate whose domain already belongs to an account. Loudest chip on the
   page on purpose — creating it duplicates an account we own. */
.uv-verdict.dupe {
  color: var(--accent-red, #f85149);
  border-color: color-mix(in srgb, var(--accent-red, #f85149) 55%, transparent);
  background: color-mix(in srgb, var(--accent-red, #f85149) 12%, transparent);
  font-weight: 700;
}

.uv-panel .uv-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-blue, #4a90d9);
}
.uv-panel .uv-num { font-variant-numeric: tabular-nums; text-align: right; }
.uv-panel .uv-name { font-weight: 600; }
.uv-panel .uv-sub {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}
.uv-panel tr.uv-row { cursor: pointer; }
.uv-panel tr.uv-row:hover { background: rgba(127, 127, 127, .07); }
.uv-panel tr.uv-row.open { background: rgba(127, 127, 127, .1); }

/* ── Row expansion ── */
.uv-detail-cell {
  background: var(--bg-secondary, #f3f4f6);
  padding: 0;
  border-top: 1px solid var(--border, #2a2a3a);
}
.uv-detail-inner { padding: 14px 18px; }
.uv-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.uv-block-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #6b7280);
  margin: 0 0 6px;
  font-weight: 700;
}
.uv-kv { font-size: 12px; line-height: 1.7; }
.uv-kv b { color: var(--text-muted, #6b7280); font-weight: 600; }
.uv-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; }
.uv-chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2a3a);
  color: var(--text-muted, #6b7280);
}

/* ── ZoomInfo candidate cards ── */
.uv-cand {
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.uv-cand.top { border-color: color-mix(in srgb, var(--accent-blue, #4a90d9) 55%, transparent); }
.uv-cand.dupe {
  border-color: color-mix(in srgb, var(--accent-red, #f85149) 55%, transparent);
  background: color-mix(in srgb, var(--accent-red, #f85149) 7%, transparent);
}
.uv-cand-name { font-weight: 600; font-size: 13px; }
.uv-cand-meta { font-size: 11px; color: var(--text-muted, #6b7280); margin-top: 3px; }
.uv-cand-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.uv-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--accent-green, #3fb950);
  color: var(--accent-green, #3fb950);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.uv-btn:hover { background: color-mix(in srgb, var(--accent-green, #3fb950) 14%, transparent); }
.uv-btn.secondary { border-color: var(--border, #2a2a3a); color: var(--text-muted, #6b7280); }
.uv-btn.secondary:hover { background: rgba(127, 127, 127, .1); }
.uv-btn[disabled] { opacity: .45; cursor: not-allowed; }

.uv-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #6b7280);
  font-size: 13px;
}
.uv-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

/* ── Manual resolution ──
 * Full width beneath the two evidence columns, not a third column: the account
 * picker opens a twin checklist that needs the room, and it is an ACTION rather
 * than more evidence to read.
 */
.uv-resolve {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #2a2a3a);
}
.uv-resolve.resolved {
  border-top-color: color-mix(in srgb, var(--accent-green, #3fb950) 45%, transparent);
}
.uv-resolve-search { position: relative; max-width: 460px; margin-top: 8px; }
.uv-input {
  width: 100%;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid var(--border, #2a2a3a);
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #111827);
  font-family: inherit;
}
.uv-acct-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 2px;
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 6px;
  background: var(--bg-primary, #fff);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.uv-acct-hit {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #2a2a3a) 45%, transparent);
}
.uv-acct-hit:last-child { border-bottom: 0; }
.uv-acct-hit:hover { background: rgba(127, 127, 127, .1); }
.uv-acct-name { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary, #111827); }
.uv-acct-meta { display: block; font-size: 11px; color: var(--text-muted, #6b7280); }

.uv-resolve-pick { font-size: 13px; margin: 10px 0 8px; }
.uv-resolve-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.uv-resolve textarea.uv-input { max-width: 460px; margin-top: 8px; resize: vertical; }

.uv-twins { margin: 10px 0; }
.uv-twin {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 5px 8px;
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 6px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 12px;
}
.uv-twin:hover { background: rgba(127, 127, 127, .07); }
.uv-twin input { margin: 0; cursor: pointer; }
.uv-twin-name { font-weight: 600; }
.uv-twin-meta { color: var(--text-muted, #6b7280); font-size: 11px; flex: 1; }
.uv-twin-basis {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 9px;
  border: 1px solid var(--border, #2a2a3a);
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
}
/* Same normalized stem is close to certain; a shared prefix is a lead. The two
 * are styled apart so a wide net does not read as a list of equal claims. */
.uv-twin-basis.exact_stem {
  border-color: color-mix(in srgb, var(--accent-blue, #4a90d9) 55%, transparent);
  color: var(--accent-blue, #4a90d9);
}

/* ── Account-side alias list (All Vendors expand) ── */
.nvi-alias-list { margin-top: 10px; }
.nvi-alias {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 9px;
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 6px;
  margin-top: 4px;
  font-size: 12px;
}
.nvi-alias-name { font-weight: 600; }
.nvi-alias-meta { color: var(--text-muted, #6b7280); font-size: 11px; }
