/* CRM Dominik Neska – Ratownictwo na poziomie. Najpierw telefon, potem komputer (od 960 px boczne menu). */
:root {
  --granat: #2f3f49; --granat-2: #3b4c58; --tekst: #1f2c35; --szary: #66747e; --szary-2: #93a0a9;
  --niebieski: #1ea0dc; --niebieski-ciemny: #1283b8; --niebieski-tlo: #e6f5fc;
  --tlo: #f2f4f6; --karta: #ffffff; --linia: #e1e6ea; --linia-2: #eef1f3;
  --zielony: #1f9d68; --zielony-tlo: #e3f5ec; --czerwony: #d23f3f; --czerwony-tlo: #fdeaea; --zolty: #c98a06; --zolty-tlo: #fdf3dc;
  --promien: 14px; --cien: 0 1px 2px rgba(31, 44, 53, .06), 0 4px 16px rgba(31, 44, 53, .06);
  --dol: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tekst); background: var(--tlo); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--niebieski-ciemny); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Ładowanie ---------- */
.ladowanie { min-height: 100vh; display: grid; place-items: center; }
.start-logo img { width: 200px; height: auto; opacity: .9; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .45; } }

/* ---------- Układ ---------- */
.uklad { min-height: 100vh; padding-bottom: calc(76px + var(--dol)); }
.gora { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linia);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); min-height: 58px; }
.gora .wstecz { border: 0; background: var(--linia-2); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--granat); text-decoration: none; }
.gora h1 { font-size: 20px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gora .znak-m { width: 34px; height: 34px; flex: none; }
.gora .akcje { display: flex; gap: 8px; }
.tresc { padding: 16px 16px 84px; max-width: 1100px; margin: 0 auto; }
.menu-boczne { display: none; }

.nav-dol { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--linia); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--dol); box-shadow: 0 -4px 20px rgba(31, 44, 53, .05); }
.nav-dol a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; text-decoration: none; color: var(--szary); font-size: 12px; font-weight: 600; position: relative; }
.nav-dol a svg { width: 25px; height: 25px; }
.nav-dol a.akt { color: var(--niebieski-ciemny); }
.nav-dol a.akt::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--niebieski); }
.znaczek { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--czerwony); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

@media (min-width: 960px) {
  .uklad { padding: 0 0 0 250px; }
  .nav-dol { display: none; }
  .menu-boczne { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 250px; background: #fff; border-right: 1px solid var(--linia); padding: 18px 12px; overflow-y: auto; z-index: 25; }
  .menu-boczne .logo-m { padding: 4px 10px 18px; }
  .menu-boczne .logo-m img { width: 170px; display: block; }
  .menu-boczne a.poz { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--tekst); font-weight: 600; position: relative; }
  .menu-boczne a.poz svg { width: 21px; height: 21px; color: var(--szary); flex: none; }
  .menu-boczne a.poz:hover { background: var(--linia-2); }
  .menu-boczne a.poz.akt { background: var(--niebieski-tlo); color: var(--niebieski-ciemny); }
  .menu-boczne a.poz.akt svg { color: var(--niebieski-ciemny); }
  .menu-boczne .znaczek { position: static; margin-left: auto; }
  .menu-boczne .sekcja-m { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--szary-2); font-weight: 700; margin: 16px 12px 6px; }
  .menu-boczne .ja { margin-top: auto; padding: 12px; border-top: 1px solid var(--linia); font-size: 14px; }
  .gora .znak-m { display: none; }
  .tresc { padding: 24px 28px; }
}

/* ---------- Karty, listy ---------- */
.karta { background: var(--karta); border-radius: var(--promien); box-shadow: var(--cien); padding: 16px; margin-bottom: 14px; }
.karta > h2, .karta-nag h2 { font-size: 17px; font-weight: 700; }
.karta-nag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.karta-nag a, .karta-nag button.link { font-size: 14px; font-weight: 600; }
.siatka-2 { display: grid; gap: 14px; }
@media (min-width: 760px) { .siatka-2 { grid-template-columns: 1fr 1fr; align-items: start; } .siatka-2 > .karta { margin-bottom: 0; } }
.kafle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .kafle { grid-template-columns: repeat(4, 1fr); } }
.kafel { background: var(--karta); border-radius: var(--promien); box-shadow: var(--cien); padding: 13px 14px; text-decoration: none; color: inherit; display: block; }
.kafel .l { font-size: 13px; color: var(--szary); font-weight: 600; }
.kafel .w { font-size: 24px; font-weight: 800; margin-top: 2px; color: var(--granat); }
.kafel .w small { font-size: 14px; font-weight: 600; color: var(--szary); }
.kafel.alarm .w { color: var(--czerwony); }

.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { border-top: 1px solid var(--linia-2); }
.lista > li:first-child { border-top: 0; }
.wiersz { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: inherit; }
.wiersz .glowne { flex: 1; min-width: 0; }
.wiersz .tyt { font-weight: 700; }
.wiersz .pod { font-size: 14px; color: var(--szary); }
.wiersz .prawo { text-align: right; flex: none; }
.wiersz .kwota { font-weight: 800; white-space: nowrap; }
.dzien-pudelko { width: 50px; flex: none; text-align: center; border-radius: 12px; background: var(--niebieski-tlo); color: var(--niebieski-ciemny); padding: 5px 0 6px; line-height: 1.1; }
.dzien-pudelko b { display: block; font-size: 21px; font-weight: 800; }
.dzien-pudelko span { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.dzien-pudelko.dzis { background: var(--niebieski); color: #fff; }
.pusto { text-align: center; color: var(--szary); padding: 22px 10px; }
.pusto svg { width: 40px; height: 40px; color: var(--szary-2); display: block; margin: 0 auto 8px; }

/* osoby */
.osoby { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.osoba { display: inline-flex; align-items: center; gap: 6px; background: var(--linia-2); border-radius: 20px; padding: 3px 10px 3px 3px; font-size: 14px; font-weight: 600; }
.av { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; line-height: 1; }
.osoba .av { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.osoba button { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--szary); font-size: 16px; line-height: 1; }
.osoba .osoba-usun { width: 22px; height: 22px; margin: 0 -4px 0 2px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--szary); box-shadow: 0 0 0 1px var(--linia); transition: background .15s, color .15s; }
.osoba .osoba-usun:hover, .osoba .osoba-usun:focus-visible { background: #fdeceb; color: #c13d36; box-shadow: 0 0 0 1px #f3b9b5; }
.btn-przypisz { border-style: dashed; }
.szukaj-os { width: 100%; min-height: 46px; margin-bottom: 8px; padding: 10px 14px; border: 1px solid #cfd7dd; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; }
.szukaj-os:focus { outline: 2px solid #8fd3f3; border-color: #127fb5; }
.wybor-osob { max-height: min(50vh, 380px); overflow: auto; margin: 0 -4px; padding: 0 4px; }
.wybor-os { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--linia-2); cursor: pointer; font-weight: 700; border-radius: 10px; }
.wybor-os:first-child { border-top: 0; }
.wybor-os[hidden] { display: none; }
.wybor-os:hover { background: var(--linia-2); }
.wybor-os input { width: 20px; height: 20px; flex: none; accent-color: #127fb5; }
.wybor-os .av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.wybor-os small { margin-left: auto; color: var(--szary); font-weight: 600; }
.wybor-os.jest { opacity: .55; cursor: default; }
.wybor-wszystkie { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; background: var(--linia-2); border-radius: 12px; font-weight: 600; cursor: pointer; }
.wybor-wszystkie input { width: 20px; height: 20px; accent-color: #127fb5; }
.av-duzy { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }

/* znaczki statusów */
.st { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 9px; white-space: nowrap; background: var(--linia-2); color: var(--szary); }
.st.ok { background: var(--zielony-tlo); color: var(--zielony); }
.st.czeka { background: var(--zolty-tlo); color: var(--zolty); }
.st.zle { background: var(--czerwony-tlo); color: var(--czerwony); }
.st.info { background: var(--niebieski-tlo); color: var(--niebieski-ciemny); }
.rodzaj { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rodzaj-kurs { color: #1283b8; } .rodzaj-zabezpieczenie { color: #c0392b; } .rodzaj-szkolenie { color: #7b4fc9; } .rodzaj-wpis { color: #66747e; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--linia); background: #fff;
  font-weight: 700; cursor: pointer; text-decoration: none; color: var(--tekst); transition: background .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-gl { background: var(--niebieski); border-color: var(--niebieski); color: #fff; }
.btn-gl:hover { background: var(--niebieski-ciemny); }
.btn-ciemny { background: var(--granat); border-color: var(--granat); color: #fff; }
.btn-ok { background: var(--zielony); border-color: var(--zielony); color: #fff; }
.btn-zle { color: var(--czerwony); }
.btn-maly { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-pelny { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.przyciski { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.przyciski.na-koniec { justify-content: flex-end; }
.link { border: 0; background: none; padding: 0; color: var(--niebieski-ciemny); cursor: pointer; font-weight: 600; }
.ikona-btn { border: 0; background: var(--linia-2); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--granat); flex: none; }
.ikona-btn svg { width: 20px; height: 20px; }
.fab { position: fixed; right: 16px; bottom: calc(88px + var(--dol)); z-index: 29; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--niebieski); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(30, 160, 220, .4); cursor: pointer; text-decoration: none; }
.fab svg { width: 28px; height: 28px; }
@media (min-width: 960px) { .fab { bottom: 28px; right: 28px; } }

/* ---------- Formularze ---------- */
.pole { display: block; margin-bottom: 14px; }
.pole > span, .etykieta { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--granat-2); }
.pole input, .pole select, .pole textarea, .wejscie { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd7dd; border-radius: 12px; background: #fff; font-size: 16px; outline: none; }
.pole textarea { min-height: 90px; resize: vertical; }
.pole input:focus, .pole select:focus, .pole textarea:focus, .wejscie:focus { border-color: var(--niebieski); box-shadow: 0 0 0 3px rgba(30, 160, 220, .18); }
.pole .pomoc { display: block; font-size: 13px; color: var(--szary); margin-top: 4px; font-weight: 400; }
.pole .blad, .blad-pola { display: block; font-size: 13px; color: var(--czerwony); margin-top: 4px; font-weight: 600; }
.pole.zle input, .pole.zle select, .pole.zle textarea { border-color: var(--czerwony); }
.rzad { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.rzad-3 { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 380px) { .rzad-3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--niebieski); }
.check small { display: block; font-weight: 400; color: var(--szary); }
.z-przyciskiem { display: flex; gap: 8px; }
.z-przyciskiem input { flex: 1; min-width: 0; }
.przelacznik { display: flex; background: var(--linia-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; overflow-x: auto; }
.przelacznik button, .przelacznik a { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 9px; font-weight: 700; color: var(--szary); cursor: pointer; white-space: nowrap; text-decoration: none; text-align: center; font-size: 15px; position: relative; }
.przelacznik .akt { background: #fff; color: var(--tekst); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.przelacznik .znaczek { position: static; display: inline-grid; margin-left: 4px; vertical-align: 1px; }
.filtry { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.filtry::-webkit-scrollbar { display: none; }
.filtry button { border: 1px solid var(--linia); background: #fff; border-radius: 20px; padding: 7px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; color: var(--szary); }
.filtry button.akt { background: var(--granat); border-color: var(--granat); color: #fff; }

/* licznik ilości (materiały) */
.licznik { display: flex; align-items: center; gap: 6px; flex: none; }
.licznik button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linia); background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; display: grid; place-items: center; color: var(--granat); }
.licznik input { width: 58px; min-height: 40px; text-align: center; border: 1px solid #cfd7dd; border-radius: 10px; font-size: 17px; font-weight: 700; padding: 6px 4px; }
.licznik input.ma { border-color: var(--niebieski); background: var(--niebieski-tlo); }
.material { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linia-2); }
.material:first-child { border-top: 0; }
.material .n { flex: 1; min-width: 0; font-weight: 600; }
.material .n small { color: var(--szary); font-weight: 400; }

/* dni wydarzenia w formularzu */
.dzien-edycja { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 12px; background: var(--linia-2); border-radius: 12px; margin-bottom: 8px; }
.dzien-edycja .pola-d { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.dzien-edycja label span { font-size: 12px; font-weight: 700; color: var(--szary); display: block; margin-bottom: 3px; }
.dzien-edycja input { width: 100%; min-height: 44px; border: 1px solid #cfd7dd; border-radius: 10px; padding: 8px; background: #fff; font-size: 15px; }
.dzien-edycja .dz-nazwa { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--niebieski-ciemny); margin-bottom: -4px; }
@media (max-width: 420px) { .dzien-edycja .pola-d { grid-template-columns: 1fr 1fr; } .dzien-edycja .pola-d label:first-child { grid-column: 1 / -1; } }

/* pozycje faktury */
.pozycja-fv { border: 1px solid var(--linia); border-radius: 12px; padding: 12px; margin-bottom: 10px; position: relative; background: #fff; }
.pozycja-fv .usun-poz { position: absolute; top: 8px; right: 8px; }
.pozycja-fv .rzad-poz { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (min-width: 700px) { .pozycja-fv .rzad-poz { grid-template-columns: 90px 90px 1fr 110px; } }
.pozycja-fv .suma-poz { font-size: 14px; color: var(--szary); text-align: right; }
.podsumowanie { background: var(--granat); color: #fff; border-radius: var(--promien); padding: 14px 16px; }
.podsumowanie .r { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; opacity: .85; }
.podsumowanie .razem { font-size: 22px; font-weight: 800; opacity: 1; margin-top: 4px; }

/* ---------- Kalendarz ---------- */
.kal-nag { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kal-nag h2 { flex: 1; text-align: center; font-size: 19px; font-weight: 800; text-transform: capitalize; }
.kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal .dn { font-size: 12px; font-weight: 700; color: var(--szary); text-align: center; padding: 4px 0; text-transform: uppercase; }
.kal .dn.we { color: var(--niebieski-ciemny); }
.kal .d { min-height: 54px; border-radius: 10px; background: #fff; border: 1px solid var(--linia-2); padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; text-align: left; overflow: hidden; }
.kal .d.inny { background: transparent; border-color: transparent; color: var(--szary-2); }
.kal .d .nr { font-size: 14px; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 3px; }
.kal .d.dzis .nr span { background: var(--niebieski); color: #fff; border-radius: 7px; padding: 0 5px; }
.kal .d.wyb { border-color: var(--granat); box-shadow: inset 0 0 0 1px var(--granat); }
.kal .d .kropki { display: flex; flex-wrap: wrap; gap: 3px; }
.kal .d .kropki i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.kal .d .pasek { display: none; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.kal .d .ja { width: 6px; height: 6px; border-radius: 50%; background: var(--zielony); margin-left: auto; }
@media (min-width: 760px) {
  .kal .d { min-height: 92px; padding: 6px; }
  .kal .d .kropki { display: none; }
  .kal .d .pasek { display: block; }
}
.k-kurs { background: #1ea0dc; } .k-zabezpieczenie { background: #d9534f; } .k-szkolenie { background: #8a5cd6; } .k-wpis { background: #8d9aa4; }
.k-odwolane { background: #b8c1c7 !important; text-decoration: line-through; }
.legenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--szary); margin: 10px 0 0; }
.legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

.dzien-wyd { border-left: 4px solid var(--niebieski); padding: 12px 0 12px 12px; }
.dzien-wyd + .dzien-wyd { border-top: 1px solid var(--linia-2); }
.dzien-wyd.k-b-zabezpieczenie { border-left-color: #d9534f; } .dzien-wyd.k-b-szkolenie { border-left-color: #8a5cd6; } .dzien-wyd.k-b-wpis { border-left-color: #8d9aa4; }
.dzien-wyd .tyt { font-weight: 800; font-size: 17px; }
.dzien-wyd .meta { font-size: 14px; color: var(--szary); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.dzien-wyd .dol { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* ---------- Okno (na telefonie od dołu) ---------- */
.okno-tlo { position: fixed; inset: 0; background: rgba(20, 30, 38, .45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: zanik .15s; }
.okno { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--dol)); animation: wjazd .2s ease-out; }
.okno h2 { font-size: 19px; margin-bottom: 12px; }
@media (min-width: 640px) { .okno-tlo { align-items: center; } .okno { border-radius: 18px; padding: 22px; } }
@keyframes zanik { from { opacity: 0; } }
@keyframes wjazd { from { transform: translateY(40px); opacity: .5; } }

/* ---------- Komunikaty ---------- */
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--dol)); transform: translateX(-50%); background: var(--granat); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200;
  font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); animation: wjazd .2s; }
.toast.zle { background: var(--czerwony); }
@media (min-width: 960px) { .toast { bottom: 30px; left: calc(50% + 125px); } }
.info-box { background: var(--niebieski-tlo); color: #0f5f86; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.info-box.zolty { background: var(--zolty-tlo); color: #7a5300; }
.info-box.czerwony { background: var(--czerwony-tlo); color: #9b2020; }
.info-box.zielony { background: var(--zielony-tlo); color: #146b47; }
.szary { color: var(--szary); } .maly { font-size: 14px; } .gruby { font-weight: 700; } .prawo { text-align: right; } .nowrap { white-space: nowrap; }
.kod { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--linia-2); border-radius: 8px; padding: 10px; word-break: break-all; display: block; user-select: all; }

/* tabela (komputer) / karty (telefon) */
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--szary); padding: 8px; border-bottom: 1px solid var(--linia); white-space: nowrap; }
.tabela td { padding: 10px 8px; border-bottom: 1px solid var(--linia-2); vertical-align: middle; }
.tabela .r { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .tabela.karty thead { display: none; }
  .tabela.karty, .tabela.karty tbody, .tabela.karty tr, .tabela.karty td { display: block; width: 100%; }
  .tabela.karty tr { border-bottom: 1px solid var(--linia); padding: 10px 0; }
  .tabela.karty td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  .tabela.karty td::before { content: attr(data-l); color: var(--szary); font-size: 14px; text-align: left; font-weight: 600; }
  .tabela.karty td.pierwsza { font-weight: 800; font-size: 17px; }
  .tabela.karty td.pierwsza::before { display: none; }
}

/* ---------- Logowanie ---------- */
.logowanie { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(180deg, #fff 0%, var(--tlo) 100%); }
.logowanie .pudlo { width: 100%; max-width: 400px; }
.logowanie .logo-l { display: block; width: 250px; margin: 0 auto 26px; }
.logowanie .karta { padding: 22px; }
.stopka-pw { text-align: center; font-size: 13px; color: var(--szary); margin: 24px 0 8px; }
.stopka-pw a { color: var(--szary); font-weight: 600; }
.menu-boczne .stopka-pw { margin: 10px 0 0; text-align: left; padding: 0 12px; }

/* menu „Więcej” (telefon) */
.menu-lista a, .menu-lista button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; border: 0; border-top: 1px solid var(--linia-2); background: none; text-decoration: none; color: var(--tekst); font-weight: 700; font-size: 17px; cursor: pointer; text-align: left; }
.menu-lista > :first-child { border-top: 0; }
.menu-lista svg { width: 24px; height: 24px; color: var(--niebieski-ciemny); flex: none; }
.menu-lista .strz { margin-left: auto; color: var(--szary-2); width: 18px; height: 18px; }
.menu-lista .znaczek { position: static; margin-left: auto; }

/* ---------- Pulpit ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1e8fc6 0%, rgba(30, 143, 198, 0) 55%), linear-gradient(135deg, #2b3a44 0%, #34495a 60%, #2a5873 100%);
  box-shadow: 0 10px 30px rgba(36, 58, 72, .22); display: grid; gap: 16px; }
.hero-ekg { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 90px; opacity: .13; pointer-events: none; }
.hero-ekg path { fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.hero-tekst { position: relative; }
.hero-data { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.hero h2 { font-size: 26px; font-weight: 800; margin: 4px 0 4px; letter-spacing: -.01em; }
.hero p { margin: 0; opacity: .88; font-size: 15px; }
.hero-dzien { position: relative; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px; padding: 13px 15px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s; }
.hero-dzien:hover { background: rgba(255, 255, 255, .18); }
.hero-dzien b { font-size: 18px; font-weight: 800; }
.hero-dzien span { font-size: 14px; opacity: .9; }
.hero-etyk { font-size: 11px !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; opacity: .7 !important; }
.osoby-mini { display: flex; margin-top: 6px; }
.osoby-mini .av { width: 28px; height: 28px; font-size: 11px; border: 2px solid #34495a; margin-left: -7px; }
.osoby-mini .av:first-child { margin-left: 0; }
.osoby-mini-j { margin: 0; flex: none; }
.osoby-mini-j .av { width: 26px; height: 26px; font-size: 10px; border-color: #fff; }
.av-wiecej { background: var(--linia) !important; color: var(--szary) !important; }
@media (max-width: 420px) { .osoby-mini-j { display: none; } }
@media (min-width: 760px) { .hero { grid-template-columns: 1fr minmax(260px, 340px); align-items: center; padding: 26px 28px; } .hero h2 { font-size: 30px; } }
.kafel-ik { display: flex; align-items: center; gap: 12px; }
.kafel-ik > span:last-child { min-width: 0; }
.kafel-ik .l { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kafel-ik .w { display: block; font-size: 22px; }
.kafel-ikona { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.kafel-ikona svg { width: 22px; height: 22px; }
.k-nieb { background: var(--niebieski-tlo); color: var(--niebieski-ciemny); } .k-ziel { background: var(--zielony-tlo); color: var(--zielony); }
.k-czer { background: var(--czerwony-tlo); color: var(--czerwony); } .k-fiol { background: #efe9fb; color: #6d43c4; } .k-szary { background: var(--linia-2); color: var(--szary); }
@media (max-width: 520px) {
  .kafle { gap: 8px; }
  .kafel-ik { padding: 11px; gap: 9px; }
  .kafel-ikona { width: 34px; height: 34px; border-radius: 10px; }
  .kafel-ikona svg { width: 18px; height: 18px; }
  .kafel-ik .l { font-size: 12px; white-space: normal; line-height: 1.2; }
  .kafel-ik .w { font-size: 18px; }
  .hero { padding: 16px; gap: 12px; border-radius: 18px; }
  .hero h2 { font-size: 23px; }
  .hero-dzien { padding: 11px 13px; }
  .hero-dzien b { font-size: 16px; }
  .wyplaty-suma b { font-size: 15px; }
  .wyplaty-suma div { padding: 8px 9px; }
}
.karta-nag h2 { display: flex; align-items: center; gap: 8px; }
.karta-nag h2 svg { color: var(--niebieski-ciemny); }
.karta-akcent { border-left: 4px solid var(--zolty); }
.karta-akcent h2 svg { color: var(--zolty); }
.mies-nav { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; text-transform: capitalize; }
.mies-nav a { width: 32px; height: 32px; border-radius: 10px; background: var(--linia-2); display: grid; place-items: center; color: var(--granat); }
.mies-nav span { min-width: 112px; text-align: center; }
.wyplaty-suma { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.wyplaty-suma div { background: var(--linia-2); border-radius: 12px; padding: 9px 11px; }
.wyplaty-suma span { display: block; font-size: 12px; color: var(--szary); font-weight: 600; line-height: 1.2; }
.wyplaty-suma b { font-size: 17px; color: var(--granat); }
.wyplaty-suma div:first-child { background: var(--granat); }
.wyplaty-suma div:first-child span { color: rgba(255, 255, 255, .7); } .wyplaty-suma div:first-child b { color: #fff; }
.btn-ok-obrys { border-color: var(--zielony); color: var(--zielony); margin-top: 4px; }
.btn-ok-obrys:hover { background: var(--zielony-tlo); }
.st-btn { border: 0; cursor: pointer; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.czeka-txt { color: var(--zolty); font-weight: 600; }
.karta-wyplaty .wiersz .prawo { display: flex; flex-direction: column; align-items: flex-end; }

/* ---------- Prezentacje ---------- */
.kafle-kat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .kafle-kat { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .kafle-kat { grid-template-columns: repeat(4, 1fr); } }
.kat { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 16px; border-radius: 18px; text-decoration: none; color: #fff; overflow: hidden;
  background: var(--kk); background: linear-gradient(145deg, var(--kk) 0%, color-mix(in srgb, var(--kk) 70%, #1f2c35) 100%); box-shadow: 0 6px 18px color-mix(in srgb, var(--kk) 30%, transparent); transition: transform .15s, box-shadow .15s; }
.kat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--kk) 40%, transparent); }
.kat::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.kat-ikona { width: 50px; height: 50px; border-radius: 15px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: auto; }
.kat-nazwa { font-size: 18px; font-weight: 800; line-height: 1.15; margin-top: 12px; position: relative; z-index: 1; }
.kat-licz { font-size: 13px; opacity: .85; font-weight: 600; position: relative; z-index: 1; }
.kat-edytuj { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.kat-edytuj:hover { background: rgba(255, 255, 255, .32); }
.kat-naglowek { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; color: #fff; margin-bottom: 14px;
  background: var(--kk); background: linear-gradient(145deg, var(--kk) 0%, color-mix(in srgb, var(--kk) 70%, #1f2c35) 100%); }
.kat-naglowek h2 { font-size: 22px; font-weight: 800; }
.kat-naglowek > div { flex: 1; min-width: 0; }
.kat-naglowek span:not(.kat-ikona) { opacity: .85; font-size: 14px; }
.kat-naglowek .kat-ikona { margin: 0; }
.kat-naglowek .ikona-btn { background: rgba(255, 255, 255, .2); color: #fff; }
.prez { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--linia-2); align-items: flex-start; }
.lista > .prez:first-child { border-top: 0; }
.prez .glowne { flex: 1; min-width: 0; }
.prez .tyt { font-weight: 700; font-size: 16px; }
.prez .pod { font-size: 13px; color: var(--szary); }
.typ-pliku { width: 46px; height: 54px; border-radius: 9px; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; flex: none; position: relative; }
.typ-pliku::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: var(--tlo) rgba(0, 0, 0, .18) rgba(0, 0, 0, .18) var(--tlo); border-radius: 0 9px 0 4px; }
.prez-akcje { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wybor-pliku { display: flex; align-items: center; gap: 14px; border: 2px dashed #c4ced5; border-radius: 14px; padding: 16px; cursor: pointer; margin-bottom: 14px; transition: border-color .15s, background .15s; }
.wybor-pliku:hover, .wybor-pliku.wybrany { border-color: var(--niebieski); background: var(--niebieski-tlo); }
.wybor-pliku input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wp-ikona { width: 52px; height: 52px; border-radius: 14px; background: var(--niebieski-tlo); color: var(--niebieski-ciemny); display: grid; place-items: center; flex: none; }
.wybor-pliku.wybrany .wp-ikona { background: #fff; }
.wp-tekst { display: flex; flex-direction: column; min-width: 0; word-break: break-word; }
.wp-tekst small { color: var(--szary); }
.wybor-ikon, .wybor-kolorow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wybor-ikon input, .wybor-kolorow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wybor-ikon span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--linia-2); color: var(--granat); cursor: pointer; border: 2px solid transparent; }
.wybor-ikon input:checked + span { border-color: var(--niebieski); background: var(--niebieski-tlo); color: var(--niebieski-ciemny); }
.wybor-kolorow span { width: 36px; height: 36px; border-radius: 50%; display: block; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--linia); }
.wybor-kolorow input:checked + span { box-shadow: 0 0 0 3px var(--granat); }
.wybor-ikon input:focus-visible + span, .wybor-kolorow input:focus-visible + span { outline: 2px solid var(--niebieski); outline-offset: 2px; }
.postep { margin: 4px 0 10px; }
.postep-pasek { height: 10px; border-radius: 6px; background: var(--linia-2); overflow: hidden; }
.postep-pasek i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--niebieski), #49b9ec); transition: width .2s; }
.postep-tekst { font-size: 13px; color: var(--szary); }
@media (max-width: 520px) { .gora .akcje .btn:not(:last-child) span { display: none; } .gora .akcje .btn:not(:last-child) { padding: 6px 10px; } }

/* ---------- Kursy (lista pod kalendarzem i zakładka Kursy) ---------- */
.lista-kursow > li { border-top: 1px solid var(--linia-2); }
.lista-kursow > li:first-child { border-top: 0; }
.kurs { display: flex; align-items: center; gap: 14px; padding: 13px 2px; text-decoration: none; color: inherit; border-radius: 12px; transition: background .12s; }
.kurs:hover { background: var(--linia-2); }
.kurs .glowne { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.kurs .tyt { font-weight: 800; font-size: 17px; line-height: 1.25; }
.kurs .pod { font-size: 14px; color: var(--szary); }
.kurs .strz { color: var(--szary-2); flex: none; }
.kurs-data { width: 54px; flex: none; text-align: center; border-radius: 13px; padding: 6px 0 7px; line-height: 1.1; color: #fff; background: #1ea0dc; }
.kurs-data span { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; opacity: .9; display: block; }
.kurs-data b { font-size: 22px; font-weight: 800; display: block; }
.kurs-data.k-b-zabezpieczenie { background: #d9534f; } .kurs-data.k-b-szkolenie { background: #8a5cd6; } .kurs-data.k-b-wpis { background: #8d9aa4; }
.kurs-znaczki { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.kurs-znaczki:empty { display: none; }
.kurs-znaczki .st { display: inline-flex; align-items: center; gap: 3px; }
.kal .d.ma .nr span { font-weight: 800; }

/* ---------- Sprzęt ---------- */
.grupa-sprzetu { margin-bottom: 18px; }
.grupa-sprzetu > .karta-nag { padding: 0 2px; }
.grupa-sprzetu > .karta-nag span { font-size: 14px; }
.zestawy { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .zestawy { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .zestawy { grid-template-columns: repeat(3, 1fr); } }
.zestaw { display: flex; flex-direction: column; gap: 9px; background: var(--karta); border-radius: var(--promien); box-shadow: var(--cien); padding: 14px 15px; text-decoration: none; color: inherit; border-left: 4px solid var(--zielony); transition: transform .12s; }
.zestaw:hover { transform: translateY(-1px); }
.zestaw.braki { border-left-color: var(--czerwony); }
.zestaw.nieaktywny { opacity: .6; }
.zestaw-nag { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.zestaw-nag > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.zestaw-nag b { font-size: 17px; font-weight: 800; }
.zestaw-nag .st { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.pasek-kompletu { height: 6px; border-radius: 4px; background: var(--czerwony-tlo); overflow: hidden; }
.pasek-kompletu i { display: block; height: 100%; background: var(--zielony); border-radius: 4px; }
.zestaw:not(.braki) .pasek-kompletu { background: var(--zielony-tlo); }
.braki-lista { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.braki-lista span { display: flex; justify-content: space-between; gap: 10px; }
.braki-lista b { color: var(--czerwony); white-space: nowrap; }
.tabela-zestaw tr.brak td:first-child { font-weight: 700; }
.tabela-zestaw tr.brak { background: #fff7f7; }
.poz-zestawu { display: grid; grid-template-columns: 1fr 70px 74px 74px auto; gap: 8px; align-items: end; padding: 10px; background: var(--linia-2); border-radius: 12px; margin-bottom: 8px; }
.poz-zestawu input[readonly] { background: #f3f6f8; color: var(--szary); }
.poz-nowy { font-style: normal; font-weight: 700; color: #13917f; margin-left: 4px; }
.poz-zestawu select, .poz-zestawu input { width: 100%; min-height: 44px; border: 1px solid #cfd7dd; border-radius: 10px; padding: 8px; background: #fff; font-size: 15px; }
.poz-zestawu label span { display: block; font-size: 12px; font-weight: 700; color: var(--szary); margin-bottom: 3px; }
@media (max-width: 560px) { .poz-zestawu { grid-template-columns: 1fr 1fr 1fr auto; } .poz-zestawu .poz-nazwa { grid-column: 1 / -1; } }
@media (max-width: 759px) { .kal { gap: 3px; } .kal .d { min-height: 42px; padding: 3px 4px; } .kal .d .nr { font-size: 13px; } .kal-nag { margin-bottom: 6px; } .legenda { gap: 4px 10px; font-size: 12px; margin-top: 8px; } }

/* ---------- Strona www (edytor) ---------- */
.slajd-ed { display: grid; gap: 14px; }
@media (min-width: 760px) { .slajd-ed { grid-template-columns: 300px 1fr; } }
.slajd-ed-foto { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #2f3f49 center / cover no-repeat; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 10px; }
.slajd-ed-foto .btn { margin-top: auto; }
.slajd-ed-pola .karta-nag { margin-bottom: 8px; }
.slajd-ed-pola .karta-nag span { display: flex; gap: 6px; }
.in-foto { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.in-foto-ed { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.in-foto-duze { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--linia-2); }
.in-foto-duze img { width: 100%; height: 100%; object-fit: cover; }
.in-foto-duze .av-duzy { width: 96px; height: 96px; border-radius: 18px; font-size: 30px; }
.wiad { padding: 14px 0; border-top: 1px solid var(--linia-2); }
.lista > .wiad:first-child { border-top: 0; }
.wiad.nowa { border-left: 4px solid var(--niebieski); padding-left: 12px; }
.onas-zdj-ed { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 280px; }
.onas-zdj-ed > div { display: flex; flex-direction: column; gap: 4px; }
.klient-ed { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; background: var(--linia-2); border-radius: 12px; margin-bottom: 10px; }
.klient-ed .pole { margin: 0; }
.klient-logo { height: 70px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px; border: 1px solid var(--linia); }
.klient-logo img { max-height: 54px; max-width: 100%; object-fit: contain; }
.klient-akcje { display: flex; gap: 6px; }
@media (max-width: 700px) { .klient-ed { grid-template-columns: 90px 1fr; } .klient-ed .pole:nth-of-type(2) { grid-column: 1 / -1; } .klient-akcje { grid-column: 1 / -1; justify-content: flex-end; } }

/* ---------- Prośba o powiadomienia ---------- */
.push-prosba { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center;
  max-width: 480px; margin: 0 auto; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(20, 35, 45, .25); transform: translateY(30px); opacity: 0; transition: transform .3s, opacity .3s; }
.push-prosba.widoczna { transform: none; opacity: 1; }
.push-ik { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2aa7e1, #127fb5); }
.push-tekst b { display: block; font-size: 16px; }
.push-tekst span { display: block; color: var(--szary); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.push-przyciski { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (min-width: 960px) { .push-prosba { left: auto; right: 24px; bottom: 24px; margin: 0; } }
#karta-push h2 { display: flex; align-items: center; gap: 8px; }
#push-stan .st { margin-right: 6px; }
.kod-cron { margin: 0; padding: 10px 12px; background: var(--linia-2); border-radius: 10px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }

/* ---------- Przełączniki sekcji strony ---------- */
.przel { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 30px; background: #cfd7dd; position: relative; cursor: pointer; transition: background .2s; }
.przel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.przel:checked { background: #1ea0dc; }
.przel:checked::after { transform: translateX(20px); }
.przel:focus-visible { outline: 3px solid #8fd3f3; outline-offset: 2px; }
.przel:disabled { opacity: .6; cursor: wait; }
.sekcja-wiersz { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--linia-2); cursor: pointer; }
.sekcje-lista .sekcja-wiersz:first-child, .sekcje-pasek .sekcja-wiersz:first-child { border-top: 0; }
.sekcja-opis { flex: 1; min-width: 0; }
.sekcja-opis b { display: block; }
.sekcja-opis small { display: block; color: var(--szary); font-size: 13.5px; line-height: 1.35; }
.sekcja-stan { font-size: 13px; font-weight: 700; color: #13917f; }
.sekcja-wiersz.ukryta .sekcja-stan { color: var(--szary); }
.sekcja-wiersz.ukryta .sekcja-opis b { color: var(--szary); }
.sekcje-pasek { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Minione dni kursu ---------- */
.dzien-wyd.minal { background: #f1f3f5; border-left-color: #c3ccd3 !important; }
.dzien-wyd.minal .tyt, .dzien-wyd.minal .meta, .dzien-wyd.minal .rodzaj { color: var(--szary-2, #8f9ca5); }
.dzien-wyd.minal .osoba { opacity: .75; }
.st.minal-st { background: #e1e6ea; color: #5b6a74; margin-left: 4px; }
.dol-akcje { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.dzien-edycja .pola-d:has(.pole-osob) { grid-template-columns: 1.5fr 1fr 1fr 74px; }
@media (max-width: 420px) { .dzien-edycja .pola-d:has(.pole-osob) { grid-template-columns: 1fr 1fr 74px; } }
/* ---------- Zmiana decyzji przy godzinach ---------- */
.decyzja { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.decyzja-przyciski { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

.st.braki-dni { white-space: normal; line-height: 1.45; }
.st.braki-dni b { font-weight: 800; }

/* ---------- Powiadomienia w zespole ---------- */
#powiad-stan h2 { display: flex; align-items: center; gap: 8px; }
#powiad-stan .info-box { margin-bottom: 10px; }
.info-box.zielony { background: #e7f7ee; color: #146c3c; }
.powiad-znaczki { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.lista-powiad .wiersz { padding-top: 8px; padding-bottom: 8px; }
.historia-przyp { margin-top: 8px; }
.historia-przyp summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

.rzad-przycisk { display: flex; gap: 10px; align-items: flex-end; }
.rzad-przycisk .pole { flex: 1; margin-bottom: 0; }
.rzad-przycisk .btn { flex: none; min-height: 48px; }
#f-email-prosba + * {}

/* =====================================================================
   Motyw Biura Rachunkowego Alfa (wygląd z makiety) – nadpisuje bazę z CRM
   ===================================================================== */
:root {
  --granat: #24318c; --granat-2: #344054; --tekst: #0f172a; --szary: #667085; --szary-2: #98a2b3;
  --niebieski: #4f46e5; --niebieski-ciemny: #3730a3; --niebieski-tlo: #eef0fb;
  --tlo: #f4f6f9; --karta: #ffffff; --linia: #e4e7ec; --linia-2: #eef0f3;
  --zielony: #12b76a; --zielony-tlo: #ecfdf3; --czerwony: #f04438; --czerwony-tlo: #fef3f2; --zolty: #b54708; --zolty-tlo: #fffaeb;
  --ok: #12b76a; --alfa-czerwony: #d4282f;
  --promien: 14px; --cien: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
}
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
.logo-alfa { display: block; height: 32px; width: auto; }
.logo-pod { font-family: Oswald, "Arial Narrow", sans-serif; font-weight: 600; color: var(--alfa-czerwony); font-size: 16px; letter-spacing: .04em; line-height: 1; margin-top: 4px; }
.logowanie .logo-l { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.logowanie .logo-l .logo-alfa { height: 52px; }
.logowanie .logo-l .logo-pod { font-size: 22px; }
.gora .znak-m { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--granat); font: italic 700 26px/1 "Times New Roman", Georgia, serif; background: #fff; border: 1px solid var(--linia); }
.menu-boczne .logo-m { padding: 6px 12px 20px; }
.menu-boczne a.poz { font-weight: 500; color: var(--granat-2); padding: 9px 12px; white-space: nowrap; }
.menu-boczne a.poz.akt { background: var(--niebieski-tlo); color: var(--granat); font-weight: 600; }
.menu-boczne a.poz.akt svg { color: var(--granat); }
.menu-boczne .ja { display: flex; gap: 10px; align-items: center; }
.znaczek.neutralny { background: var(--linia-2); color: var(--granat-2); }
.btn-gl { background: var(--niebieski); border-color: var(--niebieski); }
h2 { letter-spacing: -.01em; }
.karta { border-radius: var(--promien); border: 1px solid var(--linia); box-shadow: var(--cien); }
.karta-tresc { padding: 16px 18px; }
.powitanie { margin: 2px 0 16px; }
.powitanie h2 { font-size: 22px; margin-top: 2px; }
.kpi-siatka { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 960px) { .kpi-siatka { grid-template-columns: repeat(4, 1fr); } .kpi-siatka.kpi-3 { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
a.kpi:hover { border-color: #c7cdf5; }
.kpi-l { font-size: 13px; color: var(--szary); font-weight: 500; }
.kpi-w { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-m { font-size: 12.5px; color: var(--szary-2); }
.kpi.zle { background: linear-gradient(180deg, var(--czerwony-tlo), #fff 70%); border-color: #fecdca; }
.kpi.zle .kpi-w { color: #b42318; }
.kpi.uwaga .kpi-w { color: var(--zolty); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--zielony-tlo); color: #027a48; } .p-warn { background: var(--zolty-tlo); color: var(--zolty); }
.p-bad { background: var(--czerwony-tlo); color: #b42318; } .p-info { background: #eff8ff; color: #175cd3; } .p-mute { background: var(--linia-2); color: var(--granat-2); }
.kropka { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.kropka.zle { background: var(--czerwony); }
.siatka-glowna { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 1100px) { .siatka-glowna { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.siatka-glowna > .karta, .siatka-2 > .karta { margin: 0; }
.tab-wrap { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th { font-size: 12px; font-weight: 500; color: var(--szary-2); text-align: left; padding: 10px 14px; background: #f9fafb; border-bottom: 1px solid var(--linia-2); white-space: nowrap; }
.tab td { padding: 11px 14px; border-bottom: 1px solid var(--linia-2); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tr.klik { cursor: pointer; }
.tab tr.klik:hover td { background: #fafbfc; }
.tab td small { display: block; color: var(--szary-2); font-size: 12px; }
.tab .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab .srodek { text-align: center; }
.tab .nw, .nw { white-space: nowrap; }
.tab .prawo-k { text-align: right; }
.tab tr.zrobiony td { background: #f6fef9; }
a.kl { font-weight: 600; color: var(--tekst); text-decoration: none; }
a.kl:hover { color: var(--niebieski-ciemny); }
.pasek { height: 8px; background: var(--linia-2); border-radius: 99px; overflow: hidden; }
.pasek i { display: block; height: 100%; background: var(--niebieski); border-radius: 99px; }
.pasek-opis { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.zespol-mini { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pasek-narz { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 3px; overflow-x: auto; }
.chips button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--szary); font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chips button.on { background: var(--niebieski-tlo); color: var(--granat); }
.szukaj { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 0 12px; flex: 1; min-width: 200px; max-width: 380px; color: var(--szary-2); }
.szukaj input { border: 0; outline: 0; padding: 9px 0; width: 100%; background: none; }
.postep-box { margin-left: auto; background: #fff; border: 1px solid var(--linia); border-radius: 12px; padding: 10px 14px; min-width: 240px; }
.mies-nav { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 3px; }
.mies-nav span { font-weight: 600; padding: 0 8px; min-width: 130px; text-align: center; text-transform: capitalize; }
.mies-nav a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--granat-2); }
.mies-nav a:hover { background: var(--linia-2); }
.krok { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--linia); background: #fff; color: transparent; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; padding: 0; transition: .15s; }
.krok:hover:not(:disabled) { border-color: var(--ok); }
.krok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.krok.nd { border-style: dashed; color: var(--szary-2); font-size: 10px; font-weight: 500; }
.krok:disabled { cursor: default; opacity: .85; }
.tab-kroki td small { color: var(--szary-2); }
.ok-txt { color: #027a48; }
.karta-klient .kl-nag { display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; }
.kl-ikona { width: 52px; height: 52px; border-radius: 14px; background: var(--niebieski-tlo); color: var(--granat); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.karta-klient h2 { font-size: 20px; }
.kl-opiekun { display: flex; align-items: center; gap: 10px; }
.kl-opiekun small { display: block; color: var(--szary-2); font-size: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--szary-2); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.zamek { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--szary); }
.pod-tytul { font-size: 15px; margin: 18px 0 8px; }
.pod-tytul small { font-weight: 500; color: var(--szary-2); font-size: 12px; margin-left: 6px; }
.upload { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--linia); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; color: var(--szary); }
.upload b { color: var(--tekst); }
.upload.nad { border-color: var(--niebieski); background: var(--niebieski-tlo); }
.upload.wysylanie { opacity: .7; pointer-events: none; }
.lista-op { list-style: none; margin: 0; padding: 0; }
.op { padding: 12px 18px; border-bottom: 1px solid var(--linia-2); }
.op:last-child { border-bottom: 0; }
.op-nag { display: flex; gap: 12px; align-items: flex-start; }
.op-nag .glowne { flex: 1; min-width: 0; }
.op-nag .pod { color: var(--szary); font-size: 13px; overflow-wrap: anywhere; }
.op-kw { font-variant-numeric: tabular-nums; white-space: nowrap; }
.op-notka { font-size: 12.5px; color: var(--zolty); margin-top: 4px; }
.op-ok .op-notka { color: var(--szary-2); }
.op-akcje { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.op-sel { max-width: 100%; min-width: 0; flex: 1 1 240px; }
.info-box { border-radius: 12px; }
.info-box a { font-weight: 600; }
.stopka-pw a { color: var(--niebieski-ciemny); }
.tab td:first-child { min-width: 190px; }

/* Kalendarz zespołu */
.kal .d .wpis { display: none; font-size: 11px; font-weight: 600; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; margin: 0 -5px; }
.kal .d .wpis.pocz { border-top-left-radius: 5px; border-bottom-left-radius: 5px; margin-left: 0; }
.kal .d .wpis.kon { border-top-right-radius: 5px; border-bottom-right-radius: 5px; margin-right: 0; }
.k-szk { background: var(--niebieski); } .k-moje { background: var(--zielony); }
.kal .d { overflow: visible; }
.kal .d.weekend:not(.inny) { background: #fafbfc; }
@media (min-width: 700px) { .kal .d .wpis { display: block; } .kal .d .kropki { display: none; } }
.szk-w { width: 100%; text-align: left; color: inherit; gap: 12px; }
.wybor-osob { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.check-os { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linia); border-radius: 10px; padding: 6px 10px; margin: 0; }
.zle-txt { color: #b42318; }
.kal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal .d { min-width: 0; }
.szk-profil { background: #f9fafb; border: 1px solid var(--linia-2); border-radius: 12px; padding: 4px 12px 8px; margin: 10px 0 14px; }

/* 2FA */
.pudlo-szerokie { max-width: 520px; }
.kroki-2fa { padding-left: 20px; margin: 10px 0 14px; line-height: 1.55; }
.kroki-2fa li { margin-bottom: 10px; }
.qr-2fa { background: #fff; border: 1px solid var(--linia); border-radius: 12px; padding: 10px; width: 200px; margin: 10px 0 6px; }
.qr-2fa svg { width: 100%; height: auto; display: block; }
.kody-zap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.kody-zap code { font-size: 16px; text-align: center; background: #f9fafb; border: 1px solid var(--linia); border-radius: 8px; padding: 8px; letter-spacing: .05em; }

/* Zamknięcie miesiąca – statusy */
.mc-uklad { display: grid; gap: 16px; }
@media (min-width: 1200px) { .mc-uklad { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.mc-boczna { margin: 0; position: sticky; top: 76px; }
.chips-wrap { flex-wrap: wrap; margin-bottom: 12px; overflow: visible; }
.chips .chip-uwaga { color: var(--zolty); font-weight: 600; }
.chips-tor button.on { background: var(--granat); color: #fff; }
.lista-mc { list-style: none; margin: 0; padding: 0; }
.mc-w { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--linia-2); flex-wrap: wrap; }
.mc-w:last-child { border-bottom: 0; }
.mc-w.wyslane { background: #f6fef9; }
.mc-zazn input { width: 18px; height: 18px; }
.mc-kl { flex: 1 1 220px; min-width: 0; }
.mc-kl small { display: flex; align-items: center; gap: 6px; color: var(--szary-2); font-size: 12.5px; margin-top: 2px; }
.mc-kl small .av { width: 22px; height: 22px; font-size: 9px; }
.mc-prop { margin-top: 6px; font-size: 13px; color: var(--zolty); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.statusy { display: flex; background: var(--linia-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.st-btn2 { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--szary); cursor: pointer; white-space: nowrap; }
.st-btn2:hover:not(:disabled) { background: #fff; color: var(--tekst); }
.st-btn2.on { color: #fff; font-weight: 600; }
.st-btn2.on.s-todo { background: #667085; } .st-btn2.on.s-docs { background: #dc6803; } .st-btn2.on.s-verify { background: #2e90fa; } .st-btn2.on.s-sent { background: var(--ok); }
.pasek-hurt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--niebieski-tlo); border: 1px solid #c7cdf5; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.przepis.przeczytany .tyt { color: var(--szary); font-weight: 500; }
.mini-statusy { display: grid; gap: 8px; margin-top: 14px; font-size: 13px; }
.mini-statusy div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mini-statusy b { width: 100%; font-size: 12px; color: var(--szary); font-weight: 600; }

/* Komunikaty */
.komunikat-tlo { z-index: 200; }
.komunikat { border-top: 5px solid var(--alfa-czerwony); }
.komunikat-nag { display: flex; align-items: center; gap: 8px; color: var(--alfa-czerwony); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.komunikat-tresc { font-size: 15px; line-height: 1.6; margin: 10px 0 6px; }
.fv-z { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.op-nag .prawo { text-align: right; display: flex; flex-direction: column; }
.rzad.poz-fv { grid-template-columns: 2.2fr 1fr .8fr; }

/* Archiwum */
.tab-arch td, .tab-arch th { padding: 6px 4px; }
.tab-arch td:first-child, .tab-arch th:first-child { padding-left: 14px; text-align: left; }
.tab-arch .kl { text-align: left; }
.a-kom { width: 30px; height: 26px; border-radius: 6px; border: 0; display: inline-block; cursor: pointer; vertical-align: middle; transition: transform .1s; }
.a-kom:hover { transform: scale(1.12); }
.a-kom.zazn { outline: 3px solid var(--granat); outline-offset: 1px; }
.a-do, .legenda i.a-do { background: var(--linia); } .a-ok, .legenda i.a-ok { background: #32d583; } .a-wyd, .legenda i.a-wyd { background: #53b1fd; } .a-wydane, .legenda i.a-wydane { background: #fdb022; }
.a-przyszly { background: repeating-linear-gradient(45deg, #f2f4f7, #f2f4f7 4px, #fff 4px, #fff 8px); cursor: default; }
.a-przyszly:hover { transform: none; }
.legenda i.a-do, .legenda i.a-ok, .legenda i.a-wyd, .legenda i.a-wydane { width: 12px; height: 12px; border-radius: 3px; }

/* Urlopy w kalendarzu */
.k-urlop, .legenda i.k-urlop { background: #f79009; }
.k-urlop.k-czeka, .legenda i.k-czeka { background: repeating-linear-gradient(45deg, #fdb022, #fdb022 5px, #fec84b 5px, #fec84b 10px); color: #7a2e0e; }
.kal .d .swieto { font-size: 10px; color: #b42318; font-weight: 500; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; align-items: center; gap: 8px; }

/* ---------- Czas pracy ---------- */
.kropka.k-on { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.kropka.k-off { background: #c3cad3; }
.kropka.k-urlop { background: #f59e0b; }
.czas-dzis .row { gap: 12px; align-items: center; flex-wrap: wrap; }
.czas-dzis .glowne { flex: 1; min-width: 200px; }
.czas-dzis .pod { color: var(--szary, #6b7280); font-size: 13px; margin-top: 2px; }
.czas-pasek { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.czas-pasek .pasek { flex: 1; }
.tab-czas tr.wolny td { background: #f7f8fa; color: #8d96a3; }
.tab-czas tr.dzis td { background: #eef0ff; }
.tab-czas td .pill { margin: 1px 2px 1px 0; }
.txt-warn { color: #c2410c; }
.txt-bad { color: var(--czerwony, #d4282f); font-weight: 600; }
.kpi.kpi-uw .kpi-w { color: var(--czerwony, #d4282f); }
.obecni { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.obecny { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--linia, #e5e7eb); border-radius: 12px; color: inherit; text-decoration: none; }
.obecny:hover { border-color: #c7cbf5; background: #fafaff; }
.obecny .pod { font-size: 13px; color: var(--szary, #6b7280); margin-top: 2px; }
.czas-suma { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; margin-top: 14px; border-radius: 12px; background: #f4f5fb; }
.czas-suma b { font-size: 20px; }
.czas-suma span:last-child { color: var(--szary, #6b7280); font-size: 13px; }

/* ---------- Listy przejęcia / oddania klienta ---------- */
.lista-kl .pasek { margin: 4px 0 8px; }
.lista-kl.zamknieta { opacity: .85; }
.punkty { list-style: none; margin: 0; padding: 0; }
.punkt { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--linia, #eef0f3); }
.punkt:first-child { border-top: 0; }
.punkt .check { margin: 0; flex: 1; }
.punkt.zrob .check span { color: #8d96a3; text-decoration: line-through; text-decoration-color: #c3cad3; }
.punkt.zrob .check small { text-decoration: none; display: block; }
.punkt.po small { color: var(--czerwony, #d4282f); font-weight: 600; }
.punkt .link { white-space: nowrap; margin-top: 2px; }

/* ---------- Akceptacje klienta ---------- */
.akc-pliki { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.akc-pliki a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--linia, #e5e7eb); border-radius: 999px; font-size: 13px; text-decoration: none; color: inherit; }
.akc-pliki a:hover { border-color: #c7cbf5; background: #fafaff; }
.akc-pliki small { color: #8d96a3; }

/* ---------- Szablony maili ---------- */
.siatka-szab { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.siatka-szab .karta { margin: 0; display: flex; flex-direction: column; }
.szab-temat { font-weight: 600; margin-bottom: 6px; }
.szab-tresc { white-space: pre-line; color: #4b5563; font-size: 14px; background: #f8f9fc; border-radius: 10px; padding: 10px 12px; flex: 1; max-height: 220px; overflow: auto; }
.info-box code { background: rgba(79,70,229,.08); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

/* ---------- Opłacalność ---------- */
.tab-opl td small { display: block; color: #8d96a3; font-size: 12px; font-weight: 400; }
.tab-opl td .pill { margin: 1px 2px 1px 0; }
.txt-ok { color: #15803d; }
.tab-opl td small.txt-ok { color: #15803d; font-weight: 600; }
.podw-pod { max-height: 220px; overflow: auto; margin: 4px 0 12px; border: 1px solid var(--linia, #e5e7eb); border-radius: 12px; padding: 4px 12px; }
.tab-opl th:first-child, .tab-opl td:first-child { width: 1%; min-width: 0; padding-right: 4px; }
.tab-opl td.num, .tab-opl th.num { white-space: nowrap; }
.tab-opl td.opl-kl { min-width: 210px; }
.opl-syg { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px; }
.tab-opl td:nth-child(3) { min-width: 120px; }
.szab-akcje { display: flex; gap: 16px; flex-wrap: wrap; margin: -4px 0 12px; }
.szab-akcje .link { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Zakładki grup (Należności | Wyciągi, Faktury…, Zespół | Komunikaty) ---------- */
.zakladki { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--linia, #e5e7eb); overflow-x: auto; }
.zakladki[hidden] { display: none; }
.zakladki a { padding: 10px 14px; text-decoration: none; color: var(--szary, #6b7280); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.zakladki a:hover { color: var(--tekst, #111827); }
.zakladki a.akt { color: var(--niebieski-ciemny, #3730a3); border-bottom-color: var(--niebieski-ciemny, #3730a3); }
.zakladki .znaczek { position: static; }
/* ---------- Na dziś ---------- */
.dzis-lista { list-style: none; margin: 0; padding: 0; }
.dzis-lista li a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--linia, #eef0f3); text-decoration: none; color: inherit; border-radius: 10px; }
.dzis-lista li:first-child a { border-top: 0; }
.dzis-lista li a:hover { background: #f8f9fc; }
.dzis-lista .glowne { flex: 1; min-width: 0; }
.dzis-lista b { display: block; font-weight: 600; }
.dzis-lista small { display: block; color: var(--szary, #6b7280); font-size: 13px; margin-top: 1px; }
.dz-ik { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #eef0ff; color: #4338ca; }
.dz-pilne .dz-ik { background: #fef2f2; color: #b91c1c; }
.dz-info .dz-ik { background: #f3f4f6; color: #6b7280; }
.dzis-lista .strz { color: #c3cad3; flex: none; }
.terminy .wiersz { gap: 12px; align-items: center; }
.term-data { width: 46px; flex: none; text-align: center; border-radius: 10px; background: #f3f4f6; padding: 4px 0; line-height: 1.1; }
.term-data b { display: block; font-size: 18px; }
.term-data span { font-size: 11px; color: var(--szary, #6b7280); text-transform: uppercase; }
.term-data.pilne { background: #fef2f2; color: #b91c1c; }

/* ---------- Przewodnik ---------- */
.przew-tlo { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 900; }
.przew-ramka { position: fixed; z-index: 901; border-radius: 12px; box-shadow: 0 0 0 3px #6366f1, 0 0 0 9999px rgba(15, 23, 42, .25); pointer-events: none; transition: all .2s; display: none; }
.przew-dymek { position: fixed; z-index: 902; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(15, 23, 42, .25); }
.przew-dymek h3 { margin: 2px 0 6px; font-size: 17px; }
.przew-dymek p { margin: 0 0 12px; color: #4b5563; font-size: 14.5px; line-height: 1.5; }
.przew-licz { font-size: 12px; color: #6366f1; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.przew-przyc { display: flex; align-items: center; gap: 8px; }
.przew-przyc span { flex: 1; }

/* ---------- Zadania ---------- */
.zad-lista { list-style: none; margin: 0; padding: 0; }
.zad { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linia, #eef0f3); }
.zad:first-child { border-top: 0; }
.zad .check { margin: 0; flex: 1; }
.zad small { display: block; color: var(--szary, #6b7280); }
.zad.zrob .check > span { color: #8d96a3; }
.zad .link { white-space: nowrap; margin-top: 2px; }

/* ---------- Poczta ---------- */
.pcz-pasek { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pcz-pasek .filtry { margin: 0; flex-wrap: wrap; }
.pcz-pasek .filtry a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--linia, #e5e7eb); text-decoration: none; color: inherit; font-weight: 600; background: #fff; }
.pcz-pasek .filtry a.akt { background: var(--niebieski-ciemny, #1e2a78); color: #fff; border-color: transparent; }
.pcz-pasek input[type=search], .pcz-konto { padding: 8px 12px; border: 1px solid var(--linia, #e5e7eb); border-radius: 10px; font: inherit; background: #fff; }
.pcz-pasek input[type=search] { flex: 1; min-width: 180px; }
.poczta { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .poczta { grid-template-columns: minmax(300px, 380px) 1fr; } }
.poczta .karta { margin: 0; }
.pcz-lista { padding: 6px !important; max-height: calc(100vh - 220px); overflow: auto; }
.pcz-lista ul { list-style: none; margin: 0; padding: 0; }
.pcz-lista a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--linia, #eef0f3); }
.pcz-lista a:hover { background: #f8f9fc; }
.pcz-lista a.akt { background: #eef0ff; }
.pcz-lista a.nowy .pcz-od span, .pcz-lista a.nowy .pcz-temat { font-weight: 700; }
.pcz-lista a.nowy .pcz-od span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; margin-right: 6px; vertical-align: middle; }
.pcz-od { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.pcz-od span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcz-od time { color: var(--szary, #6b7280); font-size: 12px; white-space: nowrap; }
.pcz-temat { font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcz-skrot { font-size: 12.5px; color: var(--szary, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcz-tagi:not(:empty) { margin-top: 4px; }
.pcz-nag h2 { margin: 0 0 6px; font-size: 19px; }
.pcz-akcje { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.pcz-przyp { margin-bottom: 4px; }
.pcz-tekst { white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.55; background: #fafbfd; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.pcz-html { width: 100%; min-height: 300px; border: 1px solid var(--linia, #e5e7eb); border-radius: 10px; margin-top: 10px; background: #fff; }
@media (max-width: 959px) { .poczta.z-podgladem .pcz-lista { display: none; } .poczta:not(.z-podgladem) .pcz-podglad { display: none; } }

/* ---------- Wiedza biura ---------- */
.wiedza summary { cursor: pointer; list-style: none; }
.wiedza summary::-webkit-details-marker { display: none; }
.wiedza summary::before { content: '›'; display: inline-block; width: 16px; color: #6366f1; font-weight: 700; transition: transform .15s; }
.wiedza[open] summary::before { transform: rotate(90deg); }
.wiedza-tresc { margin-top: 10px; line-height: 1.6; color: #374151; }

/* =====================================================================
   WYGLĄD 2026 – nowoczesny motyw Alfy (nadpisuje wszystko powyżej)
   Granatowe menu, spokojne tło, wyraźne liczby, miękkie karty.
   ===================================================================== */
:root {
  --ink: #0b1437; --ink-2: #131d4a; --ink-3: #1c2860;
  --granat: #1f2a6b; --granat-2: #3a4566; --tekst: #0e1530; --szary: #5f6b85; --szary-2: #8d97ad;
  --niebieski: #2f3fb8; --niebieski-ciemny: #24318c; --niebieski-tlo: #eef0fb;
  --akcent: #d4282f; --akcent-tlo: #fdecec;
  --tlo: #f3f4f8; --linia: #e3e6ef; --linia-2: #eceef4;
  --promien: 16px;
  --cien: 0 1px 2px rgba(14,21,48,.04), 0 2px 8px rgba(14,21,48,.04);
  --cien-2: 0 2px 4px rgba(14,21,48,.04), 0 12px 32px rgba(14,21,48,.08);
}
body { background: var(--tlo); font-feature-settings: "cv11", "ss01", "ss03"; letter-spacing: -.003em; }
::selection { background: #c9cff5; }
a { color: var(--niebieski); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--niebieski); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #c9cee0 transparent; }

/* --- Menu boczne: granat --- */
@media (min-width: 960px) {
  .uklad { padding-left: 264px; }
  .menu-boczne { width: 264px; padding: 22px 14px 16px; border-right: 0;
    background: radial-gradient(120% 60% at 0% 0%, #22307a 0%, transparent 60%), linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); color: #c8cee6; }
  .menu-boczne .logo-m { padding: 2px 12px 26px; }
  .menu-boczne .logo-alfa text:first-child { fill: #fff; }
  .menu-boczne .logo-alfa text:nth-child(2) { fill: #ff5b61; }
  .menu-boczne .logo-pod { color: rgba(255,255,255,.62); font-size: 14px; letter-spacing: .12em; }
  .menu-boczne .sekcja-m { color: rgba(200,206,230,.45); font-size: 10.5px; letter-spacing: .14em; margin: 20px 12px 6px; }
  .menu-boczne a.poz { color: #c8cee6; font-weight: 500; font-size: 14.5px; padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s; }
  .menu-boczne a.poz svg { color: #7f89b3; width: 19px; height: 19px; transition: color .15s; }
  .menu-boczne a.poz:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
  .menu-boczne a.poz:hover svg { color: #fff; }
  .menu-boczne a.poz.akt { background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .menu-boczne a.poz.akt svg { color: #fff; }
  .menu-boczne a.poz.akt::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #ff5b61; }
  .menu-boczne .znaczek { background: #ff5b61; box-shadow: 0 0 0 3px rgba(255,91,97,.18); }
  .menu-boczne .znaczek.neutralny { background: rgba(255,255,255,.1); color: #dfe3f3; box-shadow: none; }
  .menu-boczne .ja { border-top: 1px solid rgba(255,255,255,.08); color: #c8cee6; margin-top: auto; padding: 14px 12px 6px; }
  .menu-boczne .ja b, .menu-boczne .ja strong { color: #fff; }
  .menu-boczne .ja a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.35); }
  .menu-boczne .stopka-pw, .menu-boczne .stopka-pw a { color: rgba(200,206,230,.5); font-weight: 500; font-size: 12px; }
  .menu-boczne::-webkit-scrollbar { width: 6px; } .menu-boczne::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }
  .gora .znak-m { display: none; }
  .tresc { max-width: 1280px; padding: 28px 36px 40px; }
}

/* --- Górny pasek --- */
.gora { background: rgba(243,244,248,.82); border-bottom: 1px solid transparent; min-height: 64px; padding-left: 20px; padding-right: 20px; transition: border-color .2s; }
@media (min-width: 960px) { .gora { padding: 12px 36px; } }
.gora h1 { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.gora .wstecz { background: #fff; border: 1px solid var(--linia); box-shadow: var(--cien); border-radius: 11px; }
.gora .wstecz:hover { background: var(--niebieski-tlo); }

/* --- Karty i kafle --- */
.karta { border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); padding: 20px; }
.karta > h2, .karta-nag h2 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.karta-nag { margin-bottom: 12px; }
.kpi, .kafel { position: relative; overflow: hidden; border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); padding: 18px 20px; gap: 6px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--niebieski), transparent 80%); opacity: .55; }
a.kpi:hover, a.kafel:hover { transform: translateY(-2px); box-shadow: var(--cien-2); border-color: #cfd5f3; text-decoration: none; }
.kpi-l { font-size: 12.5px; font-weight: 600; color: var(--szary); text-transform: uppercase; letter-spacing: .06em; }
.kpi-w { font-size: 28px; font-weight: 700; letter-spacing: -.035em; color: var(--tekst); line-height: 1.15; }
.kpi-m { font-size: 12.5px; }
.kpi.zle { background: #fff; border-color: #f7c6c8; } .kpi.zle::before { background: linear-gradient(90deg, var(--akcent), transparent 80%); opacity: .8; }
.kpi.zle .kpi-w { color: #b4232a; }
.powitanie { margin: 0 0 22px; }
.powitanie h2 { font-size: 28px; font-weight: 750; letter-spacing: -.035em; }
.powitanie > :first-child { color: var(--szary); font-size: 13.5px; }
@media (max-width: 959px) { .kpi { padding: 14px; } .kpi-l { font-size: 11px; letter-spacing: .04em; } .kpi-w { font-size: 21px; } .powitanie h2 { font-size: 24px; } }
.siatka-glowna, .siatka-2, .kpi-siatka { gap: 16px; }

/* --- Listy --- */
.wiersz { padding: 13px 4px; border-radius: 10px; }
a.wiersz:hover { background: #f7f8fc; text-decoration: none; }
.wiersz .tyt { font-weight: 600; }
.lista > li { border-top-color: var(--linia-2); }
.dzien-pudelko { background: var(--niebieski-tlo); color: var(--niebieski-ciemny); border-radius: 12px; }
.tab th { background: #f8f9fc; color: var(--szary); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.tab tr.klik:hover td { background: #f6f7fc; }
.pasek i { background: linear-gradient(90deg, var(--niebieski), #5b6cf0); }

/* --- Przyciski --- */
.btn { min-height: 42px; border-radius: 11px; font-weight: 600; font-size: 14.5px; border-color: var(--linia); box-shadow: 0 1px 2px rgba(14,21,48,.05); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: #cdd2e3; background: #fafbfe; text-decoration: none; }
.btn-gl, .btn-gl:hover { background: linear-gradient(180deg, #3646c6, #2a38a8); border-color: #24318c; color: #fff; box-shadow: 0 1px 2px rgba(36,49,140,.3), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-gl:hover { filter: brightness(1.07); }
.btn-ciemny, .btn-ciemny:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-ok, .btn-ok:hover { background: #12a15f; border-color: #0f8f54; color: #fff; }
.btn-maly { min-height: 34px; border-radius: 9px; font-size: 13.5px; }
.gora .akcje .btn { min-height: 38px; padding: 7px 13px; font-size: 13.5px; }
.ikona-btn { border-radius: 10px; }

/* --- Formularze --- */
.pole input, .pole select, .pole textarea, .wejscie { min-height: 44px; border-color: #d6dae6; border-radius: 11px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.pole input:hover, .pole select:hover, .pole textarea:hover { border-color: #bfc5d8; }
.pole input:focus, .pole select:focus, .pole textarea:focus, .wejscie:focus { border-color: var(--niebieski); box-shadow: 0 0 0 4px rgba(47,63,184,.12); }
.pole > span, .etykieta { font-weight: 600; font-size: 13.5px; color: var(--granat-2); }

/* --- Zakładki, filtry, statusy --- */
.zakladki { gap: 2px; border-bottom: 0; background: #e8eaf2; padding: 4px; border-radius: 12px; display: inline-flex; max-width: 100%; margin-bottom: 20px; }
.zakladki a { border: 0; margin: 0; padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--szary); }
.zakladki a:hover { color: var(--tekst); text-decoration: none; }
.zakladki a.akt { background: #fff; color: var(--tekst); box-shadow: 0 1px 3px rgba(14,21,48,.1); }
.filtry button.akt { background: var(--ink-2); border-color: var(--ink-2); }
.chips { border-radius: 11px; } .chips button.on { background: var(--ink-2); color: #fff; }
.pill { font-weight: 600; padding: 3px 10px; }
.info-box { border-radius: 12px; }
.okno { border-radius: 22px 22px 0 0; box-shadow: 0 30px 80px rgba(11,20,55,.3); }
@media (min-width: 640px) { .okno { border-radius: 20px; padding: 26px; } }
.okno-tlo { background: rgba(11,20,55,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.toast { background: var(--ink-2); border-radius: 12px; box-shadow: var(--cien-2); }
@media (min-width: 960px) { .toast { left: calc(50% + 132px); } }
.av { box-shadow: 0 0 0 2px #fff; }

/* --- Telefon: dolne menu --- */
.nav-dol { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-dol a.akt { color: var(--niebieski-ciemny); }
.nav-dol a.akt::before { background: var(--akcent); }

/* --- Logowanie: dwie kolumny (granat z hasłem + formularz) --- */
.logowanie { background: var(--tlo); padding: 24px 16px; }
.logowanie .karta { padding: 28px; border-radius: 20px; box-shadow: var(--cien-2); }
.logowanie .karta h2 { font-size: 22px; letter-spacing: -.03em; }
.logowanie .btn-gl { min-height: 48px; font-size: 15.5px; }
@media (min-width: 960px) {
  .logowanie { padding: 0 0 0 46%; align-items: center; background: #fff; position: relative; }
  .logowanie::before { content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 46%;
    background: radial-gradient(80% 60% at 20% 15%, rgba(91,108,240,.45), transparent 60%), radial-gradient(70% 50% at 90% 100%, rgba(212,40,47,.35), transparent 60%), linear-gradient(160deg, #18235c, #0b1437 70%); }
  .logowanie::after { content: "Księgowość, kadry\Ai klienci biura\Aw jednym miejscu."; white-space: pre-line; position: fixed; left: 7%; bottom: 10%; width: 34%; color: #fff; font-size: 36px; font-weight: 750; letter-spacing: -.035em; line-height: 1.12; padding-top: 22px;
    background: linear-gradient(90deg, #ff5b61 0 44px, transparent 44px) top left / 100% 3px no-repeat; }
  .logowanie .pudlo::before { content: "α"; position: fixed; left: 5%; top: 4%; font: italic 700 300px/1 "Times New Roman", Georgia, serif; color: rgba(255,255,255,.05); pointer-events: none; }
  .logowanie .karta { box-shadow: none; border: 0; padding: 8px 0; }
  .logowanie .pudlo { max-width: 400px; }
}
