/* Aluvere Karikas — hooaja üldseisu tabel ([aluvere_karikas_seis])
 *
 * NB: Aluvere Ringi koduleht on FIKSEERITUD hele kujundus (vt style.css
 * "sundimise kiht"). Siin EI TOHI kasutada @media (prefers-color-scheme:
 * dark) reegleid — kui külastaja arvuti on tumedas režiimis, muutus
 * tekst heledaks, aga leht ise jäi valgeks ja pooled read olid
 * loetamatud. Kõik värvid on seetõttu jäigalt paika pandud ja
 * !important-iga kaitstud aktiivse WP-teema enda CSS-i vastu.
 */

.akseis-standings {
	--akseis-border: #1c1d2029;
	--akseis-header-bg: #1E7A3D;
	--akseis-header-fg: #ffffff;
	--akseis-row-bg: #ffffff;
	--akseis-row-alt: #f4f6f4;
	--akseis-pos1: #ffd84d;
	--akseis-pos2: #dcdcdc;
	--akseis-pos3: #cf9a5c;
	--akseis-text: #1C1D20;
	--akseis-muted: #6b6d72;
	margin: 1.2em 0;
	color: var(--akseis-text);
}

/* ---------- sakid ---------- */

.akseis-tabs {
	margin: 0.5em 0;
}

.akseis-tab-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-bottom: 1em;
	border-bottom: 2px solid var(--akseis-border);
	padding-bottom: 0.6em;
}

.akseis-tab-btn {
	appearance: none;
	border: 1px solid #1c1d2033 !important;
	background: #ffffff !important;
	color: var(--akseis-text) !important;
	padding: 0.45em 0.9em;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.akseis-tab-btn:hover {
	border-color: var(--akseis-header-bg) !important;
	color: var(--akseis-header-bg) !important;
}

.akseis-tab-btn.is-active {
	background: var(--akseis-header-bg) !important;
	color: var(--akseis-header-fg) !important;
	border-color: var(--akseis-header-bg) !important;
	font-weight: 600;
}

.akseis-tab-panel[hidden] {
	display: none;
}

/* ---------- tabel ---------- */

.akseis-table-scroll {
	overflow-x: auto;
	max-width: 100%;
	border: 1px solid var(--akseis-border);
	border-radius: 4px;
	background: var(--akseis-row-bg) !important;
}

.akseis-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 520px;
	font-size: 0.92em;
	background: var(--akseis-row-bg) !important;
	color: var(--akseis-text) !important;
}

.akseis-table th,
.akseis-table td {
	padding: 0.5em 0.7em;
	text-align: center;
	border-bottom: 1px solid var(--akseis-border);
	white-space: nowrap;
	color: var(--akseis-text) !important;
}

.akseis-table thead th {
	background: var(--akseis-header-bg) !important;
	color: var(--akseis-header-fg) !important;
	font-weight: 600;
	position: sticky;
	top: 0;
}

.akseis-table .akseis-col-name {
	text-align: left;
	white-space: normal;
	min-width: 130px;
}

/* Read: valge / väga hele vaheldumisi — mõlemal juhul TUME tekst. */
.akseis-table tbody tr {
	background: var(--akseis-row-bg) !important;
}

.akseis-table tbody tr:nth-child(even) {
	background: var(--akseis-row-alt) !important;
}

.akseis-table tbody td {
	background: transparent !important;
}

/* Esikolmiku esiletõst — ainult kohanumbri lahter. */
.akseis-table tr.akseis-pos-1 td:first-child,
.akseis-table tr.akseis-pos-2 td:first-child,
.akseis-table tr.akseis-pos-3 td:first-child {
	font-weight: 700;
	color: #1C1D20 !important;
}

.akseis-table tr.akseis-pos-1 td:first-child { background: var(--akseis-pos1) !important; }
.akseis-table tr.akseis-pos-2 td:first-child { background: var(--akseis-pos2) !important; }
.akseis-table tr.akseis-pos-3 td:first-child { background: var(--akseis-pos3) !important; }

.akseis-table .akseis-col-total {
	font-weight: 700;
}

.akseis-table .akseis-nopoint {
	color: var(--akseis-muted) !important;
}

.akseis-empty {
	font-style: italic;
	color: var(--akseis-muted) !important;
}
