[hidden] {
  display: none !important;
}

.login-shell {
  margin-top: 1rem;
}

.login-shell .login-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.admin-app {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.inline-filters {
  margin-top: 0.9rem;
  display: flex;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.inline-filters .field-label {
  margin-bottom: 0.2rem;
}

.inline-filters .input-field {
  min-width: 220px;
}

.stats-grid-admin {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.panel-feedback {
  margin: 0.65rem 0 0;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 600;
  min-height: 2.1rem;
}

.panel-feedback:empty {
  display: none;
}

.panel-feedback.is-success {
  border-color: rgba(125, 215, 165, 0.35);
  background: rgba(46, 141, 84, 0.22);
  color: #d7f7e5;
}

.panel-feedback.is-error {
  border-color: rgba(255, 167, 167, 0.35);
  background: rgba(167, 42, 58, 0.22);
  color: #ffd8d8;
}

.panel-feedback.is-info {
  border-color: rgba(217, 180, 122, 0.35);
  background: rgba(217, 180, 122, 0.12);
  color: #f7ebd9;
}

.floorplan-plan-tabs {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.floorplan-service-tabs {
  margin-top: 0.55rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.floorplan-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 241, 0.2);
  background: rgba(255, 248, 241, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.floorplan-plan-btn:hover {
  border-color: rgba(240, 202, 141, 0.42);
  color: var(--text);
}

.floorplan-plan-btn.is-active {
  border-color: rgba(240, 202, 141, 0.58);
  background: rgba(217, 180, 122, 0.14);
  color: var(--gold-strong);
}

.floorplan-plan-btn.is-disabled,
.floorplan-plan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 248, 241, 0.12);
  color: rgba(255, 248, 241, 0.58);
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 241, 0.18);
  background: rgba(255, 248, 241, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 202, 141, 0.35);
  color: var(--text);
}

.tab-btn.is-active {
  border-color: rgba(240, 202, 141, 0.5);
  color: var(--gold-strong);
  background: rgba(217, 180, 122, 0.12);
}

.tab-panel {
  display: grid;
  gap: 0.9rem;
}

.card-details {
  display: block;
}

.card-head-collapsible {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.card-head-collapsible::-webkit-details-marker {
  display: none;
}

.card-head-collapsible::after {
  content: '▾';
  color: var(--gold);
  font-size: 1rem;
  transition: transform 150ms ease;
}

.card-details[open] .card-head-collapsible::after {
  transform: rotate(180deg);
}

.card-collapsible-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 202, 141, 0.35);
  background: rgba(217, 180, 122, 0.1);
  color: var(--gold-strong);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 202, 141, 0.35);
  background: rgba(217, 180, 122, 0.12);
  color: var(--gold-strong);
  font-size: 0.9rem;
}

.card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.55rem;
}

.filters-grid .field-grow {
  grid-column: span 2;
}

.form-actions-inline {
  display: flex;
  gap: 0.55rem;
  align-items: end;
  flex-wrap: wrap;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

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

.form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

textarea.input-field {
  min-height: 92px;
  resize: vertical;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  accent-color: #d9b47a;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 241, 0.2);
  background: rgba(255, 248, 241, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge.status-pending,
.status-badge.status-waitlist {
  border-color: rgba(240, 202, 141, 0.45);
  color: #f0ca8d;
}

.status-badge.status-confirmed,
.status-badge.status-seated,
.status-badge.status-completed {
  border-color: rgba(125, 215, 165, 0.45);
  color: #9ef0c3;
}

.status-badge.status-active {
  border-color: rgba(125, 215, 165, 0.45);
  color: #9ef0c3;
}

.status-badge.status-cancelled_by_client,
.status-badge.status-cancelled_by_staff,
.status-badge.status-no_show,
.status-badge.status-rejected {
  border-color: rgba(255, 167, 167, 0.45);
  color: #ffcbcb;
}

.status-badge.status-inactive,
.status-badge.status-locked {
  border-color: rgba(255, 167, 167, 0.45);
  color: #ffcbcb;
}

.table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-inline {
  border: 1px solid rgba(255, 248, 241, 0.22);
  background: rgba(255, 248, 241, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-inline:hover {
  border-color: rgba(240, 202, 141, 0.5);
}

.btn-inline.is-danger {
  border-color: rgba(255, 167, 167, 0.4);
  color: #ffcbcb;
}

.btn-inline.is-success {
  border-color: rgba(125, 215, 165, 0.4);
  color: #b9f3d5;
}

.row-main {
  display: grid;
  gap: 0.15rem;
}

.row-main .sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.floorplan-canvas {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.8rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.55rem;
  background:
    radial-gradient(circle at 14% 10%, rgba(240, 202, 141, 0.2), transparent 38%),
    radial-gradient(circle at 85% 86%, rgba(168, 81, 50, 0.14), transparent 42%),
    linear-gradient(158deg, rgba(255, 248, 241, 0.09), rgba(255, 248, 241, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 233, 0.08),
    inset 0 -24px 40px rgba(0, 0, 0, 0.16);
}

.floorplan-board {
  position: relative;
  flex: 0 0 auto;
  min-width: 320px;
  min-height: 280px;
  border: 1px solid rgba(255, 248, 241, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 14%, rgba(240, 202, 141, 0.12), transparent 34%),
    radial-gradient(circle at 82% 84%, rgba(185, 96, 63, 0.09), transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(47, 33, 27, 0.97), rgba(33, 22, 19, 0.99));
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 241, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.2);
}

.floorplan-decor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floorplan-decor {
  position: absolute;
  pointer-events: none;
}

.floorplan-decor-bar {
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(240, 202, 141, 0.62), rgba(190, 138, 74, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 226, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

.floorplan-decor-pillar {
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(240, 202, 141, 0.5), rgba(201, 152, 90, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 226, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.floorplan-decor-stool {
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 234, 0.58);
  background: rgba(160, 82, 54, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 236, 216, 0.24);
}

.floorplan-decor-stool::before {
  content: attr(data-label);
  position: absolute;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 248, 241, 0.76);
  letter-spacing: 0.02em;
  line-height: 1;
}

.floorplan-decor-stool.stool-label-left::before {
  top: 50%;
  left: -7px;
  transform: translate(-100%, -50%);
}

.floorplan-decor-stool.stool-label-top::before {
  left: 50%;
  top: -6px;
  transform: translate(-50%, -100%);
}

.floorplan-decor-stool::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 3px solid rgba(167, 92, 62, 0.84);
}

.floorplan-decor-stool.stool-arc-left::after {
  border-color: rgba(167, 92, 62, 0.92) transparent rgba(167, 92, 62, 0.92) rgba(167, 92, 62, 0.92);
}

.floorplan-decor-stool.stool-arc-top::after {
  border-color: rgba(167, 92, 62, 0.92) rgba(167, 92, 62, 0.92) transparent rgba(167, 92, 62, 0.92);
}

.floorplan-empty {
  margin: 0;
  padding: 1.1rem;
  color: var(--muted);
}

.floorplan-legend {
  flex: 0 0 168px;
  min-width: 148px;
  max-width: 168px;
  align-self: stretch;
  border-left: 1px solid rgba(255, 248, 241, 0.2);
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.58rem;
  text-align: center;
}

.floorplan-legend-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.floorplan-legend-list {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 150px;
  justify-items: center;
}

.floorplan-legend-alert-wrap {
  margin-top: 0;
  padding-top: 0;
  flex: 0 0 auto;
  width: 100%;
  max-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floorplan-alert-bell {
  appearance: none;
  -webkit-appearance: none;
  width: 3cm !important;
  height: 3cm !important;
  margin-top: 4cm;
  min-width: 3cm;
  min-height: 3cm;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(240, 202, 141, 0.35);
  background: transparent;
  color: var(--gold-strong);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.16rem;
  cursor: pointer;
  transition: transform 140ms ease, opacity 180ms ease, border-color 180ms ease;
  box-shadow: none;
}

.floorplan-alert-bell:disabled {
  cursor: default;
  opacity: 1;
  color: rgba(240, 202, 141, 0.68);
  border-color: rgba(240, 202, 141, 0.2);
}

.floorplan-alert-bell:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(240, 202, 141, 0.72);
  color: #ffe6bf;
}

.floorplan-alert-bell.is-alerting {
  animation: floorplanBellPulse 1.3s ease-in-out infinite;
}

.floorplan-alert-bell.is-muted {
  opacity: 0.62;
}

.floorplan-alert-bell .bell-icon {
  font-size: 2.05rem;
  line-height: 1;
}

.floorplan-alert-bell .bell-text {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.floorplan-alert-bell .bell-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 202, 141, 0.55);
  background: rgba(217, 180, 122, 0.16);
  color: #fff1de;
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes floorplanBellPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 0 rgba(240, 202, 141, 0);
  }
  50% {
    opacity: 0.42;
    transform: scale(0.96);
    text-shadow: 0 0 18px rgba(240, 202, 141, 0.38);
  }
}

.floor-table {
  position: absolute;
  appearance: none;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.15rem;
  border: 1px solid rgba(255, 248, 241, 0.22);
  background: rgba(31, 21, 17, 0.95);
  color: var(--text);
  padding: 0.35rem 0.3rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
  overflow: visible;
  transition: transform 100ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.floor-table > span {
  position: relative;
  z-index: 2;
}

.floor-table.shape-square {
  border-radius: 14px;
}

.floor-table.shape-rect {
  border-radius: 12px;
}

.floor-table:hover {
  border-color: rgba(240, 202, 141, 0.44);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.floor-table.is-dragging {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.floor-table.state-free {
  border-color: rgba(255, 248, 241, 0.22);
}

.floor-table.state-reserved {
  border-color: rgba(240, 202, 141, 0.66);
  background:
    linear-gradient(152deg, rgba(173, 133, 93, 0.62) 0%, rgba(126, 95, 67, 0.66) 52%, rgba(89, 66, 48, 0.7) 100%);
  box-shadow:
    inset 0 0 0 999px rgba(238, 208, 164, 0.1),
    0 0 0 1px rgba(246, 217, 174, 0.16);
}

.floor-table.state-reserved .floor-table-res {
  color: #f8e4c2;
}

.floor-table.state-reserved.is-arriving-soon .floor-table-res {
  color: #fff0cf;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 220, 155, 0.42);
}

.floor-table.state-reserved.is-arriving-soon {
  border-color: rgba(255, 216, 151, 0.94);
  box-shadow:
    inset 0 0 0 999px rgba(242, 214, 172, 0.16),
    0 0 0 1px rgba(255, 224, 173, 0.28),
    0 0 12px rgba(255, 204, 126, 0.38);
  animation: floor-table-arriving-soon-glow 1.15s ease-in-out infinite;
}

.floor-table.state-overdue {
  border-color: rgba(255, 142, 112, 0.92);
  box-shadow:
    inset 0 0 0 999px rgba(198, 69, 40, 0.22),
    0 0 0 1px rgba(255, 163, 136, 0.22),
    0 0 12px rgba(255, 105, 70, 0.56);
  animation: floor-table-overdue-glow 1.15s ease-in-out infinite;
}

.floor-table.state-occupied {
  border-color: rgba(125, 215, 165, 0.78);
  box-shadow: inset 0 0 0 999px rgba(46, 141, 84, 0.18);
}

.floor-table.state-blocked {
  border-color: rgba(255, 167, 167, 0.72);
  box-shadow: inset 0 0 0 999px rgba(167, 42, 58, 0.18);
}

.floor-table.state-completed,
.floor-table.state-no_show {
  border-color: rgba(176, 171, 165, 0.62);
  box-shadow: inset 0 0 0 999px rgba(105, 99, 92, 0.18);
}

@keyframes floor-table-overdue-glow {
  0% {
    border-color: rgba(255, 139, 108, 0.82);
    box-shadow:
      inset 0 0 0 999px rgba(198, 69, 40, 0.18),
      0 0 0 1px rgba(255, 163, 136, 0.12),
      0 0 8px rgba(255, 105, 70, 0.34);
  }
  50% {
    border-color: rgba(255, 157, 125, 0.98);
    box-shadow:
      inset 0 0 0 999px rgba(209, 79, 48, 0.30),
      0 0 0 1px rgba(255, 181, 157, 0.30),
      0 0 16px rgba(255, 115, 80, 0.72);
  }
  100% {
    border-color: rgba(255, 139, 108, 0.82);
    box-shadow:
      inset 0 0 0 999px rgba(198, 69, 40, 0.18),
      0 0 0 1px rgba(255, 163, 136, 0.12),
      0 0 8px rgba(255, 105, 70, 0.34);
  }
}

@keyframes floor-table-arriving-soon-glow {
  0% {
    border-color: rgba(255, 210, 140, 0.82);
    box-shadow:
      inset 0 0 0 999px rgba(236, 204, 157, 0.12),
      0 0 0 1px rgba(255, 219, 160, 0.16),
      0 0 8px rgba(255, 193, 106, 0.24);
  }
  50% {
    border-color: rgba(255, 226, 176, 1);
    box-shadow:
      inset 0 0 0 999px rgba(247, 221, 183, 0.24),
      0 0 0 1px rgba(255, 231, 192, 0.34),
      0 0 18px rgba(255, 209, 138, 0.58);
  }
  100% {
    border-color: rgba(255, 210, 140, 0.82);
    box-shadow:
      inset 0 0 0 999px rgba(236, 204, 157, 0.12),
      0 0 0 1px rgba(255, 219, 160, 0.16),
      0 0 8px rgba(255, 193, 106, 0.24);
  }
}

.floor-table.with-chairs .table-chair {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 246, 234, 0.58);
  background: rgba(160, 82, 54, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 236, 216, 0.26);
  pointer-events: none;
}

.floor-table.with-chairs .table-chair.chair-top {
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
}

.floor-table.with-chairs .table-chair.chair-right {
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.floor-table.with-chairs .table-chair.chair-bottom {
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
}

.floor-table.with-chairs .table-chair.chair-left {
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.floor-table.is-banquet .table-chair.chair-top-left {
  top: -11px;
  left: 22%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-top-center {
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-top-right {
  top: -11px;
  left: 78%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-bottom-left {
  bottom: -11px;
  left: 22%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-bottom-center {
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-bottom-right {
  bottom: -11px;
  left: 78%;
  transform: translateX(-50%);
}

.floor-table.is-banquet .table-chair.chair-left {
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.floor-table.is-banquet .table-chair.chair-right {
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.floor-table.is-stool {
  border-radius: 999px !important;
  padding: 0;
  min-width: 56px;
  min-height: 56px;
}

.floor-table.is-stool .floor-table-meta,
.floor-table.is-stool .floor-table-res {
  display: none;
}

.floor-table.is-stool .floor-table-code {
  font-size: 0.9rem;
  line-height: 1;
}

.floor-table.is-stool.stool-label-left .floor-table-code {
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translate(-100%, -50%);
}

.floor-table.is-stool.stool-label-top .floor-table-code {
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translate(-50%, -100%);
}

.floor-table.is-stool::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 3px solid rgba(167, 92, 62, 0.78);
  pointer-events: none;
}

.floor-table.is-stool.stool-arc-left::after {
  border-color: rgba(167, 92, 62, 0.9) transparent rgba(167, 92, 62, 0.9) rgba(167, 92, 62, 0.9);
}

.floor-table.is-stool.stool-arc-top::after {
  border-color: rgba(167, 92, 62, 0.9) rgba(167, 92, 62, 0.9) transparent rgba(167, 92, 62, 0.9);
}

.floor-table-code {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.floor-table-meta {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.1;
}

.floor-table-res {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.floor-table.floor-table-legend {
  position: relative;
  width: min(100%, 150px);
  max-width: 150px;
  min-height: 68px;
  padding: 0.3rem 0.24rem;
  gap: 0.1rem;
  cursor: default;
  touch-action: auto;
  pointer-events: none;
  margin-inline: auto;
}

.floor-table.floor-table-legend .floor-table-code {
  font-size: 0.74rem;
}

.floor-table.floor-table-legend .floor-table-meta {
  font-size: 0.64rem;
}

.floor-table.floor-table-legend .floor-table-res {
  font-size: 0.62rem;
}

.btn.btn-ghost.btn-danger {
  border-color: rgba(255, 167, 167, 0.42);
  color: #ffcbcb;
}

.btn.btn-ghost.btn-danger:hover {
  border-color: rgba(255, 167, 167, 0.72);
}

#reservationsTableBody tr.reservation-row-new td {
  background: rgba(217, 180, 122, 0.08);
}

#reservationsTableBody tr.reservation-row-new td:first-child {
  box-shadow: inset 2px 0 0 rgba(240, 202, 141, 0.62);
}

#reservationsTableBody tr.reservation-row-focus td {
  animation: reservationRowFocusPulse 1.1s ease-in-out 2;
}

.reservation-new-chip {
  color: #f0ca8d;
  font-size: 0.72rem;
  font-weight: 700;
}

@keyframes reservationRowFocusPulse {
  0%, 100% {
    background: rgba(217, 180, 122, 0.06);
  }
  50% {
    background: rgba(217, 180, 122, 0.22);
  }
}

@media (max-width: 1240px) {
  .stats-grid-admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-grid .field-grow {
    grid-column: span 2;
  }

  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .stats-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-tabs {
    gap: 0.45rem;
  }

  .tab-btn {
    min-height: 38px;
    padding: 0.46rem 0.8rem;
    font-size: 0.86rem;
  }

  .inline-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-filters .input-field,
  .inline-filters .btn {
    width: 100%;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .filters-grid .field-grow {
    grid-column: auto;
  }

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

  .form-actions-inline,
  .form-actions {
    width: 100%;
  }

  .form-actions-inline .btn,
  .form-actions .btn {
    width: 100%;
  }

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

  .floorplan-board {
    min-width: 300px;
  }

  .floorplan-canvas {
    flex-direction: column;
    align-items: stretch;
  }

  .floorplan-legend {
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 248, 241, 0.14);
    padding: 0.7rem 0 0;
  }

  .floorplan-legend-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .floor-table.floor-table-legend {
    min-height: 66px;
  }
}
