/* ===== Poppins (dołączona lokalnie, licencja OFL – assets/fonts/OFL.txt) ===== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/Poppins-Black.ttf') format('truetype'); }

/* Ujednolicenie czcionki w całej wtyczce (frontend) */
.evcr-ranking, .evcr-ranking input, .evcr-ranking select, .evcr-ranking button, .evcr-ranking textarea {
	font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
/* Ranking cen EV — style frontendu */

.evcr-ranking {
	--evcr-blue: #131fd7;      /* królewski niebieski – z grafiki */
	--evcr-blue-dark: #0c1cb7; /* granat nagłówków – z grafiki */
	--evcr-teal: #35b2aa;      /* turkus (min) – z grafiki */
	--evcr-grey: #4b5563;
	--evcr-grey-pill: #dcdde2; /* tło pigułki maks – z grafiki */
	--evcr-green: #45cd13;     /* kropka Elocity – z grafiki */
	--evcr-line: #e5e7eb;
	font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a2e;
	max-width: 1180px;
	margin: 0 auto;
}

.evcr-head {
	display: table;
	width: 100%;
	border-bottom: 3px solid var(--evcr-blue-dark);
	padding-bottom: 10px;
	margin-bottom: 14px;
}
.evcr-title {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: var(--evcr-blue-dark);
}
.evcr-title-month {
	color: var(--evcr-blue);
	white-space: nowrap;
}
/* Wizualnie większy H1 (tytuły główne: ranking + Tesla) */
h1.evcr-title { font-size: 33px; line-height: 1.15; }
.evcr-partner {
	display: table-cell;
	vertical-align: middle;
	text-align: right;
	padding-left: 16px;
	white-space: nowrap;
	width: 1%;
}
.evcr-partner-inner {
	display: inline-block;
	text-align: center;
}
.evcr-powered {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: #6b7280;
	margin-bottom: 3px;
}
.evcr-partner-a {
	display: inline-block;
	line-height: 0;
}
.evcr-partner-logo {
	max-height: 100px;
	max-width: 440px;
	width: auto;
	height: auto;
	vertical-align: middle;
	object-fit: contain;
}
@media (max-width: 640px) {
	.evcr-head,
	.evcr-title,
	.evcr-partner { display: block; width: auto; text-align: center; }
	.evcr-title { margin-bottom: 10px; }
	.evcr-partner { padding-left: 0; }
}

.evcr-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 14px;
}
.evcr-switch label {
	font-weight: 700;
	color: var(--evcr-blue-dark);
}
.evcr-select-wrap { position: relative; display: inline-block; }
.evcr-switch select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 10px 42px 10px 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--evcr-blue-dark);
	background: #fff;
	border: 2px solid var(--evcr-blue);
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(19, 31, 215, 0.12);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.evcr-switch select:hover { box-shadow: 0 4px 12px rgba(19, 31, 215, 0.22); }
.evcr-switch select:focus { outline: none; border-color: var(--evcr-blue-dark); box-shadow: 0 0 0 3px rgba(19, 31, 215, 0.25); }
.evcr-select-wrap::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	transform: translateY(-65%) rotate(45deg);
	border-right: 2px solid var(--evcr-blue);
	border-bottom: 2px solid var(--evcr-blue);
	pointer-events: none;
}
.evcr-stan {
	margin: -6px 0 16px;
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
}
.evcr-stan strong { color: var(--evcr-blue-dark); }
.evcr-legend-hint {
	margin-top: 10px;
	font-weight: 700;
	color: #4b5563;
}
.evcr-credits {
	margin: 26px 0 0;
	padding: 22px 0 44px;
	border-top: 2px solid var(--evcr-line, #e5e7eb);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.evcr-patron {
	text-align: left;
	flex: 0 1 auto;
}
.evcr-authors {
	text-align: right;
	flex: 0 1 auto;
	margin-left: auto;
}
.evcr-authors-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 10px;
}
.evcr-authors-logos {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.evcr-author { display: inline-flex; align-items: center; text-decoration: none; }
.evcr-author-sep { display: inline-block; width: 2px; height: 40px; background: #d1d5db; border-radius: 1px; }
.evcr-author-logo { max-height: 46px; max-width: 190px; width: auto; height: auto; object-fit: contain; }
.evcr-author-name { font-size: 20px; font-weight: 800; color: var(--evcr-blue-dark); }
a.evcr-author:hover .evcr-author-logo { opacity: 0.82; }
a.evcr-author:hover .evcr-author-name { text-decoration: underline; }
@media (max-width: 640px) {
	.evcr-credits { flex-direction: column; align-items: center; text-align: center; }
	.evcr-patron, .evcr-authors { text-align: center; margin-left: 0; }
	.evcr-authors-logos { justify-content: center; }
}
.evcr-patron-label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 10px;
}
.evcr-patron-name {
	font-size: 30px;
	font-weight: 800;
	color: var(--evcr-blue-dark, #0c1cb7);
}
.evcr-patron-logo {
	max-height: 72px;
	max-width: 340px;
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}
.evcr-actions { margin: 0 0 16px; }
.evcr-pdf-btn {
	display: inline-block;
	background: var(--evcr-blue, #131fd7);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 8px;
}
.evcr-pdf-btn:hover { background: var(--evcr-blue-dark, #0c1cb7); color: #fff; }

/* Kolumny kategorii */
.evcr-columns {
	display: grid;
	gap: 18px;
}
.evcr-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 0; }
.evcr-cols-2 { grid-template-columns: repeat(2, 1fr); gap: 0; }
.evcr-cols-1 { grid-template-columns: 1fr; }

/* Subtelne pionowe rozgraniczenie między AC / DC / HPC */
.evcr-cols-3 .evcr-col, .evcr-cols-2 .evcr-col { padding: 0 22px; }
.evcr-cols-3 .evcr-col:first-child, .evcr-cols-2 .evcr-col:first-child { padding-left: 0; }
.evcr-cols-3 .evcr-col:last-child, .evcr-cols-2 .evcr-col:last-child { padding-right: 0; }
.evcr-cols-3 .evcr-col + .evcr-col, .evcr-cols-2 .evcr-col + .evcr-col { border-left: 1px solid var(--evcr-line, #e5e7eb); }

@media (max-width: 1150px) {
	.evcr-columns { grid-template-columns: 1fr; row-gap: 34px; }
	.evcr-cols-3 .evcr-col, .evcr-cols-2 .evcr-col { padding: 0; border-left: none; }
	.evcr-cols-3 .evcr-col + .evcr-col, .evcr-cols-2 .evcr-col + .evcr-col { padding-top: 30px; border-top: 2px solid var(--evcr-line, #e5e7eb); }
}

.evcr-col-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 800;
	color: var(--evcr-blue-dark);
	border-bottom: 2px solid var(--evcr-line);
	padding-bottom: 6px;
	text-align: center;
}
.evcr-col-title span { font-weight: 500; color: var(--evcr-grey); font-size: 14px; }

/* Wiersz etykiet kolumn: min / średnia / maks (ten sam układ co komórki cen) */
.evcr-labels-row .evcr-brandcol,
.evcr-labels-row .evcr-dotcol,
.evcr-labels-row .evcr-bar-wrap,
.evcr-labels-row .evcr-flags {
	padding: 2px 0 6px;
}
/* Osobna kolumna zielonej kropki Elocity — przed kolumną „min” */
.evcr-dotcol {
	display: table-cell;
	width: 22px;
	vertical-align: middle;
	text-align: center;
}
.evcr-bar-wrap .evcr-sublabel {
	display: inline-block;
	width: 48px;
	margin: 0 3px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--evcr-grey);
	text-transform: uppercase;
}

.evcr-list { list-style: none; margin: 0; padding: 0; }

.evcr-item {
	display: table;
	width: 100%;
	table-layout: fixed;
	border-bottom: 1px solid var(--evcr-line);
}

/* Kolumna marki: logo (link) + zielona kropka Elocity — komórka tabeli, wyśrodkowana pionowo */
.evcr-brandcol {
	display: table-cell;
	width: 96px;
	vertical-align: middle;
	padding: 6px 0;
	white-space: nowrap;
}
.evcr-op { display: inline-block; vertical-align: middle; text-decoration: none; color: inherit; }
.evcr-op-brand { display: inline-block; vertical-align: middle; }
.evcr-logo { max-width: 80px; max-height: 32px; height: auto; width: auto; vertical-align: middle; object-fit: contain; }
.evcr-op-name { font-weight: 700; font-size: 14px; color: var(--evcr-blue-dark); line-height: 1.15; vertical-align: middle; }
.evcr-op:hover .evcr-op-name { text-decoration: underline; }
.evcr-op:hover .evcr-logo { opacity: 0.8; }
.evcr-dotcol .evcr-dot { display: inline-block; vertical-align: middle; margin: 0; }

.evcr-bar-wrap {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	font-size: 0; /* usuwa odstępy między inline-block */
	white-space: nowrap;
	padding: 8px 0;
}
.evcr-min,
.evcr-bar,
.evcr-max {
	display: inline-block;
	width: 48px;
	height: 34px;
	line-height: 34px;
	vertical-align: middle;
	margin: 0 3px;
	box-sizing: border-box;
	text-align: center;
	border-radius: 6px;
}
.evcr-min {
	font-size: 13px;
	font-weight: 700;
	color: #12897c;
}
.evcr-min:not(:empty) {
	background: #d7f2ee; /* jasny turkus */
}
.evcr-bar {
	background: var(--evcr-blue);
	box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.evcr-std { color: #fff; font-weight: 800; font-size: 15px; }
.evcr-max {
	font-size: 13px;
	font-weight: 700;
	color: #7c8391;
}
.evcr-max:not(:empty) {
	background: #e9ebf0; /* jasnoszary */
}

.evcr-flags {
	display: table-cell;
	width: 24px;
	vertical-align: middle;
	text-align: right;
	white-space: nowrap;
	padding: 8px 0;
}
.evcr-dot {
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--evcr-green, #45cd13);
}
.evcr-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	margin-left: 10px;
	width: 20px; height: 20px;
	background: #111827;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
}
a.evcr-badge-link { color: #fff !important; }
.evcr-badge-spacer {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	width: 20px;
	height: 1px;
}
a.evcr-badge-link {
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.1s ease, background 0.1s ease;
}
a.evcr-badge-link:hover {
	background: var(--evcr-blue, #131fd7);
	transform: scale(1.12);
}

.evcr-legend {
	margin-top: 16px;
	font-size: 15px;
	font-weight: 700;
	color: #374151;
}
.evcr-legend .evcr-dot { margin-right: 7px; vertical-align: middle; }

/* Przypisy / opisy promocji 1–10 */
.evcr-notes {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 2px solid var(--evcr-line);
}
.evcr-notes-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--evcr-blue-dark);
	margin: 0 0 14px;
}
.evcr-notes-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 30px;
	row-gap: 0;
}
@media (max-width: 720px) {
	.evcr-notes-grid { grid-template-columns: 1fr; }
}

/* ===== Responsywność: tablet i telefon ===== */
@media (max-width: 640px) {
	.evcr-title { font-size: 22px; }
	h1.evcr-title { font-size: 28px; }
	.evcr-partner-logo { max-height: 70px; max-width: 80vw; }
	.evcr-brandcol { width: 96px; }
	.evcr-logo { max-width: 80px; max-height: 30px; }
	.evcr-op-name { font-size: 12px; }
	.evcr-dotcol { width: 16px; }
	.evcr-bar-wrap { padding: 6px 0; }
	.evcr-min, .evcr-bar, .evcr-max { width: 46px; height: 30px; line-height: 30px; margin: 0 2px; border-radius: 5px; }
	.evcr-std { font-size: 13px; }
	.evcr-min, .evcr-max { font-size: 11px; }
	.evcr-bar-wrap .evcr-sublabel { width: 46px; margin: 0 2px; font-size: 9px; }
	.evcr-badge { margin-left: 8px; width: 17px; height: 17px; font-size: 10px; }
	.evcr-badge-spacer { margin-left: 8px; width: 17px; }
	.evcr-col-title { font-size: 17px; }
	.evcr-patron-name { font-size: 24px; }
	.evcr-switch { display: flex; flex-wrap: wrap; }
	.evcr-switch select { width: 100%; }
	.evcr-select-wrap { flex: 1 1 auto; }
}
@media (max-width: 420px) {
	.evcr-title { font-size: 19px; }
	h1.evcr-title { font-size: 24px; }
	.evcr-brandcol { width: 72px; }
	.evcr-logo { max-width: 62px; max-height: 24px; }
	.evcr-op-name { font-size: 10.5px; line-height: 1.1; white-space: normal; }
	.evcr-dotcol { width: 14px; }
	.evcr-dot { width: 7px; height: 7px; }
	.evcr-min, .evcr-bar, .evcr-max { width: 38px; height: 26px; line-height: 26px; margin: 0 1.5px; }
	.evcr-std { font-size: 12px; }
	.evcr-min, .evcr-max { font-size: 10px; }
	.evcr-bar-wrap .evcr-sublabel { width: 38px; margin: 0 1.5px; font-size: 8px; letter-spacing: 0; }
	.evcr-badge { margin-left: 6px; width: 15px; height: 15px; font-size: 9px; }
	.evcr-badge-spacer { margin-left: 6px; width: 15px; }
}
.evcr-note-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
	scroll-margin-top: 90px;
	border-radius: 8px;
	transition: background 0.4s ease;
}
.evcr-note-item:target {
	background: #eef1ff;
	box-shadow: 0 0 0 6px #eef1ff;
}
.evcr-note-num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	margin-top: 2px;
	margin-right: 14px;
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 50%;
}
.evcr-note-body { min-width: 0; }
.evcr-note-name {
	font-weight: 800;
	color: var(--evcr-blue-dark);
	font-size: 14px;
	margin-bottom: 2px;
}
.evcr-note-text {
	font-size: 13px;
	line-height: 1.45;
	color: #374151;
	white-space: pre-line;
}

.evcr-empty, .evcr-nodata {
	padding: 14px;
	background: #f7f8fb;
	border: 1px dashed var(--evcr-line);
	border-radius: 8px;
	color: var(--evcr-grey);
	font-size: 14px;
}

/* Podstrona operatora — wykresy */
.evcr-operator-history {
	margin-top: 26px;
	font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.evcr-op-history-head {
	margin-bottom: 16px;
}
.evcr-op-history-brand {
	margin-bottom: 10px;
}
.evcr-op-history-logo-img {
	display: block;
	max-width: 260px;
	max-height: 96px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.evcr-op-history-name {
	font-size: 27px;
	font-weight: 800;
	color: var(--evcr-blue, #131fd7);
	margin: 0 0 6px;
	line-height: 1.15;
}
.evcr-history-title {
	font-size: 22px;
	font-weight: 800;
	color: #16297a;
	margin: 0 0 4px;
}
.evcr-history-sub { color: #6b7280; font-size: 14px; margin: 0 0 18px; }
.evcr-history-desc {
	background: #f3f5fb;
	border-left: 4px solid var(--evcr-blue, #131fd7);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: #374151;
}

.evcr-chart-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 18px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16,24,40,0.05);
}
.evcr-chart-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: #16297a;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.evcr-chart-title span { color: #6b7280; font-weight: 500; font-size: 13px; }
.evcr-mom {
	margin-left: auto;
	font-size: 13px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.evcr-mom-up { color: #b42318; background: #fdECEA; }
.evcr-mom-down { color: #067647; background: #E7F6EE; }
.evcr-mom-flat { color: #4b5563; background: #eef0f4; }
.evcr-chart-box { position: relative; height: clamp(240px, 42vh, 320px); }
.evcr-back { margin-top: 8px; }
.evcr-back a { color: #1f3fb0; text-decoration: none; font-weight: 600; }
.evcr-back a:hover { text-decoration: underline; }

/* ===== Średnia cena energii (podsumowanie na górze) ===== */
.evcr-avgbox {
	margin: 8px 0 20px;
	padding: 18px 0 20px;
	border-top: 2px solid var(--evcr-line, #e5e7eb);
	border-bottom: 2px solid var(--evcr-line, #e5e7eb);
}
.evcr-avgbox-title {
	text-align: center;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.2px;
	color: var(--evcr-blue, #131fd7);
	margin: 0 0 14px;
	line-height: 1.25;
}
.evcr-avgbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.evcr-avg {
	border-radius: 13px;
	padding: 12px 10px 13px;
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 14px rgba(16,24,40,0.14);
}
.evcr-avg-cat { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: 0.92; }
.evcr-avg-val { font-size: 25px; font-weight: 800; line-height: 1.05; margin-top: 3px; }
.evcr-avg-val small { display: block; font-size: 11px; font-weight: 600; opacity: 0.85; margin-top: 1px; letter-spacing: 0.3px; }
.evcr-avg-ac  { background: linear-gradient(135deg, #2bbcac 0%, #12897c 100%); }
.evcr-avg-dc  { background: linear-gradient(135deg, #3a6bff 0%, #131fd7 100%); }
.evcr-avg-hpc { background: linear-gradient(135deg, #8a63ff 0%, #5a2fd7 100%); }
@media (max-width: 560px) { .evcr-avgbox-grid { grid-template-columns: 1fr; } }

/* ===== Pasek narzędzi: wybór miesiąca + przyciski porównań + mapa ===== */
.evcr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.evcr-toolbar .evcr-switch { margin: 0; flex: 0 0 auto; }
.evcr-toolbar .evcr-compare-nav { margin: 0; flex: 1 1 auto; justify-content: center; }
.evcr-mapbtn {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--evcr-blue, #131fd7);
	color: #fff !important;
	font-weight: 700; font-size: 14px; text-decoration: none;
	box-shadow: 0 4px 12px rgba(19,31,215,0.28);
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.evcr-mapbtn:hover { background: var(--evcr-blue-dark, #0c1cb7); box-shadow: 0 6px 16px rgba(19,31,215,0.36); transform: translateY(-1px); }
.evcr-mapbtn svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
	.evcr-toolbar .evcr-compare-nav { flex: 1 1 100%; order: 3; }
	.evcr-mapbtn { order: 2; margin-left: auto; }
}

/* ===== Przyciski porównań ===== */
.evcr-compare-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.evcr-cbtn {
	display: inline-flex; align-items: center;
	padding: 9px 15px;
	border: 2px solid var(--evcr-blue, #131fd7);
	border-radius: 999px;
	background: #fff;
	color: var(--evcr-blue-dark, #0c1cb7);
	font-weight: 700; font-size: 13px; text-decoration: none;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.evcr-cbtn:hover { box-shadow: 0 2px 8px rgba(19,31,215,0.18); }
.evcr-cbtn.is-active { background: var(--evcr-blue, #131fd7); color: #fff; }
.evcr-cbtn-ac  { border-color: #12897c; color: #0f7d70; }
.evcr-cbtn-ac:hover, .evcr-cbtn-ac.is-active  { background: #12897c; border-color: #12897c; color: #fff; }
.evcr-cbtn-dc  { border-color: #131fd7; color: #131fd7; }
.evcr-cbtn-dc:hover, .evcr-cbtn-dc.is-active  { background: #131fd7; border-color: #131fd7; color: #fff; }
.evcr-cbtn-hpc { border-color: #5a2fd7; color: #5a2fd7; }
.evcr-cbtn-hpc:hover, .evcr-cbtn-hpc.is-active { background: #5a2fd7; border-color: #5a2fd7; color: #fff; }
.evcr-cbtn-back { border-color: #d1d5db; color: #4b5563; margin-left: auto; }
.evcr-cbtn-back:hover { background: #f3f4f6; box-shadow: none; }

/* ===== Widok porównania (bump chart) ===== */
.evcr-compare-view { font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.evcr-compare-head .evcr-title { margin: 0 0 6px; }
.evcr-compare-sub { color: #6b7280; font-size: 15px; margin: 0 0 18px; }
.evcr-compare-box {
	position: relative;
	height: clamp(360px, 60vh, 620px);
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16,24,40,0.05);
}
@media (max-width: 640px) { .evcr-compare-box { padding: 10px; } }

/* Panel operatorów (chipy): klik = wyróżnienie, oko = włącz/wyłącz */
.evcr-compare-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.evcr-cl-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 10px 6px 12px;
	border: 1.5px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font: 600 13px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1f2937;
	transition: border-color .15s, box-shadow .15s, background .15s, opacity .15s;
}
.evcr-cl-chip:hover { border-color: #c7ccd6; box-shadow: 0 2px 8px rgba(16,24,40,0.08); }
.evcr-cl-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.evcr-cl-name { white-space: nowrap; }
.evcr-cl-logo { height: 20px; max-width: 84px; width: auto; object-fit: contain; display: block; }
.evcr-backbtn { margin: 16px 0; }
.evcr-cl-eye { display: inline-flex; align-items: center; color: #9aa1ad; margin-left: 2px; }
.evcr-cl-eye:hover { color: #4b5563; }
.evcr-cl-chip.is-solo { border-color: var(--evcr-blue, #131fd7); box-shadow: 0 0 0 3px rgba(19,31,215,0.15); }
.evcr-cl-chip.is-hidden { opacity: 0.5; }
.evcr-cl-chip.is-hidden .evcr-cl-name { text-decoration: line-through; }
.evcr-compare-legend.has-solo .evcr-cl-chip:not(.is-solo):not(.is-hidden) { opacity: 0.55; }
.evcr-compare-hint { margin: 6px 0 48px; font-size: 13px; color: #6b7280; }
.evcr-compare-nav .evcr-mapbtn { margin-left: 14px; }

/* ===== Baner promocyjny (historia operatora) ===== */
.evcr-history-banner { margin: 0 0 20px; text-align: center; }
.evcr-history-banner-img { max-width: 100%; height: auto; border-radius: 10px; }

/* ===== Przycisk Tesla Supercharger ===== */
.evcr-teslabtn {
	display: inline-flex; align-items: center;
	padding: 9px 16px;
	border-radius: 999px;
	background: #e30613;
	color: #fff !important;
	font-weight: 800; font-size: 13px; text-decoration: none;
	border: 2px solid #e30613;
	box-shadow: 0 3px 10px rgba(227,6,19,0.28);
	transition: background .15s, box-shadow .15s, transform .1s;
}
.evcr-teslabtn:hover { background: #c30510; border-color: #c30510; box-shadow: 0 5px 14px rgba(227,6,19,0.36); transform: translateY(-1px); }

/* ===== „Zobacz więcej” w sekcji średnich ===== */
.evcr-avgbox-more { text-align: center; margin-top: 14px; }
.evcr-cbtn-more { border-color: var(--evcr-blue, #131fd7); color: var(--evcr-blue, #131fd7); }
.evcr-cbtn-more:hover { background: var(--evcr-blue, #131fd7); color: #fff; }

/* ===== Karty średnich (widok historii średnich) ===== */
.evcr-avg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 22px; }
.evcr-avg-card { border: 1px solid #e5e7eb; border-top: 4px solid var(--c, #131fd7); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.evcr-avg-card-cat { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--c, #131fd7); }
.evcr-avg-card-val { font-size: 26px; font-weight: 800; color: #12184f; }
.evcr-avg-card-val small { font-size: 12px; font-weight: 600; color: #6b7280; }
.evcr-avg-card-mom { font-size: 13px; font-weight: 700; }
.evcr-mom-up { color: #c0392b; }
.evcr-mom-down { color: #12897c; }
.evcr-mom-flat { color: #6b7280; }
@media (max-width: 560px) { .evcr-avg-cards { grid-template-columns: 1fr; } }

/* ===== Tesla: pasek wariantów i przełączniki ===== */
.evcr-tesla-head .evcr-title { color: #12184f; }
.evcr-tesla-controls { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0 18px; }
.evcr-tesla-group { display: flex; flex-direction: column; gap: 6px; }
.evcr-tesla-group-lbl { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #6b7280; }
.evcr-tesla-seg { display: inline-flex; border: 2px solid #e5e7eb; border-radius: 999px; overflow: hidden; }
.evcr-tesla-seg a { padding: 8px 14px; font-weight: 700; font-size: 13px; text-decoration: none; color: #4b5563; background: #fff; }
.evcr-tesla-seg a + a { border-left: 1px solid #e5e7eb; }
.evcr-tesla-seg a.is-active { background: #e30613; color: #fff; }
.evcr-tesla-seg.is-blue a.is-active { background: #131fd7; }
.evcr-tesla-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.evcr-tesla-table th, .evcr-tesla-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f5; }
.evcr-tesla-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; }
.evcr-tesla-rank { width: 34px; font-weight: 800; color: #9aa1ad; }
.evcr-tesla-loc a { color: #12184f; font-weight: 700; text-decoration: none; }
.evcr-tesla-loc a:hover { color: #e30613; text-decoration: underline; }
.evcr-tesla-peak, .evcr-tesla-off { font-weight: 800; }
.evcr-tesla-peak { color: #131fd7; }
.evcr-tesla-off { color: #12897c; }
.evcr-tesla-note { font-size: 13px; color: #6b7280; margin: 6px 0 0; }
.evcr-tesla-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.evcr-tesla-badge.all { background: #e7f7ee; color: #12897c; }
.evcr-tesla-badge.tesla { background: #fdeaea; color: #e30613; }
.evcr-tesla-mom.up { color: #c0392b; font-weight: 700; }
.evcr-tesla-mom.down { color: #12897c; font-weight: 700; }
.evcr-tesla-mom.flat { color: #6b7280; }

/* ===== Tesla: filtry spójne z rankingiem, wyśrodkowane ===== */
.evcr-tesla-controls { justify-content: center; }
.evcr-tesla-group { align-items: center; }
.evcr-tesla-group-lbl { text-align: center; }
.evcr-tesla-seg { border-color: #d7dbe6; }
.evcr-tesla-seg a { color: #4b5563; }
.evcr-tesla-seg a.is-active,
.evcr-tesla-seg.is-blue a.is-active { background: var(--evcr-blue, #131fd7); color: #fff; }
.evcr-tesla-backrow { text-align: center; margin: 4px 0 18px; }

/* ===== Tesla: ranking w stylu ogólnego rankingu ===== */
.evcr-tesla-table { border: 1px solid #eef1f5; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.evcr-tesla-table thead th { background: #f7f8fc; }
.evcr-tesla-table tbody tr:hover { background: #f9fafe; }
.evcr-tesla-table td, .evcr-tesla-table th { border-bottom: 1px solid #eef1f5; }
.evcr-tesla-table tbody tr:last-child td { border-bottom: none; }
.evcr-tesla-c { text-align: center !important; }
.evcr-tesla-pill { display: inline-block; min-width: 58px; padding: 5px 10px; border-radius: 8px; font-weight: 800; }
.evcr-tesla-pill.peak { background: #131fd7; color: #fff; }
.evcr-tesla-pill.off { background: #35b2aa; color: #fff; }
.evcr-tesla-empty { color: #b8c0cf; font-weight: 700; }
.evcr-tesla-note-lg { margin: 16px 0 40px !important; }
.evcr-tesla-note-intro { margin-bottom: 16px; }

/* ===== Znaczek zmiany m/m: spadek = zielone tło, wzrost = czerwone ===== */
.evcr-mom-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.evcr-mom-badge.down { background: #e3f7ec; color: #0f8f5f; }
.evcr-mom-badge.up { background: #fde7e7; color: #c0392b; }
.evcr-mom-badge.flat { background: #f1f3f7; color: #6b7280; }

/* ===== Widok historii średnich: kafelki jak na stronie głównej ===== */
.evcr-avg-hist { margin: 8px 0 24px; }
.evcr-avg-hist .evcr-avg { padding: 16px 12px 16px; }
.evcr-avg-hist .evcr-mom-badge { margin-top: 8px; }

/* ===== Wyróżnienie chipów w porównywarce: mocna niebieska obwódka (nie czerwona) ===== */
.evcr-cl-chip.is-solo {
	border-color: var(--evcr-blue, #131fd7);
	border-width: 2px;
	box-shadow: 0 0 0 3px rgba(19,31,215,0.30);
	background: #fff;
}
.evcr-cl-chip.is-solo .evcr-cl-name { color: #12184f; font-weight: 800; }
.evcr-compare-legend.has-solo .evcr-cl-chip.is-solo { opacity: 1; }

/* ===== Tesla: pasek tytułu z przyciskiem powrotu po prawej ===== */
.evcr-tesla-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.evcr-tesla-back { flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 640px) { .evcr-tesla-titlebar { flex-direction: column; } .evcr-tesla-back { align-self: flex-start; } }

/* ===== Tesla: znacznik stacji do 150 kW w widoku 250 kW ===== */
.evcr-tesla-badge150 { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eef0ff; color: #131fd7; margin-left: 8px; vertical-align: middle; }

/* ===== Tesla: podtytuły sekcji na stronie lokalizacji ===== */
.evcr-tesla-sub { margin: 20px 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .3px; color: #12184f; text-transform: uppercase; }

/* ===== Tesla: nowa szata rankingu (spójna z ogólnym rankingiem) ===== */
.evcr-trank { border: 1px solid #e8eaf1; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(16,24,40,.05); }
.evcr-trank-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: linear-gradient(180deg,#f7f8fc,#eef1f8); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #6b7280; }
.evcr-trank-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #f0f2f7; text-decoration: none; color: inherit; transition: background .12s; }
.evcr-trank-row:hover { background: #f7f9ff; }
.evcr-tcol-rank { flex: 0 0 40px; display: flex; }
.evcr-tcol-loc { flex: 1 1 auto; min-width: 0; }
.evcr-tcol-val { flex: 0 0 92px; text-align: center; }
.evcr-tcol-mom { flex: 0 0 108px; text-align: center; }
.evcr-trank-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eef1f8; color: #6b7280; font-weight: 800; font-size: 14px; }
.evcr-trank-num.m1 { background: linear-gradient(135deg,#ffe08a,#f5b301); color: #7a5200; }
.evcr-trank-num.m2 { background: linear-gradient(135deg,#e7ecf3,#c3ccdb); color: #4b5563; }
.evcr-trank-num.m3 { background: linear-gradient(135deg,#f3c9a5,#d99a63); color: #6b3b17; }
.evcr-trank-loc { font-weight: 800; color: #12184f; font-size: 15px; }
.evcr-trank-main { display: contents; }
.evcr-trank .evcr-tesla-pill { min-width: 62px; }
@media (max-width: 720px) {
	.evcr-trank-head { display: none; }
	.evcr-trank-row { flex-wrap: wrap; align-items: center; row-gap: 12px; padding: 14px 16px; }
	/* 1. wiersz: pozycja + nazwa lokalizacji (pełna szerokość) */
	.evcr-trank-main { display: flex; flex: 1 1 100%; align-items: center; gap: 10px; }
	/* 2. wiersz i dalej: wszystkie ceny i zmienne, z etykietami */
	.evcr-trank-row .evcr-tcol-val,
	.evcr-trank-row .evcr-tcol-mom { flex: 0 0 auto; text-align: left; margin: 0 16px 0 0; }
	.evcr-trank-row .evcr-tcol-val::before,
	.evcr-trank-row .evcr-tcol-mom::before {
		content: attr(data-label);
		display: block;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .4px;
		text-transform: uppercase;
		color: #9aa1ad;
		margin-bottom: 3px;
	}
	.evcr-trank-loc { font-size: 16px; }
}

/* ===== Tesla: baner abonamentu + opis/notatka lokalizacji ===== */
.evcr-tesla-subbar { background: #eef0ff; border: 1px solid #d7dcff; color: #12184f; border-radius: 10px; padding: 10px 14px; margin: 4px 0 16px; font-size: 14px; }
.evcr-tesla-desc { margin: 6px 0 12px; color: #374151; line-height: 1.55; }
.evcr-tesla-locnote { background: #fff8e6; border: 1px solid #f3e2ad; border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; font-size: 14px; color: #6b5900; }

/* ===== Tesla: pigułka abonamentu + brak danych ===== */
.evcr-tesla-pill.sub { background: #5a2fd7; color: #fff; }
.evcr-tesla-bd { color: #b8c0cf; font-weight: 700; font-size: 12px; }

/* ===== Tesla: wyszarzona (nieaktywna) grupa filtrów ===== */
.evcr-tesla-seg.is-disabled { opacity: .5; }
.evcr-tesla-seg.is-disabled span { padding: 8px 14px; font-weight: 700; font-size: 13px; color: #6b7280; background: #fff; cursor: not-allowed; }
.evcr-tesla-seg.is-disabled span + span { border-left: 1px solid #e5e7eb; }
.evcr-tesla-seg.is-disabled span.is-active { background: #c7ccd6; color: #fff; }

/* ===== Historia operatora: pasek z logo/nazwą i przyciskiem powrotu po prawej ===== */
.evcr-op-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.evcr-op-titlebar .evcr-op-history-brand,
.evcr-op-titlebar .evcr-op-history-name { margin: 0; }
.evcr-op-back { flex: 0 0 auto; }
@media (max-width: 640px) { .evcr-op-titlebar { flex-direction: column; align-items: flex-start; } }

/* ===== Tesla: kafelki lokalizacji – pełna szerokość, 2 kolumny (peak/offpeak), mobile ===== */
.evcr-tesla-tiles { display: flex; gap: 14px; width: 100%; margin: 8px 0 22px; }
.evcr-tesla-tiles .evcr-avg { flex: 1 1 0; min-width: 0; padding: 18px 18px; min-height: 96px; }
.evcr-tesla-tiles .evcr-avg-val { font-size: 30px; }
@media (max-width: 640px) {
	.evcr-tesla-tiles { flex-direction: column; gap: 10px; margin-bottom: 16px; }
	.evcr-tesla-tiles .evcr-avg { padding: 14px 14px; min-height: 0; }
	.evcr-tesla-tiles .evcr-avg-val { font-size: 26px; }
	.evcr-tesla-sub { margin: 16px 0 6px; }
}

/* ===== Przycisk „Pobierz PDF" (solidny, zawsze podświetlony) ===== */
.evcr-pdfbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0c1cb7;
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(12,28,183,0.25);
	cursor: pointer;
}
.evcr-pdfbtn:hover { background: #0a1699; color: #fff !important; box-shadow: 0 3px 12px rgba(12,28,183,0.35); }
.evcr-pdfbar { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.evcr-tesla-headbtns { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
@media (max-width: 640px) { .evcr-tesla-headbtns { flex-wrap: wrap; } }

/* ===== Tesla: selektor miesiąca ===== */
.evcr-tesla-monthsel { appearance: none; -webkit-appearance: none; border: 2px solid var(--evcr-blue, #131fd7); background: #fff; color: #12184f; font-weight: 800; font-size: 13px; padding: 7px 34px 7px 14px; border-radius: 999px; cursor: pointer; }
