/*
 * View 样式：shared portal navigation design。
 * 源码：frontend/src/views/styles/104-shared-portal-navigation-design.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */

@media(min-width:851px){
body.signed:is([data-business-role="office_staff"],[data-business-role="japan_dispatch"],[data-business-role="customer"])>.sidebar{position:fixed;inset:0 auto 0 0;width:160px!important;padding:20px 10px!important;display:flex;flex-direction:column;background:#fff}
body.signed:is([data-business-role="office_staff"],[data-business-role="japan_dispatch"],[data-business-role="customer"])>main{margin-left:160px!important}
body.signed>.sidebar>.brand{font-size:17px!important;gap:7px!important}
body.signed>.sidebar>.brand .logo{width:30px!important;height:30px!important;border-radius:8px}
body.signed>.sidebar>.brand small{font-size:8px!important;letter-spacing:1px}
body.signed>.sidebar>.workspace{margin:26px 8px 12px!important;font-size:10px!important;line-height:1.5}
body.signed>.sidebar>nav{display:flex;flex-direction:column;gap:6px;width:100%}
body.signed>.sidebar>nav>button{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:44px;width:100%;padding:10px 12px!important;margin:0;font-size:18px!important;border-radius:9px;text-align:left}
body.signed>.sidebar>nav>button>span{font-size:inherit!important}
body.signed>.sidebar>nav>button .workspace-nav-icon{margin:0!important;width:21px;height:21px;flex:none}
body.signed>.sidebar>.side-bottom{margin-top:auto}
}
@media(max-width:850px){
body.signed>.sidebar .compact-workspace-top>.brand{font-size:17px!important;gap:7px!important}
body.signed>.sidebar .compact-workspace-top .logo{width:30px!important;height:30px!important;border-radius:8px}
body.signed>.sidebar>nav>button{display:flex!important;align-items:center;justify-content:center;gap:5px}
body.signed>.sidebar>nav>button .workspace-nav-icon{width:18px;height:18px;margin:0!important;flex:none}
body.signed[data-business-role="customer"]>.sidebar>nav{grid-template-columns:repeat(auto-fit,minmax(65px,1fr))!important}
body.signed[data-business-role="courier"]>.sidebar>nav{display:none!important}
}
