/* Review candidate: desktop density shared by dashboards, reports and central HR.
   Keep data, controls, column widths, colors, print and phone touch targets intact. */
@layer compactWorkspace {
 @media screen and (min-width:900px){
  body.zace-desktop #content>.page-head>div:not(.actions){display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:2px 9px!important;min-width:0!important}
  body.zace-desktop #content>.page-head>div:not(.actions)>:is(h1,p){margin:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
  body.zace-desktop #content>.page-head .actions{gap:4px!important;margin-block:0!important;flex-wrap:wrap!important}
  body.zace-desktop #content :is(.filters,.report-filter,.report-filters,.report-amount-search){padding-block:3px!important;margin-block:2px!important;gap:3px 8px!important;min-height:0!important;flex-wrap:wrap!important}
  body.zace-desktop #content :is(.filters,.report-filter,.report-filters,.report-amount-search)>label{display:flex!important;flex-flow:row wrap!important;align-items:center!important;gap:4px!important;margin-block:0!important;min-width:0!important}
  body.zace-desktop #content :is(.report-export-tools,.table-export-tools,.vx-report-scroll-tools,.vp-report-pages){padding-block:1px!important;margin-block:0!important;min-height:0!important;flex-wrap:wrap!important}
  body.zace-desktop #content :is(.report-export-tools,.table-export-tools,.vx-report-scroll-tools,.vp-report-pages)>:is(p,small,span){margin-block:0!important;line-height:1.3!important}
  body.zace-desktop #content .department-workspace .department-grid{gap:4px 10px!important;padding-block:5px!important}
  body.zace-desktop #content .department-workspace .department-grid>:is(h4,p){margin-block:2px!important;line-height:1.35!important}
  body.zace-desktop #content .department-workspace .actions{gap:4px!important;margin-block:3px!important}
  body.zace-desktop #content .department-workspace .department-grid>label:not(:has(textarea,select[multiple])){flex-flow:row wrap!important;align-items:center!important;gap:4px!important}
  body.zace-desktop #content .department-workspace .department-grid>label:not(:has(textarea,select[multiple]))>:is(input,select){flex:1 1 120px!important;width:auto!important}
  body.zace-desktop #movementBoard :is(.ab-heading,.ab-toolbar){gap:3px 8px!important;margin-block:1px!important;padding-block:3px!important}
  body.zace-desktop #movementBoard :is(.ab-note,.ab-counts){margin-block:1px!important;padding-block:1px!important;line-height:1.35!important}
  body.zace-desktop #modal :is(#voucherForm,#returnForm)>.actions{padding-block:3px!important;gap:3px 6px!important;margin-block:1px!important}
 }
}
@layer oversightWorkspace {
 @media screen and (min-width:900px){
  #content#content .os-workspace{padding:8px!important;line-height:1.45!important}
  #content#content .os-workspace header{gap:4px 10px!important}
  #content#content .os-workspace header>div{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:3px 9px!important}
  #content#content .os-workspace header :is(p,h1,small){margin:0!important}
  #content#content .os-workspace .os-layout{margin-top:6px!important;gap:10px!important}
  #content#content .os-workspace .os-panel{padding:8px!important;margin-bottom:6px!important}
  #content#content .os-workspace .os-metrics>.os-panel{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;padding:6px 9px!important}
  #content#content .os-workspace .os-metrics strong{line-height:1.2!important;font-size:24px!important}
  #content#content .os-workspace :is(h2,h3,p){margin-block:3px 5px!important}
  #content#content .os-workspace :is(.os-filters,.os-actions,.os-toolbar){gap:4px 8px!important;margin-block:3px!important}
  #content#content .os-workspace .os-button{padding:4px 9px!important;min-height:28px!important}
  #content#content .os-workspace .os-toolbar label{flex-flow:row wrap!important;align-items:center!important;gap:4px!important;margin:0!important}
  #content#content .os-workspace .os-note{padding:5px 8px!important;margin-block:3px!important}
  #content#content .os-workspace .os-table{margin-block:4px!important}
  #content#content .os-workspace .os-table :is(th,td){padding-block:6px!important}
 }
}
@media screen and (min-width:900px){
 body:has(#centralContent)>header{padding:8px 14px;gap:6px 12px;align-items:center}
 body:has(#centralContent)>.group-note{margin:5px 12px;line-height:1.35}
 body:has(#centralContent)>main{margin:6px 12px;padding:8px 10px}
 #centralContent .central-hr :is(h1,h2,h3,p){margin-block:4px;line-height:1.35}
 #centralContent .central-hr .hr-form{gap:4px 10px;padding:6px}
 #centralContent .central-hr .hr-form>label:not(:has(textarea,select[multiple])){flex-flow:row wrap;align-items:center;gap:4px}
 #centralContent .central-hr .hr-form>label:not(:has(textarea,select[multiple]))>:is(input,select){flex:1 1 130px;width:auto}
 #centralContent .central-hr :is(.hr-actions,.hr-source-summary){margin-block:4px;padding-block:4px;gap:4px 10px}
 #centralContent .central-hr .hr-source-summary small{flex-basis:auto;line-height:1.35}
 #centralContent .central-hr .hr-readiness{padding:6px 8px;margin-block:4px}
 #centralContent .central-hr details{padding-block:3px}
 #centralContent :is(button,.btn,input,select){padding:5px 8px;min-height:28px}
 #centralContent [data-central-documents] article{padding:6px;margin:4px 0}
 #centralContent [data-central-documents] form{gap:4px 8px;padding:4px 0}
 #centralContent [data-central-documents] form>label:not(:has(textarea,input[type=file])){flex-flow:row wrap;align-items:center;gap:4px}
}
@layer compactWorkspace {
 @media screen and (min-width:900px){
  body.zace-desktop #content :is(.mc-heading,.fv-header,.inc-header,.f5-ready-heading){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:3px 8px!important;padding-block:4px!important;min-height:36px!important;height:auto!important;margin-block:0 3px!important}
  body.zace-desktop #content :is(.mc-heading,.fv-header,.inc-header,.f5-ready-heading)>div:not([class*=actions]){display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:3px 8px!important;min-width:0!important}
  body.zace-desktop #content :is(.mc-heading,.fv-header,.inc-header,.f5-ready-heading) :is(h1,h2,p,small){margin-block:0!important;line-height:1.3!important}
  body.zace-desktop #content :is(.mc-heading,.fv-header,.inc-header) :is(h1,h2){font-size:21px!important}
  body.zace-desktop #content :is(.fv-filters,.inc-toolbar){gap:3px 8px!important;padding-block:4px!important;margin-block:3px!important;align-items:center!important}
  body.zace-desktop #content :is(.fv-filters,.inc-toolbar)>label{display:flex!important;flex-flow:row wrap!important;align-items:center!important;gap:3px!important;margin:0!important}
  body.zace-desktop #content :is(.fv-filters,.inc-toolbar)>label>:is(input,select){width:auto!important;min-width:0!important;flex:1 1 110px!important}
  body.zace-desktop #content :is(.business-filter,.cd-filters,.cd-filter-actions){padding-block:4px!important;gap:3px!important;margin-block:2px!important}
  body.zace-desktop #content :is(.business-filter,.cd-filters)>:is(p,h3,h4){margin-block:2px!important;line-height:1.3!important}
  body.zace-desktop #modal #tradeForm:has(>.sales-workflow-bar)>.sales-workflow-bar{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important}
  body.zace-desktop #modal #tradeForm:has(>.sales-workflow-bar) .vp-invoice-totals>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(55px,70px)!important;gap:3px!important}
  body.zace-desktop #modal #tradeForm:has(>.sales-workflow-bar) .vp-invoice-totals>div>label{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:0!important}
 }
}
