*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f0e4;
  --surface: #fffaf0;
  --surface-alt: #285b3a;
  --text: #26352a;
  --text-muted: #6f796e;
  --border: #d5dac8;
  --green: #285b3a;
  --green-dark: #1d472c;
  --green-pale: #eef3e8;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-link {
  color: #fff;
  background: var(--surface-alt);
  border: 1px solid #376b9e;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: #174878;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-switch {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch:hover,
.language-switch[aria-current="page"] {
  color: #fff;
}

.language-switch[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.floor-date-selector {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.floor-date-selector input {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  color-scheme: dark;
  background: var(--bg);
  border: 1px solid #424260;
  border-radius: 6px;
  font: inherit;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.subtitle code {
  background: var(--surface-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.main {
  min-height: calc(100vh - 80px);
}

.layout-tabs {
  max-width: 1200px;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}

.layout-top-actions {
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.layout-tab-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.4rem;
  background: rgba(15, 20, 42, 0.82);
  border: 1px solid #343451;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.layout-tab {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.layout-tab:hover {
  color: #dceeff;
  background: rgba(77, 145, 209, 0.08);
}

.layout-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #174878, var(--surface-alt));
  border-color: #4d91d1;
  box-shadow: 0 4px 14px rgba(5, 20, 45, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
}

.layout-tab.is-active::after {
  position: absolute;
  right: 1rem;
  bottom: -0.4rem;
  left: 1rem;
  height: 2px;
  content: "";
  background: #8bc7fa;
  border-radius: 999px;
  box-shadow: 0 0 10px #4d91d1;
}

.layout-tab:focus-visible {
  outline: 2px solid #8bc7fa;
  outline-offset: 3px;
}

.layout-tab-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9px;
}

.layout-tab-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.layout-tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.layout-tab-copy strong {
  font-size: 0.9rem;
}

.layout-tab-copy small {
  color: inherit;
  font-size: 0.7rem;
  opacity: 0.72;
}

.layout-tab-panel:focus {
  outline: none;
}

.kitchen-bookings {
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.kitchen-bookings-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kitchen-bookings-heading h2,
.kitchen-bookings-heading p,
.kitchen-booking-card h3,
.kitchen-booking-card p {
  margin: 0;
}

.kitchen-bookings-heading h2 {
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.kitchen-bookings-heading p,
.kitchen-bookings-actions > span,
.kitchen-booking-card p {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.kitchen-bookings-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.risky-bookings-main {
  padding: 1.5rem;
}

.risky-bookings-list {
  max-width: 760px;
  display: grid;
  gap: 0.65rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.risky-bookings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(97, 40, 40, 0.42);
  border: 1px solid #8d3b3b;
  border-left: 4px solid #ef6a6a;
  border-radius: 7px;
}

.risky-bookings-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risky-bookings-item time {
  flex: 0 0 auto;
  color: #ffbaba;
  font-weight: 700;
}

.risky-bookings-times {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.15rem;
}

.risky-bookings-times span,
.booking-created-at,
.kitchen-booking-main small,
.activity-created-at {
  color: var(--text-muted);
  font-size: 0.62rem;
}

.booking-created-at {
  margin: 0.25rem 0 0;
}

.kitchen-booking-main small,
.activity-created-at {
  display: block;
  margin-top: 0.2rem;
}

.kitchen-booking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.7rem;
}

.kitchen-booking-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid #343451;
  border-left: 4px solid #4d91d1;
  border-radius: 7px;
}

.kitchen-booking-card.is-safe {
  background: rgba(29, 87, 48, 0.28);
  border-color: #347849;
  border-left-color: #63c47d;
}

.kitchen-booking-card.is-risky {
  background: rgba(97, 40, 40, 0.42);
  border-color: #8d3b3b;
  border-left-color: #ef6a6a;
}

.kitchen-booking-card time {
  min-width: 3.5rem;
  color: #9dd0ff;
  font-size: 1rem;
  font-weight: 800;
}

.kitchen-booking-main {
  min-width: 0;
  flex: 1 1 auto;
}

.kitchen-booking-card h3 {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchen-booking-card p {
  margin-top: 0.2rem;
}

.kitchen-booking-status {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.kitchen-booking-status strong {
  font-size: 0.68rem;
  text-transform: uppercase;
}

.kitchen-booking-card.is-safe .kitchen-booking-status strong {
  color: #91dfa7;
}

.kitchen-booking-card.is-risky .kitchen-booking-status strong {
  color: #ffaaaa;
}

.kitchen-booking-status span {
  color: var(--text-muted);
  font-size: 0.6rem;
  white-space: nowrap;
}

.daily-bookings {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.daily-bookings-heading,
.booking-summary-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.daily-bookings-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.daily-bookings-heading h2,
.booking-summary h3 {
  margin: 0;
}

.daily-bookings-heading h2 {
  font-size: 1.2rem;
}

.daily-bookings-heading p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.booking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.booking-summary {
  padding: 0.7rem;
  background: var(--bg);
  border: 1px solid #343451;
  border-top: 3px solid #4d91d1;
  border-radius: 6px;
}

.booking-summary h3 {
  min-width: 0;
  flex: 1 1 10rem;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-time {
  color: #9dd0ff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.booking-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.delete-booking,
.edit-booking {
  padding: 0.2rem 0.35rem;
  background: transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}

.delete-booking {
  color: #ffbaba;
  border: 1px solid #813f4a;
}

.delete-booking:hover {
  color: #fff;
  background: #9b3545;
}

.edit-booking {
  color: #b9dcff;
  border: 1px solid #376b9e;
  text-decoration: none;
}

.edit-booking:hover {
  color: #fff;
  background: #174878;
}

.page-alert {
  max-width: 1200px;
  margin: 1rem auto -0.5rem;
}

.allocation-status {
  margin: 0.35rem 0 0;
}

.allocation-status select {
  max-width: 100%;
  padding: 0.25rem 1.8rem 0.25rem 0.4rem;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0.35rem;
  background: #25282d;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.allocation-status select[aria-busy="true"] {
  cursor: wait;
  opacity: 0.65;
}

.allocation-assigned {
  color: #91dfa7;
}

.allocation-unassigned {
  color: #ff9c9c;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.6rem;
  margin: 0.65rem 0 0;
}

.booking-details div {
  min-width: 0;
}

.booking-details dt {
  margin-bottom: 0.1rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.booking-details dd {
  margin: 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.booking-details a {
  color: #9dd0ff;
}

.booking-request dd {
  white-space: pre-wrap;
}

.empty-bookings {
  margin: 1rem 0 0;
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg);
  border-radius: 6px;
}

.floor-plan-wrapper {
  padding: 1.5rem;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#floor-plan {
  width: 100%;
  max-width: 1200px;
  height: auto;
  background: #ebe4d8;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.activity-overview {
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.activity-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.activity-overview-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.activity-overview-kicker {
  margin: 0 0 0.25rem;
  color: #9dd0ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-editing {
  margin: 0.4rem 0 0;
  color: #b9dcff;
  font-size: 0.75rem;
}

.activity-overview-actions {
  display: flex;
  gap: 0.5rem;
}

.activity-table-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid #343451;
  border-radius: 7px;
}

.activity-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--bg);
}

.activity-table th,
.activity-table td {
  height: 64px;
  padding: 0.55rem 0.7rem;
  border-right: 1px solid #343451;
  border-bottom: 1px solid #343451;
  text-align: left;
  vertical-align: middle;
}

.activity-table tr:last-child th,
.activity-table tr:last-child td {
  border-bottom: 0;
}

.activity-table th:last-child,
.activity-table td:last-child {
  border-right: 0;
}

.activity-table thead th {
  height: 58px;
  color: #fff;
  background: var(--surface-alt);
}

.activity-table thead th:first-child,
.activity-table tbody th {
  width: 128px;
}

.activity-table thead strong,
.activity-table thead small {
  display: block;
}

.activity-table thead small {
  margin-top: 0.15rem;
  color: #b9dcff;
  font-size: 0.65rem;
  font-weight: 400;
}

.activity-table tbody th {
  color: #9dd0ff;
  background: #20203a;
  font-size: 0.72rem;
  white-space: nowrap;
}

.activity-table tbody th i {
  font-style: normal;
}

.activity-table td strong,
.activity-table td a {
  display: block;
  min-width: 0;
}

.activity-table td strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-table td a {
  margin-top: 0.15rem;
  color: #b9dcff;
  font-size: 0.65rem;
  overflow-wrap: anywhere;
}

.activity-table td.is-booked {
  background: rgba(15, 52, 96, 0.72);
  box-shadow: inset 3px 0 #4d91d1;
}

.activity-slot-form {
  margin-top: 0.35rem;
}

.activity-slot-action,
.activity-edit-link {
  display: inline-block;
  padding: 0.15rem 0.3rem;
  background: transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
  text-decoration: none;
}

.activity-table td .activity-edit-link {
  width: fit-content;
  margin-top: 0.35rem;
  color: #b9dcff;
  border: 1px solid #376b9e;
}

.activity-slot-delete {
  color: #ffbaba;
  border: 1px solid #813f4a;
}

.activity-slot-delete:hover {
  color: #fff;
  background: #9b3545;
}

.activity-slot-book {
  color: #b7e7c3;
  border: 1px solid #377148;
}

.activity-slot-book:hover {
  color: #fff;
  background: #28703e;
}

.activity-table td.is-available span {
  color: #6f967b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-main {
  padding: 2rem 1.25rem;
}

.booking-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cancellation-card {
  max-width: 560px;
}

.cancellation-card a:not(.nav-link) {
  color: #9dd0ff;
}

.cancel-confirm-button {
  padding: 0.75rem 1rem;
  color: #fff;
  background: #a52d3b;
  border: 1px solid #d45462;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cancel-confirm-button:hover {
  background: #bd3545;
}

.cancellation-home {
  display: inline-block;
  margin-top: 1rem;
}

.staff-login-card {
  max-width: 420px;
}

.staff-login-form {
  display: grid;
  gap: 1.25rem;
}

.staff-login-button {
  cursor: pointer;
  font: inherit;
}

.staff-login-button {
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--surface-alt);
  border: 1px solid #5da3df;
  border-radius: 6px;
  font-weight: 700;
}

.staff-login-button:hover {
  background: #174878;
}

.audit-main {
  padding: 1.5rem;
}

.audit-table-wrapper {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.audit-table th,
.audit-table td {
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.audit-table th {
  color: #fff;
  background: var(--surface-alt);
  white-space: nowrap;
}

.audit-table pre {
  max-width: 32rem;
  margin: 0.6rem 0 0;
  overflow: auto;
  color: var(--text);
  white-space: pre-wrap;
}

.audit-table summary {
  color: #9dd0ff;
  cursor: pointer;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.audit-pagination span {
  color: var(--text-muted);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.booking-mode-selector {
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-mode-selector legend {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
}

.booking-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.booking-mode-options label {
  position: relative;
  cursor: pointer;
}

.booking-mode-options input {
  position: absolute;
  opacity: 0;
}

.booking-mode-options span {
  display: flex;
  flex-direction: column;
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg);
  border: 1px solid #424260;
  border-radius: 8px;
}

.booking-mode-options span small {
  margin-top: 0.3rem;
  color: #9dd0ff;
  font-size: 0.7rem;
  font-weight: 600;
}

.booking-mode-options input:checked + span {
  color: #fff;
  background: var(--surface-alt);
  border-color: #5da3df;
  box-shadow: 0 0 0 1px #5da3df;
}

.booking-mode-options input:focus-visible + span {
  outline: 2px solid #8bc7fa;
  outline-offset: 2px;
}

.form-section {
  padding: 1rem;
  background: rgba(15, 52, 96, 0.24);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.activity-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.activity-section-heading .form-section-title {
  margin-bottom: 0.25rem;
}

.activity-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.activity-section-heading > small {
  padding: 0.35rem 0.55rem;
  color: #9dd0ff;
  background: var(--bg);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.bowling-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bowling-lane {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid #424260;
  border-radius: 8px;
}

.bowling-lane legend {
  padding: 0 0.35rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.bowling-slot-list {
  display: grid;
  gap: 0.4rem;
}

.bowling-slot {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  background: #20203a;
  border: 1px solid #3b3b5b;
  border-radius: 6px;
  cursor: pointer;
}

.bowling-slot:hover {
  border-color: #5da3df;
}

.bowling-slot input {
  position: absolute;
  opacity: 0;
}

.bowling-slot span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}

.bowling-slot b {
  font-size: 0.82rem;
}

.bowling-slot small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.bowling-slot i {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: transparent;
  border: 1px solid #5a5a78;
  border-radius: 50%;
  font-size: 0.7rem;
  font-style: normal;
}

.bowling-slot:has(input:checked) {
  color: #fff;
  background: var(--surface-alt);
  border-color: #5da3df;
  box-shadow: 0 0 0 1px #5da3df;
}

.bowling-slot:has(input:checked) i {
  color: #0f3460;
  background: #9dd0ff;
  border-color: #9dd0ff;
}

.bowling-slot:has(input:focus-visible) {
  outline: 2px solid #8bc7fa;
  outline-offset: 2px;
}

.bowling-slot.is-reserved {
  color: #737389;
  background: #18182a;
  cursor: not-allowed;
}

.bowling-slot.is-reserved small {
  color: #ca7f88;
}

.bowling-selection-summary {
  margin: 0.85rem 0 0;
  color: #9dd0ff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

[hidden] {
  display: none !important;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #424260;
  border-radius: 6px;
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #4d91d1;
  outline-offset: 1px;
  border-color: transparent;
}

.form-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #4d91d1;
}

.form-actions button {
  padding: 0.75rem 1.25rem;
  color: #fff;
  background: #2776b9;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-actions button:hover {
  background: #3187ce;
}

.alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

.alert a {
  color: inherit;
  font-weight: 700;
}

.alert-success {
  color: #d8f5df;
  background: #1d5730;
  border: 1px solid #347849;
}

.alert-error {
  color: #ffdede;
  background: #612828;
  border: 1px solid #8d3b3b;
}

.alert-warning {
  color: #fff1bf;
  background: #5e4a16;
  border: 1px solid #a78328;
}

.nav-link,
.staff-login-button,
.form-actions button {
  color: #fffdf5;
  background: var(--green);
  border-color: var(--green-dark);
}

.nav-link:hover,
.staff-login-button:hover,
.form-actions button:hover {
  background: var(--green-dark);
}

.language-switch:hover,
.language-switch[aria-current="page"] {
  color: var(--green-dark);
}

.floor-date-selector input,
.form-field input,
.form-field select,
.form-field textarea,
.allocation-status select {
  color: var(--text);
  color-scheme: light;
  background: #fffdf7;
  border-color: #bdc8b5;
}

.layout-tab-list {
  background: var(--surface);
  border-color: var(--border);
}

.layout-tab:hover {
  color: var(--green-dark);
  background: var(--green-pale);
}

.layout-tab.is-active,
.booking-mode-options input:checked + span,
.bowling-slot:has(input:checked) {
  color: #fffdf5;
  background: var(--green);
  border-color: #6f9274;
}

.layout-tab.is-active::after {
  background: #b8cc9f;
}

.layout-tab:focus-visible,
.booking-mode-options input:focus-visible + span,
.bowling-slot:has(input:focus-visible),
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline-color: #668a68;
}

.layout-tab-icon {
  background: #e2eadb;
}

.layout-tab.is-active .layout-tab-icon {
  background: #477457;
}

.booking-summary,
.kitchen-booking-card,
.activity-table-wrapper,
.bowling-lane,
.bowling-slot,
.booking-mode-options span,
.empty-bookings {
  background: var(--green-pale);
  border-color: #cbd5c2;
}

.booking-summary,
.kitchen-booking-card {
  border-top-color: #5f8965;
}

.kitchen-booking-card {
  border-left-color: #5f8965;
}

.kitchen-booking-card.is-safe {
  color: var(--text);
  background: #dce9d6;
  border-color: #8eaa88;
  border-left-color: var(--green);
}

.kitchen-booking-card.is-safe .kitchen-booking-status strong,
.allocation-assigned {
  color: var(--green-dark);
}

.booking-time,
.activity-overview-kicker,
.activity-editing,
.activity-table tbody th,
.activity-table td a,
.activity-table thead small,
.booking-details a,
.cancellation-card a:not(.nav-link),
.audit-table summary,
.booking-mode-options span small,
.activity-section-heading > small,
.bowling-selection-summary,
.kitchen-booking-card time {
  color: var(--green);
}

.edit-booking,
.activity-table td .activity-edit-link {
  color: var(--green);
  border-color: #86a187;
}

.edit-booking:hover,
.activity-table td .activity-edit-link:hover {
  color: #fffdf5;
  background: var(--green);
}

.activity-table {
  background: #fffdf7;
}

.activity-table th,
.activity-table td,
.activity-table-wrapper {
  border-color: #d7dccd;
}

.activity-table thead th,
.audit-table th {
  color: #fffdf5;
  background: var(--green);
}

.activity-table tbody th {
  background: #e5ecdd;
}

.activity-table td.is-booked {
  background: #dce8d5;
  box-shadow: inset 3px 0 #5f8965;
}

.activity-table td.is-available span {
  color: var(--green-dark);
}

.activity-slot-book {
  color: var(--green-dark);
  background: #e2eadb;
  border-color: #789579;
}

.form-section {
  background: #f1ecdf;
}

.bowling-slot:hover {
  border-color: #6f9274;
}

.bowling-slot:has(input:checked) i {
  color: var(--green-dark);
  background: #dce9cf;
  border-color: #b7cba6;
}

.bowling-slot.is-reserved {
  color: #92998f;
  background: #e8e5dd;
}

.checkbox-field input {
  accent-color: var(--green);
}

#floor-plan {
  background: #f1eadb;
  border-color: #c8cfbd;
}

.alert-success {
  color: #234a2e;
  background: #e0edda;
  border-color: #93ae8e;
}

.alert-error,
.risky-bookings-item,
.kitchen-booking-card.is-risky {
  color: #6e3029;
  background: #f4e3dc;
  border-color: #c89b8e;
}

.risky-bookings-item time,
.kitchen-booking-card.is-risky .kitchen-booking-status strong,
.allocation-unassigned,
.delete-booking,
.activity-slot-delete {
  color: #873c32;
}

.delete-booking,
.activity-slot-delete {
  border-color: #b77d71;
}

.alert-warning {
  color: #624e1d;
  background: #f5edd0;
  border-color: #cfbc79;
}

@media (max-width: 600px) {
  .header {
    padding: 0.85rem 1rem;
  }

  .header-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .header-actions {
    width: 100%;
    align-items: flex-end;
    flex-direction: row;
  }

  .floor-date-selector {
    flex: 1;
  }

  .floor-date-selector input,
  .header-actions .nav-link {
    width: 100%;
  }

  .booking-card {
    padding: 1.25rem;
  }

  .layout-tabs {
    margin-top: 0.65rem;
    padding: 0 0.65rem;
  }

  .layout-tab {
    justify-content: center;
    padding: 0.7rem 0.45rem;
  }

  .layout-tab-icon {
    width: 2rem;
    height: 2rem;
  }

  .layout-tab-copy small {
    display: none;
  }

  .kitchen-bookings {
    margin: 0.65rem;
    padding: 0.75rem;
  }

  .kitchen-booking-list {
    grid-template-columns: 1fr;
  }

  .kitchen-bookings-heading,
  .kitchen-bookings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .risky-bookings-main {
    padding: 0.65rem;
  }

  .risky-bookings-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .daily-bookings {
    margin: 0.65rem;
    padding: 0.75rem;
  }

  .daily-bookings-heading {
    gap: 0.5rem;
  }

  .daily-bookings-actions {
    align-items: flex-end;
  }

  .daily-bookings-heading h2 {
    font-size: 1rem;
  }

  .daily-bookings-heading .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .booking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .booking-summary {
    padding: 0.55rem;
  }

  .booking-summary-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .booking-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .booking-details {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-top: 0.45rem;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-mode-options,
  .form-section-grid,
  .bowling-slot-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .floor-plan-wrapper {
    padding: 0.65rem;
  }

  .activity-overview {
    margin: 0.65rem 0.65rem 1rem;
    padding: 0.75rem;
  }

  .activity-table th,
  .activity-table td {
    height: 54px;
    padding: 0.35rem;
  }

  .activity-table thead th:first-child,
  .activity-table tbody th {
    width: 82px;
  }

  .activity-table thead th {
    font-size: 0.72rem;
    text-align: center;
  }

  .activity-table thead small {
    display: none;
  }

  .activity-table tbody th {
    font-size: 0.6rem;
    text-align: center;
    white-space: normal;
  }

  .activity-table tbody th span {
    display: block;
  }

  .activity-table tbody th i {
    display: none;
  }

  .activity-table td {
    text-align: center;
  }

  .activity-table td strong {
    font-size: 0.68rem;
  }

  .activity-table td a {
    display: none;
  }

  .activity-table td.is-available span {
    font-size: 0.58rem;
  }

}

@media (max-width: 400px) {
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-list {
    grid-template-columns: 1fr;
  }

  .layout-tab {
    gap: 0.4rem;
  }

  .layout-tab-icon {
    display: none;
  }

  .layout-tab-copy strong {
    font-size: 0.78rem;
  }

  .daily-bookings-heading,
  .daily-bookings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-overview-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-table thead th:first-child,
  .activity-table tbody th {
    width: 66px;
  }

  .activity-table th,
  .activity-table td {
    padding: 0.25rem 0.15rem;
  }

  .activity-table td strong {
    font-size: 0.62rem;
  }

  .activity-table td.is-available span {
    font-size: 0.5rem;
  }

}
.accept-booking {
  border: 0;
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  background: #287a4b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.accept-booking:hover {
  background: #1f633c;
}

.pending-booking-actions {
  margin-top: 1rem;
}
