/* Report geometry only. Data, filters and source identities are unchanged. */
@media screen {
  body.zace-desktop:not(.zace-modern) #content#content:has(table,.vp-tree)>.page-head {
    position:sticky!important;top:0!important;margin:0 0 5px!important;
    height:auto!important;min-height:30px!important;flex:0 0 auto!important;
    padding:3px 41px!important;z-index:25!important;
  }
  body.zace-desktop:not(.zace-modern) #content#content:has(table,.vp-tree) {padding-top:0!important}
  body.zace-desktop:not(.zace-modern) #content#content:has(>#vrReport),
  body.zace-desktop:not(.zace-modern) #content#content:has(>.sales-register-workspace) {
    height:calc(100% - 10px)!important;max-height:calc(100% - 10px)!important;
    min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
  }
  body.zace-desktop.vn-interface #content#content>#vrReport {
    position:relative!important;inset:auto!important;width:100%!important;
    height:100%!important;min-height:0!important;flex:1 1 0!important;
  }
  body.zace-desktop.vn-interface #content#content .vr-caption {
    flex:0 0 auto!important;height:auto!important;min-height:30px!important;
    padding:3px 6px!important;overflow:visible!important;
  }
  body.zace-desktop.vn-interface #content#content .vr-report-body,
  body.zace-desktop.vn-interface #content#content .vr-report-main {min-height:0!important}
  body.zace-desktop #content#content .sales-register-workspace {
    flex:1 1 0!important;min-height:0!important;align-items:stretch!important;overflow:hidden!important;
  }
  body.zace-desktop #content#content .sales-register-main {
    display:flex;flex-direction:column;min-height:0;overflow:auto!important;
  }
  body.zace-desktop #content#content .sales-register-main>.table-wrap {
    flex:1 1 auto;min-height:100px!important;max-height:none!important;overflow:auto!important;
  }
  body.zace-desktop #content#content .sales-register-side {min-height:0;overflow:auto;position:static}
  /* Reserve space for the existing row-navigation dock over the scroll viewport. */
  body.zace-desktop #content#content :is(.vr-grid-wrap,.sales-register-main>.table-wrap) {
    padding-bottom:42px!important;scroll-padding-bottom:42px!important;box-sizing:border-box!important;
  }
  /* Selection must win over both stripe themes and the no-stripes preference. */
  body.zace-desktop.vn-interface #content#content#content#content#content#content
  :is(.vr-grid,.cd-table,.data-table) tbody tr:is(.vr-selected,.desktop-selected,.vp-selected,.cd-selected,.wu-current-row,[aria-selected="true"])>td {
    background:#075eaa!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
  body.zace-desktop.vn-interface #content#content#content#content#content#content
  :is(.vr-grid,.cd-table,.data-table) tbody tr:is(.vr-selected,.desktop-selected,.vp-selected,.cd-selected,.wu-current-row,[aria-selected="true"])>td :is(span,b,strong,a) {
    color:inherit!important;-webkit-text-fill-color:inherit!important;
  }
}
/* Important rules in a cascade layer outrank unlayered rules, regardless of
   repeated IDs. Keep selected text and its surface in the stripe layer. */
@layer formalReview {
 @media screen {
  /* Account labels are text actions on the row, not white button surfaces.
     Match the fill as well as color: inherited WebKit fill otherwise stays
     white after selection even when the button theme supplies dark color. */
  body.zace-desktop #content#content .trial-table td :is(.account-link,.tree-toggle) {
   background:transparent!important;color:inherit!important;
   -webkit-text-fill-color:inherit!important;box-shadow:none!important;
   border-color:transparent!important;
  }
  body.zace-desktop #content#content .trial-table tbody td:first-child {
    text-align:center!important;
  }
  body.zace-desktop #content#content .trial-table td .account-link {
   display:inline-block!important;min-width:0!important;max-width:calc(100% - 20px)!important;
   overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
   vertical-align:middle!important;text-align:start!important;
  }
  body.zace-desktop #content#content .trial-table td .tree-toggle {
   width:14px!important;min-width:14px!important;max-width:14px!important;
   box-sizing:border-box!important;margin-inline:0 2px!important;padding-inline:0!important;
  }
  body.zace-desktop #content#content table tbody
  tr:is(.vr-selected,.vr-trial-selected,.desktop-selected,.vp-selected,.cd-selected,.rd-selected,.rwc-selected,.wu-current-row,[aria-selected="true"])>td {
   background:#075eaa!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
  body.zace-desktop #content#content table tbody
  tr:is(.vr-selected,.vr-trial-selected,.desktop-selected,.vp-selected,.cd-selected,.rd-selected,.rwc-selected,.wu-current-row,[aria-selected="true"])>td :is(span,b,strong,a) {
   color:inherit!important;-webkit-text-fill-color:inherit!important;
  }
 }
}
@layer modernApproved {
 @media screen {
  /* Contain report scrolling below the fixed toolbar. Flow-root prevents the
     content's top margin from enlarging the document and hiding the caption. */
  body.zace-modern.vx-report-scroll-active .main-shell {
   display:flow-root!important;min-height:0!important;height:100dvh!important;
   overflow:clip!important;box-sizing:border-box!important;
  }
  body.zace-modern #content#content.vx-scroll-page>.document-group-tabs {
   flex:0 0 auto!important;margin:0 0 4px!important;padding:3px 6px!important;
   min-height:30px!important;gap:4px 8px!important;border-radius:6px!important;
  }
  body.zace-modern #content#content .sales-register-main:has(>.report-top-totals)>.kpi-grid.report-totals,
  body.zace-modern #content#content .sales-register-main:has(>.report-top-totals)>.report-filter-description,
  body.zace-modern #content#content .sales-register-main:has(>.report-top-totals)>.report-totals+p {
   display:none!important;
  }
  body.zace-modern #content#content .sales-register-main {
   display:flex!important;flex-direction:column!important;min-height:0!important;
  }
  body.zace-modern #content#content .sales-register-main>.table-wrap {
   flex:1 1 0!important;min-height:180px!important;max-height:none!important;
  }
 }
}
@media print {
  body.zace-desktop #content#content:has(>#vrReport),body.zace-desktop #content#content:has(>.sales-register-workspace),
  body.zace-desktop #content#content>#vrReport,body.zace-desktop #content#content .sales-register-workspace,
  body.zace-desktop #content#content .sales-register-main,body.zace-desktop #content#content .sales-register-main>.table-wrap {
    position:static!important;display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;
  }
}
