/* VEX Dashboard - styles */
[x-cloak] { display: none !important; }

html, body {
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* === KPI cards === */
.kpi {
  background: rgb(24 24 27 / 0.6);
  border: 1px solid rgb(39 39 42);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70px;
}
.kpi-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(161 161 170);
}
.kpi-value {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* === Block cards (3 columns) === */
.block-card {
  background: rgb(9 9 11 / 0.7);
  border: 1px solid rgb(39 39 42);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 480px;
}

.block-header {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid;
}

.block-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.block-sub {
  font-size: 0.7rem;
  color: rgb(161 161 170);
  margin: 0.125rem 0 0 0;
}

.block-body {
  flex: 1;
  overflow: auto;
  position: relative;
}

/* === Table === */
.metrics-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.metrics-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(24 24 27);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(161 161 170);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgb(39 39 42);
}

.metrics-table tbody td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgb(24 24 27);
  white-space: nowrap;
}

.metrics-table tbody tr:hover {
  background: rgb(39 39 42 / 0.4);
}

.metrics-table tbody tr.total-row {
  position: sticky;
  top: 28px;
  z-index: 9;
  background: rgb(20 20 23);
  font-weight: 700;
}
.metrics-table tbody tr.total-row td {
  border-bottom: 2px solid rgb(63 63 70);
  border-top: 1px solid rgb(63 63 70);
}

/* tighter on small screens */
@media (max-width: 1280px) {
  .block-card { height: auto; max-height: 600px; }
}

/* scrollbar */
.block-body::-webkit-scrollbar { width: 10px; height: 10px; }
.block-body::-webkit-scrollbar-track { background: rgb(9 9 11); }
.block-body::-webkit-scrollbar-thumb { background: rgb(63 63 70); border-radius: 5px; }
.block-body::-webkit-scrollbar-thumb:hover { background: rgb(82 82 91); }
