/* krc-ui — notatki, podgląd PDF, komunikator, ikony górnego paska, zwijane menu, sekcje modali */
.kui-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,16px);background:#0f1b2d;color:#fff;font:600 12.5px/1.3 Inter,system-ui,sans-serif;padding:10px 16px;border-radius:9px;opacity:0;transition:.2s;z-index:3000;pointer-events:none}
.kui-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- notatki (piaskowe) ---------- */
.kn{background:#fbf6ea;border:1px solid #eadfc4;border-radius:8px;padding:10px 12px;font:12.5px/1.45 Inter,system-ui,sans-serif;color:#3b3322}
.kn__head{display:flex;align-items:center;gap:7px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a6534;margin-bottom:8px}
.kn__head svg{width:14px;height:14px}
.kn__head em{font-style:normal;margin-left:auto;background:#efe3c3;border-radius:10px;padding:0 7px;font-size:10.5px;letter-spacing:0}
.kn__list{display:flex;flex-direction:column;gap:6px;max-height:210px;overflow:auto;margin-bottom:8px}
.kn__empty{color:#8a7a55;font-size:12px;padding:4px 0}
.kn-note{background:#fffdf7;border:1px solid #efe4c8;border-left:3px solid #d8c38e;border-radius:6px;padding:6px 9px}
.kn-note--pos,.kn-note--neg{border-left-color:#d8c38e;background:#fffdf7}
.kn-note__meta{display:flex;align-items:center;gap:6px;font-size:11px;color:#8a7a55;margin-bottom:2px}
.kn-note__meta b{color:#3b3322;font-weight:600}
.kn-tone{font-style:normal;margin-left:auto;font-size:10px;font-weight:700;color:#7a6534}
.kn-note--pos .kn-tone,.kn-note--neg .kn-tone{color:#7a6534}
.kn-del{border:0;background:none;color:#b5a57c;cursor:pointer;padding:0 0 0 4px;display:inline-flex}
.kn-del:hover{color:#a8322d}
.kn-del svg{width:13px;height:13px}
.kn__form textarea{width:100%;border:1px solid #e3d5ae;background:#fffdf7;border-radius:6px;padding:7px 9px;font:inherit;font-size:12.5px;resize:vertical;color:#3b3322;box-sizing:border-box}
.kn__form textarea:focus{outline:0;border-color:#c9a94f;box-shadow:0 0 0 2px rgba(201,169,79,.2)}
.kn__row{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.kn__tones{display:flex;gap:10px;font-size:11.5px;color:#6d5d38}
.kn__tones label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.kn__add{margin-left:auto;display:inline-flex;align-items:center;gap:5px;border:1px solid #c9a94f;background:#f3e6c2;color:#5c4a1c;border-radius:6px;height:28px;padding:0 10px;font:600 11.5px Inter,system-ui,sans-serif;cursor:pointer}
.kn__add:hover{background:#ecdaa8}
.kn__add svg{width:13px;height:13px}
.kn-badge{display:inline-flex;align-items:flex-start;color:#a07d24;margin-left:5px;vertical-align:middle;line-height:1}
.kn-badge svg{width:14px;height:14px}
.kn-badge sup{font-size:9px;font-weight:800;margin-left:1px;color:#8a6414}

/* ---------- sekcje w modalach (cieniowane) ---------- */
.km-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px;align-items:start}
.km-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.km-sec{background:#f7f9fc;border:1px solid #e3e9f1;border-radius:8px;padding:10px 12px;min-width:0}
.km-sec--white{background:#fff}
.km-sec__h{display:flex;align-items:center;gap:7px;font:700 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#475569;margin:0 0 8px}
.km-sec__h svg{width:14px;height:14px;color:#0b4ea2;flex:none}
.km-sec__h em{font-style:normal;margin-left:auto;font-size:10.5px;letter-spacing:0;text-transform:none;color:#64748b;font-weight:600}
.km-kv{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;font-size:12.5px}
.km-kv dt{color:#64748b}
.km-kv dd{margin:0;text-align:right;font-weight:600;color:#1e293b;min-width:0;overflow-wrap:anywhere}
.km-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.km-tile{background:#fff;border:1px solid #e3e9f1;border-radius:7px;padding:6px 8px}
.km-tile span{display:block;font-size:10.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-tile b{display:block;font-size:16px;font-weight:700;color:#1e293b;font-variant-numeric:tabular-nums}
.km-profile{display:flex;gap:12px;align-items:center}
.km-profile__av{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font:700 17px Inter,system-ui,sans-serif;flex:none}
.km-profile__n{font-size:16px;font-weight:700;color:#0f1b2d;line-height:1.2}
.km-profile__s{font-size:12px;color:#64748b;margin-top:2px}
.km-profile__tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}
.km-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.km-act{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid #d7e0ec;border-radius:7px;background:#fff;color:#0b4ea2;font:600 11.5px Inter,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.km-act:hover{background:#eef4fc;border-color:#b8cbe6}
.km-act svg{width:14px;height:14px}
.km-list{display:flex;flex-direction:column}
.km-li{display:flex;align-items:center;gap:8px;padding:5px 2px;border-bottom:1px solid #e9eef5;font-size:12.5px;min-width:0}
.km-li:last-child{border-bottom:0}
.km-li__b{flex:1;min-width:0}
.km-li__b b{font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-li__b span{display:block;font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-li__m{font-size:11px;color:#64748b;white-space:nowrap}
.km-ib{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid transparent;border-radius:6px;background:transparent;color:#475569;cursor:pointer;padding:0;position:relative;text-decoration:none}
.km-ib:hover{background:#eef4fc;border-color:#cfdcee;color:#0b4ea2}
.km-ib svg{width:15px;height:15px}
.km-ib sup{position:absolute;top:-3px;right:-3px;background:#a07d24;color:#fff;border-radius:8px;font:800 8.5px/13px Inter,sans-serif;min-width:13px;padding:0 3px}
.km-pdf{display:inline-flex;color:#b42335;flex:none}
.km-pdf svg{width:18px;height:18px}
.km-pager{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;font-size:11.5px;color:#64748b}
.km-pager button{width:26px;height:26px;border:1px solid #d7e0ec;border-radius:6px;background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#334155;padding:0}
.km-pager button:disabled{opacity:.4;cursor:default}
.km-pager svg{width:14px;height:14px}
.km-week{display:grid;grid-template-columns:44px 1fr;gap:3px 8px;font-size:12px}
.km-week span{color:#64748b;font-weight:600}
.km-week b{font-weight:600}
.km-week b small{font-weight:500;color:#64748b;margin-left:4px}
.km-week i{color:#a0aec0;font-style:normal}
.km-mini{height:5px;width:60px;background:#e6ebf2;border-radius:3px;overflow:hidden;flex:none}
.km-mini i{display:block;height:100%;background:#0b4ea2}
.km-back{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 9px 0 6px;border:1px solid #d7e0ec;border-radius:7px;background:#fff;color:#334155;font:600 11.5px Inter,system-ui,sans-serif;cursor:pointer;margin-right:10px;vertical-align:middle}
.km-back:hover{background:#f1f5f9}
.km-back svg{width:14px;height:14px}

/* ---------- podgląd PDF ---------- */
.kpdf{position:fixed;inset:0;z-index:2500;background:rgba(15,23,42,.72);display:flex;flex-direction:column;opacity:0;transition:opacity .18s;font-family:Inter,system-ui,sans-serif}
.kpdf.on{opacity:1}
.kpdf__bar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#1e293b;color:#e2e8f0}
.kpdf__ico{display:inline-flex;width:30px;height:30px;border-radius:6px;background:#b42335;color:#fff;align-items:center;justify-content:center}
.kpdf__ico svg{width:17px;height:17px}
.kpdf__name{min-width:0}
.kpdf__name b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpdf__name span{display:block;font-size:11px;color:#94a3b8}
.kpdf__tools{margin-left:auto;display:flex;align-items:center;gap:4px;font-size:12px;color:#cbd5e1}
.kpdf__tools button{width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:#e2e8f0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.kpdf__tools button:hover{background:#334155}
.kpdf__tools button:disabled{opacity:.35;cursor:default}
.kpdf__tools svg{width:17px;height:17px}
.kpdf__sep{width:1px;height:20px;background:#475569;margin:0 6px}
.kpdf__stage{flex:1;overflow:auto;display:flex;justify-content:center;padding:26px 16px}
.kpdf__page{position:relative;width:min(640px,92vw);min-height:820px;background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.4);padding:48px 56px;transform-origin:top center;color:#1e293b;box-sizing:border-box}
.kpdf__doctop{display:flex;justify-content:space-between;font-size:12px;color:#475569;margin-bottom:28px}
.kpdf__doctitle{font-size:18px;font-weight:700;text-align:center;letter-spacing:.02em}
.kpdf__docsub{text-align:center;font-size:12px;color:#64748b;margin-top:4px}
.kpdf__blur{filter:blur(3.2px);margin-top:26px;user-select:none}
.kpdf__lines i{display:block;height:9px;background:#cbd5e1;border-radius:3px;margin:11px 0}
.kpdf__tbl{width:100%;border-collapse:collapse;margin:18px 0}
.kpdf__tbl th,.kpdf__tbl td{border:1px solid #cbd5e1;padding:7px;font-size:11px;text-align:left}
.kpdf__tbl i{display:block;height:8px;background:#cbd5e1;border-radius:3px}
.kpdf__sign{display:flex;justify-content:space-between;margin-top:60px}
.kpdf__sign div{width:40%;text-align:center;font-size:10px;color:#64748b}
.kpdf__sign i{display:block;height:1px;background:#94a3b8;margin-bottom:4px}
.kpdf__stamp{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.94);border:1px solid #cbd5e1;border-radius:8px;padding:10px 16px;font-size:12.5px;font-weight:600;color:#334155;box-shadow:0 6px 20px rgba(15,23,42,.12);white-space:nowrap}
.kpdf__stamp svg{width:16px;height:16px;color:#0b4ea2}
.kpdf__pno{position:absolute;bottom:18px;right:26px;font-size:10.5px;color:#94a3b8}

/* ---------- górny pasek: obecność i czat ---------- */
.kc-top{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;border:1px solid var(--line,#e2e8f0);border-radius:7px;background:#fff;color:#0b4ea2;cursor:pointer;padding:0}
.kc-top:hover{background:#eef4fc}
.kc-top svg{width:17px;height:17px}
.kc-top{width:auto;padding:0 8px 0 7px;gap:4px}
.kc-top__sups{display:inline-flex;gap:2px;align-items:flex-start;margin-top:-10px}
.kc-top__b{min-width:16px;height:16px;border-radius:8px;background:#d14343;color:#fff;font:800 9.5px/16px Inter,sans-serif;padding:0 4px;box-sizing:border-box;text-align:center;box-shadow:0 0 0 2px #fff}
.kc-top__b--green{background:#1f9d55}

/* ---------- komunikator (szuflada) ---------- */
.kc{position:fixed;inset:0;z-index:1500;background:rgba(15,23,42,0);pointer-events:none;transition:background .2s;font-family:Inter,system-ui,sans-serif}
.kc.on{background:rgba(15,23,42,.35);pointer-events:auto}
.kc__panel{position:absolute;top:0;right:0;bottom:0;width:min(900px,100vw);background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .22s ease;box-shadow:-10px 0 40px rgba(15,23,42,.18)}
.kc.on .kc__panel{transform:none}
.kc__top{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #e2e8f0;background:#f0f7f5}
.kc__title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:#0f1b2d}
.kc__title svg{width:18px;height:18px;color:#0f766e}
.kc__online{font-size:11.5px;color:#475569;display:flex;align-items:center;gap:6px}
.kc__top .kc-ib{margin-left:auto}
.kc__body{flex:1;display:grid;grid-template-columns:320px 1fr;min-height:0}
.kc__side{border-right:1px solid #e2e8f0;display:flex;flex-direction:column;min-height:0}
.kc-search{display:flex;align-items:center;gap:6px;margin:10px;background:#f1f5f9;border-radius:18px;padding:0 12px;height:34px;color:#64748b}
.kc-search svg{width:15px;height:15px}
.kc-search input{border:0;background:transparent;outline:0;font:inherit;font-size:12.5px;width:100%}
.kc__list{flex:1;overflow:auto}
.kc-sep{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8;padding:10px 14px 4px}
.kc-row{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid #f1f5f9;background:#fff;padding:8px 12px;text-align:left;cursor:pointer;font:inherit}
.kc-row:hover{background:#f7fafc}
.kc-row.on{background:#e7f5f1}
.kc-row__b{flex:1;min-width:0}
.kc-row__b b{display:block;font-size:13px;font-weight:600;color:#0f1b2d}
.kc-row__b span{display:block;font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kc-row__m{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:10.5px;color:#94a3b8}
.kc-row__m em{font-style:normal;background:#1f9d55;color:#fff;border-radius:9px;min-width:17px;height:17px;font:800 10px/17px Inter,sans-serif;text-align:center;padding:0 4px}
.kc-av{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;color:#fff;font:700 12px Inter,sans-serif;flex:none}
.kc-av--sm{width:30px;height:30px;font-size:10.5px}
.kc-dot{position:absolute;right:0;bottom:0;width:10px;height:10px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.kc-dot--inline{position:static;display:inline-block;border:0;width:8px;height:8px}
.kc__conv{display:flex;flex-direction:column;min-height:0;background:#efeae2}
.kc-placeholder{margin:auto;display:flex;flex-direction:column;align-items:center;gap:10px;color:#64748b;font-size:13px}
.kc-placeholder svg{width:46px;height:46px;color:#94a3b8}
.kc-conv__head{display:flex;align-items:center;gap:10px;padding:9px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.kc-conv__head b{display:block;font-size:13.5px}
.kc-conv__head span{display:block;font-size:11.5px;color:#64748b}
.kc-conv__tools{margin-left:auto;display:flex;gap:4px}
.kc-ib{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#475569;cursor:pointer;text-decoration:none}
.kc-ib:hover{background:#e2e8f0}
.kc-ib svg{width:17px;height:17px}
.kc-msgs{flex:1;overflow:auto;padding:14px 18px;display:flex;flex-direction:column;gap:6px}
.kc-msg{max-width:72%;padding:6px 9px 4px;border-radius:8px;font-size:13px;line-height:1.4;box-shadow:0 1px 1px rgba(0,0,0,.08);background:#fff;align-self:flex-start;color:#111b21}
.kc-msg--me{align-self:flex-end;background:#d9fdd3}
.kc-msg--sms.kc-msg--me{background:#e3edfb}
.kc-msg__via{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:#0b4ea2;margin-bottom:2px}
.kc-msg__via svg{width:11px;height:11px}
.kc-msg__t{display:flex;justify-content:flex-end;align-items:center;gap:3px;font-size:10px;color:#667781;margin-top:2px}
.kc-tick{display:inline-flex}
.kc-tick svg{width:14px;height:14px}
.kc-tick--read{color:#53bdeb}
.kc-typing{align-self:flex-start;background:#fff;border-radius:8px;padding:8px 10px;display:flex;gap:3px}
.kc-typing[hidden]{display:none}
.kc-typing i{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:kcT 1s infinite}
.kc-typing i:nth-child(2){animation-delay:.15s}
.kc-typing i:nth-child(3){animation-delay:.3s}
@keyframes kcT{0%,60%,100%{opacity:.3}30%{opacity:1}}
.kc-input{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#f0f2f5}
.kc-input input{flex:1;height:38px;border:0;border-radius:19px;padding:0 14px;font:inherit;font-size:13px;outline:0;background:#fff}
.kc-mode{display:flex;background:#fff;border-radius:17px;padding:2px}
.kc-mode button{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;border-radius:15px;height:30px;padding:0 10px;font:600 11.5px Inter,sans-serif;color:#64748b;cursor:pointer}
.kc-mode button.on{background:#0f766e;color:#fff}
.kc-mode svg{width:13px;height:13px}
.kc-count{font-size:10.5px;color:#64748b;min-width:34px}
.kc-send{width:40px;height:40px;border:0;border-radius:50%;background:#0f766e;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.kc-send svg{width:17px;height:17px}
.kc-empty{color:#64748b;font-size:12.5px;text-align:center;padding:16px}
.kc-tolist{display:none}
@media(max-width:760px){.kc__body{grid-template-columns:1fr}.kc--conv .kc__side{display:none}.kc:not(.kc--conv) .kc__conv{display:none}.kc__conv{min-height:100%}.kc-row{padding:8px}.kc-tolist{display:inline-flex}}

/* ---------- przycisk hamburgera widoczny także na PC + menu zwinięte do ikon ---------- */
.hamburger{display:inline-flex!important;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line,#e2e8f0);border-radius:7px;background:#fff;cursor:pointer;color:#334155;flex:none}
.hamburger:hover{background:#f1f5f9}
.hamburger svg{width:18px;height:18px}
.sidebar,.main{transition:width .2s,margin-left .2s,transform .3s}
body.sb-collapsed .sidebar{width:48px!important;overflow:visible}
body.sb-collapsed .main{margin-left:48px!important}
body.sb-collapsed .sidebar__item-label,body.sb-collapsed .sidebar__item>span:not(.badge),body.sb-collapsed .sidebar__group,body.sb-collapsed .sidebar__sep,
body.sb-collapsed .sidebar__brand-text,body.sb-collapsed .sidebar__uinfo,body.sb-collapsed .sidebar__krc-switch,body.sb-collapsed .krcd-txt,
body.sb-collapsed .sidebar__ez-btn,body.sb-collapsed .new-badge{display:none!important}
body.sb-collapsed .sidebar__item{justify-content:center!important;padding-left:0!important;padding-right:0!important;position:relative;gap:0!important}
body.sb-collapsed .sidebar__item svg{margin:0!important}
.sidebar__item .badge{margin-left:auto;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:13px;min-width:13px;padding:0 4px;border-radius:999px;font-size:8px;font-weight:700;font-style:normal;line-height:1;letter-spacing:0;color:#0b4ea2;background:rgba(255,255,255,.55);border:.64px solid rgba(11,78,162,.32);box-shadow:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.sb-collapsed .sidebar__item .badge{position:absolute;top:2px;right:4px;z-index:1;margin:0}
body.sb-collapsed .sidebar__brand{justify-content:center;padding-left:6px;padding-right:6px}
body.sb-collapsed .krcd-logo{padding:3px}
body.sb-collapsed .krcd-logo img{max-height:26px;max-width:44px}
body.sb-collapsed .sidebar__user{justify-content:center}
body.sb-collapsed .sidebar__nav{overflow-x:hidden}

/* ---------- przycisk zwijania menu: po lewej stronie logo, logo odsunięte ---------- */
.sb-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border:1px solid var(--line,#e2e8f0);border-radius:7px;background:#fff;color:#334155;cursor:pointer;padding:0;margin-right:6px}
.sb-toggle:hover{background:#f1f5f9;color:#0b4ea2}
.sb-toggle svg{width:18px;height:18px}
.sidebar__brand{gap:6px 10px!important;align-items:center!important;flex-wrap:wrap;flex-direction:row!important}
.sidebar__brand>.sb-toggle{align-self:center}
.sidebar__brand .sidebar__brand-text{flex-basis:100%;order:5;margin:0;padding-left:1px}
.sidebar__brand .sidebar__brand-text small{white-space:normal}
body.sb-collapsed .sidebar__brand{padding-left:0!important;padding-right:0!important}
body.sb-collapsed .sidebar__brand>*:not(.sb-toggle){display:none!important}
body.sb-collapsed .sb-toggle{margin:0}

/* wygląd z ustawień: jasny / ciemny oraz skala liter 12–18 px */
html[data-krc-theme="dark"]{
  color-scheme:dark;
  --ink:#e2e8f0;--muted:#94a3b8;--line:#334155;--soft:#1e293b;--bg:#111827;
  --body-bg:#0b1220;--brand-l:#1e3a5f;--brand-xl:#132033;
  --sidebar-bg:#0f172a;--sidebar-ink:#e2e8f0;--sidebar-muted:#94a3b8;
  --sidebar-active-bg:#1e3a5f;--sidebar-active-ink:#bfdbfe;
  --sidebar-border:1px solid #1e293b;--sidebar-brand-color:#93c5fd;
  --sidebar-avatar-bg:#1e3a5f;--sidebar-avatar-ink:#bfdbfe;
  --card-shadow:none;--green-l:#14532d;--red-l:#450a0a;--amber-l:#422006;
}
html[data-krc-theme="dark"] .kt,
html[data-krc-theme="dark"] .kt-table{
  --kt-line:#334155;--kt-ink:#e2e8f0;--kt-muted:#94a3b8;--kt-head:#1e293b;--kt-hover:#172033;
}
html[data-krc-theme="dark"] .kt-kpi,
html[data-krc-theme="dark"] .kt-bar,
html[data-krc-theme="dark"] .kt-body,
html[data-krc-theme="dark"] .kt-search,
html[data-krc-theme="dark"] .kt-filter,
html[data-krc-theme="dark"] .kt-btn,
html[data-krc-theme="dark"] .kt-seg,
html[data-krc-theme="dark"] .kt-seg button,
html[data-krc-theme="dark"] .kt-tile,
html[data-krc-theme="dark"] .kt-note,
html[data-krc-theme="dark"] .kt-colmenu,
html[data-krc-theme="dark"] .kt-expmenu,
html[data-krc-theme="dark"] .kt-colmenu__reset,
html[data-krc-theme="dark"] .kt-pager button,
html[data-krc-theme="dark"] .kt-pager select,
html[data-krc-theme="dark"] .kt-empty--box,
html[data-krc-theme="dark"] .kt-dl{
  background:#111827;color:#e2e8f0;border-color:#334155;
}
html[data-krc-theme="dark"] .kt-tiles{background:#0b1220}
html[data-krc-theme="dark"] .kt-search input,
html[data-krc-theme="dark"] .kt-filter,
html[data-krc-theme="dark"] .kt-pager select{color:#e2e8f0;background:#0f172a}
html[data-krc-theme="dark"] .kt-table th,
html[data-krc-theme="dark"] .kt-table .kt-hrow th,
html[data-krc-theme="dark"] .kt-acthead{
  background:#1e293b!important;color:#cbd5e1!important;border-bottom-color:#334155!important;
}
html[data-krc-theme="dark"] .kt-table td,
html[data-krc-theme="dark"] .kt-actcol{background:#111827;color:#e2e8f0;border-bottom-color:#1e293b}
html[data-krc-theme="dark"] .kt-table tbody tr:hover td{background:#172033!important}
html[data-krc-theme="dark"] .kt-sub,
html[data-krc-theme="dark"] .kt-dim{color:#94a3b8}
html[data-krc-theme="dark"] .kt-gh--none{background:#111827!important}
html[data-krc-theme="dark"] .kt-gh{border-right-color:#0b1220}
html[data-krc-theme="dark"] .kt-g--blue{background:#152238}
html[data-krc-theme="dark"] .kt-gh.kt-g--blue,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--blue{background:#1e3a5f;color:#bfdbfe}
html[data-krc-theme="dark"] .kt-g--green{background:#10241a}
html[data-krc-theme="dark"] .kt-gh.kt-g--green,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--green{background:#14532d;color:#bbf7d0}
html[data-krc-theme="dark"] .kt-g--amber{background:#2a2112}
html[data-krc-theme="dark"] .kt-gh.kt-g--amber,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--amber{background:#4a3412;color:#fde68a}
html[data-krc-theme="dark"] .kt-g--violet{background:#221833}
html[data-krc-theme="dark"] .kt-gh.kt-g--violet,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--violet{background:#3b2660;color:#ddd6fe}
html[data-krc-theme="dark"] .kt-g--rose{background:#2a1520}
html[data-krc-theme="dark"] .kt-gh.kt-g--rose,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--rose{background:#5b2436;color:#fecdd3}
html[data-krc-theme="dark"] .kt-g--teal{background:#102422}
html[data-krc-theme="dark"] .kt-gh.kt-g--teal,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--teal{background:#134e4a;color:#99f6e4}
html[data-krc-theme="dark"] .kt-g--slate{background:#1e293b}
html[data-krc-theme="dark"] .kt-gh.kt-g--slate,
html[data-krc-theme="dark"] .kt-hrow th.kt-g--slate{background:#334155;color:#e2e8f0}
html[data-krc-theme="dark"] .kt-tag{background:#1e293b;color:#cbd5e1}
html[data-krc-theme="dark"] .kt-tag--ok{background:#14532d;color:#bbf7d0}
html[data-krc-theme="dark"] .kt-tag--warn{background:#422006;color:#fde68a}
html[data-krc-theme="dark"] .kt-tag--bad{background:#450a0a;color:#fecaca}
html[data-krc-theme="dark"] .kt-act{color:#cbd5e1}
html[data-krc-theme="dark"] .kt-act:hover{background:#1e293b;border-color:#334155;color:#93c5fd}
html[data-krc-theme="dark"] .kt-colmenu label:hover,
html[data-krc-theme="dark"] .kt-expmenu button:hover{background:#1e293b}
html[data-krc-theme="dark"] .kt-expmenu button.on{background:#172033;border-color:#64748b;box-shadow:inset 0 0 0 1px #475569}
html[data-krc-theme="dark"] .kt-expmenu__meta,
html[data-krc-theme="dark"] .kt-expmenu__log,
html[data-krc-theme="dark"] .kt-expmenu__log span,
html[data-krc-theme="dark"] .kt-expmenu button i{color:#94a3b8}
html[data-krc-theme="dark"] .kt-expmenu__meta,
html[data-krc-theme="dark"] .kt-expmenu__log{border-color:#334155}
html[data-krc-theme="dark"] .kt-expmenu button{color:#e2e8f0}
html[data-krc-theme="dark"] .kt-btn--primary{background:var(--brand);color:#fff;border-color:var(--brand)}
html[data-krc-theme="dark"] .kt-seg button.on{background:var(--brand);color:#fff}
/* A Marka w ciemnym trybie */
html[data-krc-theme="dark"][data-kt="a"] .kt-body{background:#0f172a;border-color:#1e3a5f}
html[data-krc-theme="dark"][data-kt="a"] .kt-table .kt-hrow th,
html[data-krc-theme="dark"][data-kt="a"] .kt-table th.kt-actcol,
html[data-krc-theme="dark"][data-kt="a"] .kt-acthead{background:#1e3a5f!important;color:#dbeafe!important;border-bottom:2px solid #60a5fa!important}
html[data-krc-theme="dark"][data-kt="a"] .kt-table td{background:#111827;color:#e2e8f0;border-bottom-color:#1e293b}
html[data-krc-theme="dark"][data-kt="a"] .kt-table tbody tr:hover td{background:#172554!important}
html[data-krc-theme="dark"][data-kt="a"] .kt-table tbody tr:hover td:first-child{box-shadow:inset 3px 0 0 #60a5fa}
/* B Papier */
html[data-krc-theme="dark"][data-kt="b"] .kt-body,
html[data-krc-theme="dark"][data-kt="b"] .kt-bar{background:#1c1612;border-color:#44403c}
html[data-krc-theme="dark"][data-kt="b"] .kt-table th,
html[data-krc-theme="dark"][data-kt="b"] .kt-table .kt-hrow th,
html[data-krc-theme="dark"][data-kt="b"] .kt-acthead{background:#3f3428!important;color:#f5e6c8!important;border-bottom-color:#57534e!important}
html[data-krc-theme="dark"][data-kt="b"] .kt-table td{background:#1c1917;color:#f5e6c8;border-bottom-color:#44403c}
html[data-krc-theme="dark"][data-kt="b"] .kt-table tbody tr:hover td{background:#292524!important}
/* C Róż */
html[data-krc-theme="dark"][data-kt="c"] .kt-body{background:#1a1014;border-color:#4a2030}
html[data-krc-theme="dark"][data-kt="c"] .kt-table th,
html[data-krc-theme="dark"][data-kt="c"] .kt-table .kt-hrow th,
html[data-krc-theme="dark"][data-kt="c"] .kt-acthead{background:#3b1d2a!important;color:#fbcfe8!important;border-bottom-color:#9d174d!important}
html[data-krc-theme="dark"][data-kt="c"] .kt-table td{background:#1f1218;color:#fce7f3;border-bottom-color:#4a2030}
html[data-krc-theme="dark"][data-kt="c"] .kt-table tbody tr:hover td{background:#3b1d2a!important}
/* D Mięta */
html[data-krc-theme="dark"][data-kt="d"] .kt-body{background:#0f1f1c;border-color:#134e4a}
html[data-krc-theme="dark"][data-kt="d"] .kt-table th,
html[data-krc-theme="dark"][data-kt="d"] .kt-table .kt-hrow th,
html[data-krc-theme="dark"][data-kt="d"] .kt-acthead{background:#134e4a!important;color:#ccfbf1!important;border-bottom-color:#0f766e!important}
html[data-krc-theme="dark"][data-kt="d"] .kt-table td{background:#102422;color:#d1fae5;border-bottom-color:#134e4a}
html[data-krc-theme="dark"][data-kt="d"] .kt-table tbody tr:nth-child(even) td{background-image:linear-gradient(rgba(15,118,110,.16),rgba(15,118,110,.16))}
html[data-krc-theme="dark"][data-kt="d"] .kt-table tbody tr:hover td{background:#134e4a!important}
html[data-krc-theme="dark"] .panel-modal,
html[data-krc-theme="dark"] .panel-modal__body,
html[data-krc-theme="dark"] .panel-modal--xl .panel-modal__body,
html[data-krc-theme="dark"] .faq-item{background:#111827;color:#e2e8f0}
html[data-krc-theme="dark"] .panel-modal-overlay{background:rgba(0,0,0,.62)}
html[data-krc-theme="dark"] .sb-toggle{background:#1e293b;color:#e2e8f0;border-color:#334155}
html[data-krc-theme="dark"] .sb-toggle:hover{background:#334155;color:#bfdbfe}
html[data-krc-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
html[data-krc-theme="dark"] select,
html[data-krc-theme="dark"] textarea{
  background:#0f172a;color:#e2e8f0;border-color:#334155;
}
html[data-krc-theme="dark"] .km-sec,
html[data-krc-theme="dark"] .km-sec--white{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-krc-theme="dark"] .km-sec__h,
html[data-krc-theme="dark"] .km-kv dt,
html[data-krc-theme="dark"] .km-tile span,
html[data-krc-theme="dark"] .km-li__b span,
html[data-krc-theme="dark"] .km-profile__s{color:#94a3b8}
html[data-krc-theme="dark"] .km-kv dd,
html[data-krc-theme="dark"] .km-tile b,
html[data-krc-theme="dark"] .km-profile__n,
html[data-krc-theme="dark"] .km-li__b b,
html[data-krc-theme="dark"] .km-week b{color:#e2e8f0}
html[data-krc-theme="dark"] .km-tile,
html[data-krc-theme="dark"] .km-act,
html[data-krc-theme="dark"] .km-pager button{background:#0f172a;border-color:#334155;color:#e2e8f0}
html[data-krc-theme="dark"] .km-li{border-bottom-color:#334155}
html[data-krc-theme="dark"] .km-act:hover,
html[data-krc-theme="dark"] .km-ib:hover{background:#1e3a5f;border-color:#334155;color:#bfdbfe}
html[data-krc-theme="dark"] .kn{background:#2a2418;border-color:#4a3f28;color:#f5e6c8}
html[data-krc-theme="dark"] .kn-note,
html[data-krc-theme="dark"] .kn-note--pos,
html[data-krc-theme="dark"] .kn-note--neg,
html[data-krc-theme="dark"] .kn__form textarea{background:#2a2418;border-color:#4a3f28;border-left-color:#c4a574;color:#f5e6c8}
html[data-krc-theme="dark"] .kn-note--pos .kn-tone,
html[data-krc-theme="dark"] .kn-note--neg .kn-tone{color:#d6c7a1}
html[data-krc-theme="dark"] .kn__head,
html[data-krc-theme="dark"] .kn-note__meta,
html[data-krc-theme="dark"] .kn__empty{color:#d6c7a1}
html[data-krc-theme="dark"] .kn-note__meta b{color:#f5e6c8}
html[data-krc-theme="dark"] .chat-sidebar,
html[data-krc-theme="dark"] .chat-sidebar__head,
html[data-krc-theme="dark"] .chat-header,
html[data-krc-theme="dark"] .chat-composer,
html[data-krc-theme="dark"] .chat-attach-bar{background:#111827}
html[data-krc-theme="dark"] .chat-main{background:#0b1220}
html[data-krc-theme="dark"] .chat-msg--in .chat-msg__bubble{background:#1e293b;color:#e2e8f0}
html[data-krc-theme="dark"] .fv-party{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-krc-theme="dark"] .fv-party--seller{background:#132033;border-color:#1e3a5f}
html[data-krc-theme="dark"] .fv-party--buyer{background:#10241a;border-color:#14532d}
html[data-krc-theme="dark"] .fv-party--recv{background:#2a2112;border-color:#4a3412}
html[data-krc-theme="dark"] .fv-party--p3{background:#221833;border-color:#3b2660}
html[data-krc-theme="dark"] .info-group--sand{background:#2a2318;border-color:#4a3b22;color:#f5e6c8}
html[data-krc-theme="dark"] .info-group--orange{background:#2a2112;border-color:#4a3412;color:#fde68a}
html[data-krc-theme="dark"] .info-group--purple{background:#221833;border-color:#3b2660;color:#ddd6fe}
html[data-krc-theme="dark"] .info-group--red{background:#2a1518;border-color:#5b2436;color:#fecdd3}
html[data-krc-theme="dark"] .info-group--grey{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-krc-theme="dark"] .week-calendar__row{border-bottom-color:#1e293b}
html[data-krc-theme="dark"] .week-calendar__cell{border-left-color:#1e293b}
html[data-krc-theme="dark"] .cert-visual{background:#2a2318;border-color:#4a3b22;color:#f5e6c8}
html[data-krc-theme="dark"] .sidebar__nav{scrollbar-color:#334155 #0f172a}
html[data-krc-theme="dark"] .sidebar__nav::-webkit-scrollbar-track,
html[data-krc-theme="dark"] .sidebar__nav::-webkit-scrollbar-button:single-button{background-color:#0f172a}
html[data-krc-theme="dark"] .sidebar__nav::-webkit-scrollbar-thumb{background:#334155;border-color:#0f172a}
html[data-krc-font="12"] body{font-size:12px}
html[data-krc-font="12"] .kt-table td{font-size:11px}
html[data-krc-font="13"] body{font-size:13px}
html[data-krc-font="13"] .kt-table td{font-size:11.5px}
html[data-krc-font="15"] body{font-size:15px}
html[data-krc-font="15"] .kt-table td{font-size:13px}
html[data-krc-font="16"] body{font-size:16px}
html[data-krc-font="16"] .kt-table td{font-size:13.5px}
html[data-krc-font="18"] body{font-size:18px}
html[data-krc-font="18"] .kt-table td{font-size:15px}
html[data-krc-font="18"] .kt-table .kt-hrow th,
html[data-krc-font="18"] .kt-acthead{font-size:12px}
html[data-krc-theme="dark"] .kt-gh.kt-g--blue{background:#1e3a5f!important;color:#bfdbfe!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--green{background:#14532d!important;color:#bbf7d0!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--amber{background:#4a3412!important;color:#fde68a!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--violet{background:#3b2660!important;color:#ddd6fe!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--rose{background:#5b2436!important;color:#fecdd3!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--teal{background:#134e4a!important;color:#99f6e4!important}
html[data-krc-theme="dark"] .kt-gh.kt-g--slate{background:#334155!important;color:#e2e8f0!important}
html[data-krc-theme="dark"] .kt-table td.kt-g--blue{background:#152238}
html[data-krc-theme="dark"] .kt-table td.kt-g--green{background:#10241a}
html[data-krc-theme="dark"] .kt-table td.kt-g--amber{background:#2a2112}
html[data-krc-theme="dark"] .kt-table td.kt-g--violet{background:#221833}
html[data-krc-theme="dark"] .kt-table td.kt-g--rose{background:#2a1520}
html[data-krc-theme="dark"] .kt-table td.kt-g--teal{background:#102422}
html[data-krc-theme="dark"] .kt-table td.kt-g--slate{background:#1e293b}
html[data-krc-theme="dark"] .kt-table tr.kt-wait td{background:#2a2112}
html[data-krc-theme="dark"] .kt-table tr.kt-wait td:first-child{box-shadow:inset 3px 0 0 #d97706}
html[data-krc-theme="dark"] .kt-flag--miss{color:#fbbf24}
html[data-krc-theme="dark"] .kt-flag--ok{color:#86efac}
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--blue,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--green,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--amber,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--violet,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--rose,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--teal,
html[data-krc-theme="dark"] .kt-table tbody tr:hover td.kt-g--slate{filter:brightness(1.25)}
html[data-krc-theme="dark"] .kt-meter__t{background:#334155}
html[data-krc-theme="dark"] .ib,
html[data-krc-theme="dark"] .ib-art,
html[data-krc-theme="dark"] .ib-compose,
html[data-krc-theme="dark"] .ib-quick,
html[data-krc-theme="dark"] .ib-it,
html[data-krc-theme="dark"] .dx,
html[data-krc-theme="dark"] .dx-crumbs,
html[data-krc-theme="dark"] .dx-search,
html[data-krc-theme="dark"] .dx-file,
html[data-krc-theme="dark"] .ksef-conn,
html[data-krc-theme="dark"] .ksef-roles,
html[data-krc-theme="dark"] .ksef-role,
html[data-krc-theme="dark"] .ksef-seg button,
html[data-krc-theme="dark"] .rpt-planned__i{background:#111827;color:#e2e8f0;border-color:#334155}
html[data-krc-theme="dark"] .ib-nav,
html[data-krc-theme="dark"] .ib-day,
html[data-krc-theme="dark"] .ib-arts,
html[data-krc-theme="dark"] .dx-bar,
html[data-krc-theme="dark"] .dx-tree,
html[data-krc-theme="dark"] .dx-status,
html[data-krc-theme="dark"] .rpt-planned{background:#0f172a;color:#e2e8f0;border-color:#334155}
html[data-krc-theme="dark"] .ib-nv,
html[data-krc-theme="dark"] .ib-it__s,
html[data-krc-theme="dark"] .ib-art__b,
html[data-krc-theme="dark"] .dx-tn,
html[data-krc-theme="dark"] .dx-crumb,
html[data-krc-theme="dark"] .ksef-seg button{color:#e2e8f0}
html[data-krc-theme="dark"] .ib-new,
html[data-krc-theme="dark"] .ib-btn,
html[data-krc-theme="dark"] .ib-it.on,
html[data-krc-theme="dark"] .ib-nv.on,
html[data-krc-theme="dark"] .dx-tn.on{background:#1e3a5f;color:#dbeafe;border-color:#334155}
html[data-krc-theme="dark"] .ib-art--out{background:#132033;border-color:#1e3a5f}
html[data-krc-theme="dark"] .ib-art--note,
html[data-krc-theme="dark"] .ib-compose--note,
html[data-krc-theme="dark"] .ib-quick--note{background:#2a2418;border-color:#4a3f28;color:#f5e6c8}
html[data-krc-theme="dark"] .ib-btn--teal{background:#102422;border-color:#134e4a;color:#99f6e4}
html[data-krc-theme="dark"] .ib-btn--sand{background:#2a2318;border-color:#4a3b22;color:#f5e6c8}
html[data-krc-theme="dark"] .ib-btn--primary,
html[data-krc-theme="dark"] .ksef-seg button.on{background:#0b4ea2;border-color:#0b4ea2;color:#fff}
html[data-krc-theme="dark"] .ksef-seg button em{background:#1e293b;color:#cbd5e1}
html[data-krc-theme="dark"] .dx-ib,
html[data-krc-theme="dark"] .ib-refresh{background:#1e293b;color:#e2e8f0;border-color:#334155}
html[data-krc-theme="dark"] .dx-tn:hover,
html[data-krc-theme="dark"] .dx-item:hover,
html[data-krc-theme="dark"] .ib-it:hover,
html[data-krc-theme="dark"] .ib-nv:hover{background:#1e293b}
html[data-krc-theme="dark"] .ksef-role--add{color:#94a3b8}
html[data-krc-theme="dark"] .info-group--blue{background:#132033;border-color:#1e3a5f;color:#dbeafe}
html[data-krc-theme="dark"] .info-group--blue .info-group__title{color:#93c5fd}
html[data-krc-theme="dark"] .info-group--green{background:#10241a;border-color:#14532d;color:#bbf7d0}
html[data-krc-theme="dark"] .info-group--teal{background:#102422;border-color:#134e4a;color:#99f6e4}
html[data-krc-theme="dark"] .ib-tabs button.on{background:#1e3a5f;color:#dbeafe}
html[data-krc-theme="dark"] .info-group__title{color:inherit}
/* na PC hamburger z górnego paska jest zbędny (jest w nagłówku menu); zostaje na telefonie */
@media(min-width:861px){.topbar .hamburger{display:none!important}}

/* cienkie paski przewijania tabel, okien i list */
.kt-scroll,.panel-modal__body,.dx-tree,.dx-pane,.ib-nav,.ib-items,.ib-arts,.kn__list,.kpdf__stage,.kc__list,.kc-msgs,.kt-colmenu,.week-calendar-wrap{scrollbar-width:thin;scrollbar-color:#9aa8ba transparent}
.kt-scroll::-webkit-scrollbar,.panel-modal__body::-webkit-scrollbar,.dx-tree::-webkit-scrollbar,.dx-pane::-webkit-scrollbar,.ib-nav::-webkit-scrollbar,.ib-items::-webkit-scrollbar,.ib-arts::-webkit-scrollbar,.kn__list::-webkit-scrollbar,.kpdf__stage::-webkit-scrollbar,.kc__list::-webkit-scrollbar,.kc-msgs::-webkit-scrollbar,.kt-colmenu::-webkit-scrollbar,.week-calendar-wrap::-webkit-scrollbar{width:5px;height:5px}
.kt-scroll::-webkit-scrollbar-track,.panel-modal__body::-webkit-scrollbar-track,.dx-tree::-webkit-scrollbar-track,.dx-pane::-webkit-scrollbar-track,.ib-nav::-webkit-scrollbar-track,.ib-items::-webkit-scrollbar-track,.ib-arts::-webkit-scrollbar-track,.kn__list::-webkit-scrollbar-track,.kpdf__stage::-webkit-scrollbar-track,.kc__list::-webkit-scrollbar-track,.kc-msgs::-webkit-scrollbar-track,.kt-colmenu::-webkit-scrollbar-track,.week-calendar-wrap::-webkit-scrollbar-track{background:transparent}
.kt-scroll::-webkit-scrollbar-thumb,.panel-modal__body::-webkit-scrollbar-thumb,.dx-tree::-webkit-scrollbar-thumb,.dx-pane::-webkit-scrollbar-thumb,.ib-nav::-webkit-scrollbar-thumb,.ib-items::-webkit-scrollbar-thumb,.ib-arts::-webkit-scrollbar-thumb,.kn__list::-webkit-scrollbar-thumb,.kpdf__stage::-webkit-scrollbar-thumb,.kc__list::-webkit-scrollbar-thumb,.kc-msgs::-webkit-scrollbar-thumb,.kt-colmenu::-webkit-scrollbar-thumb,.week-calendar-wrap::-webkit-scrollbar-thumb{background:#9aa8ba;border-radius:5px}
.kt-scroll::-webkit-scrollbar-button,.panel-modal__body::-webkit-scrollbar-button,.dx-tree::-webkit-scrollbar-button,.dx-pane::-webkit-scrollbar-button,.ib-nav::-webkit-scrollbar-button,.ib-items::-webkit-scrollbar-button,.ib-arts::-webkit-scrollbar-button,.kn__list::-webkit-scrollbar-button,.kpdf__stage::-webkit-scrollbar-button,.kc__list::-webkit-scrollbar-button,.kc-msgs::-webkit-scrollbar-button,.kt-colmenu::-webkit-scrollbar-button,.week-calendar-wrap::-webkit-scrollbar-button{display:none;width:0;height:0}
html[data-krc-theme="dark"] .kt-scroll,
html[data-krc-theme="dark"] .panel-modal__body,
html[data-krc-theme="dark"] .dx-tree,
html[data-krc-theme="dark"] .dx-pane,
html[data-krc-theme="dark"] .ib-items,
html[data-krc-theme="dark"] .ib-arts{scrollbar-color:#475569 transparent}
html[data-krc-theme="dark"] .kt-scroll::-webkit-scrollbar-thumb,
html[data-krc-theme="dark"] .panel-modal__body::-webkit-scrollbar-thumb,
html[data-krc-theme="dark"] .dx-tree::-webkit-scrollbar-thumb,
html[data-krc-theme="dark"] .dx-pane::-webkit-scrollbar-thumb,
html[data-krc-theme="dark"] .ib-items::-webkit-scrollbar-thumb,
html[data-krc-theme="dark"] .ib-arts::-webkit-scrollbar-thumb{background:#475569}

/* ---------- pasek przewijania menu ze strzałkami ---------- */
@supports not selector(::-webkit-scrollbar){.sidebar__nav{scrollbar-width:thin;scrollbar-color:#c3ccd8 #f1f3f6}}
.sidebar__nav::-webkit-scrollbar{width:5px}
.sidebar__nav::-webkit-scrollbar-track{background:#f1f3f6}
.sidebar__nav::-webkit-scrollbar-thumb{background:#c9d1dc;border-radius:4px;border:1px solid #f1f3f6}
.sidebar__nav::-webkit-scrollbar-thumb:hover{background:#aab5c3}
.sidebar__nav::-webkit-scrollbar-button:single-button{display:block;height:9px;background-color:#f1f3f6;background-repeat:no-repeat;background-position:center;background-size:5px 5px}
.sidebar__nav::-webkit-scrollbar-button:single-button:vertical:decrement{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2l4 5H1z' fill='%2394a3b8'/%3E%3C/svg%3E")}
.sidebar__nav::-webkit-scrollbar-button:single-button:vertical:increment{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 8L1 3h8z' fill='%2394a3b8'/%3E%3C/svg%3E")}
.sidebar__nav::-webkit-scrollbar-button:single-button:hover{background-color:#e2e8f0}

/* ikona w tekście (zamiast emoji) */
.ki{display:inline-flex;vertical-align:-3px;margin-right:4px;color:inherit}
.ki svg{width:14px;height:14px}

html[data-krc-theme="dark"] .krc-leaflet-pop .leaflet-popup-content-wrapper,
html[data-krc-theme="dark"] .krc-leaflet-pop .leaflet-popup-tip{background:#1e293b;color:#e2e8f0}
html[data-krc-theme="dark"] .krc-pop{color:#e2e8f0}
html[data-krc-theme="dark"] .krc-pop__addr,
html[data-krc-theme="dark"] .krc-pop__when,
html[data-krc-theme="dark"] .krc-pop__rows span,
html[data-krc-theme="dark"] .krc-pop__slot em,
html[data-krc-theme="dark"] .krc-pop__hint{color:#94a3b8}
html[data-krc-theme="dark"] .krc-pop__desc,
html[data-krc-theme="dark"] .krc-pop__slot{color:#cbd5e1}
html[data-krc-theme="dark"] .krc-pop__pill--open{background:#10241a;color:#86efac}
html[data-krc-theme="dark"] .krc-pop__pill--closed{background:#0f172a;color:#94a3b8}
html[data-krc-theme="dark"] .krc-pop__pill--plan{background:#2a2318;color:#f5d7a1}
html[data-krc-theme="dark"] .krc-pop__sched{border-top-color:#334155}
html[data-krc-theme="dark"] .krc-pop__who{color:#93c5fd}
html[data-krc-theme="dark"] .krc-set__prev{background:#0f172a;color:#93c5fd}
html[data-krc-theme="dark"] .krc-set__plab,
html[data-krc-theme="dark"] .krc-set__check{color:#e2e8f0}

/* ciemny tryb: tekst danych ma być jasny, granat i niebieski z jasnego motywu giną na ciemnym tle */
html[data-krc-theme="dark"] .content,
html[data-krc-theme="dark"] .panel-modal,
html[data-krc-theme="dark"] .topbar{color:#e8eef6}
html[data-krc-theme="dark"] .content a,
html[data-krc-theme="dark"] .panel-modal a,
html[data-krc-theme="dark"] .kt-link,
html[data-krc-theme="dark"] .kt-jump{color:#e8f1ff}
html[data-krc-theme="dark"] .topbar__btn--primary,
html[data-krc-theme="dark"] .kt-btn--primary,
html[data-krc-theme="dark"] .kt-seg button.on{color:#fff}
html[data-krc-theme="dark"] .kt-table td,
html[data-krc-theme="dark"] .kt-table td b,
html[data-krc-theme="dark"] .kt-table td strong,
html[data-krc-theme="dark"] .kt-table td .kt-strong,
html[data-krc-theme="dark"] .kt-table td .kt-link,
html[data-krc-theme="dark"] .kt-table td .kt-jump,
html[data-krc-theme="dark"] .kt-table td .kt-cut,
html[data-krc-theme="dark"] .kt-table td .kt-meter__v,
html[data-krc-theme="dark"] .kt-tile__h b,
html[data-krc-theme="dark"] .kt-tile__kv b,
html[data-krc-theme="dark"] .kt-kpi__v{color:#f8fafc}
html[data-krc-theme="dark"] .kt-table td .kt-sub,
html[data-krc-theme="dark"] .kt-table td .kt-dim,
html[data-krc-theme="dark"] .kt-kpi__l,
html[data-krc-theme="dark"] .kt-kpi__s{color:#cbd5e1}
html[data-krc-theme="dark"] .kt-tag--info{background:#1e3a5f;color:#dbeafe}
html[data-krc-theme="dark"] .kt-tag--muted{background:#1e293b;color:#e2e8f0}
html[data-krc-theme="dark"] .stat-card__num,
html[data-krc-theme="dark"] .panel-section__title,
html[data-krc-theme="dark"] .chart-card__title,
html[data-krc-theme="dark"] .panel-modal__head,
html[data-krc-theme="dark"] .km-survey b,
html[data-krc-theme="dark"] .km-legend{color:#f8fafc}
html[data-krc-theme="dark"] .km-survey span,
html[data-krc-theme="dark"] .stat-card__label,
html[data-krc-theme="dark"] .chart-card__title small{color:#cbd5e1}
html[data-krc-theme="dark"] .stat-card__icon--blue{color:#93c5fd}
html[data-krc-theme="dark"] .stat-card__icon--green{color:#86efac}
html[data-krc-theme="dark"] .stat-card__icon--amber{color:#fcd34d}
html[data-krc-theme="dark"] .stat-card__icon--purple{color:#d8b4fe}
html[data-krc-theme="dark"] .stat-card__icon--red{color:#fca5a5}
html[data-krc-theme="dark"] .stat-card__icon--teal{color:#5eead4}
html[data-krc-theme="dark"] .panel-section__title .count{background:#1e3a5f;color:#dbeafe}
html[data-krc-theme="dark"] .info-group--blue{background:#132033;border-color:#1e3a5f;color:#dbeafe}
html[data-krc-theme="dark"] .info-group--blue .info-group__title,
html[data-krc-theme="dark"] .info-group--teal .info-group__title{color:#e8f1ff}
html[data-krc-theme="dark"] .info-group--teal{background:#10241a;border-color:#134e4a;color:#ccfbf1}
html[data-krc-theme="dark"] .kf,
html[data-krc-theme="dark"] .pf-route,
html[data-krc-theme="dark"] .pf-sec h3,
html[data-krc-theme="dark"] .pf-check,
html[data-krc-theme="dark"] .pf-radios label{color:#e2e8f0}
html[data-krc-theme="dark"] .dx-item b,
html[data-krc-theme="dark"] .dx-tn,
html[data-krc-theme="dark"] .dx-empty b,
html[data-krc-theme="dark"] .dx-ib,
html[data-krc-theme="dark"] .fv-party__line{color:#e2e8f0}
