/* Layout wrappers */
.detail-wrap {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.resource-panel {
  flex: none;
  width: 200px;
}
.projects-container {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

/* Draggable resources */
.draggable-resource {
  cursor: grab;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}
.draggable-resource:active {
  cursor: grabbing;
  background-color: #e0f7fa;
}

/* Metadata labels under names */
.resource-meta {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
}
.resource-meta .meta-type {
  background: #e3f2fd;
  padding: 0 0.25rem;
  border-radius: 2px;
  margin-right: 0.25rem;
}
.resource-meta .meta-group {
  background: #f3e5f5;
  padding: 0 0.25rem;
  border-radius: 2px;
}

/* Project cards */
.project-dropzone {
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 1rem;
  min-height: 6rem;
  flex: 0 0 250px;       /* fixed card width */
  transition: background-color 0.2s, border-color 0.2s;
}
.project-dropzone.dragover {
  background-color: #f0f8ff;
  border-color: #2196f3;
}

/* Resource pool list */
#resource-pool {
  list-style: none;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 6rem;
}

/* Inline forms in headers */
.inline-form {
  display: inline;
}

/* Add-project form */
.add-project-form {
  margin-bottom: 1rem;
}

/* Unassign button */
.unassign-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* FILTER PANEL */
.filter-panel {
  flex: none;
  width: 200px;
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 4px;
}
.filter-panel h4 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}
.filter-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* adjust resource-panel to sit next to filter-panel */
.detail-wrap {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.resource-panel {
  flex: none;
  width: 250px;
}

