/* ============================================================
 * Tabel-weergave: simpele tabel met sorteerbare kolommen +
 * kolom-toggle + CSV-export. Onder .mc-scope.
 * ============================================================ */

.mc-scope .mc-tabel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.mc-scope .mc-tabel__toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.mc-scope .mc-tabel__cols {
	position: relative;
}
.mc-scope .mc-tabel__cols summary {
	cursor: pointer;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	list-style: none;
}
.mc-scope .mc-tabel__cols summary::-webkit-details-marker {
	display: none;
}
.mc-scope .mc-tabel__cols-body {
	position: absolute;
	right: 0;
	top: calc( 100% + 4px );
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba( 0, 0, 0, 0.08 );
	padding: 8px 10px;
	z-index: 10;
	white-space: nowrap;
}
.mc-scope .mc-tabel__cols-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
}

.mc-scope .mc-tabel__export {
	padding: 6px 12px;
	background: #111827;
	border: 0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}
.mc-scope .mc-tabel__export:hover {
	background: #000;
}

.mc-scope .mc-tabel__scroll {
	overflow-x: auto;
}

.mc-scope .mc-tabel__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.mc-scope .mc-tabel__table th,
.mc-scope .mc-tabel__table td {
	padding: 10px 14px;
	border-bottom: 1px solid #f0f1f3;
	text-align: left;
	vertical-align: middle;
}
.mc-scope .mc-tabel__table th {
	background: #f9fafb;
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: default;
	user-select: none;
}
.mc-scope .mc-tabel__table th[data-sortable] {
	cursor: pointer;
}
.mc-scope .mc-tabel__table th[data-sortable]:hover {
	color: #111827;
}
.mc-scope .mc-tabel__sort-indicator {
	display: inline-block;
	margin-left: 4px;
	opacity: 0.4;
}
.mc-scope .mc-tabel__sort-indicator::before {
	content: '⇅';
	font-size: 11px;
}
.mc-scope .mc-tabel__table th[data-sort="asc"] .mc-tabel__sort-indicator {
	opacity: 1;
}
.mc-scope .mc-tabel__table th[data-sort="asc"] .mc-tabel__sort-indicator::before {
	content: '↑';
}
.mc-scope .mc-tabel__table th[data-sort="desc"] .mc-tabel__sort-indicator {
	opacity: 1;
}
.mc-scope .mc-tabel__table th[data-sort="desc"] .mc-tabel__sort-indicator::before {
	content: '↓';
}

.mc-scope .mc-tabel__row.is-past {
	opacity: 0.6;
}
.mc-scope .mc-tabel__row.is-geannuleerd td {
	text-decoration: line-through;
	color: #6b7280;
}

.mc-scope .mc-tabel__status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.mc-scope .mc-tabel__status--open        { background: #e7f4ea; color: #1a6b2a; }
.mc-scope .mc-tabel__status--bijna-vol   { background: #fdf3d8; color: #7a5a00; }
.mc-scope .mc-tabel__status--vol         { background: #fde4e1; color: #8a1c10; }
.mc-scope .mc-tabel__status--geannuleerd { background: #ececec; color: #555; }

.mc-scope .mc-tabel__acties {
	white-space: nowrap;
}
.mc-scope .mc-tabel__action {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	margin-right: 6px;
}
.mc-scope .mc-tabel__action {
	background: #fff;
	border: 1px solid #d1d5db;
	color: #111827;
}
.mc-scope .mc-tabel__action--cta {
	background: #111827;
	border-color: #111827;
	color: #fff;
}
.mc-scope .mc-tabel__action--disabled {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #9ca3af;
	cursor: not-allowed;
}

/* Kolom-toggle: hide via data-attribute op de tabel zelf */
.mc-scope .mc-tabel__table[data-hide-col~="datum"] td[data-col="datum"],
.mc-scope .mc-tabel__table[data-hide-col~="datum"] th[data-col="datum"]      { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="training"] td[data-col="training"],
.mc-scope .mc-tabel__table[data-hide-col~="training"] th[data-col="training"] { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="trainer"] td[data-col="trainer"],
.mc-scope .mc-tabel__table[data-hide-col~="trainer"] th[data-col="trainer"]   { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="locatie"] td[data-col="locatie"],
.mc-scope .mc-tabel__table[data-hide-col~="locatie"] th[data-col="locatie"]   { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="prijs"] td[data-col="prijs"],
.mc-scope .mc-tabel__table[data-hide-col~="prijs"] th[data-col="prijs"]       { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="dagen"] td[data-col="dagen"],
.mc-scope .mc-tabel__table[data-hide-col~="dagen"] th[data-col="dagen"]       { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="status"] td[data-col="status"],
.mc-scope .mc-tabel__table[data-hide-col~="status"] th[data-col="status"]     { display: none; }
.mc-scope .mc-tabel__table[data-hide-col~="acties"] td[data-col="acties"],
.mc-scope .mc-tabel__table[data-hide-col~="acties"] th[data-col="acties"]     { display: none; }
