/* Strona /blog/przemienniki/ - tabela przemiennikow (filtry dodaje przemienniki.js) */
.pn-legenda { font-size: 15px; color: var(--muted); }
.pn-zrodlo { font-size: 14px; color: var(--dim); margin-top: 1em; }

.pn-filtry { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin: 0 0 8px; }
.pn-filtry label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--dim); min-width: 0; }
.pn-filtry .pn-szukaj { flex: 1 1 100%; }
.pn-filtry input, .pn-filtry select, .pn-wyczysc {
  font: inherit;
  font-size: 16px; /* 16px = telefon nie powieksza strony przy wpisywaniu */
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--code-bg);
  color: var(--text);
  max-width: 100%;
}
.pn-filtry input { width: 100%; }
.pn-filtry input:focus, .pn-filtry select:focus, .pn-wyczysc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pn-wyczysc { cursor: pointer; color: var(--link); background: rgba(33, 150, 243, 0.1); border-color: rgba(144, 202, 249, 0.25); }
.pn-wyczysc:hover { background: var(--accent); color: #fff; }
.pn-ile { font-size: 13px; color: var(--dim); margin: 0 0 8px; }

/* tabela przewijana w ramce: naglowek i kolumna Znak zostaja na miejscu */
.tabela.pn-przewijana { max-height: 75vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.tresc table.pn-tab { font-size: 14px; border-collapse: separate; border-spacing: 0; }
.tresc .pn-tab th, .tresc .pn-tab td { border: 0; border-bottom: 1px solid var(--border); padding: 6px 9px; white-space: nowrap; }
.tresc .pn-tab td:nth-child(2) { white-space: normal; min-width: 150px; }
.tresc .pn-tab td:nth-child(7) { white-space: normal; min-width: 110px; }
.tresc .pn-tab thead th { position: sticky; top: 0; z-index: 2; background: #132233; padding: 0; }
.tresc .pn-tab th button {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 9px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}
.tresc .pn-tab th button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tresc .pn-tab th button::after { content: " \2195"; color: var(--dim); font-weight: 400; }
.tresc .pn-tab th[aria-sort="ascending"] button::after { content: " \2191"; color: var(--link); }
.tresc .pn-tab th[aria-sort="descending"] button::after { content: " \2193"; color: var(--link); }
.tresc .pn-tab th:first-child, .tresc .pn-tab td:first-child { position: sticky; left: 0; }
.tresc .pn-tab td:first-child { z-index: 1; background: var(--card-solid); font-weight: 600; }
.tresc .pn-tab th:first-child { z-index: 3; }
.tresc .pn-tab tbody tr:hover td { background: rgba(33, 150, 243, 0.08); }
.tresc .pn-tab tbody tr:hover td:first-child { background: #17283a; }
.tresc .pn-tab small { display: block; color: var(--dim); font-size: 12px; line-height: 1.3; }
.tresc .pn-tab .pn-pusto td { position: static; text-align: center; color: var(--dim); white-space: normal; background: none; }

.pn-st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--dim); }
.pn-dziala::before { background: #66bb6a; }
.pn-testowy::before { background: #ffca28; }
.pn-budowany::before, .pn-planowany::before { background: #90caf9; }
.pn-wylaczony { color: var(--dim); }
.pn-wylaczony::before { background: #ef5350; }

@media (max-width: 640px) {
  .pn-filtry label:not(.pn-szukaj) { flex: 1 1 calc(50% - 10px); }
  .pn-filtry select { width: 100%; }
  .tabela.pn-przewijana { max-height: 70vh; }
  .tresc table.pn-tab { font-size: 13px; }
}
