/* Bid-pack stoplight grid — the pilot's copy, on the Upload tab.
   Same markup as the admin grid (static/bidpack-inventory.js); the admin
   page carries its own palette for it. Colour is decoration here too: every
   cell also carries its own sentence for a screen reader (.bpg-sr). */

.bpg-scroll { overflow-x: auto; }

.bpg {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--text);
}

.bpg th,
.bpg td {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.bpg-period-head {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

.bpg-art-head,
.bpg-fleet-head {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.bpg-fleet {
  text-align: left;
  white-space: nowrap;
  color: var(--text-bright);
}

.bpg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.bpg-green { color: var(--green); }
.bpg-amber { color: var(--amber); }
.bpg-red { color: var(--red); }

/* Visually hidden, still read aloud — the cell's meaning is text, not colour. */
.bpg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bpg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.bpg-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bpg-key .bpg-dot { flex: none; }

.bpg-empty {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
