
/* Context panel component styles */
.context-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e9ed;
  border-left: 4px solid #47b2e4;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.context-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.context-panel__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.context-panel__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.context-panel__meta {
  color: #6c757d;
  font-size: 0.95rem;
}

.context-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-panel__details {
  margin-top: 10px;
  color: #495057;
  font-size: 0.95rem;
  display: none;
}

.context-panel--open .context-panel__details {
  display: block;
}

.context-panel__toggle {
  background: transparent;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 4px 8px;
}

@media (min-width: 768px) {
  .context-panel {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap; /* allow details to wrap below the row */
  }
  .context-panel__row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .context-panel__details {
    margin-top: 8px;
    margin-left: 0;
    order: 2; /* ensure it appears below the row */
    width: 100%;
    text-align: left;
  }
}
