/* --- Liquidation heat map (CSS grid) --- */
.heatmap-grid {
  display: grid;
  gap: 2px;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  width: 100%;
}
.heatmap-grid .hm-corner,
.heatmap-grid .hm-col-label,
.heatmap-grid .hm-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  padding: 4px 6px;
  white-space: nowrap;
}
.heatmap-grid .hm-row-label {
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.heatmap-grid .hm-col-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.heatmap-grid .hm-cell {
  position: relative;
  border-radius: 4px;
  min-height: 28px;
  min-width: 0;         /* let 1fr cells actually shrink below content */
  overflow: hidden;     /* clip the $-label instead of letting it spill */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.95);
  transition: transform 0.08s;
  cursor: default;
  /* Narrow-cell fallback: fade the inline $ label without hiding the
     cell; the tooltip still shows the exact number on hover/tap. */
  text-overflow: clip;
  white-space: nowrap;
}
@media (max-width: 720px) {
  /* On phones the columns get too narrow to fit any $ label without
     overlapping neighbors, so drop the inline text entirely and let the
     color intensity + tap-tooltip carry the meaning. */
  .heatmap-grid .hm-cell { font-size: 0; }
}
.heatmap-grid .hm-cell:hover {
  transform: scale(1.04);
  outline: 1px solid rgba(255,255,255,0.35);
  z-index: 1;
}
.heatmap-grid .hm-cell.empty {
  background: rgba(255,255,255,0.02);
}
.heatmap-axis-title {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  margin-top: 8px;
}
.heatmap-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(0,0,0,0.85);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 6px;
  font: 12px Inter, sans-serif;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* --- Table pagination bar --- */
.table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 4px 0;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.table-pager button {
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.table-pager button:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
}
.table-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- Loading state --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #CCCCCC;
  font-size: 14px;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #009BFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
