/* Roster editor — layout + cards */

#rostereditor .positionlist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	border: none !important;
	background: transparent !important;
	font-size: 0.875rem;
}

#rostereditor .positionlist label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 6px 12px;
	border: 1px solid #cbd5e1 !important;
	border-radius: 999px;
	background: #ffffff !important;
	color: #334155;
	font-size: 0.875rem !important;
	cursor: pointer;
}

#rostereditor .positionlist input[type="checkbox"] {
	width: auto !important;
	height: auto;
	margin: 0 !important;
	padding: 0 !important;
}

#rostereditor .positionlist label:has(input:checked) {
	background: #0f172a !important;
	border-color: #0f172a !important;
	color: #ffffff;
}

#rostereditor .columnwrapper.webclient-roster-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-width: 0;
	overflow: visible;
	box-sizing: border-box;
}

#rostereditor .col4.roster-column {
	float: none !important;
	flex: 1 1 calc(25% - 9px);
	min-width: 180px;
	max-width: none;
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 0;
	box-sizing: border-box;
}

#rostereditor h4.columnheader,
#rostereditor h4.roster-column__title {
	flex: 0 0 auto;
	margin: 0 0 8px;
	padding: 10px 8px;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 10px;
	color: #0f172a;
	white-space: normal;
	word-break: normal;
}

#rostereditor .roster-column--ProDress h4 {
	background: #ffffff;
	border: 1px solid #e2e8f0;
}

#rostereditor .roster-column--ProScratch h4 {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

#rostereditor .roster-column--FarmDress h4 {
	background: #e2e8f0;
	border: 1px solid #cbd5e1;
}

#rostereditor .roster-column--FarmScratch h4 {
	background: #cbd5e1;
	border: 1px solid #94a3b8;
}

#rostereditor .roster-column ol,
#rostereditor .col4 ol,
#rostereditor ol.connectedSortable {
	flex: 1 1 auto;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0;
	padding: 8px;
	min-height: 8rem;
	list-style: none;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	box-shadow: none;
	box-sizing: border-box;
}

#rostereditor li.playerrow {
	list-style: none;
	overflow: hidden;
	padding: 8px 10px;
	margin: 0 0 6px;
	font-size: 0.875rem;
	line-height: 1.35;
	white-space: normal;
	word-break: normal;
	cursor: move;
	border: 1px solid #e2e8f0;
	border-left-width: 4px;
	border-radius: 10px;
	box-shadow: none;
	background: #ffffff;
}

#rostereditor li.playerrow + li {
	margin-top: 0;
}

#rostereditor .ProDress.playerrow {
	border-left-color: #0f172a;
	background: #ffffff;
}

#rostereditor .ProScratch.playerrow {
	border-left-color: #94a3b8;
	background: #f8fafc;
}

#rostereditor .FarmDress.playerrow {
	border-left-color: #64748b;
	background: #f1f5f9;
}

#rostereditor .FarmScratch.playerrow {
	border-left-color: #cbd5e1;
	background: #e2e8f0;
}

#rostereditor .rowinfo {
	float: none;
	width: 100%;
}

#rostereditor .rowname {
	float: none;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

#rostereditor .rowinfoline {
	float: none;
	display: block;
	margin: 2px 0 0;
	font-size: 0.75rem;
	color: #64748b;
}

#rostereditor .rowcondition,
#rostereditor .rowsuspension {
	float: right;
	box-shadow: none;
	padding: 2px 8px;
	margin-right: 0;
	font-size: 0.7rem;
	border-radius: 999px;
}

#rostereditor .injury {
	background-color: #fef2f2 !important;
	border-left-color: #ef4444 !important;
}

#rostereditor .suspension {
	background-color: #fff7ed !important;
	border-left-color: #f97316 !important;
}

#rostereditor .canplaypro,
#rostereditor .canplayfarm {
	background-color: #fffbeb !important;
}

#rostereditor .ProScratch.nocontract,
#rostereditor .FarmScratch.nocontract {
	color: #94a3b8 !important;
	opacity: 0.85;
}

#rostereditor .movetowaiver {
	color: #92400e;
	background-color: #fef3c7;
}

#rostereditor .ui-sortable-placeholder {
	visibility: visible !important;
	min-height: 2.5rem;
	margin: 0 0 6px;
	border: 2px dashed #94a3b8;
	border-radius: 10px;
	background: #f1f5f9;
	box-sizing: border-box;
}

#rostereditor .rostererror {
	margin: 0 0 16px;
}

#rostereditor .errorwrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	overflow: visible;
}

#rostereditor .errorwrapper.error,
#rostereditor .errorwrapper.linesincomplete {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

#rostereditor .errorwrapper #errorheader,
#rostereditor .errorwrapper #errorheader div {
	flex: 0 0 100%;
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 700;
}

#rostereditor .erroritem {
	display: inline-flex;
	align-items: center;
	float: none !important;
	margin: 0 !important;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid #fecaca;
	background: #ffffff;
	color: #991b1b;
	font-size: 0.8rem !important;
	line-height: 1.3;
	white-space: normal;
	max-width: 100%;
}

#rostereditor .rostercomplete {
	display: block;
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 16px;
}

#accordionfuture.webclient-roster-accordion {
	border: none;
	background: transparent;
	width: 100%;
}

#accordionfuture.webclient-roster-accordion .ui-accordion-content {
	padding: 12px 0 20px;
	border: none;
	background: transparent;
	width: 100% !important;
	overflow: visible;
	box-sizing: border-box;
}

#accordionfuture.webclient-roster-accordion h3.withsave {
	position: relative;
	margin: 0 0 8px;
	padding: 14px 40px 14px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
}

#accordionfuture.webclient-roster-accordion h3.withsave::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: translateY(-60%) rotate(45deg);
	transition: transform 0.2s ease;
}

#accordionfuture.webclient-roster-accordion .ui-accordion-header-active::after {
	transform: translateY(-30%) rotate(-135deg);
}

#accordionfuture.webclient-roster-accordion .ui-accordion-header .ui-icon {
	display: none;
}

#rostereditor option {
	padding: 4px 8px;
}

#rostereditor option + option {
	border-top: 1px dotted #e2e8f0;
}

@media only screen and (max-width: 1024px) {
	#rostereditor .columnwrapper.webclient-roster-grid {
		flex-wrap: wrap;
	}

	#rostereditor .col4.roster-column {
		flex: 1 1 calc(50% - 6px);
		min-width: 160px;
	}
}

@media only screen and (max-width: 640px) {
	#rostereditor .columnwrapper.webclient-roster-grid {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 8px;
	}

	#rostereditor .col4.roster-column {
		flex: 0 0 min(85vw, 280px);
		min-width: min(85vw, 280px);
		max-width: min(85vw, 280px);
		width: auto;
		scroll-snap-align: start;
	}

	#rostereditor li.playerrow {
		font-size: 0.875rem;
		padding: 10px;
	}

	#rostereditor .erroritem {
		font-size: 0.8rem !important;
	}
}

.webclient-captains-panel {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
}

.webclient-captains-panel h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.webclient-captains-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 16px;
	margin-bottom: 12px;
}

.webclient-captains-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #475569;
}

.webclient-captains-field select {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #0f172a;
	font-size: 0.875rem;
	box-sizing: border-box;
}

.webclient-captains-league {
	margin-bottom: 16px;
}

.webclient-captains-league:last-of-type {
	margin-bottom: 0;
}

.webclient-captains-league h4 {
	margin: 0 0 10px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.webclient-jerseys-panel {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
}

.webclient-jerseys-leagues {
	display: grid;
	gap: 16px;
}

.webclient-jerseys-leagues--split {
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.webclient-jerseys-leagues--split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.webclient-jerseys-league .webclient-jerseys-table-wrap {
	margin-bottom: 0;
}

.webclient-jerseys-panel h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.webclient-jerseys-hint {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: #64748b;
}

.webclient-jerseys-table-wrap {
	max-height: min(65vh, 560px);
	overflow: auto;
	margin-bottom: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
}

.webclient-jerseys-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.webclient-jerseys-table th,
.webclient-jerseys-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
}

.webclient-jerseys-table th {
	position: sticky;
	top: 0;
	background: #f8fafc;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	z-index: 1;
}

.webclient-jerseys-table tr:last-child td {
	border-bottom: none;
}

.webclient-jerseys-pos {
	width: 72px;
	color: #64748b;
	font-weight: 600;
}

.webclient-jerseys-input {
	width: 72px;
}

.webclient-jerseys-input input {
	width: 56px;
	min-height: 36px;
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #0f172a;
	font-size: 0.875rem;
	text-align: center;
	box-sizing: border-box;
}

.webclient-jerseys-actions {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
}

.webclient-jerseys-save {
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	min-width: 200px;
	cursor: pointer;
}

.webclient-jerseys-panel .webclient-jerseys-save.btn-secondary {
	border: 1px solid #0f172a;
	background: #0f172a;
	color: #ffffff;
}

.webclient-jerseys-panel .webclient-jerseys-save.btn-secondary:hover {
	background: #1e293b;
	border-color: #1e293b;
}

#rostereditor .rowjersey {
	display: inline-block;
	min-width: 1.75rem;
	margin-right: 2px;
	font-weight: 700;
	color: #64748b;
}

.webclient-jerseys-panel-legacy {
	width: 90%;
	margin: 0 auto 24px;
}

.webclient-jerseys-panel-legacy .webclient-jerseys-hint {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: #475569;
}

.webclient-jerseys-panel-legacy .webclient-jerseys-table-wrap {
	max-height: 360px;
	overflow: auto;
	margin-bottom: 12px;
}

.webclient-jerseys-table-legacy .webclient-jersey-input {
	width: 56px;
	text-align: center;
}

.webclient-jerseys-panel-legacy .webclient-jerseys-actions {
	margin-top: 12px;
	text-align: center;
}

.webclient-jerseys-panel-legacy .webclient-jerseys-save {
	min-width: 220px;
}
