/* Keep floor labels and apartment cards in separate, invariant columns. */
#board {
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;
}

.section-board {
  flex: 0 0 auto;
  min-width: 270px;
  width: max-content;
}

.floor-header,
#board .floor-row {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
  align-items: center;
}

.floor-header {
  height: 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 20px;
}

.floor-header > span:first-child,
#board .floor-number {
  flex: 0 0 32px;
  width: 32px;
  text-align: right;
}

.floor-header > span:last-child {
  flex: 1 0 auto;
}

.floor-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#board .floor-row {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  position: static;
  transform: none;
}

#board .floor-number {
  padding-right: 3px;
  color: var(--muted);
  font-size: 12px;
  position: static;
  transform: none;
}

#board .apartment-container {
  display: flex;
  flex-flow: row nowrap;
  flex: 1 0 auto;
  gap: 5px;
  min-height: 48px;
  min-width: 0;
  margin: 0;
  position: static;
  transform: none;
  overflow: visible;
}

#board .floor-row > .apartment-container > .apt {
  position: static;
  flex: 0 0 54px;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 48px;
  margin: 0;
  transform: none;
  grid-column: auto;
  grid-row: auto;
}
