/* Kelbrix sidebar card - numbered menu panel (website left bar + ERP left bars).
   Expanded state = rounded panel: 01 Home / 02 ... big bold labels, divider, social icons, email, copyright.
   Collapsed state (thin icon rail) is unchanged. Additive CSS: remove this file to go back. */
:root{--kxs-ink:#1d1810;--kxs-gold:#c9a227;--kxs-gold-d:#8c6e21;--kxs-bg:#fffdf7;--kxs-mute:#7a7364}

/* ---------- shared footer block ---------- */
.kxs-foot{display:none;position:sticky;bottom:0;margin-top:auto;padding:14px 22px 16px;background:var(--kxs-bg);border-top:1px solid rgba(201,162,39,.32);z-index:3;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
.kxs-soc{display:flex;flex-wrap:nowrap;gap:6px;margin:0 0 12px}
.kxs-soc a{width:30px;height:30px;border-radius:9px;display:inline-grid;place-items:center;background:var(--kxs-ink);color:#f2dc9a !important;-webkit-text-fill-color:#f2dc9a !important;transition:transform .15s ease,background .15s ease}
.kxs-soc a:hover{transform:translateY(-2px);background:#3a2f12}
.kxs-soc svg{width:15px;height:15px;fill:currentColor}
.kxs-mail{display:block;font-size:11.5px;letter-spacing:-.1px;font-weight:700;color:var(--kxs-ink) !important;-webkit-text-fill-color:var(--kxs-ink) !important;text-decoration:none;word-break:break-all}
.kxs-copy{margin-top:3px;font-size:11px;line-height:1.4;color:var(--kxs-mute)}

/* ================= A) WEBSITE: #kelbrixLeftFramework ================= */
@media (min-width:701px){
  html:root body:not(#kxz) #kelbrixLeftFramework:hover,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open{
    width:300px !important;background:var(--kxs-bg) !important;border-radius:0 30px 30px 0 !important;
    border:1px solid rgba(201,162,39,.42) !important;border-left:0 !important;display:flex !important;flex-direction:column !important;
    font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important;
  }
  html:root body:not(#kxz) #kelbrixLeftFramework .klf-nav{counter-reset:kxn}
    html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-item,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .klf-item,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open .klf-item{
    counter-increment:kxn;display:flex !important;align-items:baseline !important;gap:12px !important;
    padding:8px 18px !important;margin:1px 10px !important;border-radius:14px !important;
    font-size:18px !important;font-weight:650 !important;line-height:1.2 !important;color:var(--kxs-ink) !important;-webkit-text-fill-color:var(--kxs-ink) !important;
    background:transparent !important;transition:background .15s ease,padding-left .18s ease !important;
  }
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-item .klf-label::before,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .klf-item .klf-label::before,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open .klf-item .klf-label::before{
    content:counter(kxn,decimal-leading-zero);display:inline-block;vertical-align:super;margin:0 10px 0 0;min-width:18px;
    font-size:10px;font-weight:800;letter-spacing:.05em;color:var(--kxs-gold-d);-webkit-text-fill-color:var(--kxs-gold-d);
  }
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-item:hover,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .klf-item:hover{background:linear-gradient(135deg,#fff6dc,#f6e7b8) !important;padding-left:24px !important}
  html:root body:not(#kxz) #kelbrixLeftFramework .klf-item.active,html:root body:not(#kxz) #kelbrixLeftFramework .klf-item[aria-current]{background:linear-gradient(135deg,#fff1c4,#f2dc9a) !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-item .klf-icon,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .klf-item .klf-icon,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open .klf-item .klf-icon,
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-chev,
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-tip,
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-promo,
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-copy,
  html:root body:not(#kxz) #kelbrixLeftFramework .scroll-detail-layer{display:none !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-item.klf-cta{background:linear-gradient(135deg,#f2dc9a,#c9a227) !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-erp,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .klf-erp{margin:8px 10px 0 !important;font-family:inherit !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .klf-erp *{font-family:inherit !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .kxs-foot,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within .kxs-foot,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open .kxs-foot{display:block}
}

@media (min-width:901px){
/* ================= B) ERP HUB: .rail (index-app.html) ================= */
html:root body nav.rail{counter-reset:kxn}
html:root body nav.rail .nv::before{display:none}
html:root body nav.rail:hover,html:root body nav.rail:focus-within{
  width:290px !important;border-radius:24px !important;display:flex !important;flex-direction:column !important;
  background:var(--kxs-bg) !important;border:1px solid rgba(201,162,39,.42) !important;
}
html:root body nav.rail:hover .nv,html:root body nav.rail:focus-within .nv{
  counter-increment:kxn;display:flex !important;align-items:baseline !important;gap:12px !important;
  padding:8px 16px !important;border-radius:14px !important;margin-bottom:1px !important;
}
html:root body nav.rail:hover .nv::before,html:root body nav.rail:focus-within .nv::before{
  content:counter(kxn,decimal-leading-zero);display:inline-block;align-self:flex-start;margin-top:3px;min-width:18px;
  font-size:10px;font-weight:800;letter-spacing:.05em;color:var(--kxs-gold-d);
}
html:root body nav.rail:hover .nv .l,html:root body nav.rail:focus-within .nv .l{font-size:17px !important;font-weight:650 !important;letter-spacing:0 !important}
html:root body nav.rail:hover .nv > svg,html:root body nav.rail:focus-within .nv > svg{display:none !important}
html:root body nav.rail:hover .nv:hover{background:linear-gradient(135deg,#fff6dc,#f6e7b8) !important}
html:root body nav.rail:hover .kxs-foot,html:root body nav.rail:focus-within .kxs-foot{display:block}

/* ================= C) ERP WORKSPACE: .kx-rail (workspace.html etc.) ================= */
.kx-rail .kxs-l,.kx-rail .kxs-n{display:none}
.kx-rail{counter-reset:kxn;transition:width .22s ease,box-shadow .22s ease,border-radius .22s ease !important}
.kx-rail:hover,.kx-rail:focus-within{
  width:290px !important;align-items:stretch !important;padding:14px 10px 0 !important;gap:2px !important;
  background:var(--kxs-bg) !important;border-radius:0 26px 26px 0 !important;box-shadow:18px 0 60px rgba(29,24,16,.2) !important;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
.kx-rail:hover > a,.kx-rail:focus-within > a{width:auto !important;height:auto !important;display:flex !important;align-items:baseline !important;justify-content:flex-start !important;gap:12px !important;padding:8px 16px !important;border-radius:14px !important;place-items:initial !important;counter-increment:kxn}
.kx-rail:hover > a > svg,.kx-rail:focus-within > a > svg{display:none !important}
.kx-rail:hover .kxs-n,.kx-rail:focus-within .kxs-n{display:inline-block;align-self:flex-start;margin-top:3px;min-width:18px;font-size:10px;font-weight:800;letter-spacing:.05em;color:var(--kxs-gold-d)}
.kx-rail:hover .kxs-n::before,.kx-rail:focus-within .kxs-n::before{content:counter(kxn,decimal-leading-zero)}
.kx-rail:hover .kxs-l,.kx-rail:focus-within .kxs-l{display:inline;font-size:17px;font-weight:650;color:var(--kxs-ink);white-space:nowrap}
.kx-rail:hover > a:hover{background:linear-gradient(135deg,#fff6dc,#f6e7b8) !important;transform:none !important}
.kx-rail:hover > a.on,.kx-rail:focus-within > a.on{background:linear-gradient(135deg,#fff1c4,#f2dc9a) !important}
.kx-rail:hover > a.on::before{display:none}
.kx-rail:hover .kx-sep{width:auto;margin:6px 10px}
.kx-rail:hover .kxs-foot,.kx-rail:focus-within .kxs-foot{display:block;margin-left:-10px;margin-right:0;width:calc(100% + 10px)}

html:root body:not(#kxz) .kxs-foot,html:root body:not(#kxz) .kxs-foot *{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important}
html:root body:not(#kxz) .kxs-foot .kxs-copy{color:#7a7364 !important;-webkit-text-fill-color:#7a7364 !important}
@media (min-width:701px){
  html:root body:not(#kxz) #kelbrixLeftFramework:hover > *,
  html:root body:not(#kxz) #kelbrixLeftFramework:focus-within > *,
  html:root body:not(#kxz) #kelbrixLeftFramework.kx-open > *{flex-shrink:0 !important}
  html:root body:not(#kxz) #kelbrixLeftFramework:hover .kxs-foot{margin-top:auto}
}

/* --- fixes after visual check --- */
html:root body .kx-rail .kxs-foot a.kxs-mail{width:auto !important;height:auto !important;display:block !important;border-radius:0 !important;background:none !important;place-items:initial !important;transform:none !important}
html:root body .kx-rail .kxs-foot .kxs-soc a{width:30px !important;height:30px !important;display:inline-grid !important;border-radius:9px !important;background:#1d1810 !important}
html:root body .kx-rail .kxs-foot{padding:14px 20px 16px;margin-left:-10px;margin-right:0}
html:root body .kxs-foot .kxs-mail{white-space:nowrap;font-size:11px;letter-spacing:-.1px}
html:root body nav.rail .kxs-foot{margin:6px -8px -14px;padding:14px 22px 16px;border-radius:0 0 24px 24px}
html:root body nav.rail:hover .nv.on::before,html:root body nav.rail:focus-within .nv.on::before{color:#fff;opacity:.85}
html:root body nav.rail:hover .nv.on .l{color:#fff !important}
}

@media (max-width:700px){.kxs-foot{display:none !important}}
@media (min-width:901px){html:root body nav.rail:hover ~ #kxhot,html:root body:has(nav.rail:hover) #kxhot{pointer-events:none}}
