.stock-trends-view.visible {
  display: grid !important;
  gap: 16px !important;
}

.trend-dashboard,
.trend-table-card {
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #111213 !important;
  color: #eeeeee !important;
  box-shadow: none !important;
}

.trend-dashboard {
  display: grid !important;
  gap: 18px !important;
  padding: 18px !important;
}

.trend-dashboard-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.trend-dashboard-head span {
  color: #90949c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.trend-dashboard-head h2 {
  margin: 4px 0 6px !important;
  color: #f3f3f3 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

.trend-dashboard-head p {
  margin: 0 !important;
  color: #90949c !important;
}

.trend-dashboard-actions {
  display: flex !important;
  gap: 8px !important;
}

.trend-dashboard-actions button,
.trend-table-row button {
  min-height: 34px !important;
  border: 1px solid #2a2c30 !important;
  border-radius: 8px !important;
  background: #171819 !important;
  color: #f1f1f1 !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.trend-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.trend-stat-grid article {
  display: grid !important;
  gap: 6px !important;
  min-height: 78px !important;
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #131415 !important;
  padding: 13px 14px !important;
}

.trend-stat-grid span {
  color: #90949c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.trend-stat-grid strong {
  color: #f3f3f3 !important;
  font-size: 24px !important;
}

.trend-table-card {
  overflow: hidden !important;
}

.trend-table-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-bottom: 1px solid #242629 !important;
  padding: 14px 16px !important;
}

.trend-table-toolbar strong {
  color: #f3f3f3 !important;
  font-size: 16px !important;
}

.trend-table-toolbar div {
  display: flex !important;
  gap: 8px !important;
}

.trend-table-toolbar span {
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #171819 !important;
  color: #90949c !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.trend-table {
  min-width: 920px !important;
}

.trend-table-card {
  overflow-x: auto !important;
}

.trend-table-row {
  display: grid !important;
  grid-template-columns: 42px minmax(250px, 1.7fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) 110px 120px 110px 110px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 58px !important;
  border-bottom: 1px solid #1f2124 !important;
  padding: 10px 16px !important;
  background: #111213 !important;
  color: #d8dadd !important;
}

.trend-table-header {
  min-height: 42px !important;
  background: #131415 !important;
  color: #90949c !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.trend-row {
  cursor: pointer !important;
}

.trend-row:hover,
.trend-row:focus-visible {
  background: #171819 !important;
  outline: none !important;
}

.trend-product-cell {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.trend-product-thumb {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  overflow: hidden !important;
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #0f1011 !important;
  color: #90949c !important;
  flex: 0 0 auto !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.trend-product-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.trend-product-cell strong {
  display: block !important;
  overflow: hidden !important;
  color: #f3f3f3 !important;
  font-size: 13px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.trend-product-cell small {
  display: block !important;
  margin-top: 3px !important;
  color: #90949c !important;
  font-size: 11px !important;
}

.trend-chip,
.trend-status {
  width: max-content !important;
  max-width: 100% !important;
  border: 1px solid #242629 !important;
  border-radius: 999px !important;
  background: #171819 !important;
  color: #d8dadd !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.trend-status.hot {
  background: #e9eff8 !important;
  color: #111827 !important;
  border-color: #e9eff8 !important;
}

.trend-status.quiet {
  color: #90949c !important;
}

.trend-note {
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #131415 !important;
  color: #90949c !important;
  padding: 14px 16px !important;
}

@media (max-width: 900px) {
  .trend-dashboard-head,
  .trend-table-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .trend-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
