
/* CPN Companies Real Logos + Clean Name + Mini Chart Fix */
.company-cell,
td.company-cell,
td[data-label="Company"],
.companies-table td:nth-child(2),
.company-table td:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 260px !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.company-cell::before,
.company-cell::after,
td[data-label="Company"]::before,
td[data-label="Company"]::after,
.companies-table td:nth-child(2)::before,
.companies-table td:nth-child(2)::after,
.company-table td:nth-child(2)::before,
.company-table td:nth-child(2)::after {
  display: none !important;
  content: none !important;
}

.cpn-company-logo,
.company-logo,
.company-logo-img {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 13px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 6px !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.25), inset 0 0 0 1px rgba(15,23,42,.08) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

.cpn-company-logo-fallback {
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}

.company-text-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  line-height: 1.08 !important;
  min-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.company-text-stack strong {
  color: #f8fafc !important;
  font-weight: 850 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  letter-spacing: -.01em !important;
}

.company-text-stack span {
  color: #93a4bf !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* Remove strange dark horizontal bars/overlays inside table cells */
.companies-table td,
.company-table td,
.company-leaders-table td,
table td {
  background-image: none !important;
}

.companies-table td > div:not(.cpn-chart-wrap):not(.cpn-mini-chart):not(.company-text-stack),
.company-table td > div:not(.cpn-chart-wrap):not(.cpn-mini-chart):not(.company-text-stack) {
  box-shadow: none;
}

.cpn-chart-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 190px !important;
}

.cpn-mini-chart {
  width: 132px !important;
  height: 46px !important;
  border-radius: 16px !important;
  padding: 7px 10px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 13px 28px rgba(0,0,0,.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.cpn-mini-chart svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

.cpn-mini-chart path.line {
  fill: none !important;
  stroke-width: 3.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 8px currentColor) !important;
}

.cpn-mini-chart path.area { opacity: .22 !important; }
.cpn-mini-chart.up { color: #31e981 !important; }
.cpn-mini-chart.down { color: #ff5c7c !important; }
.cpn-mini-chart.flat { color: #38bdf8 !important; }

.cpn-chart-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #a7b6d1 !important;
  white-space: nowrap !important;
}

.cpn-chart-status.up { color: #31e981 !important; }
.cpn-chart-status.down { color: #ff5c7c !important; }
.cpn-chart-status.flat { color: #38bdf8 !important; }
