#column-toggles span {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 6px;
}

/* Ensure postbox is relative for absolute positioning */
.postbox {
  position: relative;
}

/* Handle triangle always in top-right corner, above header content */
.postbox .handlediv {
  position: absolute !important;
  top: 5px; /* distance from top of postbox */
  right: 10px; /* distance from right edge */
  z-index: 20; /* above all header content */
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Keep header layout neat */
.postbox .hndle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 40px; /* leave space for triangle so links don’t overlap it */
  cursor: pointer;
}

.wrap table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Drag & Drop */
/* Overall two-panel layout */
.trvler-room-assignments {
  display: grid;
  grid-template-columns: 320px 1fr; /* left fixed-ish, right flexible */
  gap: 16px;
  align-items: start;
}

/* Left panel */
.trvler-left .room-unassigned {
  position: sticky;
  top: 12px; /* keeps unassigned visible while scrolling */
}

/* Right panel */
.trvler-right .trvler-room-controls {
  display: flex;
  gap: 12px; /* space BETWEEN buttons */
  margin-bottom: 8px; /* space BELOW buttons */
}

/* Rooms grid: auto 2-3 columns depending on width */
.trvler-rooms-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Room card style */
.room {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

.room h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

/* Sortable drop zones */
.trvler-people {
  min-height: 120px; /* IMPORTANT: empty rooms must have height */
  padding: 8px;
  border: 2px dashed #ccc;
  background: #fafafa;
  border-radius: 8px;
  list-style: none;
  margin: 0;
}

/* Unassigned list should scroll */
.trvler-left .trvler-people {
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.trvler-right {
  max-height: calc(100vh - 140px);
  overflow: auto;
}

/* Person pill */
.person {
  padding: 10px;
  margin: 6px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: grab;
}

/* Placeholder while dragging */
.trvler-placeholder {
  height: 42px;
  border: 2px dashed #999;
  background: #f0f0f0;
  border-radius: 8px;
  margin: 6px 0;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .trvler-room-assignments {
    grid-template-columns: 1fr;
  }
  .trvler-left .room-unassigned {
    position: static;
  }
}

.trvler-room-assignments {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.trvler-left {
  overflow-y: auto;
  padding-right: 6px;
}

.trvler-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trvler-rooms-grid {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}
