/* Panel Rogatki. Kolory z wariantu wyglądu (theme-N.css), ten sam co strona. */
@import url('/theme-1.css');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
a { color: var(--c-primary); }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.maly { font-size: 13px; color: var(--c-muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* pasek trybu (demo / test) */
.pasek-trybu { background: var(--c-accent); color: var(--c-accent-ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.pasek-trybu a { color: inherit; margin-left: 10px; }
.pasek-test { background: #D9E6F5; color: var(--c-primary); }

/* górny pasek */
.gora { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--c-text); font-weight: 700; font-size: 18px; }
.logo b { color: var(--c-primary); margin-left: 4px; font-weight: 700; }
.logo.duze { font-size: 24px; justify-content: center; margin-bottom: 18px; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a { text-decoration: none; color: var(--c-muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.menu a:hover { background: var(--c-soft); color: var(--c-text); }
.menu a.aktywne { background: var(--c-primary); color: var(--c-primary-ink); }
.kto { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--c-muted); }
.firma-nazwa { background: var(--c-soft); color: var(--c-text); padding: 4px 10px; border-radius: 999px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wyloguj { color: var(--c-muted); }
.menu-przycisk { display: none; background: none; border: 1px solid var(--c-line); border-radius: 8px; padding: 6px 10px; font-size: 18px; margin-left: auto; cursor: pointer; }

.tresc { max-width: 1240px; margin: 0 auto; padding: 24px; }
.dol { text-align: center; color: var(--c-muted); font-size: 12px; padding: 30px 12px; }

/* karty, siatki */
.karta { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(27,47,78,.04); }
.siatka { display: grid; gap: 16px; }
.siatka-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.siatka-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.siatka-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.naglowek-strony { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.naglowek-strony p { margin: 2px 0 0; color: var(--c-muted); }
.akcje { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* liczniki na pulpicie */
.licznik { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--c-text); display: block; }
.licznik:hover { border-color: var(--c-primary); }
.licznik .liczba { font-size: 30px; font-weight: 800; line-height: 1.1; }
.licznik .opis { color: var(--c-muted); font-size: 13px; font-weight: 600; }
.licznik.wazny { background: #FFF6E6; border-color: var(--c-accent); }

/* przyciski */
.przycisk { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--c-primary); background: var(--c-surface); color: var(--c-primary); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; }
.przycisk:hover { background: var(--c-soft); }
.przycisk-glowny { background: var(--c-primary); color: var(--c-primary-ink); }
.przycisk-glowny:hover { background: #24406A; }
.przycisk-akcent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.przycisk-akcent:hover { background: #DD9425; }
.przycisk-maly { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.przycisk-tekst { border: none; background: none; padding: 4px 6px; color: var(--c-muted); }
.przycisk-niebezp { border-color: #B33A3A; color: #B33A3A; }
.przycisk[disabled] { opacity: .5; cursor: not-allowed; }
.szeroki { width: 100%; }

/* formularze */
label { display: block; font-size: 13px; font-weight: 600; color: var(--c-muted); margin-bottom: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1.5px solid var(--c-line); border-radius: 9px; background: #fff; color: var(--c-text); font: inherit; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(27,47,78,.12); }
textarea { min-height: 80px; resize: vertical; }
.pole-uzupelnij input, .pole-uzupelnij select, input.uzupelnij { border-color: var(--c-accent); background: #FFF8EA; }
.pole-rozjazd input { border-color: #C2410C; background: #FFF1EA; }
.pole-zgodne input { border-color: #9FD3B9; }
.pole-podpowiedz { font-size: 12px; font-weight: 500; margin-top: 3px; }
.zgodne { color: var(--c-ok); }
.rozjazd { color: #C2410C; }
fieldset { border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; color: var(--c-text); }
.wiersz-pol { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-text); }
.checkbox input { width: auto; margin: 0; }

/* tabele */
.tabela-owijka { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--c-muted); padding: 8px 10px; border-bottom: 2px solid var(--c-line); white-space: nowrap; }
.tabela td { padding: 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.tabela tr.klikalny { cursor: pointer; }
.tabela tr.klikalny:hover td { background: #FDF9F1; }
.tabela .liczba { text-align: right; font-variant-numeric: tabular-nums; }
.pusto { text-align: center; color: var(--c-muted); padding: 34px 10px; }

/* znaczniki statusu */
.znacznik { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.znacznik-szary { background: #ECE9E2; color: #5B6170; }
.znacznik-zolty { background: #FFF0CF; color: #8A5A00; }
.znacznik-niebieski { background: #E2EAF6; color: var(--c-primary); }
.znacznik-zielony { background: var(--c-ok-soft); color: var(--c-ok); }
.znacznik-pomaranczowy { background: #FFE5D3; color: #A6450B; }
.znacznik-czerwony { background: #FBE1E1; color: #A12828; }
.weryf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.weryf-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.weryf-uwaga { background: #FFE5D3; color: #A6450B; }

/* komunikaty */
.komunikat { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.komunikat-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.komunikat-blad { background: #FBE1E1; color: #A12828; }
.komunikat-info { background: #E2EAF6; color: var(--c-primary); }
.komunikat-uwaga { background: #FFF0CF; color: #8A5A00; }

/* podpowiedzi (autocomplete) */
.podpowiadacz { position: relative; }
.lista-podpowiedzi { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border: 1.5px solid var(--c-primary); border-radius: 10px; margin-top: 4px; max-height: 300px; overflow: auto; box-shadow: 0 10px 30px rgba(27,47,78,.15); }
.lista-podpowiedzi div { padding: 8px 12px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--c-text); border-bottom: 1px solid #F1ECE2; }
.lista-podpowiedzi div small { display: block; color: var(--c-muted); font-size: 12px; }
.lista-podpowiedzi div.wybrany, .lista-podpowiedzi div:hover { background: var(--c-soft); }

/* wgrywanie */
.strefa-zrzutu { border: 2.5px dashed var(--c-line); border-radius: 16px; padding: 40px 20px; text-align: center; background: var(--c-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.strefa-zrzutu.nad { border-color: var(--c-primary); background: #F4F7FB; }
.strefa-zrzutu .ikona { font-size: 40px; }

/* oś czasu komunikatów */
.os { list-style: none; margin: 0; padding: 0; }
.os li { position: relative; padding: 0 0 16px 26px; }
.os li::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--c-line); }
.os li:last-child::before { display: none; }
.os li::after { content: ''; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); }
.os li.os-ok::after { border-color: var(--c-ok); background: var(--c-ok); }
.os li.os-uwaga::after { border-color: var(--c-accent); }
.os .kiedy { font-size: 12px; color: var(--c-muted); }

/* weryfikacja dwiema metodami */
.metody { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.metoda { border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; }
.metoda strong { display: block; }
.lista-sprawdzen { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.lista-sprawdzen li { padding: 5px 0; border-bottom: 1px dashed var(--c-line); display: flex; justify-content: space-between; gap: 10px; }

pre.xml { background: #12203A; color: #E7EEF9; padding: 14px; border-radius: 10px; overflow: auto; font-size: 12px; max-height: 480px; }
details > summary { cursor: pointer; font-weight: 700; }

/* logowanie */
.strona-logowania { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--c-hero-from), var(--c-hero-to)); }
.logowanie { width: 100%; max-width: 400px; padding: 20px; }
.logowanie .karta { padding: 28px; }
.logowanie h1 { margin-bottom: 18px; }

/* duży ekran demo startowy */
.demo-witaj { background: linear-gradient(135deg, var(--c-primary), #2B4A75); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.demo-witaj h2 { color: #fff; }
.demo-witaj p { margin: 0 0 12px; opacity: .92; }
.demo-witaj .przycisk { border-color: #fff; }

@media (max-width: 900px) {
  .siatka-3, .siatka-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .siatka-2 { grid-template-columns: 1fr; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 8px; }
  body.menu-otwarte .menu { display: flex; }
  .menu-przycisk { display: block; }
  .kto .kto-imie { display: none; }
  .gora { flex-wrap: wrap; position: sticky; }
  .tresc { padding: 16px 12px; }
  .metody { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .siatka-3, .siatka-4 { grid-template-columns: 1fr 1fr; }
  .kto .firma-nazwa { display: none; }
  h1 { font-size: 21px; }
}
