/* Interaction History Section Styles */

/* Card section spacing utility */
.card-section-spacing {
  margin-top: 2rem;
}

/* Full-width content within card grid layout */
.card-full-width-content {
  grid-column: 1 / -1;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

/* Collapsed state: hide content smoothly */
.card-full-width-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* Collapsible header button styling */
.interaction-history-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
}

.interaction-history-toggle:hover {
  background: transparent;
}

/* Chevron icon: rotate 180° when collapsed */
.interaction-history-chevron {
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

.interaction-history-chevron.rotated {
  transform: rotate(180deg);
}

/* Individual action note item with bottom border separator */
.action-note-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Remove bottom border from last item */
.action-note-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Action metadata: action type and date in flex row on single line */
.action-note-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

/* Action title with formatted text */
.action-note-title {
  white-space: nowrap;
}

/* Date styling within metadata */
.action-note-date {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Note content display box with styled appearance */
.action-note-content {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 3px solid var(--color-link);
  white-space: pre-wrap;
  word-wrap: break-word;
}
