/* ─────────────────────────────────────────────────────────────────────────
   Backflow — WooCommerce My Account: Team Enrollment
   woo-team-enrollment.css
   BEM prefix: wits-team-enrollment__
   Depends on: backflow-front.css (--wits-* tokens)
   ───────────────────────────────────────────────────────────────────────── */

/* ── Extra tokens not in backflow-front.css ───────────────────────────── */
:root {
	--wits-te-upcoming-bg:   #E1F5EE;
	--wits-te-upcoming-text: #0F6E56;
	--wits-te-done-bg:       #F2F2F2;
	--wits-te-done-text:     #888888;
	--wits-te-row-hover:     #FAFBFD;
	--wits-te-head-text:     #999999;
	--wits-te-border-light:  #F0F2F5;
}

/* ── Root container ───────────────────────────────────────────────────── */
.wits-team-enrollment {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	color: var(--wits-body);
}

/* ── Header ──────────────────────────────────────────────────────────── */
.wits-team-enrollment__title {
	font-family: "Outfit", sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--wits-navy);
	margin: 0 0 4px;
	line-height: 1.3;
}

.wits-team-enrollment__subtitle {
	font-size: 12px;
	color: var(--wits-te-head-text);
	margin: 0 0 22px;
	line-height: 1.5;
}

/* ── Stats bar ───────────────────────────────────────────────────────── */
.wits-team-enrollment__stats {
	display: flex;
	gap: 12px;
	margin-bottom: 22px;
}

.wits-team-enrollment__stat {
	background: var(--wits-blue-tint);
	border-radius: var(--wits-r-card);
	padding: 14px 18px;
	flex: 1;
}

.wits-team-enrollment__stat-number {
	display: block;
	font-family: "Outfit", sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--wits-navy);
	line-height: 1.2;
}

.wits-team-enrollment__stat-label {
	display: block;
	font-size: 11px;
	color: var(--wits-muted);
	margin-top: 3px;
	line-height: 1.4;
}

/* ── Toolbar ─────────────────────────────────────────────────────────── */
.wits-team-enrollment__toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.wits-team-enrollment__search {
	flex: 1;
	height: 36px;
	border: 1px solid var(--wits-border) !important;
	border-radius: 7px !important;
	padding: 0 12px !important;
	font-size: 13px !important;
	font-family: "Manrope", sans-serif !important;
	color: var(--wits-body) !important;
	background: #fff !important;
	outline: none;
	box-shadow: none !important;
}

.wits-team-enrollment__search:focus {
	border-color: var(--wits-navy) !important;
}

.wits-team-enrollment__select {
	height: 36px;
	border: 1px solid var(--wits-border) !important;
	border-radius: 7px !important;
	padding: 0 10px !important;
	font-size: 13px !important;
	font-family: "Manrope", sans-serif !important;
	color: var(--wits-muted) !important;
	background: #fff !important;
	outline: none;
	cursor: pointer;
	box-shadow: none !important;
}

.wits-team-enrollment__select:focus {
	border-color: var(--wits-navy) !important;
}

/* ── Table wrapper ───────────────────────────────────────────────────── */
.wits-team-enrollment__table-wrap {
	background: #fff;
	border: 1px solid var(--wits-border);
	border-radius: 10px;
	overflow: hidden;
}

/* ── Table ───────────────────────────────────────────────────────────── */
.wits-team-enrollment__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	table-layout: fixed;
}

.wits-team-enrollment__table thead tr {
	border-bottom: 1.5px solid var(--wits-border);
}

.wits-team-enrollment__table th {
	text-align: left;
	padding: 9px 14px;
	font-size: 11px;
	font-weight: 500;
	color: var(--wits-te-head-text);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: transparent;
}

.wits-team-enrollment__table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--wits-te-border-light);
	vertical-align: middle;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wits-team-enrollment__table tbody tr:last-child td {
	border-bottom: none;
}

.wits-team-enrollment__table tbody tr:hover td {
	background: var(--wits-te-row-hover);
}

/* ── Employee cell ───────────────────────────────────────────────────── */
.wits-team-enrollment__emp-name {
	font-weight: 500;
	color: var(--wits-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wits-team-enrollment__emp-email {
	font-size: 11px;
	color: #aaa;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Course cell ─────────────────────────────────────────────────────── */
.wits-team-enrollment__badge {
	display: inline-block;
	background: var(--wits-orange-lt);
	color: var(--wits-orange-dk);
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: middle;
	flex-shrink: 0;
}

.wits-team-enrollment__course-name {
	color: #333;
	vertical-align: middle;
}

/* ── Date cell ───────────────────────────────────────────────────────── */
.wits-team-enrollment__date-cell {
	color: var(--wits-muted);
}

/* ── Status pills ────────────────────────────────────────────────────── */
.wits-team-enrollment__status {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 20px;
	white-space: nowrap;
}

.wits-team-enrollment__status--upcoming {
	background: var(--wits-te-upcoming-bg);
	color: var(--wits-te-upcoming-text);
}

.wits-team-enrollment__status--completed {
	background: var(--wits-te-done-bg);
	color: var(--wits-te-done-text);
}

/* ── Empty state ─────────────────────────────────────────────────────── */
.wits-team-enrollment__empty-cell {
	text-align: center;
	padding: 28px !important;
	color: #aaa;
	white-space: normal !important;
}

/* ── Pagination ──────────────────────────────────────────────────────── */
.wits-team-enrollment__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid var(--wits-te-border-light);
	font-size: 12px;
	min-height: 42px;
}

.wits-team-enrollment__pg-info {
	color: var(--wits-te-head-text);
}

.wits-team-enrollment__pg-btns {
	display: flex;
	gap: 5px;
}

.wits-team-enrollment__pg-btn {
	border: 1px solid var(--wits-border);
	background: #fff;
	border-radius: 5px;
	padding: 4px 10px;
	font-size: 12px;
	font-family: "Manrope", sans-serif;
	color: #444;
	cursor: pointer;
	line-height: 1.4;
}

.wits-team-enrollment__pg-btn:disabled {
	color: #ccc;
	cursor: default;
}

.wits-team-enrollment__pg-btn--active {
	background: var(--wits-navy);
	color: #fff;
	border-color: var(--wits-navy);
}

.wits-team-enrollment__pg-btn:not(:disabled):not(.wits-team-enrollment__pg-btn--active):hover {
	background: #F5F7FA;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 700px) {
	.wits-team-enrollment__stats {
		flex-wrap: wrap;
	}

	.wits-team-enrollment__stat {
		flex: 1 1 calc(50% - 6px);
	}

	.wits-team-enrollment__toolbar {
		flex-wrap: wrap;
	}

	.wits-team-enrollment__search {
		flex: 1 1 100%;
	}

	.wits-team-enrollment__select {
		flex: 1;
	}

	.wits-team-enrollment__table {
		table-layout: auto;
	}

	.wits-team-enrollment__table colgroup {
		display: none;
	}

	.wits-team-enrollment__table th:nth-child(3),
	.wits-team-enrollment__table td:nth-child(3) {
		display: none;
	}
}
