.compare-invocations .header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.compare-invocations .header > :not(:last-child) {
  margin-right: 16px;
}

.compare-invocations .header-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-invocations .bb-explain-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-invocations .bb-explain-button .icon {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

@media (max-width: 1024px) {
  .compare-invocations .header {
    flex-direction: column;
    align-items: start;
  }

  .compare-invocations .header > :not(:last-child) {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .compare-invocations .header-buttons {
    margin-left: 0;
    flex-direction: column;
    align-items: start;
    width: 100%;
  }

  .compare-invocations .show-changes-only-button {
    margin-left: 0;
    margin-right: auto;
  }
}

.compare-invocations .tabs {
  margin-top: 0;
}

.compare-invocations .error-container {
  background: #ffebee;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;

  display: flex;
  align-items: center;
}

.compare-invocations .error-container > :not(:last-child) {
  margin-right: 8px;
}

.compare-invocations .error-container img {
  width: 24px;
  height: 24px;
}

.compare-invocations .compare-table {
  display: table;
  padding-top: 16px;
  width: 100%;
}

.compare-invocations .compare-row {
  display: table-row;
  white-space: pre-wrap;
}

.compare-invocations .compare-row.different {
  background: #fff8e1;
}

.compare-invocations .compare-row div {
  display: table-cell;
  padding: 4px 16px;
  width: 40%;
}

.compare-invocations .compare-row div:first-of-type {
  font-weight: 600;
  text-align: right;
  width: 20%;
  text-decoration: none !important;
}

.compare-invocations .difference-left {
  font-weight: 600;
  color: #d84315;
  background-color: #ffe0b2;
}

.compare-invocations .difference-right {
  font-weight: 600;
  color: #1565c0;
  background-color: #bbdefb;
}

.invocation-execution-row-file {
  display: flex;
  align-items: center;
  gap: 2px;
}

.invocation-execution-row-file svg {
  height: 16px;
}

.invocation-execution-row-file .invocation-execution-row-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-grow: 1;
}

.invocation-execution-row-file .invocation-execution-row-header-status {
  flex-grow: 1;
}

/* Tree Differ Styles */
.tree-differ-container {
  width: 100%;
}

.tree-differ-container .compare-tree-columns {
  display: flex;
  width: 100%;
}

.tree-differ-container .tree-column {
  flex: 1;
  padding: 8px;
  border-right: 1px solid #e5e5e5;
  overflow-x: auto;
}

.tree-differ-container .tree-column:last-child {
  border-right: none;
}

.tree-differ-container .tree-differ-header {
  display: flex;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  background-color: #f5f5f5;
}

.tree-differ-container .tree-column-header {
  flex: 1;
  padding: 8px;
  border-right: 1px solid #e5e5e5;
}

.tree-differ-container .tree-column-header:last-child {
  border-right: none;
}

.tree-differ-container .no-input-files {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Diff Tree Node Styles */

.diff-tree-node .missing-node {
  color: #999;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.diff-tree-node .input-tree-node-name {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
}

.diff-tree-node .input-tree-node-name:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.diff-tree-node .input-tree-node-label {
  flex-grow: 1;
}

.diff-tree-node .tree-node-symlink {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.diff-tree-node .icon {
  width: 16px;
  height: 16px;
}

.diff-tree-node .file-icon,
.diff-tree-node .folder-icon,
.diff-tree-node .symlink-icon {
  flex-shrink: 0;
}

.spawn-comparison-row .invocation-execution-row-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.spawn-comparison-row .invocation-execution-row-header svg {
  width: 16px;
  height: 16px;
}

.compare-spawns-more-buttons {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
