(function () { function injectStyles() { const style = document.createElement("style"); style.type = "text/css"; style.id = "gus-override-styles"; // na wypadek duplikatów style.textContent = ` /* Główne kontenery */ .srodek, .wykres, #legend-container.full-width { font-family: "Fira Sans", sans-serif; width: 100%; max-width: 880px; margin: auto; background: #fff; text-align: center; box-sizing: border-box; /* border: solid 1px red; */ } .srodek { padding: 15px 0 10px 0;} .wykres { max-width: 100%; padding: 0 0 5px 0;} #legend-container.full-width { max-width: 800px; margin: 1px auto; border: 1px solid #444; } /* Tytuły */ .srodek_tytul { font-size: 16px; font-weight: bold; } .srodek_podtytul { font-size: 15px; font-weight: normal; padding: 0 0 1px 0;} /* Canvas i SVG */ canvas, svg { width: 100%; height: auto; font-family: "Fira Sans", sans-serif; text-align: center; display: block; overflow: visible; } /* Kontener mapy */ .map-container { position: relative; max-width: 90%; width: 100%; padding: 10px; display: flex; justify-content: center; align-items: center; overflow: hidden; min-height: 60vh; margin: auto; } text { pointer-events: none; } /* Tooltip */ #tooltip { position: absolute; font-size: 18px; font-weight: bold; background: #fff; border: 1px solid #ccc; padding: 15px; display: none; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); pointer-events: none; z-index: 5; transform: translate(35px, 0px); } /* Ścieżki SVG */ path { transition: all 0.35s ease; stroke: #e3e3e3; } path:hover { stroke: #ffffff; stroke-width: 2px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); } /* Legenda — wspólne style */ .legend, .legend2, .legend-top, .legend-top2, .legend-bottom, .legend-footer, .legend-footer2, .legend-footer3, .legend-img { position: absolute !important; padding: 7px !important; display: flex !important; flex-direction: column !important; font-size: 14px !important; text-align: left !important; /* border: solid 1px red; */ } /* Pozycje legend */ .legend-top { top: 75px !important; left: 5px !important; width: 33% !important;} /* top: 91px !important, width: 30% !important; */ .legend-top2 { top: 80px !important; left: 5px !important; width: 31% !important; position: absolute !important; padding: 9px !important; display: flex !important; flex-direction: column !important; font-size: 15px !important; text-align: left !important; } .legend-bottom { bottom: 50px !important; left: 5px !important; width: 30% !important; } /* width: 25% !important; */ .legend { bottom: 85px !important; left: 5px !important; width: 15% !important;} .legend2 { top: 158px !important; left: 5px !important; width: 10% !important;} .legend-footer { bottom: 55px !important; left: 5px !important; width: 275px !important; height: 15px !important; } .legend-footer2 { top: 268px !important; left: 5px !important; width: 275px !important; height: 15px !important; } .legend-footer3 { bottom: 50px !important; left: 5px !important; width: 275px !important; height: 15px !important; } .legend-img { bottom: 65px !important; left: 5px !important; } /* Kontener legendy */ #legend, #legend2 { display: flex !important; flex-direction: column !important; /* elementy w kolumnie */ gap: 6px !important; /* odstęp między wierszami */ align-items: center !important; padding: 6px 12px !important; background: rgba(255,255,255,0.9) !important; position: static; } .legend-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; gap: 9px; } /* Wiersz legendy */ .legend-item { display: flex !important; align-items: center !important; gap: 7px !important; /* odstęp między kwadracikiem a opisem */ } /* Kwadraciki */ .legend-color, .legend-color-cell { width: 25px !important; height: 15px !important; min-width: 25px !important; min-height: 15px !important; max-width: 25px !important; max-height: 15px !important; border: 1px solid #444 !important; padding: 0 !important; margin: 0 !important; line-height: 1 !important; box-sizing: border-box !important; } .legend-box { width: 25px !important; height: 15px !important; } /* Tabela legendy */ .legend-table { border-collapse: collapse; font-family: "Fira Sans", sans-serif; font-size: 14px; width: auto; } .legend-table td { padding: 2px 4px; vertical-align: middle; line-height: normal; } .legend-table td:nth-child(1) { width: 15px; padding: 0; line-height: 0; } .legend-table td:nth-child(2), .legend-table td:nth-child(4) { text-align: right; } .legend-table td[colspan="5"] { padding: 4px 0 15px 0; } .legend-img-cell { text-align: center; } /* Uwagi */ .uwagi { font-size: 13px; font-weight: normal; text-align: left; padding: 1px 45px 1px 55px; } .uwagi2 { font-size: 13px; font-weight: normal; text-align: left; padding: 0px 45px 30px 65px; } .uwagi3 { font-size: 13px; font-weight: normal; text-align: left; padding: 10px 45px 10px 40px; } .charts-container { margin: 6px; padding: 0; } .charts-row { display: flex; width: 99%; height: 520px; /* stała wysokość */ gap: 1px; align-items: stretch; } .chart-left { flex: 0 0 70%; } .chart-right { flex: 0 0 30%; } .chart-left canvas { width: 100% !important; height: 100% !important; } .chart-right { display: flex; flex-direction: column; justify-content: flex-end; /* <-- Ustawia wszystko na dole */ height: 100%; } .chart-right canvas { width: 100% !important; height: 98.16% !important; padding: 1px 2px; } /* Siatka dla ikon / wierszy */ .row_ { max-width: 700px; /* maksymalna szerokość całej siatki */ width: 100%; margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); /* dokładnie 5 ikon w wierszu */ gap: 0.1rem; /* odstępy między ikonami */ justify-items: center; } /* Ikony z efektem hover */ .icon_ .default, .icon_ .active { width: 100%; /* zajmuje całą szerokość kolumny */ height: auto; /* zachowanie proporcji */ max-width: 175px; /* opcjonalne ograniczenie maksymalne, żeby nie były gigantyczne */ } .icon_ .active { display: none; } .icon_:hover .default { display: none; } .icon_:hover .active { display: block; } .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }`; document.head.appendChild(style); } // 2. Uruchom po załadowaniu DOM + z małym opóźnieniem (Edito lubi czyścić) if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", () => { injectStyles(); // Dodatkowe zabezpieczenie – Edito czasem czyści po 300–800 ms setTimeout(injectStyles, 500); setTimeout(injectStyles, 1200); }); } else { injectStyles(); setTimeout(injectStyles, 500); setTimeout(injectStyles, 1200); } })();