/* Moduły sklepu: narzędzia, wiedza, wypożyczalnia, grafik, plan, tablica ogłoszeń, ranking braków.
 * Korzysta ze zmiennych i klas z tabela.css (karta, znaczek, etykieta, segment…). */

.pasek-nav .dropdown > a { display: inline-flex; align-items: center; gap: .4rem; color: var(--szary); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .8rem; border-radius: 9px; }
.pasek-nav .dropdown > a:hover { background: #f0f3f7; color: var(--tekst); }
.pasek-nav .dropdown > a.aktywna { background: var(--marka-jasna); color: var(--marka); font-weight: 600; }
@media (max-width: 1399.98px) { .pasek-nav a span { display: none; } .pasek-nav a, .pasek-nav .dropdown > a { padding: .45rem .6rem; } }
@media (max-width: 575.98px) { .pasek-nav { gap: 0; margin-left: 0; } .pasek-nav a, .pasek-nav .dropdown > a { padding: .45rem .35rem; } .ukryj-telefon { display: none !important; } .pasek .container-xl { gap: .5rem !important; } .pasek-logo img { height: 32px; width: auto; } .pasek .ms-auto { gap: .35rem !important; } }

/* ---------------------------------------------------------------- kalkulatory */
.kalk-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.kalk h2, .tabela-tech h2 { font-size: 1rem; font-weight: 650; margin: 0 0 .85rem; display: flex; align-items: center; gap: .5rem; }
.kalk h2 i, .tabela-tech h2 i { color: var(--marka); }
.kalk-szeroki { grid-column: 1 / -1; }
.kalk-pola { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem .75rem; }
.kalk-pola label, .kalk-rabat { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 500; color: var(--szary); }
/* pole zawsze na dole komórki – równe pola także gdy opis zawija się do 2 linii albo nie ma jednostki */
.kalk-pola label { justify-content: space-between; }
.kalk-pola .form-control, .kalk-pola .form-select { height: calc(1.5em + .75rem + 2px); }
.kalk-pola .jedn, .kalk-rabat .jedn { font-weight: 400; color: #98a2b3; }
.kalk-pola label.kalk-check { flex-direction: row; align-items: center; gap: .45rem; font-size: .9rem; color: var(--tekst); align-self: end; padding-bottom: .5rem; }
.kalk-wynik:empty { display: none; }
.kalk-wynik { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; background: var(--marka-jasna); }
.kalk-glowny { font-size: 1.35rem; font-weight: 700; color: var(--marka); line-height: 1.25; }
.kalk-opis { font-size: .88rem; color: #344054; margin-top: .2rem; }
.kalk-szczegoly { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; margin: .5rem 0 0; font-size: .88rem; }
.kalk-szczegoly dt { font-weight: 500; color: var(--szary); }
.kalk-szczegoly dd { margin: 0; font-weight: 600; }
.kalk-uwaga { font-size: .78rem; color: var(--szary); margin: .75rem 0 0; }
.kalk-lista .kol-l { width: 7.5rem; }
.kalk-lista td { padding: .25rem; }
.kalk-rabat { flex-direction: row; align-items: center; gap: .4rem; }
.kalk-rabat input { width: 5rem; }
.tabela-tech table { font-size: .86rem; margin: 0; }
.tabela-tech th { font-weight: 600; color: var(--szary); font-size: .74rem; text-transform: uppercase; letter-spacing: .02em; }
.tabela-tech tbody tr:hover { background: #f6f8fa; }
@media print {
    .pasek, .naglowek-strony, .zakladki, .toast-container, .kalk:not(.kalk-szeroki), .tab-pane:not(.active), .tablica-ogloszenia { display: none !important; }
    .kalk-lista input { border: 0; padding: 0; }
    .kalk-lista button, [data-dodaj-pozycje] { display: none; }
}

/* ---------------------------------------------------------------- szukaj towaru */
.przyciski-szukania { display: flex; flex-direction: column; gap: .6rem; }
.szukaj-towaru { margin-bottom: 1rem; }
.grupa-szukania { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.grupa-szukania-tytul { font-size: .72rem; font-weight: 600; color: var(--szary); text-transform: uppercase; letter-spacing: .03em; min-width: 7.5rem; }
.btn-szukaj { --k: #04395b; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; font-size: .86rem; font-weight: 500; text-decoration: none;
    color: color-mix(in srgb, var(--k) 85%, black); background: color-mix(in srgb, var(--k) 9%, white); border: 1px solid color-mix(in srgb, var(--k) 25%, white); }
.btn-szukaj:hover { background: color-mix(in srgb, var(--k) 16%, white); color: color-mix(in srgb, var(--k) 95%, black); }
.szukaj-we-wpisie { padding: .75rem; border-radius: 10px; background: #f6f8fa; }
.szukaj-we-wpisie .grupa-szukania-tytul { min-width: 6.5rem; }
.adres-zrodla { max-width: 22rem; display: inline-block; vertical-align: bottom; font-size: .8rem; }
.dropdown-menu .przyciski-szukania { min-width: 18rem; }

/* ---------------------------------------------------------------- wiedza */
.lista-wiedzy { display: flex; flex-direction: column; gap: .5rem; }
.artykul { border: 1px solid var(--ramka); border-radius: 10px; background: #fff; }
.artykul summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; cursor: pointer; font-weight: 600; }
.artykul summary::-webkit-details-marker { display: none; }
.artykul summary > i { color: var(--szary); transition: transform .15s; }
.artykul[open] summary > i { transform: rotate(90deg); }
.artykul[open] summary { border-bottom: 1px solid var(--ramka); }
.artykul .tagi { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.artykul-tresc { padding: .8rem .9rem; line-height: 1.55; }
.artykul-stopka { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .9rem .7rem; }
.tabela-modulu th { font-size: .74rem; text-transform: uppercase; letter-spacing: .02em; color: var(--szary); font-weight: 600; }
.miejsce { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: #fef6ee; color: #b93815; font-weight: 600; font-size: .88rem; }
.siatka-zestawow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.zestaw { --k: #04395b; border: 1px solid var(--ramka); border-top: 4px solid var(--k); border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.zestaw header { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.zestaw h3 { font-size: 1rem; font-weight: 650; margin: 0; }
.zestaw h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--szary); margin: .7rem 0 .25rem; font-weight: 600; }
.lista-kontrolna { list-style: none; padding: 0; margin: 0; }
.lista-kontrolna li label { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; font-size: .92rem; cursor: pointer; }
.lista-kontrolna label:has(input:checked) { color: var(--szary); text-decoration: line-through; }
.zestaw-uwagi { font-size: .84rem; color: #344054; background: #f6f8fa; border-radius: 8px; padding: .5rem .65rem; margin: .7rem 0 0; }
.cena-uslugi { font-weight: 700; color: var(--marka); white-space: nowrap; margin-left: auto; padding: 0 .5rem; }
[data-szukaj][hidden] { display: none !important; }

/* ---------------------------------------------------------------- wypożyczalnia */
.lista-wypozyczen { display: flex; flex-direction: column; gap: .5rem; }
.wypozyczenie { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--ramka); border-left: 4px solid #1570ef; background: #fff; }
.karta > .wypozyczenie + .wypozyczenie { margin-top: .4rem; }
.wypozyczenie.stan-po_terminie { border-left-color: #d92d20; background: #fffbfa; }
.wypozyczenie.stan-rezerwacja { border-left-color: #7a5af8; }
.wypozyczenie.stan-zwrocone { border-left-color: #98a2b3; }
.kalendarz-wyp-przewijanie { overflow-x: auto; }
.kalendarz-wyp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .8rem; }
.kalendarz-wyp th, .kalendarz-wyp td { border-bottom: 1px solid var(--ramka); }
.kalendarz-wyp thead th { text-align: center; font-weight: 600; color: var(--szary); padding: .3rem 0; min-width: 2rem; line-height: 1.1; }
.kalendarz-wyp thead th span { display: block; font-size: .66rem; font-weight: 500; text-transform: uppercase; }
.kalendarz-wyp .kw-sprzet { text-align: left; padding: .45rem .6rem .45rem 0; min-width: 11rem; position: sticky; left: 0; background: #fff; z-index: 2; font-weight: 600; }
.kalendarz-wyp .kw-weekend { background: #f8f9fb; }
.kalendarz-wyp thead .kw-dzis { color: var(--marka-czerwien); }
.kalendarz-wyp td { height: 2.6rem; cursor: pointer; padding: 0; position: relative; }
.kw-wolne:hover { background: var(--marka-jasna); }
.kw-wolne.kw-dzis { box-shadow: inset 2px 0 0 var(--marka-czerwien); }
.kw-zajete { background: #d1e9ff; }
.kw-zajete.stan-rezerwacja { background: #e9e3ff; }
.kw-zajete.stan-po_terminie, .kw-zajete.kw-po { background: #fecdca; }
.kw-zajete.kw-start { box-shadow: inset 3px 0 0 rgba(0, 0, 0, .22); }
.kw-zajete span { position: absolute; left: .35rem; top: 50%; transform: translateY(-50%); white-space: nowrap; font-weight: 600; font-size: .74rem; color: #102a43; z-index: 1; pointer-events: none; }
.kw-zajete:hover { filter: brightness(.95); }
.kalendarz-wyp-legenda { display: flex; gap: 1rem; flex-wrap: wrap; }
.kw-probka { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; vertical-align: -2px; margin-right: .25rem; background: #d1e9ff; }
.kw-probka.stan-rezerwacja { background: #e9e3ff; }
.kw-probka.stan-po_terminie { background: #fecdca; }

/* ---------------------------------------------------------------- grafik */
.blokada { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; font-size: .88rem; }
.blokada-otwarta { background: #ecfdf3; color: #067647; }
.grafik-miesiac { font-size: 1.15rem; min-width: 11rem; text-align: center; }
.grafik-siatka { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.grafik-naglowek { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--szary); padding: .25rem 0; }
.grafik-dzien { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; min-height: 5.6rem; padding: .35rem; border: 1px solid var(--ramka); border-radius: 9px; background: #fff; text-align: left; font: inherit; color: inherit; }
.grafik-dzien:hover { border-color: var(--marka); box-shadow: 0 0 0 3px var(--marka-jasna); }
.grafik-dzien.weekend { background: #f8f9fb; }
.grafik-dzien.inny { opacity: .45; }
.grafik-dzien.dzis { border-color: var(--marka-czerwien); box-shadow: inset 0 0 0 1px var(--marka-czerwien); }
.grafik-nr { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .85rem; }
.grafik-dzien.dzis .grafik-nr { color: var(--marka-czerwien); }
.grafik-kom { font-size: .7rem; font-weight: 600; color: #1570ef; }
.grafik-osoba { --k: #64707d; display: flex; align-items: center; justify-content: space-between; gap: .2rem; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: .1rem .35rem;
    color: color-mix(in srgb, var(--k) 88%, black); background: color-mix(in srgb, var(--k) 14%, white); }
.grafik-legenda { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 575.98px) { .grafik-dzien { min-height: 3.8rem; padding: .2rem; } .grafik-osoba { font-size: .62rem; padding: 0 .2rem; } }
.lista-prosta { list-style: none; padding: 0; margin: 0; }
.lista-prosta li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #f0f2f5; font-size: .9rem; }
.lista-prosta li:last-child { border-bottom: 0; }
.lista-historii { list-style: none; padding: 0; margin: 0; font-size: .86rem; max-height: 22rem; overflow-y: auto; }
.lista-historii li { padding: .3rem 0; border-bottom: 1px solid #f0f2f5; display: flex; gap: .5rem; flex-wrap: wrap; }
.pole-pin { letter-spacing: .4em; font-weight: 700; text-align: center; }

/* ---------------------------------------------------------------- plan: terminy i sezony */
.lista-terminow { display: flex; flex-direction: column; gap: .5rem; }
.termin-sklepu { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--ramka); border-radius: 10px; background: #fff; }
.termin-sklepu .znaczek { --k: #04395b; }
.termin-sklepu.stan-po { border-left: 4px solid #d92d20; background: #fffbfa; }
.termin-sklepu.stan-blisko, .termin-sklepu.stan-brak { border-left: 4px solid #dc6803; }
.termin-sklepu.nieaktywna { opacity: .55; }
.etykieta.etykieta-trwa { background: #ecfdf3; color: #067647; }
.etykieta.etykieta-zamow { background: #fef6ee; color: #b93815; }
.sezon .opis-pozycji { min-width: 0; }
.sezon-towary { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.sezon-towary span { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #f2f4f7; color: #344054; }
.sezon-rok-temu { display: block; font-size: .8rem; color: #344054; margin-top: .35rem; }
.sezon-rok-temu i { color: #dc6803; }
.os-roku-miesiace { display: grid; grid-template-columns: repeat(12, 1fr); margin-left: 13rem; font-size: .7rem; color: var(--szary); text-transform: uppercase; border-bottom: 1px solid var(--ramka); padding-bottom: .2rem; }
.os-roku-wiersz { display: flex; align-items: center; height: 1.7rem; }
.os-roku-nazwa { width: 13rem; flex: none; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .5rem; }
.os-roku-tor { position: relative; flex: 1; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), #eef1f5 calc(100% / 12 - 1px) calc(100% / 12)); }
.os-roku-pasek { position: absolute; top: .4rem; bottom: .4rem; border-radius: 6px; background: color-mix(in srgb, var(--k) 70%, white); }
.os-roku-dzis { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--marka-czerwien); }
@media (max-width: 767.98px) { .os-roku-miesiace { margin-left: 6rem; font-size: .58rem; } .os-roku-nazwa { width: 6rem; font-size: .7rem; } }

/* ---------------------------------------------------------------- ogłoszenia nad tabelą (bez nagłówka – jedna linia na ogłoszenie) */
.tablica-ogloszenia { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.ogloszenie { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; border-radius: 10px; padding: .45rem .75rem; background: #eff8ff; border-left: 4px solid #1570ef; }
.ogloszenie.kolor-wazne { background: #fef3f2; border-left-color: #d92d20; }
.ogloszenie.kolor-ok { background: #ecfdf3; border-left-color: #17b26a; }
.ogloszenie-ikona { color: #1570ef; }
.kolor-wazne .ogloszenie-ikona { color: #d92d20; }
.kolor-ok .ogloszenie-ikona { color: #17b26a; }
.ogloszenie-tresc { font-weight: 500; flex: 1 1 20rem; min-width: 0; }
.ogloszenie-stopka { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .76rem; margin-left: auto; }
/* menu „Przeczytałem” nad przyklejonym paskiem wyszukiwania (z-index 1010), pod górnym paskiem (1020) */
.tablica-ogloszenia .dropdown-menu { z-index: 1015; }
.przeczytal { --k: #64707d; display: inline-flex; align-items: center; gap: .1rem; font-weight: 700; font-size: .7rem; border-radius: 6px; padding: .05rem .35rem;
    color: color-mix(in srgb, var(--k) 88%, black); background: color-mix(in srgb, var(--k) 15%, white); }
.btn-przeczytal { border: 1px solid var(--ramka); background: #fff; border-radius: 10px; }
.btn-przeczytal .mini-awatar { color: var(--kolor-osoby); background: color-mix(in srgb, var(--kolor-osoby) 13%, white); }
.btn-przeczytal:hover .mini-awatar { background: var(--kolor-osoby); color: #fff; }

/* dzwonek: przypomnienia sklepu (żółta kropka/liczba – obok czerwonej liczby wiadomości ze strony) */
.dzwonek-przyp { position: absolute; bottom: -3px; right: -5px; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px; background: #f79009; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.dzwonek-przyp-info { min-width: .75rem; width: .75rem; height: .75rem; padding: 0; background: #98a2b3; }
.dzwonek-menu .dzwonek-pozycja > i { color: var(--szary); }
.dzwonek-menu .dzwonek-pilne { color: #b42318; font-weight: 600; }
.dzwonek-menu .dzwonek-pilne > i { color: #d92d20; }
.dzwonek-menu .dzwonek-uwaga > i { color: #dc6803; }
.dzwonek-menu .dzwonek-sezon > i { color: #079455; }

/* święta */
.grafik-dzien.swieto { background: #fef3f2; border-color: #fecdca; }
.grafik-swieto { font-size: .68rem; font-weight: 600; color: #b42318; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.probka-swieta { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; background: #fef3f2; border: 1px solid #fecdca; vertical-align: -2px; }
.etykieta.etykieta-swieto { background: #fef3f2; color: #b42318; font-size: .75rem; vertical-align: middle; }
.kalendarz-wyp thead .kw-swieto { color: #b42318; background: #fef3f2; }

/* ---------------------------------------------------------------- ranking braków */
.tabela-rankingu th { font-size: .74rem; text-transform: uppercase; letter-spacing: .02em; color: var(--szary); font-weight: 600; }
.tabela-rankingu .kol-slupek { width: 40%; white-space: nowrap; }
.tabela-rankingu .kol-slupek strong { margin-left: .5rem; }
.slupek-poziom { display: inline-block; width: calc(100% - 3.5rem); height: .6rem; border-radius: 999px; background: #f2f4f7; vertical-align: middle; overflow: hidden; }
.slupek-poziom span { display: block; height: 100%; border-radius: 999px; background: var(--marka); }

/* kropki rodzajów nieobecności: urlop / wolne / L4 / inne; kilka naraz = wycinki koła (conic-gradient) */
.kropka-rodzaju { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: -1px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(16, 24, 40, .12); }
.grafik-osoba .kropka-rodzaju { width: .62rem; height: .62rem; }
.dzwonek-menu .dzwonek-pozycja .kropka-rodzaju { margin: .3rem .1rem 0 .15rem; }
.dzwonek-nieob { position: absolute; bottom: -2px; left: -3px; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff; box-sizing: content-box; }

/* Dostosuj menu */
.lista-menu { list-style: none; padding: .35rem; margin: 0; min-height: 3.5rem; border: 1px dashed var(--ramka); border-radius: 12px; display: flex; flex-direction: column; gap: .35rem; }
.pozycja-menu { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; background: #fff; border: 1px solid var(--ramka); border-radius: 10px; transition: background .4s; }
.pozycja-menu.przesunieta { background: var(--marka-jasna); }
.ikona-menu { color: var(--marka); font-size: 1.05rem; }
.akcje-menu { display: flex; gap: .15rem; }
.lista-menu-wiecej { background: #f8f9fb; }
.lista-menu-wiecej .tylko-glowne { display: none; }
.lista-menu:empty::after { content: "pusto"; color: #98a2b3; font-size: .85rem; padding: .6rem; }

/* responsywność: szerokie tabele techniczne przewijają się w poziomie zamiast się ucinać */
.tabela-tech { overflow-x: auto; }
.tabela-tech table { min-width: 100%; }
.tabela-tech td { white-space: nowrap; }
.tabela-tech td:last-child { white-space: normal; }
.menu-edycja > .row { --bs-gutter-x: 1rem; }
@media (max-width: 575.98px) { .kalk-pola { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grupa-szukania-tytul { min-width: 100%; } .karta { padding-left: .85rem; padding-right: .85rem; } }
