/* Motyw paneli DNK w barwach Zabezpieczono: żółć #f3d21c i grafit. */
:root {
  --accent: #d4b000; --accent-dark: #a88b00; --accent-soft: #fdf6d0; --amber: #d4b000;
  --side: #17181b; --side-2: #2b2d31; --side-hover: #24262a; --side-line: #2f3135; --side-muted: #a2a4a9;
}
.pill.red { background: var(--accent-soft); border-color: #f3e39a; color: #7a6500; }
.sidebar .logo.sf-znak { background: #fff; padding: 3px; overflow: hidden; }
.sf-znak img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-login-logo { text-align: center; margin-bottom: 22px; }
.sf-login-logo img { width: 240px; max-width: 100%; }
.sf-login-logo p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.grid2 > .box, .grid3 > .box { margin-bottom: 0; }
.grid2, .grid3 { margin-bottom: 20px; }
.box h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.box h2 a { font-size: 13px; }
.sf-slupki { display: flex; align-items: stretch; gap: 8px; height: 170px; }
.sf-slupek { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.sf-slupek i { display: block; width: 100%; max-width: 44px; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 2px; flex-shrink: 0; }
.sf-slupek b { font-size: 13px; margin-bottom: 4px; }
.sf-slupek span { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.sf-lista { list-style: none; padding: 0; margin: 0; }
.sf-lista li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; line-height: 1.45; }
.sf-lista li:last-child { border-bottom: 0; }
.sf-lista small { color: var(--muted); font-size: 12.5px; }
.sf-lista li > span:not(.pill) { flex-basis: 100%; }
.sf-szukaj { display: flex; gap: 8px; }
.sf-szukaj input { padding: 9px 12px; border: 1px solid #e0e0e0; border-radius: 9px; font: inherit; font-size: 14px; min-width: 260px; }
.data-table select, .sf-zad select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; max-width: 100%; }
.sf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sf-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.sf-form input, .sf-form select, .sf-form textarea { font: inherit; font-weight: 400; font-size: 14px; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 9px; width: 100%; background: #fff; box-sizing: border-box; }
.sf-form input:focus, .sf-form select:focus, .sf-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.sf-form .sf-cala { grid-column: 1 / -1; }
.sf-form .btn { justify-self: start; }
.sf-kolumny { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 20px; }
.sf-kol { background: #eaeaea; border-radius: 14px; padding: 12px; }
.sf-kol h2 { font-size: 14px; font-weight: 700; margin: 2px 4px 12px; display: flex; justify-content: space-between; }
.sf-kol h2 b { background: #fff; border-radius: 20px; padding: 0 9px; font-size: 12.5px; }
.sf-zad { background: #fff; border-radius: 11px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.sf-zad-g { display: flex; gap: 5px; flex-wrap: wrap; }
.sf-zad .pill { font-size: 11.5px; padding: 2px 7px; }
.sf-zad p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sf-zad small { color: var(--muted); font-size: 12px; }
.sf-reki { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sf-rek { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-size: 13.5px; }
.sf-rek img, .sf-rek-brak { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #efefef; display: block; }
.sf-rek > div:last-child { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sf-rek small { color: var(--muted); font-size: 12.5px; }
.sf-akapit { margin: 14px 0 0; font-size: 15px; line-height: 1.55; max-width: 780px; }
.sf-etapy { display: flex; flex-direction: column; }
.sf-etap { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #f0f0f0; }
.sf-etap:last-child { border-bottom: 0; }
.sf-etap > b { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
.sf-etap p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.sf-etap .pill { white-space: nowrap; }
.sf-brak { color: var(--muted); font-size: 12.5px; font-weight: 400; text-align: right; flex: 0 0 42%; overflow-wrap: normal; word-break: normal; }
.list li { gap: 10px; }
.list li > span:first-child { min-width: 0; flex: 1 1 0; white-space: normal; }
.list li > strong { flex-shrink: 0; }
.list li:has(.sf-brak) > span:first-child { flex: 1 1 0; min-width: 0; }
.sf-razem { border-top: 2px solid var(--line); font-weight: 700; }
.sf-wiz-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sf-raport tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.sf-szukaj .btn { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sf-leady { font-size: 13.5px; }
.sf-leady th, .sf-leady td { padding: 11px 7px; }
.sf-leady select { min-width: 128px; }
.sf-leady .sf-l-gps { min-width: 140px; }
.sf-leady td:nth-child(3) { max-width: 190px; overflow-wrap: anywhere; }
.table-wrap:has(.sf-leady) { border: 0; }
.table-wrap { overflow-x: auto; }
@media (max-width: 1200px) { .sf-kolumny { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .main { padding: 20px 16px 40px; }
  .grid2, .grid3, .sf-kolumny, .sf-form { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi .v { font-size: 22px; }
  .sf-szukaj, .sf-szukaj input { width: 100%; min-width: 0; }
  .sf-etap { grid-template-columns: 34px 1fr; }
  .sf-etap .pill { grid-column: 2; justify-self: start; }
  .sf-slupki { gap: 3px; height: 140px; }
  .sf-slupek span { font-size: 10px; }
  .sf-slupek:nth-child(even) span { visibility: hidden; }
  .sf-reki { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sf-leady, .sf-leady tbody, .sf-leady tr, .sf-leady td { display: block; }
  .sf-leady { border: 0 !important; box-shadow: none !important; }
  .sf-leady thead { display: none; }
  .sf-leady tr { padding: 14px 0; border-bottom: 1px solid #ececec; }
  .sf-leady tr:last-child { border-bottom: 0; }
  .sf-leady td { padding: 3px 0; border: 0; white-space: normal; min-width: 0 !important; }
  .sf-leady td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .sf-leady .sf-l-data { color: var(--muted); font-size: 12.5px; }
  .sf-leady td:empty { display: none; }
  .sf-leady select { width: 100%; margin-top: 6px; padding: 10px; font-size: 14px; }
}

.sf-do-rozmowy { margin: 0 0 12px; }

.sidebar .logo.sf-znak { background: #000; padding: 2px; }
.sidebar nav a.active { background: #f3d21c !important; color: #111 !important; }
.sidebar nav a.active svg { stroke: #111 !important; }
.login-wrap { background: #17181b; }
.sf-login-logo { background:#17181b; padding:18px; border-radius:12px; }
.sf-login-logo p { color:#d0d0d0; }
.zp-wykres { position:relative; height:280px; }
.zp-wykres.niski { height:220px; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.up { color:#16803c; font-weight:700 } .down { color:#c0262d; font-weight:700 }
.zp-pasek { display:flex; height:14px; border-radius:7px; overflow:hidden; background:#eee; margin:6px 0 2px }
.zp-pasek i { display:block; height:100% }
.zp-lejek { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px }
.zp-lejek div { background:#fff8d6; border:1px solid #f3e39a; border-radius:12px; padding:14px }
.zp-lejek b { display:block; font-size:26px } .zp-lejek small { color:#666 }
.zp-uwaga { background:#fff8d6; border-left:4px solid #f3d21c; padding:10px 14px; border-radius:6px; font-size:13.5px; margin:0 0 16px }
.zp-kropka { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:middle }
td.num, th.num { text-align:right; white-space:nowrap }
.data-table td { vertical-align: top }
@media (max-width: 900px) { .kpis.k4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zp-lejek { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid2, .grid3 { grid-template-columns: 1fr; } }
