/* Left grid column — prevent table from blowing out the 1fr column */
.map-layout > div:first-child {
  min-width: 0;
}

/* Allocation table — left panel, matching #map height from oil-map.css */
#allocation-table-container {
  height: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}

.allocation-table-wrap {
  height: 100%;
  overflow: auto;
}

.allocation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.allocation-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  padding: 8px 5px;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.allocation-table th.col-au {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.allocation-table th.col-refinery {
  text-align: left;
  min-width: 120px;
}

.allocation-table td {
  padding: 5px 5px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.72rem;
}

.allocation-table td.refinery-name {
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  padding-left: 8px;
}

.allocation-table td.refinery-shortfall {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.allocation-table td.cell-au {
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.allocation-table td.cell-heat {
  border-radius: 0;
}

.allocation-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--border);
  color: var(--text);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.allocation-table tbody tr:hover {
  background: rgba(91, 138, 245, 0.04);
}

/* No-data message */
.no-data-msg {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 20px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  #allocation-table-container {
    height: 400px;
  }
}
