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

body.signed dialog .dialog-title{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px;text-align:left!important}
body.signed dialog .dialog-title>:is(h2,h3){flex:1;min-width:0;margin:0!important;text-align:left!important;overflow-wrap:anywhere}
body.signed dialog .dialog-title>button{flex:0 0 44px!important;align-self:center!important;margin:0 0 0 auto!important}
body.signed #customerPhotoDialog .photo-viewer-layout>header{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;padding:0!important;margin:0!important;width:100%!important;height:auto!important;min-height:44px!important;text-align:left!important;background:white}
body.signed #customerPhotoDialog header h3{flex:1;min-width:0;margin:0!important;text-align:left!important}
body.signed #customerPhotoDialog header [data-photo-close]{flex:0 0 auto!important;align-self:center!important;width:auto!important;min-width:44px!important;white-space:nowrap!important;margin:0 0 0 auto!important}
body.signed #customerPhotoDialog footer{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;padding:0!important;margin:0!important;max-width:none!important;width:100%;gap:12px}
body.signed #customerPhotoDialog footer span{display:block!important;margin:0!important;flex:none;min-width:48px;text-align:center;color:var(--ink)}
body.signed .workspace-pagination{margin-left:0!important;width:100%;min-width:0}
body.signed .workspace-page-controls>button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;text-align:center!important;flex:none;min-height:44px!important;font-size:14px!important;line-height:1.4!important}
body.signed .workspace-page-controls>span{display:block!important;margin:0!important}
@media(max-width:600px){body.signed .workspace-pagination{display:block!important}body.signed .workspace-page-controls{width:100%}}
