/* Dashboard table — extends showcase theme */
.dashboard-main {
  padding: 2rem 0 4rem;
}

.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.meta-pill.live {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--green);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-alert { background: var(--green); }
.dot-near { background: var(--amber); }
.dot-muted { background: #64748b; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 960px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.dashboard-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.sym-cell strong {
  display: block;
  font-size: 0.95rem;
}

.sym-cell small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.price-cell {
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

.metric {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
}

.metric-val {
  font-family: var(--mono);
  font-weight: 600;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric.alert .metric-val {
  color: var(--green);
}

.metric.near .metric-val {
  color: var(--amber);
}

.metric.skipped .metric-val {
  color: #64748b;
}

.metric.na .metric-val {
  color: #475569;
}

.loading,
.error-box {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.error-box {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.nav-link-active {
  color: var(--accent) !important;
}
