/* Shared three-column page filters. Reset occupies the final grid cell. */
html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar,#page-fill>.shared-filter){
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:center!important;
}
html body[data-current-page] .main #fill2-filterbar #f2-advanced{display:contents!important}
html body[data-current-page] .main .page :is(#fill2-filterbar,#f2-advanced,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar,#page-fill>.shared-filter)>:is(.srch,.fsel,.shared-dept-tree-select,.roster-filter-select,.ms){
  width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;grid-column:auto!important;
}
html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,#page-log .log-filter-toolbar) :is(.shared-dept-tree-trigger,.roster-filter-trigger,.ms-btn){width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar,#page-fill>.shared-filter) .global-filter-reset{
  grid-column:3!important;justify-self:end!important;margin:0!important;width:auto!important;min-width:80px!important;position:static!important;
}
html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar)> .spacer{display:none!important}
html body[data-current-page] .main :is(#roster-slice,#dpm-filterbar>span:not(.spacer),#budget-filter>span:not(.spacer)){grid-column:1/-1;justify-self:end}
@media(max-width:760px){
 html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar,#page-fill>.shared-filter){grid-template-columns:minmax(0,1fr)!important}
 html body[data-current-page] .main .page :is(#fill2-filterbar,#workconfirm-filter,.dashboard-unified-filter,#roster-filterbar,#dpm-filterbar,#budget-filter,.adj-filter-card>.card-body,#page-log .log-filter-toolbar,#page-summary>.f2-filterbar,#page-allprojects>.toolbar,.pd-list-toolbar,#page-fill>.shared-filter) .global-filter-reset{grid-column:1!important}
}
/* Override legacy page-specific fixed column widths. */
html body[data-current-page="fill2"] .main #page-fill2.show #fill2-filterbar,
html body[data-current-page="dashboard"] .main #page-dashboard.dashboard-flow.show #sum-global-filter-card>.card-body.dashboard-unified-filter{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;
}
html body[data-current-page="dashboard"] .main #page-dashboard.dashboard-flow.show #sum-global-filter-card>.card-body.dashboard-unified-filter>:is(div.shared-dept-tree-select,.srch){width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;margin:0!important}
html body[data-current-page="fill2"] .main #page-fill2.show #f2-advanced .fill2-unified-select{width:100%!important;min-width:0!important;max-width:none!important;grid-column:auto!important}
@media(max-width:760px){
 html body[data-current-page="fill2"] .main #page-fill2.show #fill2-filterbar,
 html body[data-current-page="dashboard"] .main #page-dashboard.dashboard-flow.show #sum-global-filter-card>.card-body.dashboard-unified-filter{grid-template-columns:minmax(0,1fr)!important}
}
/* Keep project actions and the table visually connected. */
html body[data-current-page="deptprojects"] .main #page-deptprojects.show>#dpm-actions{border-bottom:0!important}
/* Match the project template's inset filter-to-actions divider. */
html body[data-current-page="roster"] .main #page-roster.show>#roster-filterbar{position:relative!important}
html body[data-current-page="roster"] .main #page-roster.show>#roster-filterbar::after{
 content:""!important;display:block!important;position:absolute!important;left:16px!important;right:16px!important;bottom:0!important;height:1px!important;background:#E5E6EB!important;pointer-events:none!important;
}
/* Audit actions meet the table without an extra divider. */
html body[data-current-page="log"] #page-log :is(#log-tab-auth,#log-tab-changes) .global-list-tools{border-bottom:0!important}
/* Summary spacing follows the roster template without hidden-row gaps. */
html body[data-current-page="dashboard"] .main #page-dashboard.dashboard-flow.show #sum-global-filter-card>.dashboard-unified-filter>.spacer{display:none!important}
html body[data-current-page="dashboard"] .main #page-dashboard.show>#sum-global-filter-card{position:relative!important;border-bottom:0!important}
html body[data-current-page="dashboard"] .main #page-dashboard.show>#sum-global-filter-card::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:1px;background:#E5E6EB;pointer-events:none}
html body[data-current-page="dashboard"] .main #page-dashboard.show>:is(#sum-view-proj,#sum-view-dept){border-top:0!important}
html body[data-current-page="dashboard"] .main #page-dashboard.show :is(#sum-view-proj,#sum-view-dept)>.dash-table-tools{
 display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;min-height:56px!important;height:auto!important;padding:11px 16px!important;box-sizing:border-box!important;
}
html body[data-current-page="dashboard"] .main #page-dashboard.show :is(#sum-view-proj,#sum-view-dept)>.dash-table-tools>.dashboard-person-tabs{margin-right:auto!important}
/* Match the summary page's 16px title-to-topbar spacing. */
html body[data-current-page="workconfirm"] .main #page-workconfirm>.page-head{padding-top:0!important}
/* Fill filters use the same top inset as work confirmation. */
html body[data-current-page="fill2"] .main #page-fill2.show #fill2-filterbar{margin-top:0!important;padding-top:12px!important}
