/* Occupancy board. Status follows the available-only selection model of SPMS SlotGrid. */
.occ-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 32px;
  border-block: 1px solid var(--line);
}
.occ-totals > div {
  min-width: 0;
  padding: 17px clamp(12px, 2vw, 28px);
  border-inline-start: 1px solid var(--line);
}
.occ-totals > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.occ-totals dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.occ-totals dd {
  margin: 6px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.occ-totals > div:first-child dd { color: var(--green); }
.occ-board, .occ-register { margin-block-end: 32px; }
.occ-board h2, .occ-register h2 { margin-block-end: 14px; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 14px; }
.occ-zone {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white, white);
}
.occ-zone-head, .occ-zone-facts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
}
.occ-zone-head { align-items: baseline; }
.occ-zone-head h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.occ-status { color: #205f4c; font-size: .78rem; font-weight: 700; }
.occ-status::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border: 1px solid currentColor; border-radius: 50%; background: currentColor;
}
.occ-zone[data-status="OCCUPIED"] .occ-status { color: #925022; }
.occ-zone[data-status="OCCUPIED"] .occ-status::before { border-radius: 1px; }
.occ-zone[data-status="OUT_OF_SERVICE"] .occ-status { color: #59635e; }
.occ-zone[data-status="OUT_OF_SERVICE"] .occ-status::before { background: transparent; }
.occ-remaining { margin: 22px 0 10px; color: var(--muted); font-size: .85rem; }
.occ-remaining strong { color: var(--ink); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.occ-band { height: 9px; overflow: hidden; border-radius: 2px; background: #dce8df; }
.occ-band span { display: block; height: 100%; background: #2a5146; }
.occ-zone[data-status="OCCUPIED"] .occ-band span { background: #976132; }
.occ-zone[data-status="OUT_OF_SERVICE"] .occ-band { background: repeating-linear-gradient(135deg,#e8e9e5 0 4px,#d7dbd4 4px 6px); }
.occ-zone[data-status="OUT_OF_SERVICE"] .occ-band span { background: #647066; }
.occ-zone-facts { margin-top: 8px; min-height: 34px; color: var(--muted); font-size: .8rem; }
.occ-enter {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px;
  border: 0; background: none; color: var(--ink); font-size: .82rem; font-weight: 700;
}
.occ-enter:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .occ-totals { margin-bottom: 25px; }
  .occ-totals > div { padding-inline: 9px; }
  .occ-totals dt { min-height: 2.25em; font-size: .76rem; }
  .occ-zone { padding: 16px; }
  .occ-enter { min-height: 44px; }
}
