/* Inventory only: compact surfaces, stationary records, finite decorative light. */
body[data-kpulse-module=inventory] #stockFilters{display:block;width:100%}
body[data-kpulse-module=inventory] .stock-filter-disclosure{width:100%;padding-top:4px}
body[data-kpulse-module=inventory] .stock-filter-disclosure>summary{cursor:pointer;color:var(--section-ink);font-size:14px;font-weight:650;padding:6px 0}
body[data-kpulse-module=inventory] .stock-filter-fields,.supply-search .stock-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:9px;align-items:end;width:100%;padding-top:8px}
body[data-kpulse-module=inventory] .stock-filter-fields label,.supply-search .stock-filter-fields label{display:grid;gap:5px;margin:0;min-width:0;font-size:13px;color:#37536c}
body[data-kpulse-module=inventory] .stock-filter-fields :is(select,input,button){width:100%;min-width:0;min-height:42px;font-size:14px;margin:0}
body[data-kpulse-module=inventory] .stock-filter-balance{display:block;font-size:12px;color:#526c7d;white-space:normal}
body[data-kpulse-module=inventory] .supply-search{flex-wrap:wrap}
body[data-kpulse-module=inventory] .supply-search .stock-filter-fields{flex:1 1 100%;padding-top:2px}
body[data-kpulse-module=inventory]{--section-ink:#096e6a;--section-tint:#e8f8f3;--section-edge:#9dddc8;--scene-deep:#103b48;--scene-light:#36c2aa;background:radial-gradient(ellipse at 95% 0,var(--section-tint),transparent 48%),#f4f7fb}
body[data-kpulse-module=inventory][data-stock-view=balances]{--section-ink:#245db2;--section-tint:#edf3ff;--section-edge:#acc7f1;--scene-deep:#14375d;--scene-light:#6295ee}
body[data-kpulse-module=inventory]:is([data-stock-view=journal],[data-stock-view=documents],[data-stock-view=stocktakes]){--section-ink:#7741a2;--section-tint:#f5eefa;--section-edge:#d0b3e7;--scene-deep:#3e295d;--scene-light:#a47cdd}
body[data-kpulse-module=inventory][data-stock-view=supply]{--section-ink:#0b708b;--section-tint:#e8f7fb;--section-edge:#9acedd;--scene-deep:#153e54;--scene-light:#37b9ce}
body[data-kpulse-module=inventory][data-stock-view=requests]{--section-ink:#604cba;--section-tint:#f2efff;--section-edge:#c7bef0;--scene-deep:#362d67;--scene-light:#a89bea}
body[data-kpulse-module=inventory][data-stock-view=assets]{--section-ink:#985214;--section-tint:#fff4e7;--section-edge:#edcba6;--scene-deep:#5a371f;--scene-light:#efba80}
body[data-kpulse-module=inventory][data-stock-view=reports]{--section-ink:#9a4d70;--section-tint:#fff0f5;--section-edge:#e6bbcd;--scene-deep:#532943;--scene-light:#f0a8cc}
body[data-kpulse-module=inventory][data-stock-view=references]{--section-ink:#486a8b;--section-tint:#eef5fa;--section-edge:#c0d5e7;--scene-deep:#2a4158;--scene-light:#8cb9d3}

body[data-kpulse-module=inventory] .stock-top{background:linear-gradient(110deg,#102a3b,#143944 65%,#203c52);border-bottom-color:#83dcca45;box-shadow:0 4px 20px #18385214}
body[data-kpulse-module=inventory] .stock-top .stock-brand small{color:#b5f3dd;font-size:11px;letter-spacing:.17em}
body[data-kpulse-module=inventory] .stock-navigation{background:linear-gradient(165deg,#fff,#f7fafc);border-color:#d6e3eb;box-shadow:0 8px 28px #21455f08}
body[data-kpulse-module=inventory] .stock-navigation-title{color:#35596e}
body[data-kpulse-module=inventory] .stock-navigation .kp-motion-marker{background:var(--section-tint)!important;box-shadow:none}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view]{--nav-ink:#096e6a;--nav-tint:#e7f6f1;--nav-edge:#b7ded3;isolation:isolate;position:relative;transition:background-color .17s ease,border-color .17s ease,box-shadow .2s ease}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=balances]{--nav-ink:#245db2;--nav-tint:#edf3ff;--nav-edge:#b9ceef}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=journal]{--nav-ink:#7741a2;--nav-tint:#f5eefa;--nav-edge:#d6c1e8}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=requests]{--nav-ink:#604cba;--nav-tint:#f2efff;--nav-edge:#d0c7f1}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=supply]{--nav-ink:#0b708b;--nav-tint:#e8f7fb;--nav-edge:#b5dce6}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=assets]{--nav-ink:#985214;--nav-tint:#fff4e7;--nav-edge:#ebd0b1}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=reports]{--nav-ink:#9a4d70;--nav-tint:#fff0f5;--nav-edge:#ebc9d8}
body[data-kpulse-module=inventory] .stock-navigation [data-inventory-view=references]{--nav-ink:#486a8b;--nav-tint:#eef5fa;--nav-edge:#cbdeeb}
body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button svg{box-sizing:border-box;width:30px;height:30px;padding:6px;border-radius:9px;background:var(--nav-tint);color:var(--nav-ink);box-shadow:inset 0 0 0 1px var(--nav-edge);transition:transform .22s ease,box-shadow .22s ease}
body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button[aria-pressed=true]{background:var(--nav-tint);color:var(--nav-ink)!important;border-color:var(--nav-edge);box-shadow:inset 3px 0 var(--nav-ink),0 3px 10px #203c5905}
body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button[aria-pressed=true] svg{background:var(--nav-ink);color:#fff;box-shadow:0 3px 9px #193c6018}

body[data-kpulse-module=inventory][data-stock-view] .stock-hero{background:radial-gradient(ellipse at 100% 50%,var(--section-tint),transparent 66%),linear-gradient(115deg,#fff,#fbfdff)!important;border-color:var(--section-edge);border-left:4px solid var(--section-ink);box-shadow:0 5px 20px #23435707}
body[data-kpulse-module=inventory] .stock-hero-copy{z-index:1}
body[data-kpulse-module=inventory][data-stock-view] .stock-hero::before{width:122px;height:122px;right:22px;top:calc(50% - 61px);border:1px solid var(--section-ink);border-radius:38%;box-shadow:0 0 0 13px var(--section-tint),0 0 0 14px var(--section-edge),0 0 0 28px var(--section-tint),0 0 0 29px var(--section-edge);opacity:.22;transform:translate3d(var(--stock-pointer-drift-x,0px),var(--stock-pointer-drift-y,0px),0) rotate(-16deg);animation:none;transition:transform .35s ease;pointer-events:none}
body[data-kpulse-module=inventory][data-stock-view] .stock-hero h1{letter-spacing:-.03em}
body[data-kpulse-module=inventory] .stock-hero p{line-height:1.5;color:#465f74}
body[data-kpulse-module=inventory][data-stock-view=overview] .stock-hero{background:radial-gradient(ellipse at 95% 15%,#319f9250,transparent 60%),linear-gradient(110deg,#103449,#12505a)!important;border-color:#2e7b7e;color:#fff;box-shadow:0 7px 24px #17485712}
body[data-kpulse-module=inventory][data-stock-view=overview] .stock-hero h1{color:#fff}
body[data-kpulse-module=inventory][data-stock-view=overview] .stock-hero p{color:#d0e9e8}
body[data-kpulse-module=inventory][data-stock-view=overview] .stock-hero::before{border-color:#a6f1df;box-shadow:0 0 0 13px #12505a,0 0 0 14px #a6f1df80,0 0 0 28px #12505a,0 0 0 29px #a6f1df60;opacity:.28}
body[data-kpulse-module=inventory][data-stock-arrival=a] .stock-hero::before{animation:stock-studio-arrival-a .65s cubic-bezier(.16,1,.3,1)}
body[data-kpulse-module=inventory][data-stock-arrival=b] .stock-hero::before{animation:stock-studio-arrival-b .65s cubic-bezier(.16,1,.3,1)}
@keyframes stock-studio-arrival-a{from{opacity:0;transform:translate3d(30px,0,0) rotate(-32deg) scale(.82)}to{opacity:.22;transform:translate3d(0,0,0) rotate(-16deg) scale(1)}}
@keyframes stock-studio-arrival-b{from{opacity:0;transform:translate3d(30px,0,0) rotate(-32deg) scale(.82)}to{opacity:.22;transform:translate3d(0,0,0) rotate(-16deg) scale(1)}}

body[data-kpulse-module=inventory] .stock-stats{gap:12px}
body[data-kpulse-module=inventory] .stock-stat{border-radius:16px;box-shadow:0 4px 16px #26456208}
body[data-kpulse-module=inventory] .stock-stat::before{content:"";position:absolute;right:-24px;bottom:-48px;width:106px;height:106px;border:1px solid currentColor;border-radius:50%;box-shadow:0 0 0 13px currentColor;opacity:.05;pointer-events:none}
body[data-kpulse-module=inventory] .stock-stat-top i{border:1px solid #ffffff70}
body[data-kpulse-module=inventory] .stock-workspace-shortcuts button{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;transform:none;box-shadow:0 4px 14px #1d496208;transition:border-color .18s ease,box-shadow .18s ease,transform .2s ease}
body[data-kpulse-module=inventory] .stock-workspace-shortcuts button::after{content:"";position:absolute;right:-25px;top:-24px;width:100px;height:100px;border:1px solid currentColor;border-radius:30%;box-shadow:0 0 0 10px currentColor;opacity:.055;transform:rotate(-18deg);transition:transform .3s ease;z-index:-1;pointer-events:none}
body[data-kpulse-module=inventory] .stock-workspace-grid>section{border-color:#d6e3ed;background:linear-gradient(155deg,#fff,#f7fbff);box-shadow:0 4px 16px #26456205}
body[data-kpulse-module=inventory] .stock-workspace-grid h3{display:flex;gap:9px;align-items:center;color:#25475f;font-size:17px}
body[data-kpulse-module=inventory] .stock-workspace-grid h3::before{content:"";width:4px;height:17px;border-radius:3px;background:var(--section-ink);flex:none}
body[data-kpulse-module=inventory] .stock-panel{border-color:#d7e3ec;box-shadow:0 5px 20px #254d6b06}
body[data-kpulse-module=inventory] .stock-search{background:linear-gradient(110deg,#fbfdff,var(--section-tint))}
body[data-kpulse-module=inventory] :is(.stock-item-list,.stock-movement-list,.stock-workspace-table) th{background:var(--section-tint);color:var(--section-ink)}
body[data-kpulse-module=inventory] .stock-item-list tbody tr{transition:background-color .15s ease}
body[data-kpulse-module=inventory] .stock-item-list tr:focus-within{background:var(--section-tint);box-shadow:inset 3px 0 var(--section-ink)}
body[data-kpulse-module=inventory] .stock-item-name:hover{color:var(--section-ink)}
body[data-kpulse-module=inventory] .supply-contract-row{border-inline-start:3px solid var(--section-edge)}
body[data-kpulse-module=inventory] .stock-asset{box-shadow:0 3px 15px #26456206}
body[data-kpulse-module=inventory] :is(#stockItemDialog,#stockWorkspaceDialog,#stockBasisDialog)>header{background:linear-gradient(110deg,#fff,var(--section-tint));border-bottom-color:var(--section-edge)}
body[data-kpulse-module=inventory] :is(#stockItemDialog,#stockWorkspaceDialog,#stockBasisDialog)[open]{animation:stock-studio-dialog .18s cubic-bezier(.2,.8,.3,1)}
@keyframes stock-studio-dialog{from{opacity:.65;transform:translateY(7px) scale(.99)}to{opacity:1;transform:none}}
body[data-kpulse-module=inventory] :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--section-ink);outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button:hover{background:var(--nav-tint);border-color:var(--nav-edge)}
 body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button:is(:hover,:focus-visible) svg{transform:rotate(-7deg) scale(1.06)}
 body[data-kpulse-module=inventory] .stock-workspace-shortcuts button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #21486312}
 body[data-kpulse-module=inventory] .stock-workspace-shortcuts button:hover::after{transform:rotate(0deg) scale(1.12)}
 body[data-kpulse-module=inventory] .stock-item-list tbody tr:hover{background:var(--section-tint)}
}
@media(max-width:980px){body[data-kpulse-module=inventory] #stockNavToggle{background:var(--section-tint);color:var(--section-ink);border-color:var(--section-edge)}body[data-kpulse-module=inventory] .stock-navigation{box-shadow:0 12px 30px #21455f14}}
@media(max-width:760px){body[data-kpulse-module=inventory][data-stock-view] .stock-hero::before{right:-65px;opacity:.14}body[data-kpulse-module=inventory] .stock-hero-copy{padding-right:0}body[data-kpulse-module=inventory] .stock-stats{gap:8px}body[data-kpulse-module=inventory] .stock-workspace-shortcuts button::after{width:75px;height:75px}body[data-kpulse-module=inventory] .stock-item-list tr:focus-within{box-shadow:none}}
body[data-kpulse-module=inventory]:is([data-stock-paused=true],[data-stock-offline=true],.auth-pending) :is(.stock-hero,.stock-workspace-shortcuts button)::before,
body[data-kpulse-module=inventory]:is([data-stock-paused=true],[data-stock-offline=true],.auth-pending) :is(.stock-hero,.stock-workspace-shortcuts button)::after,
body[data-kpulse-module=inventory]:is([data-stock-paused=true],[data-stock-offline=true],.auth-pending) :is(#stockItemDialog,#stockWorkspaceDialog,#stockBasisDialog){animation:none!important;transition:none!important}
body[data-kpulse-module=inventory]:is([data-stock-paused=true],[data-stock-offline=true],.auth-pending) :is(.stock-navigation svg,.stock-workspace-shortcuts button){animation:none!important;transition:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){body[data-kpulse-module=inventory] :is(.stock-hero,.stock-stat,.stock-workspace-shortcuts button)::before,body[data-kpulse-module=inventory] :is(.stock-hero,.stock-stat,.stock-workspace-shortcuts button)::after{animation:none!important;transition:none!important}body[data-kpulse-module=inventory] :is(.stock-navigation svg,.stock-workspace-shortcuts button,.stock-item-list tbody tr,#stockItemDialog,#stockWorkspaceDialog,#stockBasisDialog){animation:none!important;transition:none!important;transform:none!important}}
@media(forced-colors:active){body[data-kpulse-module=inventory] :is(.stock-hero,.stock-stat,.stock-workspace-shortcuts button)::before,body[data-kpulse-module=inventory] :is(.stock-hero,.stock-stat,.stock-workspace-shortcuts button)::after{display:none}body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button{background:Canvas;color:CanvasText;box-shadow:none}body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button[aria-pressed=true]{border:2px solid Highlight}body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button svg{background:Canvas;color:CanvasText;box-shadow:none}body[data-kpulse-module=inventory] :is(.stock-hero,.stock-panel,.stock-search,.stock-workspace-grid>section){background:Canvas!important;color:CanvasText!important}body[data-kpulse-module=inventory] :is(.stock-navigation svg,.stock-workspace-shortcuts button,#stockItemDialog,#stockWorkspaceDialog,#stockBasisDialog){animation:none!important;transition:none!important;transform:none!important}}
@media(forced-colors:active){body[data-kpulse-module=inventory] .stock-hero :is(h1,p){color:CanvasText!important}body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button[aria-pressed=true],body[data-kpulse-module=inventory] .stock-navigation .stock-tabs button svg{color:CanvasText!important}body[data-kpulse-module=inventory] .stock-navigation .kp-motion-marker{background:Canvas!important}}
