/* Hierarquia do funil nos temas claro e escuro. */
.pipeline-view {
  --funnel-canvas: #f5f6f7;
  --funnel-column: #edf0f2;
  --funnel-surface: #ffffff;
  --funnel-hover: #f0f2f4;
  --funnel-line: #dce1e6;
  --funnel-ink: #202830;
  --funnel-muted: #55616e;
  --funnel-gold: #775b26;
  --funnel-warning: #9b4742;
  background: var(--funnel-canvas);
  color: var(--funnel-ink);
}

.pipeline-view :is(.eyebrow, .subtitle, .funnel-view-control) {
  color: var(--funnel-muted);
  font-weight: 400;
}
.pipeline-view .funnel-tabs button { font-weight: 400; }
.pipeline-view .funnel-tabs button[aria-selected="true"] {
  background: transparent;
  border-bottom-color: var(--funnel-gold);
  color: var(--funnel-ink);
  font-weight: 500;
}

.pipeline-view #funnel-panel .stat {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "value" "detail";
  gap: 3px;
  padding: 10px 12px;
  background: var(--funnel-surface);
  border-color: var(--funnel-line);
}
.pipeline-view #funnel-panel .stat:hover { background: var(--funnel-hover); }
.pipeline-view #funnel-panel :is(.stat-top, .stat-bottom) {
  color: var(--funnel-muted);
  font-weight: 400;
}
.pipeline-view #funnel-panel .stat-icon {
  background: none;
  color: var(--funnel-muted);
}
.pipeline-view #funnel-panel .stat-value {
  color: var(--funnel-ink);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pipeline-view #funnel-panel .stat .spark { display: none; }

.pipeline-view .directory-toolbar :is(.control, .filter-chip),
.pipeline-view .funnel-view-control .view-tabs {
  background: var(--funnel-surface);
  border-color: var(--funnel-line);
  color: var(--funnel-ink);
}
.pipeline-view .directory-toolbar :is(input, select, .filter-chip),
.pipeline-view .funnel-view-control .view-tabs button {
  color: var(--funnel-ink);
  font-weight: 400;
}
.pipeline-view .funnel-view-control .view-tabs button.selected,
.pipeline-view .directory-toolbar .filter-chip.selected {
  background: var(--funnel-hover);
  border-color: var(--funnel-line);
  color: var(--funnel-ink);
  box-shadow: none;
  font-weight: 500;
}

.pipeline-view .kanban-column {
  background: var(--funnel-column);
  border-color: var(--funnel-line);
}
.pipeline-view .kanban-column .column-head {
  background: linear-gradient(to right, var(--stage-color) 0%, var(--stage-color) 18%, transparent 100%) left bottom / 100% 4px no-repeat;
  border-color: transparent;
  border-bottom-width: 1px;
  border-radius: 0;
  color: var(--funnel-ink);
}
.pipeline-view .column-name { font-size: 14px; font-weight: 600; }
.pipeline-view .column-count {
  background: var(--funnel-hover);
  color: var(--funnel-muted);
  font-weight: 500;
}
.pipeline-view .column-value {
  color: var(--funnel-muted);
  font-size: 12px;
  font-weight: 400;
}
.pipeline-view .directory-card {
  background: var(--funnel-surface);
  border-color: var(--funnel-line);
  color: var(--funnel-ink);
  padding: 12px;
}
.pipeline-view .directory-card:hover { background: var(--funnel-hover); }
.pipeline-view .directory-card .card-name { font-size: 14px; font-weight: 600; }
.pipeline-view .directory-card .card-offer { font-size: 13px; font-weight: 400; }
.pipeline-view .directory-card .card-value { font-size: 14px; font-weight: 500; }
.pipeline-view .directory-card :is(.card-campaign, .card-source, .card-dates, .person small) {
  color: var(--funnel-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.pipeline-view .directory-card .card-tags .tag {
  background: var(--funnel-hover);
  border-color: var(--funnel-line);
  color: var(--funnel-muted);
  font-weight: 500;
}
.pipeline-view .directory-card .card-tags .red,
.pipeline-view .directory-card :is(.card-unassigned, .task-late, .card-unassigned small) {
  color: var(--funnel-warning);
  font-weight: 600;
}
.pipeline-view .directory-card .card-dates strong:not(.task-late) { font-weight: 500; }
.pipeline-view .directory-card .card-task small {
  color: var(--funnel-ink);
  font-size: 13px;
}
