/* Styles of the TxpGrid component (src/chart/txpGrid.js). Look follows the former jqGrid setup. */

/* Hosting the grid in navi3: chart view (trace list column) and grid view (whole center area). */
.trace-list, .grid-view {
	display: flex;
	flex-direction: column;
}
.grid-view {
	flex: 1 1 0;
	min-width: 0;
}
.grid-view-init {
	text-align: center;
}
/* The trace list is sized exactly to its columns plus the measured scrollbar width. With fractional
   display scaling that can be short by a sub-pixel, which would add a useless horizontal scrollbar. */
.trace-list .txpgrid-scroll {
	overflow-x: hidden;
}

/* The grid fills the height of its container, the body scrolls under the sticky header. */
.txpgrid {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin: 5px;
	border: 1px solid #545454;
	font-family: sans-serif;
	background-color: #ffffff;
}
.txpgrid-scroll {
	flex: 1 1 0;
	min-height: 0;
	overflow: auto;
	scrollbar-gutter: stable; /* the trace list width already contains the scrollbar */
}
.txpgrid table {
	table-layout: fixed;
	border-collapse: collapse;
}
.txpgrid th {
	position: sticky;
	top: 0;
	z-index: 1;
	background-color: #ffffff;
	color: #545454;
	font-size: 8pt;
	font-weight: bold;
	height: 22px;
	padding: 0 2px;
	overflow: hidden;
	white-space: nowrap;
	text-align: center;
}
.txpgrid th[data-sortable] {
	cursor: pointer;
}
.txpgrid-sort {
	font-size: 7pt;
	margin-left: 2px;
}
.txpgrid td {
	cursor: pointer;
	font-size: 8pt;
	font-weight: normal;
	height: 16px;
	padding: 0 2px;
	overflow: hidden;
	white-space: pre;
	text-align: left;
}
/* Frozen columns stay in place on horizontal scroll (left offset is set inline). */
.txpgrid .txpgrid-frozen {
	position: sticky;
	background-color: #ffffff;
	z-index: 1;
}
.txpgrid th.txpgrid-frozen {
	z-index: 2; /* above both the scrolling header cells and the frozen body cells */
}
.txpgrid td.txpgrid-frozen {
	vertical-align: top;
}
.txpgrid tr.txpgrid-selected {
	background-color: #dddddd;
	outline: 1px solid #bfbfbf;
	outline-offset: -1px;
}
