/* [ecowitt_lightning_pagina] — klassieke stijl, zoals de andere weer-plugins (Weer Hub). */
.elcp {
	--elcp-blauw: var(--wk-knop, #1a5fa0);
	background: #f3f4f6;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	max-width: 900px;
	margin: 0 auto 2em;
	color: #1c2430;
	font-size: 14px;
	box-sizing: border-box;
}

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

.elcp-kop {
	background: linear-gradient(90deg, var(--wk-kop-basis-1, #1f5fae), var(--wk-kop-basis-2, #4a8ad6));
	color: var(--wk-kop-basis-tekst, #fff);
	padding: 10px 16px;
	font-size: 16px;
	font-weight: 700;
}

.elcp-sectie {
	padding: 16px 16px 4px;
}

.elcp-sectie + .elcp-sectie {
	border-top: 1px solid #dfe3e9;
	margin-top: 12px;
}

.elcp-sectie-titel {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a5fa0;
	margin-bottom: 12px;
}

.elcp-sectie-titel span {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #5b6472;
}

.elcp-balk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.elcp-balk .elcp-sectie-titel {
	margin: 0;
}

.elcp-kiezers {
	display: flex;
	align-items: center;
	gap: 6px;
}

.elcp select.elcp-maand,
.elcp select.elcp-jaar {
	margin: 0;
	padding: 6px 28px 6px 12px;
	border: 1px solid #c9ced6;
	border-radius: 999px;
	background-color: #fff;
	color: #1c2430;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	min-height: 0;
	height: auto;
	width: auto;
}

.elcp button.elcp-nav {
	margin: 0;
	padding: 0;
	width: 30px;
	height: 30px;
	border: 1px solid #c9ced6;
	border-radius: 50%;
	background: #fff;
	color: #1c2430;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.elcp button.elcp-nav:hover {
	border-color: var(--elcp-blauw);
	background: #fff;
	color: var(--elcp-blauw);
}

/* Tegels met kerncijfers. */
.elcp-tegels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.elcp-tegel {
	background: #fff;
	border: 1px solid #e3e7ed;
	border-radius: 10px;
	padding: 10px 12px;
	text-align: center;
}

.elcp-tegel span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5b6472;
}

.elcp-tegel b {
	display: block;
	margin-top: 3px;
	font-size: 22px;
	font-weight: 800;
	color: #1c2430;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.elcp-tegel b.elcp-rood {
	color: #d64541;
}

/* Grafieken. */
.elcp-paneel {
	background: #fff;
	border: 1px solid #e3e7ed;
	border-radius: 10px;
	padding: 12px 12px 8px;
	margin-bottom: 12px;
}

.elcp-paneel-titel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5b6472;
	margin-bottom: 8px;
}

.elcp-grafiek {
	position: relative;
	height: 240px;
}

.elcp-grafiek canvas {
	max-width: none !important;
}

.elcp-leeg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5b6472;
	font-size: 13px;
	pointer-events: none;
}

.elcp-leeg[hidden] {
	display: none;
}

.elcp-legende {
	display: flex;
	justify-content: center;
	gap: 18px;
	font-size: 12px;
	color: #5b6472;
	padding-top: 6px;
}

.elcp-sw {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: -1px;
}

.elcp-sw-inslag { background: #d64541; }
.elcp-sw-afstand { background: rgba(47, 111, 182, 0.35); box-shadow: inset 0 -2px 0 #2f6fb6; }

/* Tabel per dag. */
.elcp-tabel-wrap {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e3e7ed;
	margin-bottom: 8px;
}

.elcp-tabel {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: #fff;
	font-size: 13px;
}

.elcp-tabel th,
.elcp-tabel td {
	border: none;
	padding: 7px 10px;
	text-align: center;
}

.elcp-tabel thead th {
	background: #1a5fa0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.elcp-tabel tbody tr:nth-child(odd) { background: #fff; }
.elcp-tabel tbody tr:nth-child(even) { background: #f3f5f8; }
.elcp-tabel tbody tr.elcp-actief { background: #fff6e8; }

.elcp-tabel tbody td {
	border-top: 1px solid #e3e7ed;
}

.elcp-dag {
	font-weight: 700;
}

.elcp-pil {
	display: inline-block;
	min-width: 36px;
	padding: 2px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.elcp-pil-rood {
	background: #fde4e3;
	color: #c0392b;
	border: 1px solid #f5b3ae;
}

.elcp-pil-blauw {
	background: #e3effc;
	color: #1a5fa0;
	border: 1px solid #b6d2f2;
}

.elcp-nul,
.elcp-streep {
	color: #b5bcc6;
}

.elcp-laden {
	color: #5b6472;
	padding: 18px !important;
}

.elcp-noot {
	margin: 4px 0 0;
	font-size: 12px;
	color: #5b6472;
}

.elcp-noot:empty {
	display: none;
}

.elcp-voet {
	padding: 12px 16px 14px;
	font-size: 11px;
	color: #5b6472;
	text-align: right;
}

.elcp-voet a {
	color: inherit;
}

@media (max-width: 600px) {
	.elcp-tegels {
		grid-template-columns: 1fr 1fr;
	}
	.elcp-tegel b {
		font-size: 18px;
	}
	.elcp-grafiek {
		height: 200px;
	}
}

/* Keuze van de tijdspanne (ronde knoppen, zoals de tabbladen van de andere plugins). */
.elcp-periodes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.elcp button.elcp-periode {
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #c9ced6;
	border-radius: 999px;
	background: #fff;
	color: #1c2430;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}

.elcp button.elcp-periode:hover {
	border-color: var(--elcp-blauw);
	background: #fff;
	color: #1c2430;
}

.elcp button.elcp-periode.is-actief {
	background: var(--elcp-blauw);
	border-color: var(--elcp-blauw);
	color: var(--wk-knop-tekst, #fff);
}

/* Hoofdtabbladen als "mappen" bovenaan, zoals bij Klimaat Trend: de actieve tab
   loopt over in de blauwe balk eronder. */
.elcp-mappen {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 3px;
	padding: 10px 12px 0;
}

.elcp .elcp-mappen button.elcp-tab {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 4px 0 0;
	padding: 8px 18px 9px;
	background: #e6ebf1;
	background-image: none;
	border: 1px solid #c9ced6;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: none;
	text-shadow: none;
	color: #3a475a;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.elcp .elcp-mappen button.elcp-tab svg {
	flex: none;
	display: block;
}

.elcp .elcp-mappen button.elcp-tab:hover {
	background: #d3dce8;
	color: #1c2430;
}

.elcp .elcp-mappen button.elcp-tab.is-actief,
.elcp .elcp-mappen button.elcp-tab.is-actief:hover {
	background: var(--wk-kop-basis-1, #1a5fa0);
	border-color: var(--wk-kop-basis-1, #1a5fa0);
	color: #fff;
	font-weight: 700;
	margin-top: 0;
	padding-top: 11px;
	cursor: default;
}

/* Balk onder de mappen: effen kleur (sluit aan op de actieve tab), tekst gecentreerd. */
.elcp-kop.elcp-kop-onder {
	background: var(--wk-kop-basis-1, #1a5fa0);
	text-align: center;
	font-size: 15px;
	padding: 9px 16px;
}

@media (max-width: 600px) {
	.elcp .elcp-mappen button.elcp-tab {
		padding: 7px 12px 8px;
		font-size: 12px;
	}
}

.elcp-tabpaneel[hidden] {
	display: none;
}

.elcp-live {
	background: #fff;
	border: 1px solid #e3e7ed;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 8px;
}

.elcp-live-kaart {
	display: block;
	width: 100%;
	height: 560px;
	border: 0;
}

.elcp-noot a {
	color: var(--elcp-blauw);
}

@media (max-width: 600px) {
	.elcp-live-kaart {
		height: 420px;
	}
}
