/*
 * Consignment Tables
 *
 * Section, picker and table colors come from the theme (style-unminified.css), which targets the same
 * class names the old template used. This file only adds what the plugin itself needs.
 */

/*
 * Baseline table styles, copied from TablePress 3's css/build/default.css so tables look identical
 * even if TablePress is deactivated. When TablePress is active these rules are exact duplicates.
 */
.tablepress{--text-color:#111;--head-text-color:var(--text-color);--head-bg-color:#d9edf7;--odd-text-color:var(--text-color);--odd-bg-color:#fff;--even-text-color:var(--text-color);--even-bg-color:#f9f9f9;--hover-text-color:var(--text-color);--hover-bg-color:#f3f3f3;--border-color:#ddd;--padding:0.5rem;border:none;border-collapse:collapse;border-spacing:0;clear:both;margin:0 auto 1rem;table-layout:auto;width:100%}
.tablepress>:not(caption)>*>*{background:none;border:none;box-sizing:border-box;float:none!important;padding:var(--padding);text-align:left;vertical-align:top}
.tablepress>:where(thead)+tbody>:where(:not(.child))>*,.tablepress>tbody>*~:where(:not(.child))>*,.tablepress>tfoot>:where(:first-child)>*{border-top:1px solid var(--border-color)}
.tablepress>:where(thead,tfoot)>tr>*{background-color:var(--head-bg-color);color:var(--head-text-color);font-weight:700;vertical-align:middle;word-break:normal}
.tablepress>:where(tbody)>tr>*{color:var(--text-color)}
.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))>*{background-color:var(--odd-bg-color);color:var(--odd-text-color)}
.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))>*{background-color:var(--even-bg-color);color:var(--even-text-color)}
.tablepress>.row-hover>tr:has(+.child:hover)>*,.tablepress>.row-hover>tr:hover+:where(.child)>*,.tablepress>.row-hover>tr:where(:not(.dtrg-group)):hover>*{background-color:var(--hover-bg-color);color:var(--hover-text-color)}

/* Wide tables scroll sideways inside their own box instead of widening the page on phones. */
.ct-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1rem;
}
.ct-table-scroll > .tablepress {
	margin-bottom: 0;
}

/* Some older tables have mixed-case headers; the old DataTables setup displayed them uppercase. */
.ct-table th {
	text-transform: uppercase;
}

/* Rows with a hip number open its pedigree. The link keeps the table's text color. */
.ct-table .ct-has-link {
	cursor: pointer;
}
.ct-table a[data-ct-hip] {
	color: inherit;
	text-decoration: none;
}
.ct-table a[data-ct-hip]:hover,
.ct-table a[data-ct-hip]:focus-visible {
	text-decoration: underline;
}

/* Sortable headers (tables with "Sorting" enabled in TablePress): up/down arrows like DataTables. */
.ct-table .ct-sort {
	position: relative;
	display: block;
	width: 100%;
	padding: 0 18px 0 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
	cursor: pointer;
}
.ct-table .ct-sort::before,
.ct-table .ct-sort::after {
	position: absolute;
	right: 2px;
	font-size: 0.7em;
	line-height: 1;
	opacity: 0.3;
}
.ct-table .ct-sort::before {
	content: "\25B2";
	bottom: 50%;
}
.ct-table .ct-sort::after {
	content: "\25BC";
	top: 50%;
}
.ct-table [aria-sort="ascending"] .ct-sort::before,
.ct-table [aria-sort="descending"] .ct-sort::after {
	opacity: 0.9;
}

.ct-edit-link {
	margin: -0.5rem 0 1rem;
	font-size: 13px;
}

/* Data problems, visible to editors only. */
.ct-notice {
	margin: 0 auto 1.5rem;
	max-width: 1700px;
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fff;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	letter-spacing: normal;
	text-transform: none;
}
.ct-notice span {
	color: #646970;
}
.ct-notice ul {
	margin: 6px 0 6px 1.25em;
	padding: 0;
	list-style: disc;
}
.ct-notice a {
	color: #2271b1;
	text-decoration: underline;
}
