.res-app .pos-bar { position: sticky; top: 0; z-index: 20; }
.res-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 0;
  min-height: calc(100vh - 64px);
}
.res-pane,
.res-side {
  padding: 16px 18px 28px;
  border-right: 1px solid var(--pos-border);
  overflow: auto;
}
.res-side { border-right: 0; background: var(--pos-pane-bg); }
.res-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.res-pane-head h1,
.res-pane-head h2 {
  margin: 0;
  font-family: var(--pos-display);
  font-size: 1.25rem;
}
.res-filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.res-filter-row .pos-btn.active {
  border-color: rgba(46, 196, 182, 0.55);
  background: var(--pos-accent-dim);
  color: var(--pos-accent);
}
.res-booking-list { display: grid; gap: 10px; }
.res-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--pos-border);
  border-radius: 14px;
  background: var(--pos-surface);
}
.res-card.waitlist { border-left: 3px solid #e8a838; }
.res-card.booked { border-left: 3px solid var(--pos-accent); }
.res-card.seated { border-left: 3px solid #7ad39a; opacity: 0.92; }
.res-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.res-meta { color: var(--pos-muted); font-size: 0.82rem; line-height: 1.4; }
.res-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 110px; }
.res-actions .pos-btn { min-height: 44px; }
.res-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.res-table {
  appearance: none;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface);
  color: var(--pos-text);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: left;
  min-height: 88px;
  cursor: default;
  font: inherit;
}
.res-table strong { display: block; font-size: 1.05rem; }
.res-table span { color: var(--pos-muted); font-size: 0.8rem; }
.res-table.free { border-color: rgba(122, 211, 154, 0.35); }
.res-table.reserved { border-left: 3px solid var(--pos-accent); }
.res-table.late { border-left: 3px solid #e8a838; background: rgba(232, 168, 56, 0.08); }
.res-table.seated { border-left: 3px solid #7ad39a; }
.res-floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: var(--pos-muted);
}
.res-leg::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.res-leg.free::before { background: #7ad39a; }
.res-leg.reserved::before { background: var(--pos-accent); }
.res-leg.late::before { background: #e8a838; }
.res-leg.seated::before { background: #5aa978; }
.res-unassigned { margin-top: 12px; display: grid; gap: 6px; }
.res-tag-chip {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(46, 196, 182, 0.12);
  color: var(--pos-accent);
  border: 1px solid rgba(46, 196, 182, 0.28);
}
.res-tag-chip.allergy { color: #f0a090; border-color: rgba(240, 160, 144, 0.4); background: rgba(240, 160, 144, 0.1); }
.res-tag-chip.vip { color: #e8c56a; border-color: rgba(232, 197, 106, 0.4); background: rgba(232, 197, 106, 0.1); }
.res-tags-field {
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.res-tags-field legend {
  padding: 0 4px;
  font-size: 0.82rem;
  color: var(--pos-muted);
}
.res-tags-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--pos-text);
}
.res-report-body {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}
.res-report-body .stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pos-border);
}
.res-hint { color: var(--pos-muted); font-size: 0.82rem; margin: 14px 0 0; line-height: 1.4; }
.res-modal { width: min(560px, 94vw); }
.modal.res-modal.has-atm { width: min(600px, 96vw); }
.res-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 900px) {
  .res-layout { grid-template-columns: 1fr; }
  .res-pane { border-right: 0; border-bottom: 1px solid var(--pos-border); }
}
