/*
 * TablePress Extension: Fixed Columns.
 * The fixed cells are made "position: sticky" by the DataTables FixedColumns extension.
 * They keep the opaque background colors from the TablePress CSS (head, striping, hover), so only the scroll shadows are added here.
 */
.tablepress tr > .dtfc-fixed-start::after,
.tablepress tr > .dtfc-fixed-end::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 10px;
	transition: box-shadow 0.3s;
	pointer-events: none;
}
.tablepress tr > .dtfc-fixed-left::after {
	right: 0;
	transform: translateX(100%);
}
.tablepress tr > .dtfc-fixed-right::after {
	left: 0;
	transform: translateX(-80%);
}
.tablepress.dtfc-scrolling-left tr > .dtfc-fixed-left::after {
	box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.2);
}
.tablepress.dtfc-scrolling-right tr > .dtfc-fixed-right::after {
	box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.2);
}
.tablepress.dtfc-scrolling-right tr > .dtfc-fixed-right + .dtfc-fixed-right::after {
	box-shadow: none;
}

/* Sticky cells need to be positioned and stacked above the scrolling cells. */
.tablepress tr > .dtfc-fixed-start,
.tablepress tr > .dtfc-fixed-end {
	z-index: 1;
}
.tablepress :where(thead, tfoot) tr > .dtfc-fixed-start,
.tablepress :where(thead, tfoot) tr > .dtfc-fixed-end {
	z-index: 3;
}

div.dt-scroll {
	position: relative;
}
div.dt-scroll div.dtfc-top-blocker,
div.dt-scroll div.dtfc-bottom-blocker {
	position: absolute;
	background-color: var(--head-bg-color, #fff);
}
