/* Shared styles for DiffFileList — the per-file collapsible diff list used by
 * both PrDiffTab and BranchDiffScrollView. Lives under shared/ so the shared
 * component doesn't depend on a sibling feature's private CSS. */
.container,
.container * {
  -webkit-user-select: text;
  user-select: text;
}

.container {
  --diff-header-height: 35px;
  width: 100%;
  height: 100%;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: var(--font-xs);
  /* Override global user-select:none so diff text can be highlighted & copied */
  -webkit-user-select: text;
  user-select: text;
}

.statAdd {
  color: var(--success);
}

.statDel {
  color: var(--error);
}

/* File section */
.fileSection {
  border-bottom: 1px solid var(--border);
}

.fileHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-highlight);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  position: sticky;
  top: var(--diff-header-height);
  z-index: 2;
}

.fileHeader:hover {
  background: var(--bg-highlight);
}

.chevron {
  color: var(--fg-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.chevronCollapsed {
  transform: rotate(-90deg);
}

.filePath {
  color: var(--fg-primary);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.filePath:hover {
  text-decoration: underline;
  color: var(--accent);
}

.fileStats {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  font-size: var(--font-xs);
}

/* Per-file diff content (wraps DiffViewer) */
.fileDiff {
  border-bottom: 1px solid var(--border);
}
