.market-card .content {
  overflow: hidden !important;
}

.market-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tabla principal */
.market-compact-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.market-compact-table th,
.market-compact-table td {
  padding: 4px 4px;
  font-size: 11.5px;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-compact-table th:first-child,
.market-compact-table td:first-child {
  width: 30%;
  text-align: left;
}

.market-compact-table th:nth-child(2),
.market-compact-table td:nth-child(2) {
  width: 24%;
  text-align: right;
}

.market-compact-table th:nth-child(3),
.market-compact-table td:nth-child(3),
.market-compact-table th:nth-child(4),
.market-compact-table td:nth-child(4),
.market-compact-table th:nth-child(5),
.market-compact-table td:nth-child(5) {
  width: 15.3%;
  text-align: right;
}

.market-compact-table thead th {
  padding-top: 0;
  padding-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
}

.market-compact-table tbody td {
  height: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.065);
}

.market-compact-table tbody tr:last-child td {
  border-bottom: none;
}

/* Sectores en tarjetas */
.market-sector-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.market-sector-card {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.market-sector-card-title {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.market-sector-tickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.market-sector-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.06);
}

/* Estados de variación */
.market-card .positive,
.market-sector-pill.positive {
  color: #27e79a;
}

.market-card .negative,
.market-sector-pill.negative {
  color: #ff5c5c;
}

.market-card .neutral,
.market-sector-pill.neutral {
  color: rgba(255, 255, 255, 0.62);
}