/* Shared modern data card surface for tables and chart panels */

.data-surface {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.data-table th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

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

.chart-scroll-wrap.data-surface,
.data-surface.chart-scroll-wrap {
  padding: 16px;
}

/* Tables with sticky headers need the surface padding removed so rows
   cannot scroll above the sticky thead into the padding area. */
#tab-volume .chart-scroll-wrap.data-surface {
  padding: 0;
}

#tab-volume .chart-scroll-wrap.data-surface > .chart-skeleton,
#tab-volume .chart-scroll-wrap.data-surface > .volume-daily-chart-block {
  padding: 16px;
}

.data-panel-heading {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.data-empty-msg {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
