.teams-list__class-dates {
	display: block;
	margin-top: 3px;
	color: var(--classes-overlay-muted, #64748b);
	font-size: 0.6em;
	line-height: 1.4;
}

.class-full-message {
	margin-left: 4px;
	font-weight: 700;
	text-transform: uppercase;
}

.class-team-capacity {
	margin-left: 4px;
	color: #6c757d;
	font-size: 0.85em;
}

.teams-main-class-sub-teams .teams-logo-container {
	flex: 0 0 60px;
}

.teams-main-class-sub-teams .teams-logo-container a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.teams-main-class-sub-teams .teams-logo-container img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 40px;
	object-fit: contain;
}

.teams-list-team-name {
	font-size: 1.1em;
	line-height: 1.3;
}

.teams-list-mobile-actions,
.teams-list-filter-backdrop,
.teams-list-filter-drawer .module-filter-drawer__close.module-filter-drawer__close {
	display: none;
}

@media screen and (min-width: 768px) {
	#module-content-container.teams-list-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 16px;
		align-items: start;
	}

	#module-content-container.teams-list-layout #module-list-container,
	#module-content-container.teams-list-layout #module-filter-container {
		min-width: 0;
	}

	#module-content-container.teams-list-layout #module-filter-container.teams-list-filter-drawer {
		padding: 0;
		border: 1px solid #d9e0e5;
		border-radius: 8px;
		background: #fff;
		overflow: hidden;
	}

	.teams-list-filter-drawer__header.module-filter-drawer__header {
		display: flex;
		min-height: 46px;
		align-items: center;
		padding: 8px 12px;
		border-bottom: 1px solid #d9e0e5;
	}

	.teams-list-filter-drawer__title {
		margin: 0;
		font-size: 18px;
		font-weight: 700;
	}

	.teams-list-filter-drawer .module-filter-form__body {
		padding: 12px;
	}

	.teams-list-filter-drawer .module-filter-form__footer {
		padding: 8px 12px;
	}
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-content-container {
	margin-bottom: 8px;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-content-container--search {
	margin-bottom: 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-search .form-group {
	margin-bottom: 0;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-content-container:not(.filter-content-container--search) .filter-search {
	padding: 8px 8px 0;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-content-container .filter-content {
	padding: 2px 8px 4px;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-content-container .filter-content .filter-option {
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

.teams-list-filter-drawer .module-filter-form.module-filter-form--refined .filter-option a {
	display: flex;
	min-height: 44px;
	align-items: center;
	align-self: stretch;
}

@media screen and (max-width: 767px) {
	#module-content-container.teams-list-layout {
		display: block;
	}

	#module-content-container.teams-list-layout #module-list-container {
		width: 100%;
		min-width: 0;
		flex-basis: auto;
	}

	.teams-list-mobile-actions {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 12px;
	}

	.teams-list-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.teams-list-filter-drawer .module-filter-drawer__close.module-filter-drawer__close {
		display: inline-flex;
	}

	.teams-list-filter-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease;
		z-index: 1140;
	}

	#module-content-container.teams-list-layout #module-filter-container.teams-list-filter-drawer {
		display: flex;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(88vw, 360px);
		padding: 0;
		background: #fff;
		box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
		transform: translateX(100%);
		transition: transform 0.2s ease;
		z-index: 1150;
		flex-direction: column;
	}

	.teams-list-filter-drawer__header.module-filter-drawer__header {
		display: flex;
		min-height: 52px;
		align-items: center;
		justify-content: space-between;
		padding: 8px 12px;
		border-bottom: 1px solid #ddd;
	}

	.teams-list-filter-drawer__title {
		margin: 0;
		font-size: 20px;
	}

	.teams-list-filter-drawer__body {
		flex: 1;
		overflow-y: auto;
	}

	.teams-list-filter-drawer .module-filter-form__body {
		padding: 10px;
	}

	.teams-list-filter-drawer .module-filter-form__footer {
		padding: 8px 10px;
	}

	.teams-list-layout--filters-open .teams-list-filter-backdrop {
		opacity: 1;
		visibility: visible;
	}

	#module-content-container.teams-list-layout--filters-open #module-filter-container.teams-list-filter-drawer {
		transform: translateX(0);
	}

	body.teams-list-filter-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teams-list-filter-backdrop,
	#module-content-container.teams-list-layout #module-filter-container.teams-list-filter-drawer {
		transition: none;
	}
}

/* Team view styles */
.team-view-container {
	margin: 0 auto;
	padding: 1rem;
}

/* Modern team header styling */
.team-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: linear-gradient(to right, #f8f9fa, #e9ecef);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.team-logo {
	flex: 0 0 150px;
	margin-right: 2rem;
	text-align: center;
}

.team-logo img {
	max-width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.team-logo img:hover {
	transform: scale(1.05);
}

.team-info {
	flex: 1;
	min-width: 250px;
}

.team-header > .team-kit--public {
	flex: 0 0 auto;
	margin-left: auto;
}

.team-info h1 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #343a40;
	font-size: 2.4rem;
	font-weight: 700;
	border-bottom: 2px solid #007bff;
	padding-bottom: 0.5rem;
	display: inline-block;
}

.team-country, .team-manager, .team-class, .team-rating {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.team-country img {
	width: 24px;
	height: auto;
}

.team-country span, .team-manager, .team-class, .team-rating {
	font-size: 1.3rem;
	color: #495057;
}

.team-manager strong, .team-class strong, .team-rating strong {
	color: #343a40;
}

.team-class {
	flex-wrap: wrap;
	align-items: flex-start;
}

.team-class-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
}

.team-class-link {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background-color: rgba(0, 123, 255, 0.08);
	white-space: normal;
	line-height: 1.35;
}

.team-class-selector-container {
	margin-bottom: 1.25rem;
}

.team-class-selector-container > strong {
	display: inline-block;
	margin-bottom: 0.5rem;
}

.team-class-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.team-class-selector > li > a {
	border-radius: 999px;
	padding: 0.45rem 1rem;
}

.team-class-selector > li.active > a,
.team-class-selector > li.active > a:hover,
.team-class-selector > li.active > a:focus {
	background-color: #007bff;
	color: #fff;
}

/* Table styling */
.table {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	overflow: hidden;
}

.table thead th {
	background-color: #f8f9fa;
	color: #343a40;
	border-bottom: 2px solid #dee2e6;
	padding: 0.75rem 1rem;
}

.table tbody td {
	padding: 0.75rem 1rem;
	vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(0, 123, 255, 0.05);
}

.stats-container {
	overflow: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
	.team-header {
		flex-direction: column;
		text-align: center;
	}

	.team-logo {
		width: 150px;
		margin-right: 0;
	}

	.team-logo img {
		max-height: 150px;
		object-fit: contain;
	}

	.team-country, .team-manager, .team-class, .team-rating {
		justify-content: center;
	}

	.team-class-links {
		justify-content: center;
	}

	.team-class-selector {
		justify-content: center;
	}

	.team-info h1 {
		text-align: center;
		display: block;
	}

	.team-header > .team-kit--public {
		margin: 8px 0 0;
	}
}

@media screen and (max-width: 480px) {
	.team-logo {
		flex: 0 0 auto;
		width: 120px;
	}

	.team-logo img {
		max-height: 120px;
	}

	.team-info h1 {
		font-size: 1.9rem;
	}
}
