.table-view {
	--color: gray;
	position: relative;
	min-width: 100px;
	border-collapse: collapse;
	table-layout: fixed ;
	font-family: ui-sans-serif, sans-serif;
}

.table-view:not(.editable) :is(.add-col-btn, .add-row-btn) {
	display: none;
}

.table-view tr {
	position: relative;
}

.table-view thead th {
	font-weight: 800;
}

.table-view .group-header td {
	font-weight: 700;
}

.table-view tbody th {
	font-weight: 600;
}

.table-view :is(td, th) {
	position: relative;
	border: 1px solid darkgray;
	padding: 3px;
	min-width: 100px;
	height: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.table-view.wrap-text :is(td, th) {
	white-space: normal;
	word-break: break-word;
}

.table-view :is(td, th):focus {
	outline: 3px solid var(--color);
	outline-offset: 2px;
}

.table-view th:before, .table-view.alternate-color tr:nth-child(even) td:before, .table-view tr.group-header td:before {
	content: "";
	position: absolute;
	top: 0;
	bottom:0;
	right:0;
	left:0;
	background-color: var(--color);
	opacity: 0.08;
	z-index: -1;
}

.table-view thead th:before {
	opacity: 0.3;
}

.table-view tr.group-header td:before {
	opacity: 0.4 !important;
}

.table-view tbody th {
	text-align: left;
}

.table-view tbody th:before {
	opacity: 0.2;
}

.table-view :is(.add-col-btn, .add-row-btn) {
	display: block;
	box-sizing: border-box;
	position: absolute;
	border: 1px solid gainsboro;
	background-color: whitesmoke;
	border-radius: 5px;
}

.table-view .add-col-btn {
	width: 15px;
	height: 26px;
	top: calc(50% - 12px);
	left: calc(100% + 5px);
}

.table-view .add-row-btn {
	width: 26px;
	height: 15px;
	top: calc(100% + 5px);
	left: calc(50% - 12px);
}