/* Tree table row collapse animation styles */

/* Base state for cell content wrappers */
.cell-content {
  max-height: none;
  opacity: 1;
  transition: max-height 0.15s ease, opacity 0.1s ease, padding-top 0.15s ease, padding-bottom 0.15s ease;
  overflow: visible;
}

/* Initial collapsed state (for rows being expanded) */
tr[data-tree-expanding="false"][data-tree-is-visible="false"] .cell-content {
  max-height: 0;
  opacity: 0;
}

/* Collapsing animation state */
tr[data-tree-collapsing="true"] .cell-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Expanding animation state */
tr[data-tree-expanding="true"] .cell-content {
  max-height: 500px;
  opacity: 1;
}

/* Fully expanded state (after animation completes) */
tr[data-tree-is-visible="true"]:not([data-tree-expanding]):not([data-tree-collapsing]) .cell-content {
  max-height: none;
  opacity: 1;
}
