/* Shared diff rendering — Work tab File diffs pane, Work Session Git section.
   Applied via the .diff-render class, which render_diff_into() adds to its
   own container. */

/* diff2html positions .d2h-code-linenumber absolutely with no top/left, and
   defines no positioned ancestor of its own. Without this rule the line numbers
   resolve against the initial containing block — fine when the page itself
   scrolls (Work tab), but broken inside an element that scrolls (the Work
   Session Git section's #wsg-detail), where the code scrolls and the numbers
   stay pinned. overflow:auto alone does not establish a containing block; a
   position does. Placement is unaffected, since top/left are auto and the
   static position is used either way. */
.diff-render {
	position: relative;
}

/* the bundled diff2html.min.css hides .d2h-file-header globally; restore it here */
.diff-render .d2h-file-header {
	display: flex;
	background-color: #f7f7f7;
	border-bottom: 1px solid #d8d8d8;
	padding: 5px 10px;
	font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	cursor: pointer;
	user-select: none;
}
.diff-render .d2h-file-header:hover { background-color: #eef3f7; }
.diff-render .d2h-file-name { font-weight: 600; }

/* collapsible per-file diffs */
.diff-render .d2h-file-header::before {
	content: '\25BC'; /* ▼ */
	display: inline-block;
	margin-right: 8px;
	font-size: 10px;
	color: #888;
	transition: transform 0.15s ease;
}
.diff-render .d2h-file-wrapper.collapsed .d2h-file-header::before {
	transform: rotate(-90deg);
}
.diff-render .d2h-file-wrapper.collapsed .d2h-files-diff,
.diff-render .d2h-file-wrapper.collapsed .d2h-file-diff {
	display: none;
}
