/* Dodatki kombajnu BT do stylu paneli nexizen */
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:22px; }
.kpis .kpi { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow); }
.kpis .kpi .l { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); }
.kpis .kpi .v { font-size:26px; font-weight:700; color:var(--navy); margin-top:4px; line-height:1.2; }
.kpis .kpi .s { font-size:13px; color:var(--muted); margin-top:2px; }
.up { color:var(--green); } .down { color:var(--red); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.box { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:18px 20px; box-shadow:var(--shadow); margin-bottom:18px; min-width:0; }
.box h2 { font-size:17px; color:var(--navy); margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.box h2 a { font-size:13px; font-weight:500; color:var(--muted); text-decoration:none; }
.box h2 a:hover { color:var(--red); }
.spark { width:100%; height:110px; display:block; }
.spark polyline { fill:none; stroke:var(--red); stroke-width:2; vector-effect:non-scaling-stroke; }
.spark.navy polyline { stroke:var(--navy); }
.axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-top:4px; }
.list { list-style:none; }
.list li { padding:9px 0; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.list li:last-child { border-bottom:none; }
.list a { color:var(--text); text-decoration:none; } .list a:hover { color:var(--red); }
.pill { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; background:#eef2f7; color:var(--navy); white-space:nowrap; }
.pill.red { background:#fde8e4; color:#b42318; } .pill.green { background:var(--green-bg); color:#166534; } .pill.yellow { background:var(--yellow-bg); color:#854d0e; } .pill.blue { background:var(--blue-bg); color:#1e40af; }
.bar { height:8px; border-radius:6px; background:#eef2f7; overflow:hidden; } .bar > i { display:block; height:100%; background:var(--red); }
.timeline { list-style:none; border-left:2px solid var(--border); margin-left:8px; }
.timeline li { position:relative; padding:0 0 14px 18px; font-size:14px; }
.timeline li::before { content:''; position:absolute; left:-7px; top:5px; width:12px; height:12px; border-radius:50%; background:#cbd5e1; }
.timeline li.konw::before { background:var(--red); } .timeline li.wej::before { background:var(--navy); }
.timeline .t { color:var(--muted); font-size:12px; }
.empty-note { color:var(--muted); font-size:14px; padding:14px; background:#f8fafc; border:1px dashed var(--border); border-radius:10px; }
.filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.filters a { padding:6px 12px; border:1px solid var(--border); border-radius:999px; font-size:13px; color:var(--text); text-decoration:none; background:#fff; }
.filters a.on { background:var(--navy); color:#fff; border-color:var(--navy); }
textarea, input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select { width:100%; padding:9px 11px; border:1px solid var(--border); border-radius:8px; font:inherit; font-size:14px; background:#fff; }
textarea { min-height:90px; }
.row-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; align-items:end; }
.row-form label { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.prose { font-size:15px; line-height:1.65; } .prose p { margin-bottom:10px; } .prose ul { margin:0 0 10px 18px; }
.answer { white-space:pre-wrap; font-size:14px; line-height:1.6; background:#f8fafc; border-radius:10px; padding:14px; max-height:520px; overflow:auto; }
.login-wrap { min-height:100vh; width:100%; display:flex; align-items:center; justify-content:center; background:var(--navy); }
.login-box { background:#fff; border-radius:16px; padding:34px 30px; width:min(380px, 92vw); box-shadow:0 20px 50px rgba(0,0,0,.25); }
.login-box h1 { font-size:22px; color:var(--navy); margin-bottom:4px; } .login-box p { color:var(--muted); font-size:14px; margin-bottom:18px; }
.login-box label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
.login-box .btn { width:100%; margin-top:16px; justify-content:center; }
.nowrap { white-space:nowrap; }
@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns:1fr; } }
@media (max-width: 860px) {
  body { flex-direction:column; }
  .sidebar { width:100%; height:auto; position:static; }
  .sidebar .brand { padding:14px 16px; }
  .sidebar nav { flex-direction:row; overflow-x:auto; padding:0 10px 10px; gap:4px; }
  .sidebar nav a { white-space:nowrap; padding:8px 10px; font-size:14px; }
  .sidebar nav .nav-group { display:none; }
  .sidebar .footer { display:none; }
  .main { padding:16px !important; }
  .kpis .kpi .v { font-size:22px; }
}
.flash-info { background:var(--blue-bg); color:#1e40af; border:1px solid #bfdbfe; padding:10px 14px; border-radius:10px; font-size:14px; }
/* dokument przewija się normalnie (bez wewnętrznego przewijania .main), tabele przewijają się w .table-wrap */
html, body { height:auto; min-height:100%; }
.main { overflow:visible; min-width:0; }
.sidebar { overflow-y:auto; }
@media (max-width: 860px) { .sidebar { overflow:visible; } }
.list li a, .list li > span:first-child { overflow-wrap:anywhere; min-width:0; }
.list li { gap:10px; }
.grid2 > *, .grid3 > * { min-width:0; }
.list li > span:last-child, .list li > strong { overflow-wrap:anywhere; text-align:right; }
