/* WMS visibility patch v4: explicit final layer, presentation only */
:root{--wms-v4-bg:#eef2f7;--wms-v4-ink:#172132;--wms-v4-muted:#667085;--wms-v4-line:#dce3ec;--wms-v4-brand:#5b4ad6;--wms-v4-brand-dark:#4939b8}
body.wms-v2{background:var(--wms-v4-bg)!important;color:var(--wms-v4-ink)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.wms-sidebar-v2{width:264px!important;background:#111827!important;padding:18px 13px!important;box-shadow:8px 0 28px rgba(15,23,42,.16)!important}
.wms-sidebar-v2 .wms-brand-panel-v3-inner{background:linear-gradient(135deg,#30267d,#1d2340)!important;border:1px solid rgba(169,155,255,.35)!important;box-shadow:0 10px 24px rgba(5,8,30,.25)!important}
.wms-sidebar-v2 .wms-brand-panel-v3-inner strong{font-size:25px!important;letter-spacing:-.05em!important}.wms-sidebar-v2 .wms-brand-panel-v3-inner span{color:#c6c1ff!important}
.wms-nav-v2 a{min-height:42px!important;padding:10px 12px!important;border-radius:10px!important;color:#b9c3d3!important;font-size:13px!important}.wms-nav-v2 a:hover{background:#202a3b!important;color:#fff!important}.wms-nav-v2 a.ui-active{background:linear-gradient(90deg,#5140bd,#6652d9)!important;color:#fff!important;box-shadow:0 6px 16px rgba(91,74,214,.28)!important}.wms-nav-v2 a.ui-active:before{left:-13px!important;width:4px!important;background:#b7adff!important}.nav-ico{width:27px!important;height:27px!important;background:rgba(255,255,255,.09)!important;color:#d4d9e5!important}.ui-active .nav-ico{background:rgba(255,255,255,.19)!important;color:#fff!important}
.wms-top-v2{left:264px!important;height:72px!important;padding:0 34px!important;background:#fff!important;border-bottom:1px solid var(--wms-v4-line)!important;box-shadow:0 3px 14px rgba(15,23,42,.05)!important}.wms-content-v2{margin-left:264px!important;padding:102px 34px 62px!important;max-width:none!important}
body.wms-v2 h1,.wms-content-v2>h1{font-size:32px!important;font-weight:850!important;letter-spacing:-.045em!important;color:var(--wms-v4-ink)!important}body.wms-v2 h2{font-size:17px!important;color:#253247!important}
body.wms-v2 .panel,body.wms-v2 .card,body.wms-v2 .clientcard,body.wms-v2 .registry-card{border:1px solid var(--wms-v4-line)!important;border-radius:16px!important;box-shadow:0 6px 20px rgba(15,23,42,.06)!important}
body.wms-v2 button,.wms-btn{background:var(--wms-v4-brand)!important;border-color:var(--wms-v4-brand)!important;color:#fff!important;min-height:40px!important;padding:10px 16px!important;border-radius:10px!important;font-weight:800!important}.wms-btn-primary{background:var(--wms-v4-brand)!important}.filter-btn.active{background:var(--wms-v4-brand)!important;border-color:var(--wms-v4-brand)!important}.filter-btn,.secondary-btn,.wms-btn-secondary{min-height:40px!important;border-radius:10px!important}
body.wms-v2 input,body.wms-v2 select,body.wms-v2 textarea{min-height:40px!important;border-color:#cbd5e1!important;border-radius:10px!important;background:#fff!important}body.wms-v2 input:focus,body.wms-v2 select:focus,body.wms-v2 textarea:focus{border-color:#7466e2!important;box-shadow:0 0 0 4px rgba(91,74,214,.14)!important}
body.wms-v2 .tablewrap{border:1px solid var(--wms-v4-line)!important;border-radius:14px!important;box-shadow:0 6px 20px rgba(15,23,42,.05)!important}body.wms-v2 th{background:#f0efff!important;color:#55489b!important;border-bottom-color:#d8d2ff!important;padding:13px 14px!important;font-size:11px!important}body.wms-v2 td{padding:13px 14px!important;font-size:13px!important}body.wms-v2 tbody tr:hover td{background:#f7f6ff!important}
.dash-v2-grid{gap:18px!important}.dash-attention,.dash-urgent{min-height:150px!important;border-radius:18px!important}.dash-attention{border-left:5px solid #e2a33c!important}.dash-urgent{background:linear-gradient(135deg,#d34651,#ad2d3d)!important}
.fbs-tabs{border-radius:12px!important}.fbs-tabs a.selected{color:var(--wms-v4-brand-dark)!important}.fbs-row:hover td{background:#f1efff!important}
.flash{box-shadow:0 4px 12px rgba(15,23,42,.06)!important}
/* login is intentionally outside body.wms-v2 */
body:not(.wms-v2).auth,.auth{background:linear-gradient(135deg,#eef2f7 0%,#e8e4ff 100%)!important}.authcard{width:min(440px,calc(100% - 32px))!important;border:1px solid #d9d6f5!important;border-radius:18px!important;padding:34px!important;box-shadow:0 20px 55px rgba(42,34,98,.16)!important}.authcard h1{font-size:30px!important;letter-spacing:-.04em!important;color:#172132!important}.authcard button{width:100%!important;background:var(--wms-v4-brand)!important;border-radius:10px!important;min-height:44px!important}
@media(max-width:1100px){.wms-sidebar-v2{width:240px!important}.wms-top-v2{left:240px!important}.wms-content-v2{margin-left:240px!important;padding-left:22px!important;padding-right:22px!important}}
@media(max-width:760px){.wms-sidebar-v2{width:264px!important}.wms-top-v2{left:0!important;height:64px!important;padding:0 14px!important}.wms-content-v2{margin-left:0!important;padding:84px 14px 42px!important}}
