/* Restaurant floor — meja grid */
.rt-wrap { margin-top: 12px; }
.rt-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.rt-summary-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.rt-summary-item b {
  display: block;
  font-size: 18px;
  color: var(--text-primary);
  margin-top: 4px;
}
.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.rt-toolbar input,
.rt-toolbar select {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
}
.rt-search { flex: 1; min-width: 160px; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rt-chip {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.rt-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim, rgba(245, 197, 24, 0.12));
}
.rt-floor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  min-height: 120px;
}
.rt-card {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s, box-shadow 0.12s;
  user-select: none;
}
.rt-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.rt-card:active { cursor: grabbing; transform: none; }
.rt-list-row:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover, var(--bg-elevated));
}
.rt-card.rt-drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.rt-card.rt-free { border-color: rgba(34, 197, 94, 0.45); }
.rt-card.rt-busy { border-color: rgba(239, 68, 68, 0.5); }
.rt-card.rt-reserved { border-color: rgba(234, 179, 8, 0.55); }
.rt-card.rt-clean { border-color: rgba(59, 130, 246, 0.5); }
.rt-card.rt-off { opacity: 0.55; border-style: dashed; }
.rt-card.rt-merged { border-color: rgba(168, 85, 247, 0.55); }
.rt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.rt-card-label {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.rt-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.rt-badge.rt-free { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.rt-badge.rt-busy { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.rt-badge.rt-reserved { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.rt-badge.rt-clean { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.rt-badge.rt-off { background: rgba(100, 116, 139, 0.3); color: #cbd5e1; }
.rt-badge.rt-merged { background: rgba(168, 85, 247, 0.25); color: #e9d5ff; }
.rt-capacity {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.rt-zone {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.rt-active {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  line-height: 1.45;
}
.rt-active b { color: var(--accent); }
.rt-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.rt-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}
.rt-empty-icon { font-size: 40px; margin-bottom: 10px; }
.rt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 560px) {
  .rt-form-row { grid-template-columns: 1fr; }
  .rt-floor { grid-template-columns: repeat(2, 1fr); }
}
.rt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rt-modal-backdrop.is-open { display: flex; }
.rt-modal {
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.rt-modal h3 { margin: 0 0 12px; font-size: 16px; }
.rt-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
.rt-list-toggle {
  margin-left: auto;
  font-size: 11px;
}
