/* FINATA.pl dla firm: sekcja „Wszystko, czego potrzebuje mała firma”.
   Moduły jak w menu aplikacji: spis po lewej (na wąskim ekranie pasek u góry), przy każdym module pełna lista funkcji
   z planem i podgląd ekranu z danymi przykładowymi. Podgląd ma stan końcowy jako domyślny; klasa .czeka (dodawana
   przez js/moduly.js tylko przy pełnym ruchu) cofa go do stanu początkowego, a jej zdjęcie odgrywa zmianę. */

.moduly { background: var(--tlo); padding: clamp(80px, 10vw, 150px) 0 clamp(64px, 8vw, 120px); }

/* ---------- Nagłówek i wybór planu ---------- */
.moduly-glowa { max-width: var(--max); margin: 0 auto clamp(40px, 5vw, 72px); padding: 0 var(--pad); }
.moduly-glowa h2 { font-size: clamp(2.1rem, 1rem + 3.4vw, 4.25rem); font-weight: 800; font-stretch: 112%; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; max-width: 14em; }
.moduly-lead { margin-top: clamp(16px, 2vw, 24px); max-width: 38em; color: var(--cichy); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.moduly-plany { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.moduly-plany-opis { font-weight: 750; margin-right: 6px; }
.moduly-plany button {
  font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.2; color: var(--cichy);
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 104px;
  padding: 10px 16px 11px; border-radius: 14px; border: 0; background: var(--karta); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linia-mocna); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.moduly-plany button b { font-size: 1.125rem; font-weight: 800; font-stretch: 108%; color: var(--tekst); letter-spacing: -0.01em; transition: color 0.25s; }
.moduly-plany button:hover { box-shadow: inset 0 0 0 1px var(--tekst); }
.moduly-plany button:active { transform: scale(0.97); }
.moduly-plany button[aria-pressed="true"] { background: var(--czern); color: var(--na-ciemnym); box-shadow: 0 10px 22px -12px rgb(11 11 12 / 0.6); }
.moduly-plany button[aria-pressed="true"] b { color: var(--neon); }
.moduly-plany button:focus-visible { outline: 2px solid var(--blekit); outline-offset: 3px; }
.moduly-plany-netto { color: var(--cichy); font-size: 0.875rem; margin-left: 8px; }
.moduly-wynik { min-height: 1.6em; margin-top: 14px; color: var(--cichy); font-size: 0.9375rem; }
.moduly-wynik b { color: var(--tekst); }

.moduly-w { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }

/* ---------- Spis modułów: jak menu aplikacji ---------- */
.moduly-spis {
  position: sticky; top: calc(var(--nav-h) + 24px); z-index: 4;
  background: var(--karta); border-radius: 22px; padding: 18px 10px 14px; font-family: var(--font-app);
  box-shadow: 0 30px 60px -38px rgb(11 11 12 / 0.4), 0 0 0 1px rgb(11 11 12 / 0.06);
}
.spis-logo { display: flex; align-items: center; gap: 10px; padding: 0 12px 14px; }
.spis-logo img { width: 26px; height: 26px; border-radius: 7px; }
.spis-napis { display: block; height: 13px; width: auto; aspect-ratio: 516 / 100; color: var(--tekst); }
.moduly-spis ul { display: grid; gap: 2px; list-style: none; padding: 0; }
.moduly-spis a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 550; color: #3a3a40; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.moduly-spis a .ik { width: 20px; height: 20px; }
.moduly-spis a:hover { background: var(--tlo); color: var(--tekst); }
.moduly-spis a[aria-current="true"] { background: var(--czern); color: #fff; --ak: var(--neon); box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(57 255 20 / 0.12); }
.moduly-spis a:focus-visible { outline: 2px solid var(--blekit); outline-offset: 2px; }
.moduly-spis em { margin-left: auto; font-style: normal; font-size: 0.8125rem; font-weight: 650; color: var(--slaby); font-variant-numeric: tabular-nums; }
.moduly-spis a[aria-current="true"] em { color: var(--neon); }
.spis-suma { margin: 12px 12px 0; padding-top: 12px; border-top: 1px solid var(--linia); font-size: 0.8125rem; color: var(--cichy); }
.spis-suma b { color: var(--tekst); }

/* ---------- Moduł ---------- */
.moduly-lista { min-width: 0; }
.modul { padding: clamp(44px, 5vw, 80px) 0; border-top: 1px solid var(--linia-mocna); }
.modul:first-child { padding-top: 0; border-top: 0; }
.modul:last-child { padding-bottom: 0; }
.modul-glowa h3 { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 20px); font-size: clamp(1.9rem, 1rem + 2.3vw, 3.25rem); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -0.035em; }
.modul-ik { flex: none; display: grid; place-items: center; width: clamp(48px, 4.4vw, 60px); aspect-ratio: 1; border-radius: 30%; background: var(--czern); color: #fff; --ak: var(--neon); box-shadow: 0 14px 26px -14px rgb(11 11 12 / 0.7); }
.modul-ik .ik { width: 52%; height: 52%; stroke-width: 1.9; }
.modul-glowa p { margin-top: 14px; max-width: 30em; color: var(--cichy); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.375rem); line-height: 1.45; }
.modul-tresc { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }

.funkcje { list-style: none; padding: 0; border-top: 1px solid var(--linia-mocna); }
.funkcje li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 15px 0 16px; border-bottom: 1px solid var(--linia); transition: opacity 0.35s var(--ease); }
.funkcje b { display: block; font-weight: 750; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }
.funkcje li > div > span { display: block; margin-top: 4px; color: var(--cichy); font-size: 0.9375rem; line-height: 1.5; max-width: 34em; }
.funkcje em { padding-top: 2px; font-style: normal; font-weight: 700; font-size: 0.8125rem; color: var(--slaby); white-space: nowrap; font-variant-numeric: tabular-nums; }
.funkcje li[data-plan="darmowy"] em { color: var(--tekst); }
/* Wybrany plan: funkcje spoza niego przygasają, przy pozostałych zostaje plan. */
.moduly[data-filtr] .funkcje li.poza { opacity: 0.36; }
.moduly[data-filtr] .funkcje li:not(.poza) em { color: var(--tekst); }

/* ---------- Podgląd ekranu ---------- */
.modul-ekran { position: sticky; top: calc(var(--nav-h) + 28px); min-width: 0; }
.ekr {
  position: relative; container-type: inline-size; overflow: hidden; border-radius: 18px; background: var(--karta);
  font-family: var(--font-app); font-size: clamp(10px, 2.75cqi, 15px); line-height: 1.4; color: var(--tekst);
  box-shadow: 0 40px 80px -42px rgb(11 11 12 / 0.42), 0 14px 30px -18px rgb(11 11 12 / 0.2), 0 0 0 1px rgb(11 11 12 / 0.07);
}
@supports not (container-type: inline-size) { .ekr { font-size: 13px; } }
@media (min-width: 901px) {
  .ekr { font-size: clamp(9.5px, min(2.75cqi, calc((100svh - var(--nav-h) - var(--ekr-odstep, 72px)) / var(--wys, 40))), 15px); }
  [data-ekr="sprzedaz"] { --wys: 45; } [data-ekr="zakupy"] { --wys: 37.5; } [data-ekr="miesiac"] { --wys: 40.5; }
  [data-ekr="dokumenty"] { --wys: 35; } [data-ekr="kasa"] { --wys: 31; } [data-ekr="konto"] { --wys: 33.5; }
}
.ekr .ik { width: 1.25em; height: 1.25em; }
.ekr-gora { display: flex; align-items: center; justify-content: space-between; gap: 1em; height: 3em; padding: 0 1.3em; border-bottom: 1px solid var(--linia); background: #fff; color: var(--cichy); font-size: 0.9em; white-space: nowrap; }
.ekr-gora > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ekr-gora i { font-style: normal; margin: 0 0.3em; color: var(--slaby); }
.ekr-gora b { color: var(--tekst); font-weight: 600; }
.ekr-dane { flex: none; font-size: 0.85em; font-weight: 600; color: var(--slaby); background: var(--tlo); padding: 0.15em 0.6em; border-radius: 0.45em; }
.ekr-tresc { display: grid; gap: 0.85em; padding: 1.3em; background: #fbfbfc; }
.ekr-tytul { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ekr-tytul h4 { font-size: 1.45em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ekr-przycisk { display: inline-grid; flex: none; background: var(--blekit); color: #fff; padding: 0.5em 0.95em; border-radius: 0.7em; font-weight: 600; font-size: 0.92em; white-space: nowrap; transition: background-color 0.4s; }
.ekr-drugi { padding: 0.5em 0.95em; border-radius: 0.7em; font-weight: 600; font-size: 0.92em; color: var(--tekst); box-shadow: inset 0 0 0 1px var(--linia-mocna); white-space: nowrap; }
.ekr-cichy { color: var(--slaby); font-size: 0.9em; white-space: nowrap; }
.ekr .kw { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ekr .kw.plus { color: var(--blekit); }
.ekr .ok { color: var(--komplet); }
.ekr .brak { color: var(--goracy-tekst); }

/* Zamiana stanu: dwa napisy w jednym miejscu, domyślnie widać stan końcowy. */
.st-a, .st-b { grid-area: 1 / 1; transition: opacity 0.45s var(--ease) var(--d, 0s), transform 0.6s var(--ease) var(--d, 0s); }
.st-a { opacity: 0; transform: translateY(-0.5em); }
.czeka .st-a { opacity: 1; transform: none; }
.czeka .st-b { opacity: 0; transform: translateY(0.5em); }
.ekr em:has(> .st-a), .ekr-licznik, .r-zmiana, .ekr-przycisk { display: inline-grid; }

/* Sprzedaż */
.ekr-zakladki { display: flex; flex-wrap: wrap; gap: 0.25em; padding: 0.25em; background: var(--tlo-2); border-radius: 0.75em; justify-self: start; font-size: 0.9em; }
.ekr-zakladki span { padding: 0.35em 0.8em; border-radius: 0.55em; color: var(--cichy); }
.ekr-zakladki span.wyb { background: var(--czern); color: #fff; }
.ekr-zakladki em { font-style: normal; opacity: 0.7; margin-left: 0.15em; }
.ekr-lista { display: grid; gap: 0.45em; list-style: none; padding: 0; }
.ekr-lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1em 1em; align-items: center; padding: 0.65em 0.95em; background: #fff; border: 1px solid var(--linia); border-radius: 0.8em; }
.ekr-lista li > div { min-width: 0; }
.ekr-lista b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ekr-lista small { color: var(--slaby); font-size: 0.86em; }
.ekr-lista .kw { grid-column: 2; grid-row: 1; }
.ekr-lista em { grid-column: 2; grid-row: 2; justify-self: end; font-style: normal; font-weight: 650; font-size: 0.82em; color: var(--cichy); white-space: nowrap; }
.ekr-lista li.po-terminie { background: var(--goracy-tlo); border-color: #ffd9c7; }
.ekr-wezwanie {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1em; padding: 0.9em 1.1em; background: #fff; border-radius: 0.9em;
  box-shadow: 0 1.6em 2.6em -1.6em rgb(11 11 12 / 0.35), 0 0 0 1px var(--linia);
  transition: opacity 0.5s var(--ease) 1s, transform 0.8s var(--ease) 1s;
}
.wz-tekst { min-width: 0; }
.wz-tekst span { display: block; color: var(--cichy); font-size: 0.88em; }
.wz-tekst b { display: block; font-size: 1.45em; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wz-tekst small { color: var(--slaby); font-size: 0.82em; }
.wz-pieczec .b-pieczec { width: 6.6em; height: 6.6em; display: block; transition: opacity 0.25s ease-out 1.55s, transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 1.55s; }
.czeka .ekr-wezwanie { opacity: 0; transform: translateY(1.6em); }
.czeka .wz-pieczec .b-pieczec { opacity: 0; transform: scale(1.7) rotate(-16deg); }
.st-ksef { --d: 0.45s; }

/* Zakupy */
.ekr-vat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1em; padding: 0.85em 1em; border-radius: 0.8em; background: var(--tlo); transition: opacity 0.5s var(--ease) 0.9s; }
.ekr-vat span { display: block; color: var(--cichy); font-size: 0.86em; }
.ekr-vat b { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.ekr-vat em { font-style: normal; font-weight: 650; color: var(--komplet); font-size: 0.9em; }
.ekr-plik, .ekr-pz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8em; padding: 0.8em 1em; border-radius: 0.8em; background: #fff; border: 1px solid var(--linia); }
.ekr-plik .ik, .ekr-pz .ik { width: 1.6em; height: 1.6em; color: var(--blekit); }
.ekr-plik b, .ekr-pz b { display: block; font-weight: 600; }
.ekr-plik small, .ekr-pz small { color: var(--slaby); font-size: 0.86em; }
.ekr-plik { grid-template-columns: auto minmax(0, 1fr); border-color: rgb(0 113 227 / 0.3); background: #f4f9ff; transition: opacity 0.5s var(--ease) 1.35s, transform 0.7s var(--ease) 1.35s; }
.akc { --d: 0.5s; }
.czeka .ekr-vat { opacity: 0; }
.czeka .ekr-plik { opacity: 0; transform: translateY(1.2em); }

/* Miesiąc */
.ekr-pasek { height: 0.5em; border-radius: 1em; background: var(--tlo-2); overflow: hidden; }
.ekr-pasek i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--komplet); transform-origin: left; transition: transform 0.8s var(--ease) 1.05s; }
.czeka .ekr-pasek i { transform: scaleX(var(--w, 0.9)); }
.ekr-licznik { font-weight: 650; font-size: 0.92em; margin-top: -0.3em; }
.ekr-licznik .st-a { color: var(--goracy-tekst); }
.ekr-licznik .st-b { color: var(--komplet); }
.ekr-licznik { --d: 1.05s; }
.ekr-tab { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--linia); border-radius: 0.9em; overflow: hidden; font-size: 0.9em; }
.ekr-tab th { text-align: left; font-weight: 600; color: var(--slaby); font-size: 0.86em; padding: 0.55em 0.8em; border-bottom: 1px solid var(--linia); background: #fafafa; }
.ekr-tab td { padding: 0.5em 0.8em; border-bottom: 1px solid var(--linia); vertical-align: middle; }
.ekr-tab tr:last-child td { border-bottom: 0; }
.ekr-tab td b, .ekr-tab td small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ekr-tab td b { font-weight: 600; }
.ekr-tab td small { color: var(--slaby); font-size: 0.88em; }
.ekr-tab .c-lp { width: 2.8em; } .ekr-tab .c-data { width: 3.9em; } .ekr-tab .c-kw { width: 6.4em; } .ekr-tab .c-stan { width: 8.4em; }
.ekr-tab td:first-child { color: var(--slaby); }
.ekr-tab th.kw { text-align: right; }
.r-ok, .r-brak { display: inline-block; padding: 0.2em 0.55em; border-radius: 0.45em; font-weight: 650; font-size: 0.86em; white-space: nowrap; }
.r-ok { background: var(--komplet-tlo); color: var(--komplet); }
.r-brak { background: var(--goracy-tlo); color: var(--goracy-tekst); }
.r-zmiana { --d: 0.95s; }
.ekr-toast { display: flex; align-items: center; gap: 0.6em; justify-self: start; padding: 0.55em 0.9em; border-radius: 0.8em; background: var(--czern); color: #fff; font-size: 0.9em; --ak: var(--neon); transition: opacity 0.4s var(--ease) 0.45s, transform 0.6s var(--ease) 0.45s; }
.ekr-toast .ik { width: 1.3em; height: 1.3em; }
.czeka .ekr-toast { opacity: 0; transform: translateY(0.8em) scale(0.96); }
.ekr-pliki { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em; font-size: 0.88em; color: var(--cichy); transition: opacity 0.5s var(--ease) 1.6s; }
.ekr-pliki b { font-weight: 600; color: var(--tekst); background: #fff; padding: 0.3em 0.65em; border-radius: 0.5em; box-shadow: inset 0 0 0 1px var(--linia); }
.czeka .ekr-pliki { opacity: 0.3; }
.czeka .ekr-przekaz { background: #b9c3cf; }
.ekr-przekaz { transition: background-color 0.4s 1.4s; }

/* Dokumenty */
.ekr-dok { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1em; align-items: start; padding: 1em; border-radius: 0.9em; background: #fff; border: 1px solid var(--linia); }
.ekr-paragon { width: 6.2em; display: grid; gap: 0.38em; padding: 0.75em 0.65em 0.9em; background: #fff; border-radius: 0.25em; font-size: 0.78em; text-align: center; transform: rotate(-3.5deg); box-shadow: 0 0.8em 1.6em -0.8em rgb(11 11 12 / 0.35), 0 0 0 1px var(--linia); }
.ekr-paragon b { font-size: 0.85em; font-weight: 700; letter-spacing: 0.08em; }
.ekr-paragon i { display: block; height: 0.34em; border-radius: 1em; background: var(--tlo-2); }
.ekr-paragon i.kr { width: 62%; }
.ekr-paragon b:last-child { font-size: 1.05em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ekr-dok-opis { min-width: 0; display: grid; gap: 0.35em; }
.ekr-dok-opis > b { font-weight: 600; }
.ekr-dok-opis > small { color: var(--slaby); font-size: 0.86em; margin-top: -0.3em; }
.ekr-propozycja { margin-top: 0.3em; padding: 0.6em 0.8em; border-radius: 0.7em; background: #f4f9ff; box-shadow: inset 0 0 0 1px rgb(0 113 227 / 0.25); transition: opacity 0.5s var(--ease) 0.4s, transform 0.6s var(--ease) 0.4s; }
.ekr-propozycja span { display: block; color: var(--blekit); font-weight: 650; font-size: 0.84em; }
.ekr-propozycja b { display: block; font-weight: 600; font-size: 0.92em; }
.ekr-akcje { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.3em; }
.ekr-akcje .ekr-przycisk { --d: 1.05s; background: var(--komplet); transition: background-color 0.3s 1.05s; }
.czeka .ekr-akcje .ekr-przycisk { background: var(--blekit); }
.czeka .ekr-propozycja { opacity: 0; transform: translateY(0.6em); }
.ekr-szafa { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0.7em 1em; padding: 0.9em; border-radius: 0.9em; background: #fff; border: 1px solid var(--linia); }
.szafa-tyt { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5em; font-weight: 650; }
.ekr-szafa ul { list-style: none; padding: 0; display: grid; gap: 0.15em; font-size: 0.92em; }
.ekr-szafa li { display: flex; justify-content: space-between; padding: 0.35em 0.6em; border-radius: 0.5em; color: #3a3a40; }
.ekr-szafa li em { font-style: normal; color: var(--slaby); }
.ekr-szafa li.wyb { background: var(--czern); color: #fff; }
.ekr-szafa li.wyb em { color: var(--neon); }
.szafa-termin { align-self: start; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.6em; padding: 0.8em 0.9em; border-radius: 0.8em; background: var(--tlo); transition: opacity 0.5s var(--ease) 1.4s; }
.szafa-termin span { display: block; color: var(--cichy); font-size: 0.86em; }
.szafa-termin b { font-size: 1.15em; }
.szafa-termin em { font-style: normal; font-weight: 650; color: var(--goracy-tekst); font-size: 0.88em; white-space: nowrap; }
.czeka .szafa-termin { opacity: 0; }

/* Kasa i magazyn */
.ekr-stan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; }
.ekr-stan > div { padding: 0.75em 0.9em; border-radius: 0.8em; background: #fff; border: 1px solid var(--linia); min-width: 0; }
.ekr-stan > div > span { display: block; color: var(--slaby); font-size: 0.82em; }
.ekr-stan > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ekr-stan b { display: block; font-size: 1.15em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ekr-pz em { font-style: normal; font-weight: 700; color: var(--blekit); font-variant-numeric: tabular-nums; }
.ekr-pz { transition: opacity 0.5s var(--ease) 0.4s, transform 0.7s var(--ease) 0.4s; }
.czeka .ekr-pz { opacity: 0; transform: translateX(1.5em); }
.ekr-seryjne { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4em; font-size: 0.86em; }
.ekr-seryjne li { padding: 0.3em 0.6em; border-radius: 0.5em; background: #fff; box-shadow: inset 0 0 0 1px var(--linia); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; transition: opacity 0.4s var(--ease) calc(1.1s + var(--i, 0) * 0.12s), transform 0.5s var(--ease) calc(1.1s + var(--i, 0) * 0.12s); }
.ekr-seryjne li:nth-child(2) { --i: 1; } .ekr-seryjne li:nth-child(3) { --i: 2; } .ekr-seryjne li:nth-child(4) { --i: 3; }
.ekr-seryjne li.wydany { color: var(--slaby); background: var(--tlo); box-shadow: none; }
.czeka .ekr-seryjne li { opacity: 0; transform: translateY(0.5em); }
.ekr-kasa { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1em; padding: 0.85em 1em; border-radius: 0.8em; background: #fff; border: 1px solid var(--linia); transition: opacity 0.5s var(--ease) 1.7s; }
.ekr-kasa span { display: block; color: var(--cichy); font-size: 0.86em; }
.ekr-kasa b { font-size: 1.3em; font-variant-numeric: tabular-nums; margin-right: 0.4em; }
.ekr-kasa small { color: var(--slaby); font-size: 0.86em; }
.ekr-kasa em { font-style: normal; font-weight: 650; font-size: 0.88em; text-align: right; }
.czeka .ekr-kasa { opacity: 0; }

/* Konto i zespół */
.ekr-osoby { list-style: none; padding: 0; display: grid; gap: 0.45em; }
.ekr-osoby li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8em; padding: 0.6em 0.9em; border-radius: 0.8em; background: #fff; border: 1px solid var(--linia); }
.ekr-osoby .mono { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--czern); color: #fff; font-weight: 700; font-size: 0.85em; letter-spacing: 0.02em; }
.ekr-osoby b { display: block; font-weight: 600; }
.ekr-osoby small { color: var(--slaby); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.ekr-osoby em { font-style: normal; font-size: 0.86em; font-weight: 600; color: var(--cichy); text-align: right; }
.ekr-osoby li.nowa { transition: opacity 0.5s var(--ease) 0.4s, transform 0.7s var(--ease) 0.4s; }
.czeka .ekr-osoby li.nowa { opacity: 0; transform: translateY(0.8em); }
.ekr-sms { display: grid; gap: 0.6em; padding: 1em 1.1em; border-radius: 0.9em; background: var(--czern); color: #fff; }
.sms-tel span { display: block; color: var(--na-ciemnym-slaby); font-size: 0.86em; }
.sms-tel b { font-size: 1.15em; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sms-kod { display: grid; grid-template-columns: repeat(6, minmax(0, 2.6em)); gap: 0.4em; }
.sms-kod i { display: grid; place-items: center; height: 2.6em; border-radius: 0.55em; font-style: normal; font-weight: 700; font-size: 1.1em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.sms-kod i::after { content: ""; }
.sms-kod i { transition: color 0.3s calc(0.9s + var(--i, 0) * 0.13s), box-shadow 0.3s calc(0.9s + var(--i, 0) * 0.13s); }
.sms-kod i:nth-child(2) { --i: 1; } .sms-kod i:nth-child(3) { --i: 2; } .sms-kod i:nth-child(4) { --i: 3; } .sms-kod i:nth-child(5) { --i: 4; } .sms-kod i:nth-child(6) { --i: 5; }
.czeka .sms-kod i { color: transparent; }
.sms-kod i:last-child { box-shadow: inset 0 0 0 1px var(--neon); }
.czeka .sms-kod i:last-child { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.ekr-sms small { color: var(--na-ciemnym-slaby); font-size: 0.84em; }

/* Wąski podgląd: mniej kolumn */
@container (max-width: 430px) {
  .ekr-tab th:nth-child(-n+2), .ekr-tab td:nth-child(-n+2) { padding: 0; font-size: 0; }
  .ekr-tab .c-lp, .ekr-tab .c-data { width: 0; }
  .ekr-stan { grid-template-columns: 1fr 1fr; }
  .ekr-stan > div:last-child { display: none; }
  .ekr-szafa { grid-template-columns: 1fr; }
  .ekr-szafa ul { display: flex; flex-wrap: wrap; }
  .ekr-zakladki span:nth-child(n+4) { display: none; }
  .ekr-cichy { display: none; }
}

/* ---------- Układ na mniejszych ekranach ---------- */
@media (max-width: 1180px) {
  .moduly-w { grid-template-columns: minmax(0, 1fr); }
  .moduly-spis { top: calc(var(--nav-h) + 8px); display: flex; align-items: center; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -0.25);
    box-shadow: 0 -12px 0 0 var(--tlo), 0 18px 30px -24px rgb(11 11 12 / 0.4), 0 0 0 1px rgb(11 11 12 / 0.06); }
  .moduly-spis::-webkit-scrollbar { display: none; }
  .spis-logo, .spis-suma { display: none; }
  .moduly-spis ul { display: flex; gap: 2px; }
  .moduly-spis a { padding: 9px 13px; font-size: 0.875rem; }
  .moduly-spis em { display: none; }
  .moduly-lista { margin-top: clamp(28px, 4vw, 44px); }
  /* podgląd staje pod paskiem spisu, nie pod nim */
  .moduly { --ekr-odstep: 140px; }
  .modul-ekran { top: calc(var(--nav-h) + 88px); }
}
@media (max-width: 900px) {
  .modul-tresc { grid-template-columns: minmax(0, 1fr); }
  .modul-ekran { position: static; order: -1; max-width: 620px; }
}
@media (max-width: 700px) {
  .moduly-spis a .ik { display: none; }
  .moduly-plany { gap: 6px; }
  .moduly-plany-opis { flex-basis: 100%; margin: 0 0 2px; }
  .moduly-plany button { min-width: 0; flex: 1 1 calc(50% - 6px); }
  .moduly-plany-netto { flex-basis: 100%; margin: 4px 0 0; }
  .funkcje li { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ekr *, .funkcje li { transition: none !important; }
}
@media print {
  .moduly-spis { position: static; }
  .modul-ekran { position: static; }
}
