/* Storage optical material. Adapted from the supplied Events / Calls reference.
   Layout stays in storage-workspace.css; this final layer owns scene and optics. */
:root {
  --glass-blur:18px;
  --st-glass-blur:18px;
  --storage-glass-tint:.52;
  --storage-glass-tint-rgb:245,248,251;
  --st-glass-surface:linear-gradient(145deg,rgba(255,255,255,.58),rgba(239,245,250,.52) 55%,rgba(216,228,239,.44));
  --st-glass-popover:linear-gradient(145deg,rgba(255,255,255,.76),rgba(237,244,250,.72));
  --st-glass-control:linear-gradient(145deg,rgba(255,255,255,.25),rgba(239,246,252,.08));
  --st-glass-edge:inset 1px 1px 1px rgba(255,255,255,.48),inset -1px -1px 1px rgba(94,117,137,.045),0 8px 23px rgba(26,44,62,.09);
  --card-surface:var(--st-glass-surface);
  --card-edge:var(--st-glass-edge);
  --st-surface:var(--st-glass-surface);
  --st-popover:rgba(243,248,252,.82);
  --st-rail:rgba(243,248,252,.3);
  --st-border:rgba(50,70,90,.08);
  --st-control:rgba(255,255,255,.14);
  --st-soft:rgba(247,251,255,.12);
  --st-scene:linear-gradient(0deg,rgba(244,248,252,.46),rgba(244,248,252,.12) 65%),linear-gradient(90deg,rgba(244,248,252,.68),transparent 70%),rgba(240,246,251,.24);
}
:root[data-storage-theme=dark] {
  --st-text:#fff;--st-muted:#c8ced5;
  --storage-glass-tint:.26;
  --storage-glass-tint-rgb:22,22,24;
  --st-glass-surface:linear-gradient(145deg,rgba(62,54,50,.62),rgba(22,22,24,.68) 55%,rgba(16,21,25,.64));
  --st-glass-popover:linear-gradient(145deg,rgba(53,49,47,.78),rgba(17,23,30,.84));
  --st-glass-control:linear-gradient(145deg,rgba(207,211,217,.065),rgba(13,20,28,.14));
  --st-glass-edge:inset 1px 1px 1px rgba(255,245,232,.18),inset -1px -1px 1px rgba(222,230,239,.045),0 8px 23px rgba(0,0,0,.18);
  --st-surface:var(--st-glass-surface);
  --st-popover:rgba(24,28,33,.82);
  --st-rail:rgba(17,23,30,.28);
  --st-border:rgba(218,211,203,.09);
  --st-control:rgba(9,16,24,.22);
  --st-soft:rgba(235,239,245,.045);
  --st-scene:linear-gradient(0deg,rgba(4,11,23,.61),rgba(4,11,23,.08) 65%),linear-gradient(90deg,rgba(4,11,23,.28),transparent 70%),rgba(6,14,25,.28);
}
.storage-screen {background:var(--st-bg);isolation:isolate}
.storage-screen::before,.storage-screen::after{display:none!important}
.storage-scene{position:fixed;inset:12px;z-index:-2;overflow:hidden;border-radius:32px;pointer-events:none;background:var(--st-bg)}
.storage-scene>#scene-photo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center right;pointer-events:none}
.storage-scene>.scene-shade{position:absolute;inset:0;background:var(--st-scene);pointer-events:none}
:root[data-storage-background=off] .storage-scene>#scene-photo,:root[data-storage-background=off] .storage-scene>.scene-shade{visibility:hidden}
.storage-screen :is(.storage-brand-capsule,.storage-header-tools,.storage-sidebar,.panel,.stat,.sa-stat,.storage-login,.modal,.storage-profile-menu,.toast,.gc-popup){
  isolation:isolate;border-color:transparent!important;background:var(--st-glass-surface);box-shadow:var(--st-glass-edge);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.12);backdrop-filter:blur(var(--glass-blur)) saturate(1.12);
}
.storage-screen :is(.storage-brand-capsule,.storage-header-tools,.storage-login,.stat,.sa-stat){position:relative}
.storage-screen :is(.storage-profile-menu,.gc-popup,.modal,.toast){background:var(--st-glass-popover)}
.storage-screen .storage-sidebar{background:var(--st-glass-surface)!important}
.storage-screen :is(.storage-brand-capsule,.storage-header-tools){--storage-glass-tint:.18;background:var(--st-glass-control)}
:root[data-storage-theme=light] .storage-screen :is(.storage-brand-capsule,.storage-header-tools){--storage-glass-tint:.5}
.storage-screen .storage-brand-capsule::before{display:none!important}
.storage-screen .storage-brand-capsule>.brand{border-color:transparent!important;box-shadow:none!important;background:transparent}
.storage-screen :is(.btn:not(.primary):not(.danger),.icon-btn,.gc-trigger,input,select,textarea,.storage-quantity,.view-toggle,.shift-chip,.profile-button,.quick-action,.storage-catalog-add){
  border-color:transparent;box-shadow:inset 1px 1px 1px rgba(251,238,226,.1),0 2px 6px rgba(0,0,0,.07);background:var(--st-glass-control);
  -webkit-backdrop-filter:blur(12px) saturate(1.12);backdrop-filter:blur(12px) saturate(1.12);
}
.storage-screen :is(.quick-action,.storage-product-workspace>section,.document-summary,.detail-summary,.storage-product-thumb,.storage-picker-mobile-tabs,.storage-method){border-color:transparent!important;box-shadow:inset 1px 1px 1px rgba(240,245,250,.075);background:var(--st-soft)}
.storage-screen .btn.primary{border-color:transparent!important;box-shadow:inset 0 1px 0 rgba(184,212,255,.17),0 5px 18px rgba(14,55,137,.15);background:linear-gradient(135deg,#326ee8,#2152c9)}
.storage-screen :is(.btn,.icon-btn,.quick-action):hover{box-shadow:inset 1px 1px 1px rgba(251,238,226,.16),0 3px 12px rgba(0,0,0,.08)}
.storage-screen .storage-sidebar .nav a{border-color:transparent!important;box-shadow:none}
.storage-screen .storage-sidebar .nav a.active{background:rgba(50,110,232,.2);border-color:transparent!important;box-shadow:inset 3px 0 0 #568cff}
.storage-screen :is(.table th,.sa-table th){background:var(--st-soft);border-color:var(--st-border)}
.storage-screen :is(.modal>.modal-header,.modal>.modal-footer){background:transparent;border-color:var(--st-border)}
.storage-screen .modal-overlay{background:rgba(4,10,18,.36);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.storage-screen .topbar.context-open .warehouse-control{background:var(--st-glass-popover);border-color:transparent;box-shadow:var(--st-glass-edge);-webkit-backdrop-filter:blur(18px) saturate(1.12);backdrop-filter:blur(18px) saturate(1.12)}
.storage-screen .storage-profile-menu>button{border-color:transparent;background:transparent;box-shadow:none}
.storage-screen :is(input,select,textarea,.gc-trigger):focus-visible{outline:2px solid #94b8ff;outline-offset:3px}
.storage-screen :is(input,select,textarea):focus{border-color:var(--st-accent)!important}

/* Each optical canvas stays inside its host, below live HTML and controls. */
.storage-screen .sg-pane{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:inherit;opacity:1!important;visibility:hidden;pointer-events:none!important;z-index:-1!important;contain:strict}
.storage-screen .glass-painted>.sg-pane{visibility:visible}
html.storage-optical-glass:not(.glass-off):not(.storage-static-glass):not(.storage-css-scene) .storage-screen .glass-painted{
  background:transparent!important;border-color:transparent!important;box-shadow:var(--st-glass-edge)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
.storage-screen :is(.btn.primary,.btn.danger)>.sg-pane{display:none!important}

/* One local moving glint when optical sampling is unavailable. No white ring. */
@property --storage-glass-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
html.storage-optical-glass:not(.glass-off):not(.motion-off) .storage-screen :is(.storage-brand-capsule,.storage-header-tools,.storage-sidebar,.storage-login,.modal,.gc-popup):not(.glass-painted)::after{
  content:"";position:absolute;inset:0;padding:1px;border-radius:inherit;pointer-events:none;z-index:2;
  background:conic-gradient(from var(--storage-glass-angle),transparent 0deg 304deg,rgba(235,244,255,.035) 317deg,rgba(242,248,255,.58) 332deg,rgba(235,244,255,.035) 342deg,transparent 351deg 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  animation:storage-glass-edge 21.739s linear infinite;
}
@keyframes storage-glass-edge{to{--storage-glass-angle:360deg}}
html:is(.storage-static-glass,.storage-css-scene,.glass-off) .storage-screen .sg-pane{visibility:hidden!important}
html:is(.storage-static-glass,.storage-css-scene,.glass-off) .storage-screen .glass-painted{background:var(--st-glass-surface)!important;-webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.12)!important;backdrop-filter:blur(var(--glass-blur)) saturate(1.12)!important}
.storage-screen .storage-readability :is(.panel,.stat,.sa-stat,.storage-sidebar),.storage-screen:has(.storage-readability) :is(.modal,.storage-profile-menu,.gc-popup){background:var(--st-surface-strong)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important}
.storage-screen .storage-readability .sg-pane,.storage-screen:has(.storage-readability) .sg-pane{visibility:hidden!important}
@media(max-width:760px){.storage-scene{inset:0;border-radius:0}.storage-scene>#scene-photo{object-position:72% center}.storage-screen .storage-header-tools>.icon-btn,.storage-screen .storage-brand-capsule>.icon-btn,.storage-screen .topbar [data-storage-context-toggle]{min-width:44px;width:44px;min-height:44px}.storage-screen .profile-button{min-width:44px!important;width:44px!important;height:44px!important}.storage-screen .storage-sidebar{background:var(--st-glass-popover)!important}.storage-screen .modal-overlay{align-items:flex-end;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.storage-screen *, .storage-screen *::before,.storage-screen *::after{animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){.storage-screen .sg-pane{display:none!important}.storage-screen :is(.storage-brand-capsule,.storage-header-tools,.storage-sidebar,.panel,.stat,.sa-stat,.storage-login,.modal,.storage-profile-menu,.gc-popup){background:var(--st-surface-strong)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.storage-screen *::after{animation:none!important}}
@media(forced-colors:active){.storage-screen .sg-pane,.storage-scene{display:none!important}.storage-screen :is(.panel,.stat,.modal,.btn,.icon-btn,input,select,textarea,.gc-trigger,.gc-popup){background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
@media print{.storage-scene,.sg-pane{display:none!important}.storage-screen #print-root{background:white!important;color:#111!important;box-shadow:none!important}.storage-screen #print-root *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}

.storage-scene>.scene-shade{--storage-scene-shade-rgb:244,248,252;--storage-scene-left-opacity:.68;--storage-scene-bottom-opacity:.46;--storage-scene-top-opacity:.12}
:root[data-storage-theme=dark] .storage-scene>.scene-shade{--storage-scene-shade-rgb:4,11,23;--storage-scene-left-opacity:.28;--storage-scene-bottom-opacity:.61;--storage-scene-top-opacity:.08}

@media(min-width:951px){.storage-screen .storage-sidebar{position:relative}}
.storage-screen .sabsus-suite-trigger{border-color:transparent!important;background:transparent!important;box-shadow:none!important}

@media(max-width:760px){:root{--st-scene:linear-gradient(0deg,rgba(244,248,252,.46),rgba(244,248,252,.12) 80%),rgba(240,246,251,.24)}:root[data-storage-theme=dark]{--st-scene:linear-gradient(0deg,rgba(4,11,23,.61),rgba(4,11,23,.08) 80%),rgba(6,14,25,.28)}}



.storage-screen .storage-sidebar .nav a.active::before{content:none!important}
.storage-screen .storage-app .warehouse-control .gc-trigger,.storage-screen .storage-current-warehouse{background:var(--st-glass-control);border-color:transparent!important;box-shadow:var(--st-glass-edge);-webkit-backdrop-filter:blur(12px) saturate(1.12);backdrop-filter:blur(12px) saturate(1.12)}
.storage-screen .storage-picker-results .low-stock-row{border-color:transparent}


@media print{.storage-screen #sabsus-workspace-window{display:none!important}}
