/**
 * Teacher seat dashboard.
 *
 * Everything is scoped under .ibg-seats so nothing leaks into the rest of the
 * Eduma / WooCommerce account area. Colours are inherited or neutral rather
 * than hard-coded brand values, so the theme keeps control of the palette.
 */

.ibg-seats__intro,
.ibg-seats__empty {
	margin-bottom: 1.5em;
}

.ibg-seats__back {
	margin-bottom: 1em;
}

.ibg-seats__course {
	margin-bottom: 2.5em;
}

.ibg-seats__course-title {
	margin-bottom: 0.25em;
}

.ibg-seats__subhead {
	margin-top: 2em;
	margin-bottom: 0.75em;
}

.ibg-seats__meter-label {
	margin: 0 0 0.5em;
	font-size: 0.95em;
}

.ibg-seats__meter {
	position: relative;
	height: 10px;
	margin-bottom: 1em;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 5px;
}

.ibg-seats__meter--small {
	max-width: 160px;
	height: 6px;
	margin-bottom: 0.35em;
}

.ibg-seats__meter-fill {
	display: block;
	height: 100%;
	min-width: 2px;
	background: currentColor;
	opacity: 0.65;
	border-radius: 5px;
	transition: width 0.3s ease;
}

.ibg-seats__table {
	width: 100%;
	margin-bottom: 1em;
}

.ibg-seats__table th,
.ibg-seats__table td {
	vertical-align: top;
}

.ibg-seats__row--revoked {
	opacity: 0.55;
}

.ibg-seats__muted {
	font-size: 0.875em;
	opacity: 0.75;
}

.ibg-seats__hint {
	display: block;
	font-size: 0.85em;
	opacity: 0.7;
}

.ibg-seats__warn {
	font-weight: 600;
}

.ibg-seats__badge {
	display: inline-block;
	padding: 0.15em 0.6em;
	font-size: 0.8em;
	line-height: 1.6;
	white-space: nowrap;
	border: 1px solid currentColor;
	border-radius: 2em;
	opacity: 0.8;
}

.ibg-seats__badge--ok {
	color: #2e7d32;
	opacity: 1;
}

.ibg-seats__badge--warn {
	color: #b26a00;
	opacity: 1;
}

.ibg-seats__notice {
	margin-bottom: 1.5em;
}

.ibg-seats__form {
	padding: 1.25em;
	margin-bottom: 2em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}

.ibg-seats__form h4 {
	margin-top: 0;
}

.ibg-seats__form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: flex-end;
}

.ibg-seats__form-row p {
	flex: 1 1 220px;
	margin-bottom: 0;
}

.ibg-seats__form label {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 600;
}

.ibg-seats__form input[type="text"],
.ibg-seats__form input[type="email"],
.ibg-seats__form input[type="file"] {
	width: 100%;
}

.ibg-seats__teachers .ibg-seats__table {
	margin-bottom: 1.25em;
}

.ibg-seats__class-filter {
	margin-bottom: 1em;
}

.ibg-seats__inline-form {
	display: inline-block;
	margin: 0 0.25em 0.25em 0;
}

.ibg-seats__button--small {
	padding: 0.35em 0.9em;
	font-size: 0.85em;
}

.ibg-seats__row-actions {
	white-space: nowrap;
}

.ibg-seats__row-actions .button {
	margin-bottom: 0.25em;
}

.ibg-seats__report td.is-ok {
	color: #2e7d32;
}

.ibg-seats__report td.is-error {
	color: #b3261e;
}

.ibg-seats__pagination {
	margin-bottom: 1.5em;
}

@media screen and (max-width: 600px) {
	.ibg-seats__form-row {
		display: block;
	}

	.ibg-seats__form-row p {
		margin-bottom: 0.75em;
	}
}
