/*
 * View 样式：client orders sync 20261118。
 * 源码：frontend/src/views/styles/111-client-orders-sync-20261118.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */
/* Shared desktop card geometry, with mobile inline panels retaining natural height. */
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel:has(>.preview-customer-order-grid){height:auto!important;max-height:calc(100dvh - 36px)!important;overflow:hidden!important}
 body.signed #app>.panel>.preview-staff-order-grid.preview-customer-order-grid{flex:0 1 auto!important;height:clamp(360px,calc(100dvh - 230px),480px)!important;max-height:480px!important;grid-template-columns:repeat(var(--desktop-order-columns,4),minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;grid-auto-rows:0!important;overflow:hidden!important;gap:8px;align-items:stretch}
 body.signed #app .preview-customer-order-grid>article.staff-order-card{height:100%!important;box-sizing:border-box;justify-content:space-between}
}
@media(max-width:850px){
 body.signed #app>.panel>.preview-staff-order-grid.preview-customer-order-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-rows:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
 body.signed #app>.panel:has(>.preview-customer-order-grid){max-height:none!important;overflow:visible!important}
}
@media(min-width:851px){
 body.signed[data-business-role=customer]>.sidebar>nav{width:100%!important;min-width:0!important}
 body.signed[data-business-role=customer]>.sidebar>nav>button{width:100%!important;min-width:0!important;font-size:22px!important;padding:10px!important}
 body.signed[data-business-role=customer]>.sidebar>nav>button span{font-size:22px!important}
 body.signed.preview-sidebar-collapsed[data-business-role=customer]>.sidebar>nav{width:44px!important;min-width:0!important}
}
/* Customer cards have no staff action row: size them to their content with even 8px spacing instead of stretching to the staff row height. */
@media(min-width:1100px) and (min-height:650px){
 body.signed #app>.panel>.preview-staff-order-grid.preview-customer-order-grid{height:auto!important;max-height:none!important;grid-template-rows:none!important;grid-auto-rows:auto!important}
 body.signed #app .preview-customer-order-grid>article.staff-order-card{height:auto!important;justify-content:flex-start!important;gap:8px!important}
 body.signed #app .preview-customer-order-grid>article.staff-order-card>.preview-card-footer{margin-top:auto!important}
}
