/* SW7 chapter directory */

/* Elementor flex items default to min-width:auto, which lets a wide table
   stretch the whole page instead of scrolling inside its wrapper. */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
	min-width: 0;
	max-width: 100%;
}

.sw7-chapters {
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
	min-width: 0;
	color: #334155;
	font-family: Lato, Helvetica, Arial, sans-serif;
}

.sw7-chapters__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
}

.sw7-chapters__search {
	flex: 1 1 260px;
	max-width: 380px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	font: inherit;
	font-size: 15px;
	color: #0f172a;
	background: #fff;
}

.sw7-chapters__search:focus {
	outline: 2px solid #bf2727;
	outline-offset: 2px;
}

.sw7-chapters__count {
	font-size: 14px;
	color: #64748b;
	white-space: nowrap;
}

.sw7-chapters__scroll {
	overflow-x: auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.sw7-chapters__table {
	width: 100%;
	min-width: 1040px;
	border-collapse: collapse;
	table-layout: auto;
}

.sw7-chapters__table th:nth-child(1) { width: 56px; }
.sw7-chapters__table th:nth-child(2) { width: 15%; }
.sw7-chapters__table th:nth-child(3) { width: 15%; }
.sw7-chapters__table th:nth-child(4) { width: 21%; }
.sw7-chapters__table th:nth-child(5) { width: 14%; }
.sw7-chapters__table th:nth-child(6) { width: 12%; }
.sw7-chapters__table th:nth-child(7) { width: 21%; }

.sw7-chapters__table thead th {
	background: #dbc4a6;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
	padding: 0;
	border-bottom: 1px solid #c9ae8e;
	white-space: nowrap;
}

.sw7-chapters__table thead th button {
	display: block;
	width: 100%;
	padding: 14px 16px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: left;
	cursor: pointer;
}

.sw7-chapters__table thead th button:hover {
	color: #bf2727;
}

.sw7-chapters__table thead th button:focus-visible {
	outline: 2px solid #bf2727;
	outline-offset: -4px;
}

.sw7-chapters__table thead th[aria-sort] button::after {
	content: " \25B2";
	font-size: 10px;
	opacity: 0.7;
}

.sw7-chapters__table thead th[aria-sort="descending"] button::after {
	content: " \25BC";
}

.sw7-chapters__table tbody td {
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: top;
}

.sw7-chapters__table tbody tr:nth-child(even) td {
	background: #faf7f2;
}

.sw7-chapters__table tbody tr:hover td {
	background: #fff4e8;
}

.sw7-chapters__table tbody tr:last-child td {
	border-bottom: 0;
}

.sw7-chapters__table td:first-child {
	width: 56px;
	color: #64748b;
}

.sw7-chapters__table td:nth-child(6),
.sw7-chapters__table th:nth-child(6),
.sw7-chapters__table td:nth-child(7),
.sw7-chapters__table th:nth-child(7) {
	white-space: nowrap;
}

.sw7-chapters__table tbody td:nth-child(7) {
	font-size: 13px;
}

.sw7-chapters__table a {
	color: #bf2727;
	text-decoration: none;
}

.sw7-chapters__table a:hover,
.sw7-chapters__table a:focus {
	text-decoration: underline;
}

.sw7-chapters__empty {
	margin: 16px 0 0;
	padding: 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #475569;
}

.sw7-chapters__updated {
	margin: 14px 0 0;
	font-size: 13px;
	color: #64748b;
}

.sw7-chapters [hidden] {
	display: none !important;
}

@media (max-width: 600px) {
	.sw7-chapters__toolbar {
		align-items: stretch;
	}

	.sw7-chapters__search {
		max-width: none;
	}
}
