table-enhance {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: var(--u);
	overflow-y: auto;
}

table-enhance.gap-2xs {
	gap: var(--u-2xs);
}

table-enhance > table {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

table-enhance > table > thead > tr > * {
	position: relative;
	cursor: pointer;
	font-size: 1rem;
	font-weight: normal;
	padding-bottom: 1.5rem;
}

table-enhance > table > tbody > tr:hover {
	background-color: var(--color-blue-lighter);
}

table-enhance > table > thead > tr > *.narrow {
	width: 50%;
}

table-enhance > table > thead > tr > *.right {
	width: 10vw;
	text-align: right;
}

table-enhance > table > thead > tr > *.square {
	width: var(--u);
}

table-enhance > table > thead > tr > td {
	opacity: 0.5;
	word-break: normal;
}

table-enhance > table > thead > tr > th[data-sort]:hover {
	color: var(--color-blue);
}

table-enhance > table > thead > tr > th[data-asc] {
	position: relative;
	font-weight: bold;
	color: var(--color-blue);
}

table-enhance > table > thead > tr > th[data-asc="asc"]::after {
	position: absolute;
	top: 0;
	right: var(--u-xs);
	content: "arrow_upward";
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

table-enhance > table > thead > tr > th[data-asc="asc"].right::after {
	left: 0;
}

table-enhance > table > thead > tr > th[data-asc="desc"]::after {
	position: absolute;
	top: 0;
	right: var(--u-xs);
	content: "arrow_downward";
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

table-enhance > table > thead > tr > th[data-asc="desc"].right::after {
	left: 0;
}

table-enhance > table > tbody > tr {
	height: var(--u);
	font-size: 1.25rem;
	border-bottom: solid 1px #eee;
	cursor: pointer;
}

table-enhance > table > tbody > tr:first-of-type {
	border-top: solid 1px #eee;
}

table-enhance > table > tbody > tr > td {
	padding: 1rem 0;
}

table-enhance > table > tbody > tr > td.right {
	text-align: right;
}

table-enhance > table > tbody > tr > td.square {
	width: var(--u);
}

table-enhance > table > tbody > tr > td * {
	line-height: 1.15;
	max-width: 100%;
	white-space: normal;
}

table-enhance > table > tbody > tr > td a {
	gap: 0.5rem;
	height: 100%;
	line-height: 1.1;
	transition: transform 0.1s;
	transform-origin: left center;
}

table-enhance > table > tbody > tr > td a:active {
	transform: scale(0.98);
}

table-enhance > table > tbody > tr > td i {
	height: 2rem;
	width: 2rem;
	border-radius: 50%;
	display: inline-flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	color: white;
	background-color: var(--color-gray);
	font-size: 1rem;
}

table-enhance > table > tbody > tr > td i:is(.icon, .icon-fill) {
	font-size: 1.5rem;
}

table-enhance > table > tbody > tr > td i:is([v-delete], [v-select]) {
	transition: transform 0.1s;
	transform-origin: center center;
}

table-enhance > table > tbody > tr > td i:is([v-delete], [v-select]):active {
	transform: scale(0.98);
}

table-enhance > table > tbody > tr > td i[v-delete] {
	background-color: var(--color-red);
}

table-enhance > table > tbody > tr > td i[v-select] {
	background-color: var(--color-green);
}

table-enhance > table > tbody > tr > td i.black {
	background-color: var(--color-black);
}

table-enhance > table > tbody > tr > td i.green {
	background-color: var(--color-green);
}

table-enhance > table > tbody > tr > td i.orange {
	background-color: var(--color-orange);
}

table-enhance > table > tbody > tr > td i.red {
	background-color: var(--color-red);
}

table-enhance > table > tbody > tr > td i.blue {
	background-color: var(--color-blue);
}

table-enhance > table > tfoot.off {
    display: none;
}

table-enhance > table > tfoot > tr > td {
    color: var(--color-blue);
    position: fixed;
    left: 6.5vw;
    right: 0;
    bottom: 0.5rem;
    text-align: center;
    z-index: 10;
}