/**
 * Standings shortcode styles.
 * Selectors are nested under .bapro-standings (often doubled) to beat theme styles.
 *
 * @package BasketApiPro
 */

.bapro-standings.bapro-standings {
	--c-grey: var(--bapro-grey);
	--c-black: var(--bapro-black);
	--c-orange: var(--bapro-orange);
	--c-blue: var(--bapro-blue);
	--c-text: var(--bapro-text);
	--c-border: var(--bapro-border);
	--radius: var(--bapro-radius);
	--shadow: var(--bapro-shadow);
	color: var(--c-text);
	background: var(--c-grey);
	padding: 20px;
	margin: 0 auto;
	width: min(1100px, 92vw);
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.4;
}

.bapro-standings.bapro-standings *,
.bapro-standings.bapro-standings *::before,
.bapro-standings.bapro-standings *::after {
	box-sizing: border-box;
}

.bapro-standings.bapro-standings .bapro-standings__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0;
	padding: 0 0 18px;
}

.bapro-standings.bapro-standings h2.bapro-standings__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--c-black);
	text-transform: none;
}

.bapro-standings.bapro-standings label.bapro-select,
.bapro-standings.bapro-standings .bapro-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 2px 10px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	cursor: pointer;
	font-weight: inherit;
	color: inherit;
}

.bapro-standings.bapro-standings .bapro-select select,
.bapro-standings.bapro-standings select#bapro-standings-season-select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	font-weight: 600;
	font-size: inherit;
	font-family: inherit;
	color: var(--c-black);
	padding: 6px 22px 6px 0;
	margin: 0;
	height: auto;
	line-height: 1.4;
	cursor: pointer;
	width: auto;
	max-width: 100%;
}

.bapro-standings.bapro-standings .bapro-select .bapro-select__chev,
.bapro-standings.bapro-standings i.bapro-select__chev {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-25%);
	pointer-events: none;
	border: 6px solid transparent;
	border-top-color: var(--c-black);
	margin: 0;
	padding: 0;
	width: 0;
	height: 0;
	background: none;
	display: block;
}

.bapro-standings.bapro-standings h3.bapro-standings__group-title {
	margin: 18px 0 8px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-black);
	text-transform: none;
}

.bapro-standings.bapro-standings .bapro-standings__group + .bapro-standings__group {
	margin-top: 8px;
}

.bapro-standings.bapro-standings .bapro-table-wrapper.bapro-table-wrapper {
	background: #fff;
	border: 1px solid rgba(0, 163, 224, 0.35);
}

.bapro-standings.bapro-standings .bapro-table-wrapper.bapro-table-wrapper table.bapro-standings__table {
	min-width: 920px;
}

.bapro-standings.bapro-standings .bapro-standings__table th:first-child,
.bapro-standings.bapro-standings .bapro-standings__table td:first-child {
	width: max-content;
}

.bapro-standings.bapro-standings .bapro-standings__club {
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: left;
	white-space: nowrap;
	width: max-content;
}

.bapro-standings.bapro-standings .bapro-standings__pos {
	min-width: 1.4em;
	font-weight: 700;
	color: var(--c-black);
}

.bapro-standings.bapro-standings .bapro-standings__move {
	display: inline-block;
	width: 0;
	height: 0;
	flex: 0 0 auto;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}

.bapro-standings.bapro-standings .bapro-standings__move--up {
	border-bottom: 6px solid #1f7a3a;
}

.bapro-standings.bapro-standings .bapro-standings__move--down {
	border-top: 6px solid #c0392b;
}

.bapro-standings.bapro-standings .bapro-standings__move--equal {
	width: 8px;
	height: 8px;
	border: 0;
}

.bapro-standings.bapro-standings img.bapro-standings__crest {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.bapro-standings.bapro-standings a.bapro-standings__name,
.bapro-standings.bapro-standings .bapro-standings__name {
	font-weight: 600;
	color: var(--c-black);
	text-decoration: none;
}

.bapro-standings.bapro-standings a.bapro-standings__name:hover,
.bapro-standings.bapro-standings a.bapro-standings__name:focus {
	text-decoration: underline;
}

.bapro-standings.bapro-standings .bapro-standings__q {
	font-weight: 700;
	color: var(--c-black);
}

.bapro-standings.bapro-standings .bapro-standings__diff--plus {
	color: #1f7a3a;
	font-weight: 600;
}

.bapro-standings.bapro-standings .bapro-standings__diff--minus {
	color: #c0392b;
	font-weight: 600;
}

.bapro-standings.bapro-standings tr.bapro-standings__row--cut-dashed td {
	border-bottom: 2px dashed #d35400!important;
}

.bapro-standings.bapro-standings tr.bapro-standings__row--cut-solid td {
	border-bottom: 2px solid #d35400!important;
}

.bapro-standings.bapro-standings tr.bapro-standings__row--cut-group td {
	border-bottom: 2px solid var(--c-blue);
}

.bapro-standings.bapro-standings .bapro-standings__legend {
	margin-top: 14px;
	font-size: 0.875rem;
	color: var(--c-text);
}

.bapro-standings.bapro-standings .bapro-standings__legend p {
	margin: 0 0 4px;
	padding: 0;
}

.bapro-standings.bapro-standings .bapro-standings__empty {
	margin: 0;
}
