/* analytics.html styles */
#analytics-table th,
#analytics-table td {
  vertical-align: middle;
}

#analytics-table th:nth-child(1),
#analytics-table td:nth-child(1),
#analytics-table th:nth-child(2),
#analytics-table td:nth-child(2) {
  white-space: nowrap;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

#analytics-table th:nth-child(4),
#analytics-table td:nth-child(4),
#analytics-table th:nth-child(5),
#analytics-table td:nth-child(5) {
  min-width: 15rem;
}

#analytics-table th:nth-child(6),
#analytics-table td:nth-child(6),
#analytics-table th:nth-child(7),
#analytics-table td:nth-child(7) {
  white-space: nowrap;
}

/* Horizontal Funnel Refinements */
.funnel-chart-horizontal {
  background: var(--app-surface-1);
  padding: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Section Spacing */
.dashboard-section-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.dashboard-section-title {
  font-size: 0.95rem;
  font-weight: var(--app-font-weight-bold);
  color: var(--app-text-primary);
  margin-bottom: 0;
  line-height: 1.25;
}

.dashboard-chart-filter-label {
  margin-right: 0.125rem;
  color: var(--tblr-secondary-color, #616876);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-card--funnel {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .dashboard-section-header {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.dashboard-card--funnel .card-body,
.dashboard-card--funnel .funnel-chart-horizontal {
  border-radius: inherit;
}

.dashboard-funnel-select {
  width: 110px !important;
  height: 28px;
  min-height: 28px;
  padding: 0 1.5rem 0 0.625rem;
  font-size: 12px;
  line-height: 1.2;
  border: 1.2px solid #e2e8f0 !important;
  border-radius: 6px;
  cursor: pointer;
}

.cross-segment-heatmap {
  min-height: 220px;
}

.cross-segment-heatmap__grid {
  display: grid;
  grid-template-columns: minmax(72px, 0.55fr) repeat(8, minmax(58px, 1fr));
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--tblr-border-color, #e6e7e9);
  border-radius: 8px;
  background: var(--tblr-border-color, #e6e7e9);
}

.cross-segment-heatmap__header,
.cross-segment-heatmap__row-label,
.cross-segment-heatmap__cell {
  min-height: 44px;
  padding: 0.45rem 0.5rem;
  background: var(--tblr-bg-surface, #fff);
}

.cross-segment-heatmap__header,
.cross-segment-heatmap__row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tblr-secondary, #667085);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cross-segment-heatmap__cell {
  border: 0;
  color: #111827;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cross-segment-heatmap__cell:hover,
.cross-segment-heatmap__cell:focus {
  box-shadow: inset 0 0 0 2px rgba(32, 107, 196, 0.45);
  outline: 0;
  transform: translateY(-1px);
}

.cross-segment-heatmap__cell-value {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}
