/* FO-14899 proof of concept: the table style from the design proposal, on every .table.
   Remove the link in headContent() (include/layout.inc.php) to switch it off.
   Add the class table-classic to a table to keep the old Bootstrap look. :where() keeps the specificity of .table. */
.table:where(:not(.table-classic)) {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e6e7f0;
	border-radius: 10px;
	background: #fff;
}
/* The corner cells carry the rounding: overflow on the table would clip dropdown menus in the last row */
.table:where(:not(.table-classic)) > :first-child > tr:first-child > :first-child { border-top-left-radius: 9px; }
.table:where(:not(.table-classic)) > :first-child > tr:first-child > :last-child { border-top-right-radius: 9px; }
.table:where(:not(.table-classic)) > :last-child > tr:last-child > :first-child { border-bottom-left-radius: 9px; }
.table:where(:not(.table-classic)) > :last-child > tr:last-child > :last-child { border-bottom-right-radius: 9px; }
.table:where(:not(.table-classic)) th,
.table:where(:not(.table-classic)) td {
	padding: 11px 8px;
	border-top: 1px solid #eef0f5;
	vertical-align: middle;
}
.table:where(:not(.table-classic)) thead th,
.table:where(:not(.table-classic)) > tbody > tr:first-child > th {
	background: #f7f7fb;
	color: var(--secondaryTextColor);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	line-height: 16px;
	text-transform: uppercase;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: none;
	border-bottom: 1px solid #e6e7f0;
}
.table:where(:not(.table-classic)) thead + tbody > tr:first-child > td,
.table:where(:not(.table-classic)) > tbody > tr:first-child + tr > td {
	border-top: none;
}
.table-striped:where(:not(.table-classic)) tbody > tr:nth-child(odd) > td,
.table-striped:where(:not(.table-classic)) tbody > tr:nth-child(odd) > th {
	background-color: #f4f5fa;
}
.table-hover:where(:not(.table-classic)) tbody tr:hover > td,
.table-hover:where(:not(.table-classic)) tbody tr:hover > th {
	background-color: #e9eaf7;
}
.table:where(:not(.table-classic)) .table:where(:not(.table-classic)) {
	border: none;
	border-radius: 0;
}
/* A header row inside tbody has the same specificity as the stripe and hover rules, so it comes after them */
.table:where(:not(.table-classic)) > tbody > tr:first-child > th {
	background-color: #f7f7fb;
}
