.staff-reservations-page {
  --res-bg: #05070a;
  --res-panel: #0b1017;
  --res-panel-2: #0f151f;
  --res-panel-3: #141b25;
  --res-line: rgba(154, 169, 191, .18);
  --res-line-strong: rgba(154, 169, 191, .32);
  --res-text: #f7f9fc;
  --res-muted: #9ba7b8;
  --res-faint: #687386;
  --res-purple: #6d4cff;
  --res-blue: #326dff;
  --res-green: #28b981;
  --res-amber: #d58b19;
  color: var(--res-text);
  display: grid;
  gap: 18px;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.staff-reservations-page.hidden {
  display: none !important;
}

.reservations-hero,
.reservations-kpi,
.reservations-calendar-panel,
.reservations-day-detail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    var(--res-panel);
  border: 1px solid var(--res-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.reservations-hero {
  min-height: 78px;
  border-radius: 18px;
  padding: 18px 18px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reservations-hero h1 {
  margin: 0;
  color: var(--res-text);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.reservations-hero > div:first-child {
  min-width: 240px;
  flex: 1 1 300px;
}

.reservations-hero p {
  margin: 8px 0 0;
  color: var(--res-muted);
  font-size: 14px;
  line-height: 1.35;
}

.reservations-actions {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reservations-select,
.reservations-action,
.reservations-month-nav,
.reservations-month-nav button,
.reservations-pill-group button,
.reservations-day-detail-head button,
.reservations-calendar-foot,
.reservations-detail-row {
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.reservations-select,
.reservations-action,
.reservations-month-nav {
  min-height: 42px;
  border-radius: 10px;
  color: var(--res-text);
  background: rgba(10, 15, 22, .82);
  border: 1px solid var(--res-line);
}

.reservations-select {
  padding: 0 38px 0 14px;
}

.reservations-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  transition-property: background-color, border-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.reservations-action svg {
  width: 16px;
  height: 16px;
}

.reservations-action:hover {
  background: rgba(20, 27, 37, .94);
  border-color: rgba(154, 169, 191, .42);
}

.reservations-action:active,
.reservations-month-nav button:active,
.reservations-pill-group button:active,
.reservations-day:active,
.reservations-detail-row:active {
  transform: scale(.96);
}

.reservations-action.primary {
  background: #f3f6fb;
  border-color: #f3f6fb;
  color: #05070a;
  font-weight: 760;
  min-width: 174px;
}

.reservations-month-nav {
  display: inline-grid;
  grid-template-columns: 42px minmax(140px, auto) 42px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.reservations-month-nav button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  color: var(--res-text);
  background: transparent;
  cursor: pointer;
}

.reservations-month-nav .month-button {
  min-width: 150px;
  padding: 0 14px;
  border-inline: 1px solid var(--res-line);
  text-transform: capitalize;
  font-weight: 720;
}

#staffReservationsMonthPicker {
  position: absolute;
  inset: auto 44px 0 auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reservations-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reservations-kpi {
  min-height: 108px;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.reservations-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(109, 76, 255, .16);
  color: var(--res-purple);
}

.reservations-kpi.blue .reservations-kpi-icon {
  background: rgba(50, 109, 255, .14);
  color: var(--res-blue);
}

.reservations-kpi.green .reservations-kpi-icon {
  background: rgba(40, 185, 129, .14);
  color: var(--res-green);
}

.reservations-kpi.amber .reservations-kpi-icon {
  background: rgba(213, 139, 25, .14);
  color: var(--res-amber);
}

.reservations-kpi-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reservations-kpi-copy {
  min-width: 0;
}

.reservations-kpi-copy span {
  display: block;
  color: var(--res-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reservations-kpi-copy strong {
  display: block;
  margin-top: 8px;
  color: var(--res-text);
  font-size: 30px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.reservations-kpi-copy small {
  display: block;
  margin-top: 8px;
  color: var(--res-muted);
  font-size: 13px;
}

.reservations-kpi .dash-spark {
  width: 118px;
  height: 50px;
  color: var(--res-purple);
  opacity: .96;
}

.reservations-kpi.blue .dash-spark {
  color: var(--res-blue);
}

.reservations-kpi.green .dash-spark {
  color: var(--res-green);
}

.reservations-kpi.amber .dash-spark {
  color: var(--res-amber);
}

.reservations-main-grid {
  display: grid;
  gap: 16px;
}

.reservations-calendar-panel {
  border-radius: 16px;
  overflow: hidden;
}

.reservations-filter-row {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--res-line);
}

.reservations-pill-group,
.reservations-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reservations-pill-group button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--res-line);
  border-radius: 9px;
  color: var(--res-muted);
  background: rgba(10, 15, 22, .82);
  cursor: pointer;
}

.reservations-pill-group button.active {
  color: #f3f6fb;
  background: rgba(109, 76, 255, .28);
  border-color: rgba(109, 76, 255, .58);
}

.reservations-legend {
  color: var(--res-muted);
  font-size: 13px;
}

.reservations-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}

.reservations-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--res-faint);
}

.reservations-legend .bowling,
.reservations-day-line.bowling span {
  background: var(--res-green);
}

.reservations-legend .laser,
.reservations-day-line.laser span {
  background: var(--res-blue);
}

.reservations-legend .complete,
.reservations-day-line.complete span {
  background: var(--res-purple);
}

.reservations-legend .event {
  background: var(--res-amber);
}

.reservations-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .02);
}

.reservations-weekday {
  min-height: 44px;
  padding: 15px 14px 10px;
  color: #c8d0dc;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid var(--res-line);
  border-bottom: 1px solid var(--res-line);
}

.reservations-weekday:nth-child(7) {
  border-right: 0;
}

.reservations-day {
  min-height: 112px;
  padding: 12px 12px 10px;
  text-align: left;
  color: var(--res-text);
  background: rgba(9, 13, 19, .74);
  border: 0;
  border-right: 1px solid var(--res-line);
  border-bottom: 1px solid var(--res-line);
  cursor: pointer;
  transition-property: background-color, box-shadow, outline-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.reservations-day:nth-child(7n) {
  border-right: 0;
}

.reservations-day:hover {
  background: rgba(20, 27, 37, .88);
}

.reservations-day.selected {
  outline: 1px solid rgba(109, 76, 255, .82);
  outline-offset: -1px;
  background: rgba(109, 76, 255, .08);
}

.reservations-day.today .reservations-day-head strong {
  color: #f3f6fb;
}

.reservations-day.outside {
  opacity: .42;
}

.reservations-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.reservations-day-head strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.reservations-day-head em {
  color: var(--res-muted);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.reservations-day-body {
  display: grid;
  gap: 6px;
}

.reservations-day-line {
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 680;
  background: rgba(255, 255, 255, .035);
}

.reservations-day-line span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #05070a;
  font-size: 11px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.reservations-day-line em {
  font-style: normal;
}

.reservations-day-line.bowling {
  color: #5fd59b;
  background: rgba(40, 185, 129, .09);
}

.reservations-day-line.laser {
  color: #7fa2ff;
  background: rgba(50, 109, 255, .09);
}

.reservations-day-line.complete {
  color: #b797ff;
  background: rgba(109, 76, 255, .1);
}

.reservations-day-empty {
  margin-top: 16px;
  color: var(--res-faint);
  font-size: 12px;
}

.reservations-calendar-foot {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--res-muted);
  background: rgba(255, 255, 255, .02);
}

.reservations-calendar-foot p {
  margin: 0;
  font-size: 13px;
}

.reservations-day-detail {
  border-radius: 16px;
  padding: 16px;
}

.reservations-day-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--res-line);
}

.reservations-day-detail-head span {
  color: var(--res-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reservations-day-detail-head h2 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

.reservations-day-detail-head button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #f3f6fb;
  border-radius: 10px;
  color: #05070a;
  background: #f3f6fb;
  font-weight: 760;
  cursor: pointer;
}

.reservations-day-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.reservations-day-summary div {
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--res-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.reservations-day-summary strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.reservations-day-summary span {
  display: block;
  margin-top: 8px;
  color: var(--res-muted);
  font-size: 12px;
}

.reservations-day-list {
  display: grid;
  gap: 8px;
}

.reservations-detail-row {
  min-height: 64px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--res-line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 64px minmax(180px, 1.1fr) minmax(220px, 1.3fr) 76px 94px 76px;
  gap: 12px;
  align-items: center;
  color: var(--res-text);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  text-align: left;
  transition-property: background-color, border-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.reservations-detail-row:hover {
  background: rgba(255, 255, 255, .045);
  border-color: var(--res-line-strong);
}

.reservations-detail-row.bowling {
  box-shadow: inset 0 0 0 1px rgba(40, 185, 129, .12);
}

.reservations-detail-row.laser {
  box-shadow: inset 0 0 0 1px rgba(50, 109, 255, .13);
}

.reservations-detail-row.complete {
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, .16);
}

.reservations-detail-row .time,
.reservations-detail-row .amount {
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.reservations-detail-row .main,
.reservations-detail-row .resource {
  min-width: 0;
}

.reservations-detail-row .main strong,
.reservations-detail-row .main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservations-detail-row .main em,
.reservations-detail-row .resource,
.reservations-detail-row .players {
  color: var(--res-muted);
  font-size: 12px;
  font-style: normal;
}

.reservations-detail-row .status {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce4ef;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 740;
}

.reservations-detail-row .status.paid {
  color: #5fd59b;
  background: rgba(40, 185, 129, .13);
}

.reservations-detail-row .status.arrived {
  color: #efb15d;
  background: rgba(213, 139, 25, .14);
}

.reservations-empty-state {
  min-height: 120px;
  border: 1px dashed var(--res-line-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--res-muted);
  text-align: center;
}

.reservations-empty-state strong {
  color: var(--res-text);
}

body.staff-light .staff-reservations-page {
  --res-bg: #f5f7fb;
  --res-panel: #ffffff;
  --res-panel-2: #f8fafc;
  --res-panel-3: #eef2f7;
  --res-line: rgba(16, 24, 40, .13);
  --res-line-strong: rgba(16, 24, 40, .24);
  --res-text: #101828;
  --res-muted: #5d6878;
  --res-faint: #98a2b3;
}

body.staff-light .reservations-hero,
body.staff-light .reservations-kpi,
body.staff-light .reservations-calendar-panel,
body.staff-light .reservations-day-detail {
  background: var(--res-panel);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .06);
}

body.staff-light .reservations-select,
body.staff-light .reservations-action,
body.staff-light .reservations-month-nav,
body.staff-light .reservations-pill-group button {
  background: #f8fafc;
  color: var(--res-text);
}

body.staff-light .reservations-action.primary,
body.staff-light .reservations-day-detail-head button {
  background: #101828;
  border-color: #101828;
  color: #f7f9fc;
}

body.staff-light .reservations-day {
  background: #ffffff;
}

body.staff-light .reservations-day:hover {
  background: #f8fafc;
}

body.staff-light .reservations-day-line span {
  color: #ffffff;
}

@media (max-width: 1280px) {
  .reservations-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservations-detail-row {
    grid-template-columns: 58px minmax(160px, 1fr) minmax(160px, 1fr) 70px 88px 70px;
  }
}

@media (max-width: 900px) {
  .reservations-hero,
  .reservations-filter-row,
  .reservations-day-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservations-actions {
    justify-content: flex-start;
  }

  .reservations-kpi-grid {
    grid-template-columns: 1fr;
  }

  .reservations-calendar {
    min-width: 820px;
  }

  .reservations-calendar-panel {
    overflow-x: auto;
  }

  .reservations-detail-row {
    grid-template-columns: 58px minmax(0, 1fr) 68px;
  }

  .reservations-detail-row .resource,
  .reservations-detail-row .status,
  .reservations-detail-row .amount {
    grid-column: 2 / -1;
  }
}
